Lines Matching refs:nplanes
59 const uint8_t *src, int src_plane_size, int nplanes) in pcx_rle_encode() argument
65 if (dst_size < 2LL * src_plane_size * nplanes || src_plane_size <= 0) in pcx_rle_encode()
68 for (p = 0; p < nplanes; p++) { in pcx_rle_encode()
71 const uint8_t *src_plane_end = src_plane + src_plane_size * nplanes; in pcx_rle_encode()
73 src_plane += nplanes; in pcx_rle_encode()
75 for (; ; src_plane += nplanes) { in pcx_rle_encode()
104 int bpp, nplanes, i, y, line_bytes, written, ret, max_pkt_size, sw, sh; in pcx_encode_frame() local
117 nplanes = 3; in pcx_encode_frame()
125 nplanes = 1; in pcx_encode_frame()
131 nplanes = 1; in pcx_encode_frame()
136 nplanes = 1; in pcx_encode_frame()
147 max_pkt_size = 128 + avctx->height * 2 * line_bytes * nplanes + (pal ? 256*3 + 1 : 0); in pcx_encode_frame()
171 bytestream_put_byte(&buf, nplanes); // number of planes in pcx_encode_frame()
181 src, line_bytes, nplanes)) < 0) { in pcx_encode_frame()
189 if (nplanes == 1 && bpp == 8) { in pcx_encode_frame()