36 for (i = 0; i < 64; i++) {
37 int j = src_scantable[i];
42 for (i = 0; i < 64; i++) {
62 for (i = 0; i < 64; i++)
63 idct_permutation[i] = i;
66 for (i = 0; i < 64; i++)
67 idct_permutation[i] = (i & 0x38) | ((i & 6) >> 1) | ((i & 1) << 2);
70 for (i = 0; i < 64; i++)
71 idct_permutation[i] = ((i & 7) << 3) | (i >> 3);
74 for (i = 0; i < 64; i++)
75 idct_permutation[i] = (i & 0x24) | ((i & 3) << 3) | ((i >> 3) & 3);
79 "Internal error, IDCT permutation not set\n");
92 for (i = 0; i < 8; i++) {
93 pixels[0] = av_clip_uint8(block[0]);
94 pixels[1] = av_clip_uint8(block[1]);
95 pixels[2] = av_clip_uint8(block[2]);
96 pixels[3] = av_clip_uint8(block[3]);
97 pixels[4] = av_clip_uint8(block[4]);
98 pixels[5] = av_clip_uint8(block[5]);
99 pixels[6] = av_clip_uint8(block[6]);
100 pixels[7] = av_clip_uint8(block[7]);
114 pixels[0] = av_clip_uint8(block[0]);
115 pixels[1] = av_clip_uint8(block[1]);
116 pixels[2] = av_clip_uint8(block[2]);
117 pixels[3] = av_clip_uint8(block[3]);
131 pixels[0] = av_clip_uint8(block[0]);
132 pixels[1] = av_clip_uint8(block[1]);
145 for (i = 0; i < 8; i++) {
146 for (j = 0; j < 8; j++) {
149 else if (*block > 127)
152 *pixels = (
uint8_t) (*block + 128);
156 pixels += (line_size - 8);
166 for (i = 0; i < 8; i++) {
167 pixels[0] = av_clip_uint8(pixels[0] + block[0]);
168 pixels[1] = av_clip_uint8(pixels[1] + block[1]);
169 pixels[2] = av_clip_uint8(pixels[2] + block[2]);
170 pixels[3] = av_clip_uint8(pixels[3] + block[3]);
171 pixels[4] = av_clip_uint8(pixels[4] + block[4]);
172 pixels[5] = av_clip_uint8(pixels[5] + block[5]);
173 pixels[6] = av_clip_uint8(pixels[6] + block[6]);
174 pixels[7] = av_clip_uint8(pixels[7] + block[7]);
187 pixels[0] = av_clip_uint8(pixels[0] + block[0]);
188 pixels[1] = av_clip_uint8(pixels[1] + block[1]);
189 pixels[2] = av_clip_uint8(pixels[2] + block[2]);
190 pixels[3] = av_clip_uint8(pixels[3] + block[3]);
203 pixels[0] = av_clip_uint8(pixels[0] + block[0]);
204 pixels[1] = av_clip_uint8(pixels[1] + block[1]);
234 dest[0] = av_clip_uint8((block[0] + 4)>>3);
238 dest[0] = av_clip_uint8(dest[0] + ((block[0] + 4)>>3));
250 }
else if (avctx->
lowres==2) {
255 }
else if (avctx->
lowres==3) {