Lines Matching defs:avctx
41 static av_cold int svc_decode_close(AVCodecContext *avctx)
43 SVCContext *s = avctx->priv_data;
51 static av_cold int svc_decode_init(AVCodecContext *avctx)
53 SVCContext *s = avctx->priv_data;
59 if ((err = ff_libopenh264_check_version(avctx)) < 0)
63 av_log(avctx, AV_LOG_ERROR, "Unable to create decoder\n");
72 (*s->decoder)->SetOption(s->decoder, DECODER_OPTION_TRACE_CALLBACK_CONTEXT, (void *)&avctx);
81 av_log(avctx, AV_LOG_ERROR, "Initialize failed\n");
85 avctx->pix_fmt = AV_PIX_FMT_YUV420P;
90 static int svc_decode_frame(AVCodecContext *avctx, AVFrame *avframe,
93 SVCContext *s = avctx->priv_data;
123 av_log(avctx, AV_LOG_ERROR, "DecodeFrame failed\n");
127 av_log(avctx, AV_LOG_DEBUG, "No frame produced\n");
131 ret = ff_set_dimensions(avctx, info.UsrData.sSystemBuffer.iWidth, info.UsrData.sSystemBuffer.iHeight);
136 if (ff_get_buffer(avctx, avframe, 0) < 0) {
137 av_log(avctx, AV_LOG_ERROR, "Unable to allocate buffer\n");
144 av_image_copy(avframe->data, avframe->linesize, (const uint8_t **) ptrs, linesize, avctx->pix_fmt, avctx->width, avctx->height);
150 avctx->profile = opt;
152 avctx->level = opt;