Lines Matching refs:avctx
38 static av_cold int pcx_encode_init(AVCodecContext *avctx)
40 PCXContext *s = avctx->priv_data;
43 avctx->coded_frame = &s->picture;
98 static int pcx_encode_frame(AVCodecContext *avctx,
101 PCXContext *s = avctx->priv_data;
114 if (avctx->width > 65535 || avctx->height > 65535) {
115 av_log(avctx, AV_LOG_ERROR, "image dimensions do not fit in 16 bits\n");
119 switch (avctx->pix_fmt) {
140 av_log(avctx, AV_LOG_ERROR, "unsupported pixfmt\n");
144 line_bytes = (avctx->width * bpp + 7) >> 3;
153 bytestream_put_le16(&buf, avctx->width - 1); // x max
154 bytestream_put_le16(&buf, avctx->height - 1); // y max
168 for (y = 0; y < avctx->height; y++) {
171 av_log(avctx, AV_LOG_ERROR, "buffer too small\n");
180 av_log(avctx, AV_LOG_ERROR, "buffer too small\n");