Lines Matching defs:avctx
40 static av_cold int encode_init(AVCodecContext *avctx)
42 if (avctx->width > 65535 || avctx->height > 65535) {
43 av_log(avctx, AV_LOG_ERROR, "Unsupported resolution %dx%d. "
45 avctx->width, avctx->height);
93 static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
96 SgiContext *s = avctx->priv_data;
104 width = avctx->width;
105 height = avctx->height;
110 switch (avctx->pix_fmt) {
158 if ((ret = ff_alloc_packet(avctx, pkt, bytes_per_channel * length)) < 0)