41 #define EA_PREAMBLE_SIZE 8
42 #define MADk_TAG MKTAG('M', 'A', 'D', 'k')
43 #define MADm_TAG MKTAG('M', 'A', 'D', 'm')
44 #define MADe_TAG MKTAG('M', 'A', 'D', 'e')
73 static inline void comp(
unsigned char *
dst,
int dst_stride,
74 unsigned char *src,
int src_stride,
int add)
79 dst[j*dst_stride + i] = av_clip_uint8(src[j*src_stride + i] + add);
83 int j,
int mv_x,
int mv_y,
int add)
126 block[0] = (128 +
get_sbits(&s->
gb, 8)) * quant_matrix[0];
140 }
else if (level != 0) {
143 level = (level*quant_matrix[j]) >> 4;
159 level = (level*quant_matrix[j]) >> 4;
163 level = (level*quant_matrix[j]) >> 4;
205 for (j=0; j<6; j++) {
206 if (mv_map & (1<<j)) {
230 void *
data,
int *got_frame,
234 int buf_size = avpkt->
size;
235 const uint8_t *buf_end = buf+buf_size;
252 AV_RL16(&buf[6]), 1000, 1<<30);
259 if (avctx->
width != width || avctx->
height != height) {
260 if((width * height)/2048*7 > buf_end-buf)