32 #define BITSTREAM_READER_LE
67 for (i = 1; i < 64;) {
79 for (j = 0; j <
value; j++)
84 block[perm[i]] = -s->
qtable[perm[i]];
89 block[perm[i]] = s->
qtable[perm[i]];
105 block[0] += 128 << 4;
127 int dst_stride,
int dc)
129 int level = av_clip_uint8((dc*s->
qtable[0] + 2056) >> 4);
131 for (j = 0; j < 8; j++)
132 memset(dst + j * dst_stride, level, 8);
143 tgq_dconly(s, dest_y + 8 * linesize, linesize, dc[2]);
144 tgq_dconly(s, dest_y + 8 * linesize + 8, linesize, dc[3]);
157 mode = bytestream2_get_byte(&s->
gb);
161 for (i = 0; i < 6; i++)
167 memset(dc, bytestream2_get_byte(&s->
gb), 4);
168 dc[4] = bytestream2_get_byte(&s->
gb);
169 dc[5] = bytestream2_get_byte(&s->
gb);
170 }
else if (mode == 6) {
172 }
else if (mode == 12) {
173 for (i = 0; i < 6; i++) {
174 dc[i] = bytestream2_get_byte(&s->
gb);
189 const int a = (14 * (100 -
quant)) / 100 + 1;
190 const int b = (11 * (100 -
quant)) / 100 + 4;
191 for (j = 0; j < 8; j++)
192 for (i = 0; i < 8; i++)
193 s->
qtable[j * 8 + i] = ((a * (j + i) / (7 + 7) + b) *
198 void *
data,
int *got_frame,
202 int buf_size = avpkt->
size;
211 big_endian =
AV_RL32(&buf[4]) > 0x000FFFFF;
214 s->
width = bytestream2_get_be16u(&s->
gb);
215 s->
height = bytestream2_get_be16u(&s->
gb);
217 s->
width = bytestream2_get_le16u(&s->
gb);
218 s->
height = bytestream2_get_le16u(&s->
gb);