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')
72 static inline void comp(
unsigned char *
dst,
int dst_stride,
73 unsigned char *src,
int src_stride,
int add)
78 dst[j*dst_stride + i] = av_clip_uint8(src[j*src_stride + i] + add);
82 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;
204 for (j=0; j<6; j++) {
205 if (mv_map & (1<<j)) {
229 void *
data,
int *got_frame,
233 int buf_size = avpkt->
size;
234 const uint8_t *buf_end = buf+buf_size;
251 AV_RL16(&buf[6]), 1000, 1<<30);
258 if (avctx->
width != width || avctx->
height != height) {
259 if((width * height)/2048*7 > buf_end-buf)