Lines Matching defs:omx_context
154 OMXContext *omx_context;
156 omx_context = av_mallocz(sizeof(*omx_context));
157 if (!omx_context)
160 ret = omx_try_load(omx_context, logctx, libname, prefix, NULL);
162 av_free(omx_context);
167 if (!(ret = omx_try_load(omx_context, logctx, nameptr[0], prefix, nameptr[1])))
170 av_free(omx_context);
175 if (omx_context->host_init)
176 omx_context->host_init();
177 omx_context->ptr_Init();
178 return omx_context;
181 static av_cold void omx_deinit(OMXContext *omx_context)
183 if (!omx_context)
185 omx_context->ptr_Deinit();
186 dlclose(omx_context->lib);
187 av_free(omx_context);
194 OMXContext *omx_context;
345 static av_cold int find_component(OMXContext *omx_context, void *logctx,
358 omx_context->ptr_GetComponentsOfRole((OMX_STRING) role, &num, NULL);
373 omx_context->ptr_GetComponentsOfRole((OMX_STRING) role, &num, (OMX_U8**) components);
409 err = s->omx_context->ptr_GetHandle(&s->handle, s->component_name, s, (OMX_CALLBACKTYPE*) &callbacks);
627 s->omx_context->ptr_FreeHandle(s->handle);
631 omx_deinit(s->omx_context);
632 s->omx_context = NULL;
654 s->omx_context = omx_init(avctx, s->libname, s->libprefix);
655 if (!s->omx_context)
673 if ((ret = find_component(s->omx_context, avctx, role, s->component_name, sizeof(s->component_name))) < 0)