38 #define MM_PREAMBLE_SIZE 6
40 #define MM_TYPE_INTER 0x5
41 #define MM_TYPE_INTRA 0x8
42 #define MM_TYPE_INTRA_HH 0xc
43 #define MM_TYPE_INTER_HH 0xd
44 #define MM_TYPE_INTRA_HHV 0xe
45 #define MM_TYPE_INTER_HHV 0xf
46 #define MM_TYPE_PALETTE 0x31
73 for (i = 0; i < 128; i++) {
74 s->
palette[i] = bytestream2_get_be24(&s->
gb);
91 int run_length,
color;
96 color = bytestream2_get_byte(&s->
gb);
100 run_length = (color & 0x7f) + 2;
101 color = bytestream2_get_byte(&s->
gb);
129 int data_off = bytestream2_get_le16(&s->
gb), y;
138 int length = bytestream2_get_byte(&s->
gb);
139 int x = bytestream2_get_byte(&s->
gb) + ((length & 0x80) << 1);
150 for(i=0; i<length; i++) {
151 int replace_array = bytestream2_get_byte(&s->
gb);
153 int replace = (replace_array >> (7-j)) & 1;
155 int color = bytestream2_get_byte(&data_ptr);
176 void *
data,
int *data_size,
179 const uint8_t *buf = avpkt->
data;
180 int buf_size = avpkt->
size;