Lines Matching defs:decoder
23 * VP8/9 decoder support via libvpx
45 struct vpx_codec_ctx decoder;
88 struct vpx_codec_ctx* decoder,
98 if (vpx_codec_dec_init(decoder, iface, &deccfg, 0) != VPX_CODEC_OK) {
99 const char *error = vpx_codec_error(decoder);
100 av_log(avctx, AV_LOG_ERROR, "Failed to initialize decoder: %s\n",
106 vpx_codec_set_frame_buffer_functions(decoder, get_frame_buffer, release_frame_buffer, avctx->priv_data);
201 static int decode_frame(AVCodecContext *avctx, vpx_codec_ctx_t *decoder,
204 if (vpx_codec_decode(decoder, data, data_sz, NULL, 0) != VPX_CODEC_OK) {
205 const char *error = vpx_codec_error(decoder);
206 const char *detail = vpx_codec_error_detail(decoder);
229 ret = decode_frame(avctx, &ctx->decoder, avpkt->data, avpkt->size);
264 if ((img = vpx_codec_get_frame(&ctx->decoder, &iter)) &&
344 vpx_codec_destroy(&ctx->decoder);
355 return vpx_init(avctx, &ctx->decoder, vpx_codec_vp8_dx());
377 return vpx_init(avctx, &ctx->decoder, vpx_codec_vp9_dx());