43 #define EA_PREAMBLE_SIZE 8
44 #define MADk_TAG MKTAG('M', 'A', 'D', 'k')
45 #define MADm_TAG MKTAG('M', 'A', 'D', 'm')
46 #define MADe_TAG MKTAG('M', 'A', 'D', 'e')
83 static inline void comp(
unsigned char *dst,
int dst_stride,
84 unsigned char *
src,
int src_stride,
int add)
89 dst[j*dst_stride + i] = av_clip_uint8(src[j*src_stride + i] + add);
94 int j,
int mv_x,
int mv_y,
int add)
100 comp(frame->
data[0] + (mb_y*16 + ((j&2)<<2))*frame->
linesize[0] + mb_x*16 + ((j&1)<<3),
117 int mb_x,
int mb_y,
int j)
121 frame->
data[0] + (mb_y*16 + ((j&2)<<2))*frame->
linesize[0] + mb_x*16 + ((j&1)<<3),
126 frame->
data[index] + (mb_y*8)*frame->
linesize[index] + mb_x*8,
138 block[0] = (128 +
get_sbits(&s->
gb, 8)) * quant_matrix[0];
152 }
else if (level != 0) {
155 level = (level*quant_matrix[j]) >> 4;
171 level = (level*quant_matrix[j]) >> 4;
175 level = (level*quant_matrix[j]) >> 4;
217 for (j=0; j<6; j++) {
218 if (mv_map & (1<<j)) {
242 void *
data,
int *got_frame,
246 int buf_size = avpkt->
size;
256 chunk_type = bytestream2_get_le32(&gb);
261 bytestream2_get_le16(&gb), 1000, 1<<30);
263 width = bytestream2_get_le16(&gb);
264 height = bytestream2_get_le16(&gb);
274 if (width < 16 || height < 16) {
279 if (avctx->
width != width || avctx->
height != height) {