Lines Matching defs:avctx
274 s->m.avctx = s->avctx;
327 s->m.me.dia_size = s->avctx->dia_size;
379 av_log(s->avctx, AV_LOG_ERROR, "encoded frame too large\n");
487 static av_cold int svq1_encode_end(AVCodecContext *avctx)
489 SVQ1EncContext *const s = avctx->priv_data;
492 if (avctx->frame_number)
493 av_log(avctx, AV_LOG_DEBUG, "RD: %f\n",
494 s->rd_total / (double)(avctx->width * avctx->height *
495 avctx->frame_number));
518 static av_cold int svq1_encode_init(AVCodecContext *avctx)
520 SVQ1EncContext *const s = avctx->priv_data;
523 if (avctx->width >= 4096 || avctx->height >= 4096) {
524 av_log(avctx, AV_LOG_ERROR, "Dimensions too large, maximum is 4095x4095\n");
528 ff_hpeldsp_init(&s->hdsp, avctx->flags);
529 ff_me_cmp_init(&s->mecc, avctx);
530 ff_mpegvideoencdsp_init(&s->m.mpvencdsp, avctx);
538 s->frame_width = avctx->width;
539 s->frame_height = avctx->height;
547 s->avctx = avctx;
548 s->m.avctx = avctx;
556 s->m.me.scratchpad = av_mallocz((avctx->width + 64) *
582 static int svq1_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
585 SVQ1EncContext *const s = avctx->priv_data;
588 ret = ff_alloc_packet(avctx, pkt, s->y_block_width * s->y_block_height *
593 if (avctx->pix_fmt != AV_PIX_FMT_YUV410P) {
594 av_log(avctx, AV_LOG_ERROR, "unsupported pixel format\n");
599 if ((ret = ff_encode_alloc_frame(avctx, s->current_picture)) < 0) {
604 ret = ff_encode_alloc_frame(avctx, s->last_picture);
618 if (avctx->gop_size && (avctx->frame_number % avctx->gop_size))