Lines Matching refs:iface
23 vpx_codec_iface_t *iface, in vpx_codec_enc_init_ver() argument
32 else if (!ctx || !iface || !cfg) in vpx_codec_enc_init_ver()
34 else if (iface->abi_version != VPX_CODEC_INTERNAL_ABI_VERSION) in vpx_codec_enc_init_ver()
36 else if (!(iface->caps & VPX_CODEC_CAP_ENCODER)) in vpx_codec_enc_init_ver()
38 else if ((flags & VPX_CODEC_USE_XMA) && !(iface->caps & VPX_CODEC_CAP_XMA)) in vpx_codec_enc_init_ver()
41 && !(iface->caps & VPX_CODEC_CAP_PSNR)) in vpx_codec_enc_init_ver()
45 ctx->iface = iface; in vpx_codec_enc_init_ver()
46 ctx->name = iface->name; in vpx_codec_enc_init_ver()
50 res = ctx->iface->init(ctx); in vpx_codec_enc_init_ver()
59 ctx->priv->iface = ctx->iface; in vpx_codec_enc_init_ver()
67 vpx_codec_err_t vpx_codec_enc_config_default(vpx_codec_iface_t *iface, in vpx_codec_enc_config_default() argument
74 if (!iface || !cfg || usage > INT_MAX) in vpx_codec_enc_config_default()
76 else if (!(iface->caps & VPX_CODEC_CAP_ENCODER)) in vpx_codec_enc_config_default()
82 for (map = iface->enc.cfg_maps; map->usage >= 0; map++) in vpx_codec_enc_config_default()
126 else if (!ctx->iface || !ctx->priv) in vpx_codec_encode()
128 else if (!(ctx->iface->caps & VPX_CODEC_CAP_ENCODER)) in vpx_codec_encode()
136 res = ctx->iface->enc.encode(ctx->priv->alg_priv, img, pts, in vpx_codec_encode()
154 else if (!ctx->iface || !ctx->priv) in vpx_codec_get_cx_data()
156 else if (!(ctx->iface->caps & VPX_CODEC_CAP_ENCODER)) in vpx_codec_get_cx_data()
159 pkt = ctx->iface->enc.get_cx_data(ctx->priv->alg_priv, iter); in vpx_codec_get_cx_data()
231 if (!ctx->iface || !ctx->priv) in vpx_codec_get_preview_frame()
233 else if (!(ctx->iface->caps & VPX_CODEC_CAP_ENCODER)) in vpx_codec_get_preview_frame()
235 else if (!ctx->iface->enc.get_preview) in vpx_codec_get_preview_frame()
238 img = ctx->iface->enc.get_preview(ctx->priv->alg_priv); in vpx_codec_get_preview_frame()
251 if (!ctx->iface || !ctx->priv) in vpx_codec_get_global_headers()
253 else if (!(ctx->iface->caps & VPX_CODEC_CAP_ENCODER)) in vpx_codec_get_global_headers()
255 else if (!ctx->iface->enc.get_glob_hdrs) in vpx_codec_get_global_headers()
258 buf = ctx->iface->enc.get_glob_hdrs(ctx->priv->alg_priv); in vpx_codec_get_global_headers()
270 if (!ctx || !ctx->iface || !ctx->priv || !cfg) in vpx_codec_enc_config_set()
272 else if (!(ctx->iface->caps & VPX_CODEC_CAP_ENCODER)) in vpx_codec_enc_config_set()
275 res = ctx->iface->enc.cfg_set(ctx->priv->alg_priv, cfg); in vpx_codec_enc_config_set()