Lines Matching defs:avctx
73 int edges_needed = av_codec_is_encoder(s->avctx->codec);
75 frame->width = s->avctx->width ;
76 frame->height = s->avctx->height;
81 ret = ff_encode_alloc_frame(s->avctx, frame);
83 ret = ff_get_buffer(s->avctx, frame, AV_GET_BUFFER_FLAG_REF);
93 frame->width = s->avctx->width;
94 frame->height = s->avctx->height;
115 int w= AV_CEIL_RSHIFT(s->avctx->width, LOG2_MB_SIZE);
116 int h= AV_CEIL_RSHIFT(s->avctx->height, LOG2_MB_SIZE);
432 av_cold int ff_snow_common_init(AVCodecContext *avctx){
434 SnowContext *s = avctx->priv_data;
438 s->avctx= avctx;
442 ff_me_cmp_init(&s->mecc, avctx);
443 ff_hpeldsp_init(&s->hdsp, avctx->flags);
488 width= s->avctx->width;
489 height= s->avctx->height;
514 int ff_snow_common_init_after_header(AVCodecContext *avctx) {
515 SnowContext *s = avctx->priv_data;
520 if (av_codec_is_decoder(avctx->codec)) {
521 if ((ret = ff_get_buffer(s->avctx, s->mconly_picture,
526 emu_buf_size = FFMAX(s->mconly_picture->linesize[0], 2*avctx->width+256) * (2 * MB_SIZE + HTAPS_MAX - 1);
527 if (!FF_ALLOCZ_TYPED_ARRAY(s->scratchbuf, FFMAX(s->mconly_picture->linesize[0], 2*avctx->width+256) * 7 * MB_SIZE) ||
532 if (av_codec_is_decoder(avctx->codec) &&
533 s->mconly_picture->format != avctx->pix_fmt) {
534 av_log(avctx, AV_LOG_ERROR, "pixel format changed\n");
539 int w= s->avctx->width;
540 int h= s->avctx->height;
597 int w= is_chroma ? AV_CEIL_RSHIFT(s->avctx->width, s->chroma_h_shift) : s->avctx->width;
598 int h= is_chroma ? AV_CEIL_RSHIFT(s->avctx->height, s->chroma_v_shift) : s->avctx->height;
644 void ff_snow_release_buffer(AVCodecContext *avctx)
646 SnowContext *s = avctx->priv_data;
663 ff_snow_release_buffer(s->avctx);
685 av_log(s->avctx,AV_LOG_ERROR, "No reference frames\n");