Lines Matching defs:avctx
33 static int xwd_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
36 enum AVPixelFormat pix_fmt = avctx->pix_fmt;
142 av_log(avctx, AV_LOG_ERROR, "unsupported pixel format\n");
146 lsize = FFALIGN(bpp * avctx->width, bpad) / 8;
148 out_size = header_size + ncolors * XWD_CMAP_SIZE + avctx->height * lsize;
150 if ((ret = ff_get_encode_buffer(avctx, pkt, out_size, 0)) < 0)
161 bytestream_put_be32(&buf, avctx->width); // pixmap width in pixels
162 bytestream_put_be32(&buf, avctx->height); // pixmap height in pixels
177 bytestream_put_be32(&buf, avctx->width); // window width
178 bytestream_put_be32(&buf, avctx->height); // window height
208 for (i = 0; i < avctx->height; i++) {