43 bytestream2_put_be32u(&s->
p, avctx->
width);
44 bytestream2_put_be32u(&s->
p, avctx->
height);
45 bytestream2_put_be32u(&s->
p, s->
depth);
46 bytestream2_put_be32u(&s->
p, s->
length);
47 bytestream2_put_be32u(&s->
p, s->
type);
48 bytestream2_put_be32u(&s->
p, s->
maptype);
54 const uint32_t *palette_data,
70 for (x = 0; x <
len; x++) {
71 uint32_t
pixel = palette_data[x];
73 bytestream2_put_byteu(&pb_r, (pixel >> 16) & 0xFF);
74 bytestream2_put_byteu(&pb_g, (pixel >> 8) & 0xFF);
75 bytestream2_put_byteu(&s->
p, pixel & 0xFF);
80 alen = len + (len & 1);
89 #define GET_VALUE y >= avctx->height ? 0 : x >= len ? ptr[len-1] : ptr[x]
93 while (y < avctx->
height) {
103 while (value2 == value && run < 256 && y < avctx->height) {
108 ptr += linesize, y++;
115 bytestream2_put_byteu(&s->
p, run - 1);
117 bytestream2_put_byteu(&s->
p, value);
118 }
else if (run == 1) {
119 bytestream2_put_byteu(&s->
p, value);
121 bytestream2_put_be16u(&s->
p, (value << 8) | value);
127 for (y = 0; y < avctx->
height; y++) {
130 bytestream2_put_byteu(&s->
p, 0);
193 (
const uint32_t *)frame->
data[1],