39 #define MM_PREAMBLE_SIZE 6
41 #define MM_TYPE_INTER 0x5
42 #define MM_TYPE_INTRA 0x8
43 #define MM_TYPE_INTRA_HH 0xc
44 #define MM_TYPE_INTER_HH 0xd
45 #define MM_TYPE_INTRA_HHV 0xe
46 #define MM_TYPE_INTER_HHV 0xf
47 #define MM_TYPE_PALETTE 0x31
83 for (i = 0; i < 128; i++) {
84 s->
palette[i] = 0xFF
U << 24 | bytestream2_get_be24(&s->
gb);
98 int run_length,
color;
103 color = bytestream2_get_byte(&s->
gb);
107 run_length = (color & 0x7f) + 2;
108 color = bytestream2_get_byte(&s->
gb);
119 if (half_vert &&
y + half_vert < s->avctx->height)
139 int data_off = bytestream2_get_le16(&s->
gb);
149 int length = bytestream2_get_byte(&s->
gb);
150 int x = bytestream2_get_byte(&s->
gb) + ((length & 0x80) << 1);
162 int replace_array = bytestream2_get_byte(&s->
gb);
164 int replace = (replace_array >> (7-j)) & 1;
168 int color = bytestream2_get_byte(&data_ptr);
189 void *
data,
int *got_frame,
193 int buf_size = avpkt->
size;