Lines Matching defs:role
346 const char *role, char *str, int str_size)
353 if (av_strstart(role, "video_encoder.", NULL)) {
358 omx_context->ptr_GetComponentsOfRole((OMX_STRING) role, &num, NULL);
360 av_log(logctx, AV_LOG_WARNING, "No component for role %s found\n", role);
373 omx_context->ptr_GetComponentsOfRole((OMX_STRING) role, &num, (OMX_U8**) components);
394 static av_cold int omx_component_init(AVCodecContext *avctx, const char *role)
417 av_strlcpy(role_params.cRole, role, sizeof(role_params.cRole));
646 const char *role;
664 role = "video_encoder.mpeg4";
667 role = "video_encoder.avc";
673 if ((ret = find_component(s->omx_context, avctx, role, s->component_name, sizeof(s->component_name))) < 0)
678 if ((ret = omx_component_init(avctx, role)) < 0)