32 #define BITSTREAM_READER_LE
77 for(j=0; j<
value; j++)
82 block[perm[i]] = -s->
qtable[perm[i]];
87 block[perm[i]] = s->
qtable[perm[i]];
123 int level = av_clip_uint8((dc*s->
qtable[0] + 2056)>>4);
126 memset(dst+j*dst_stride, level, 8);
137 tgq_dconly(s,dest_y + 8*linesize , linesize, dc[2]);
138 tgq_dconly(s,dest_y + 8*linesize + 8, linesize, dc[3]);
153 mode = bytestream2_get_byte(&s->
gb);
163 memset(dc, bytestream2_get_byte(&s->
gb), 4);
164 dc[4] = bytestream2_get_byte(&s->
gb);
165 dc[5] = bytestream2_get_byte(&s->
gb);
168 }
else if (mode==12) {
169 for (i = 0; i < 6; i++) {
170 dc[i] = bytestream2_get_byte(&s->
gb);
184 const int a = (14*(100-
quant))/100 + 1;
185 const int b = (11*(100-
quant))/100 + 4;
192 void *
data,
int *got_frame,
195 int buf_size = avpkt->
size;
204 big_endian =
AV_RL32(&buf[4]) > 0x000FFFFF;
207 s->
width = bytestream2_get_be16u(&s->
gb);
208 s->
height = bytestream2_get_be16u(&s->
gb);
210 s->
width = bytestream2_get_le16u(&s->
gb);
211 s->
height = bytestream2_get_le16u(&s->
gb);