Lines Matching defs:avctx
486 static int smc_encode_init(AVCodecContext *avctx)
488 SMCContext *s = avctx->priv_data;
490 avctx->bits_per_coded_sample = 8;
499 static int smc_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
502 SMCContext *s = avctx->priv_data;
508 ret = ff_alloc_packet(avctx, pkt, 8LL * avctx->height * avctx->width);
512 if (avctx->gop_size == 0 || !s->prev_frame->data[0] ||
513 (avctx->frame_number % avctx->gop_size) == 0) {
540 av_log(avctx, AV_LOG_ERROR, "cannot add reference\n");
552 static int smc_encode_end(AVCodecContext *avctx)
554 SMCContext *s = (SMCContext *)avctx->priv_data;