40 #define EA_PREAMBLE_SIZE 8
41 #define MADk_TAG MKTAG('M', 'A', 'D', 'k')
42 #define MADm_TAG MKTAG('M', 'A', 'D', 'm')
43 #define MADe_TAG MKTAG('M', 'A', 'D', 'e')
54 static void bswap16_buf(uint16_t *dst,
const uint16_t *src,
int count)
57 for (i=0; i<count; i++)
75 static inline void comp(
unsigned char *dst,
int dst_stride,
76 unsigned char *src,
int src_stride,
int add)
81 dst[j*dst_stride + i] = av_clip_uint8(src[j*src_stride + i] + add);
85 int j,
int mv_x,
int mv_y,
int add)
125 block[0] = (128 +
get_sbits(&s->
gb, 8)) * quant_matrix[0];
139 }
else if (level != 0) {
142 level = (level*quant_matrix[j]) >> 4;
158 level = (level*quant_matrix[j]) >> 4;
162 level = (level*quant_matrix[j]) >> 4;
206 for (j=0; j<6; j++) {
207 if (mv_map & (1<<j)) {
235 void *
data,
int *data_size,
238 const uint8_t *buf = avpkt->
data;
239 int buf_size = avpkt->
size;
248 chunk_type = bytestream2_get_le32(&gb);
253 bytestream2_get_le16(&gb), 1000, 1<<30);
255 s->
width = bytestream2_get_le16(&gb);
256 s->
height = bytestream2_get_le16(&gb);