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')
71 static inline void comp(
unsigned char *dst,
int dst_stride,
72 unsigned char *
src,
int src_stride,
int add)
77 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)
88 comp(frame->
data[0] + (mb_y*16 + ((j&2)<<2))*frame->
linesize[0] + mb_x*16 + ((j&1)<<3),
105 int mb_x,
int mb_y,
int j)
109 frame->
data[0] + (mb_y*16 + ((j&2)<<2))*frame->
linesize[0] + mb_x*16 + ((j&1)<<3),
114 frame->
data[index] + (mb_y*8)*frame->
linesize[index] + mb_x*8,
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;
253 AV_RL16(&buf[6]), 1000, 1<<30);
260 if (width < 16 || height < 16) {
265 if (avctx->
width != width || avctx->
height != height) {
266 if((width * height)/2048*7 > buf_end-buf)