EIL Integration Process
Overview
1. Creation of the EIL
void Log(void* userdata, int32_t level, const char* msg)
{
fprintf(level == EIL_LL_Error ? stderr : stdout, msg);
}
EILContext OpenEIL()
{
EILOpenSettings settings;
EILReturnCode rc = EIL_OpenSettingsDefault(&settings);
if (rc != EIL_RC_Success)
{
fprintf(stderr, "Unable to initialise default open settings: %s\n",
EIL_GetErrorString(rc));
return NULL;
}
settings.base_encoder = "x264";
settings.log_callback = Log;
EILContext context = NULL;
if ((rc = EIL_Open(&settings, &context)) != EIL_RC_Success)
{
fprintf(stderr, "Unable to open the EIL: %s\n", EIL_GetErrorString(rc));
return NULL;
}
return context;
}2. Initialisation of the EIL
3. Passing video frames to the EIL
4. Fetching the encoded bitstream from the EIL
5. Flushing the EIL
6. Destruction of the EIL and Shutdown
Last updated
Was this helpful?

