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)
77 "when the avs format is supposed to be 318x198 only.\n",
98 pkt->
data[2] = palette_size & 0xFF;
99 pkt->
data[3] = (palette_size >> 8) & 0xFF;
100 memcpy(pkt->
data + 4, palette, palette_size - 4);
103 pkt->
data[palette_size + 0] = sub_type;
104 pkt->
data[palette_size + 1] = type;
105 pkt->
data[palette_size + 2] = size & 0xFF;
106 pkt->
data[palette_size + 3] = (size >> 8) & 0xFF;
113 pkt->
size = ret + palette_size;
145 int sub_type = 0,
size = 0;
147 int palette_size = 0;
172 if (
size - 4 >
sizeof(palette))
191 #if FF_API_R_FRAME_RATE
197 palette, palette_size);