26 typedef struct avs_format {
39 typedef enum avs_block_type {
52 if (d[0] ==
'w' && d[1] ==
'W' && d[2] == 0x10 && d[3] == 0)
79 "when the avs format is supposed to be 318x198 only.\n",
100 pkt->
data[2] = palette_size & 0xFF;
101 pkt->
data[3] = (palette_size >> 8) & 0xFF;
102 memcpy(pkt->
data + 4, palette, palette_size - 4);
105 pkt->
data[palette_size + 0] = sub_type;
106 pkt->
data[palette_size + 1] = type;
107 pkt->
data[palette_size + 2] = size & 0xFF;
108 pkt->
data[palette_size + 3] = (size >> 8) & 0xFF;
115 pkt->
size = ret + palette_size;
147 int sub_type = 0,
size = 0;
149 int palette_size = 0;
174 if (
size - 4 >
sizeof(palette))
193 #if FF_API_R_FRAME_RATE
199 palette, palette_size);