AMFCaps *encoderCaps = NULL;
AMF_RESULT result = AMF_FAIL;
- hb_log("VCE: Checking for hardware availability.");
-
library = hb_dlopen(AMF_DLL_NAMEA);
if(!library)
{
result = AMF_FAIL;
- hb_log("VCE: VCE Library not found.");
goto clean;
}
result = factory->pVtbl->CreateComponent(factory, context, componentID, &encoder);
if(result != AMF_OK)
{
- hb_log("VCE: Encoder not available");
goto clean;
}
result = encoder->pVtbl->GetCaps(encoder, &encoderCaps);
-
- hb_log("VCE: Result = %d", result);
clean:
if (encoderCaps)