• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iserver/libav-0.8.8/libavcodec/

Lines Matching refs:avctx

36     AVCodecContext *avctx;
112 static av_cold int mimic_decode_init(AVCodecContext *avctx)
114 MimicContext *ctx = avctx->priv_data;
121 av_log(avctx, AV_LOG_ERROR, "error initializing vlc table\n");
124 dsputil_init(&ctx->dsp, avctx);
130 static int mimic_decode_update_thread_context(AVCodecContext *avctx, const AVCodecContext *avctx_from)
132 MimicContext *dst = avctx->priv_data, *src = avctx_from->priv_data;
134 if (avctx == avctx_from) return 0;
268 av_log(ctx->avctx, AV_LOG_ERROR,
296 dst->data[0] = src->data[0]+( ctx->avctx->height -1)*src->linesize[0];
297 dst->data[1] = src->data[2]+((ctx->avctx->height>>1)-1)*src->linesize[2];
298 dst->data[2] = src->data[1]+((ctx->avctx->height>>1)-1)*src->linesize[1];
303 static int mimic_decode_frame(AVCodecContext *avctx, void *data,
308 MimicContext *ctx = avctx->priv_data;
316 av_log(avctx, AV_LOG_ERROR, "insufficient data\n");
329 if(!ctx->avctx) {
334 av_log(avctx, AV_LOG_ERROR, "invalid width/height!\n");
338 ctx->avctx = avctx;
339 avctx->width = width;
340 avctx->height = height;
341 avctx->pix_fmt = PIX_FMT_YUV420P;
346 } else if(width != ctx->avctx->width || height != ctx->avctx->height) {
347 av_log(avctx, AV_LOG_ERROR, "resolution changing is not supported\n");
352 av_log(avctx, AV_LOG_ERROR, "decoding must start with keyframe\n");
358 if(ff_thread_get_buffer(avctx, &ctx->buf_ptrs[ctx->cur_index])) {
359 av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
369 ff_thread_finish_setup(avctx);
384 if (!(avctx->active_thread_type & FF_THREAD_FRAME)) {
385 ff_thread_release_buffer(avctx, &ctx->buf_ptrs[ctx->cur_index]);
398 ff_thread_release_buffer(avctx, &ctx->buf_ptrs[ctx->cur_index]);
403 static av_cold int mimic_decode_end(AVCodecContext *avctx)
405 MimicContext *ctx = avctx->priv_data;
410 if (avctx->internal->is_copy)
415 ff_thread_release_buffer(avctx, &ctx->buf_ptrs[i]);