参照元

説明

引数

返り値

参考

実装

void
g_omx_core_init (GOmxCore * core)
{
  GST_DEBUG_OBJECT (core->object, "loading: %s %s (%s)",
      core->component_name,
      core->component_role ? core->component_role : "", core->library_name);
  core->imp = request_imp (core->library_name);

  if (!core->imp)
    return;
  core->omx_error = core->imp->sym_table.get_handle (&core->omx_handle,
      (char *) core->component_name, core, &callbacks);

  GST_DEBUG_OBJECT (core->object, "OMX_GetHandle(&%p) -> %d",
      core->omx_handle, core->omx_error);

  if (!core->omx_error) {
    core->omx_state = OMX_StateLoaded;

    if (core->component_role) {
      OMX_PARAM_COMPONENTROLETYPE param;

      GST_DEBUG_OBJECT (core->object, "setting component role: %s",
          core->component_role);

      G_OMX_INIT_PARAM (param);
      strncpy ((char *) param.cRole, core->component_role,
          OMX_MAX_STRINGNAME_SIZE);

      OMX_SetParameter (core->omx_handle, OMX_IndexParamStandardComponentRole,
          &param);
    }
  }
}

コメント


トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS