Lines Matching defs:avctx
31 static av_cold int encode_init(AVCodecContext *avctx)
33 int aligned_width = FFALIGN(avctx->width,
34 avctx->codec_id == AV_CODEC_ID_R10K ? 1 : 64);
36 avctx->bits_per_coded_sample = 32;
37 if (avctx->width > 0)
38 avctx->bit_rate = ff_guess_coded_bitrate(avctx) * aligned_width / avctx->width;
43 static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
47 int aligned_width = FFALIGN(avctx->width,
48 avctx->codec_id == AV_CODEC_ID_R10K ? 1 : 64);
49 int pad = (aligned_width - avctx->width) * 4;
53 ret = ff_get_encode_buffer(avctx, pkt, 4 * aligned_width * avctx->height, 0);
62 for (i = 0; i < avctx->height; i++) {
66 for (j = 0; j < avctx->width; j++) {
71 if (avctx->codec_id == AV_CODEC_ID_R210)
75 if (avctx->codec_id == AV_CODEC_ID_AVRP)