35 for (i = 0; i < 64; i++) {
36 int j = src_scantable[i];
41 for (i = 0; i < 64; i++) {
50 int idct_permutation_type)
56 idct_permutation_type))
59 switch (idct_permutation_type) {
61 for (i = 0; i < 64; i++)
62 idct_permutation[i] = i;
65 for (i = 0; i < 64; i++)
66 idct_permutation[i] = (i & 0x38) | ((i & 6) >> 1) | ((i & 1) << 2);
69 for (i = 0; i < 64; i++)
70 idct_permutation[i] = ((i & 7) << 3) | (i >> 3);
73 for (i = 0; i < 64; i++)
74 idct_permutation[i] = (i & 0x24) | ((i & 3) << 3) | ((i >> 3) & 3);
78 "Internal error, IDCT permutation not set\n");
88 for (i = 0; i < 8; i++) {
89 pixels[0] = av_clip_uint8(block[0]);
90 pixels[1] = av_clip_uint8(block[1]);
91 pixels[2] = av_clip_uint8(block[2]);
92 pixels[3] = av_clip_uint8(block[3]);
93 pixels[4] = av_clip_uint8(block[4]);
94 pixels[5] = av_clip_uint8(block[5]);
95 pixels[6] = av_clip_uint8(block[6]);
96 pixels[7] = av_clip_uint8(block[7]);
110 pixels[0] = av_clip_uint8(block[0]);
111 pixels[1] = av_clip_uint8(block[1]);
112 pixels[2] = av_clip_uint8(block[2]);
113 pixels[3] = av_clip_uint8(block[3]);
127 pixels[0] = av_clip_uint8(block[0]);
128 pixels[1] = av_clip_uint8(block[1]);
141 for (i = 0; i < 8; i++) {
142 for (j = 0; j < 8; j++) {
145 else if (*block > 127)
148 *pixels = (
uint8_t) (*block + 128);
152 pixels += (line_size - 8);
162 for (i = 0; i < 8; i++) {
163 pixels[0] = av_clip_uint8(pixels[0] + block[0]);
164 pixels[1] = av_clip_uint8(pixels[1] + block[1]);
165 pixels[2] = av_clip_uint8(pixels[2] + block[2]);
166 pixels[3] = av_clip_uint8(pixels[3] + block[3]);
167 pixels[4] = av_clip_uint8(pixels[4] + block[4]);
168 pixels[5] = av_clip_uint8(pixels[5] + block[5]);
169 pixels[6] = av_clip_uint8(pixels[6] + block[6]);
170 pixels[7] = av_clip_uint8(pixels[7] + block[7]);
183 pixels[0] = av_clip_uint8(pixels[0] + block[0]);
184 pixels[1] = av_clip_uint8(pixels[1] + block[1]);
185 pixels[2] = av_clip_uint8(pixels[2] + block[2]);
186 pixels[3] = av_clip_uint8(pixels[3] + block[3]);
199 pixels[0] = av_clip_uint8(pixels[0] + block[0]);
200 pixels[1] = av_clip_uint8(pixels[1] + block[1]);
241 dest[0] = av_clip_uint8((block[0] + 4)>>3);
245 dest[0] = av_clip_uint8(dest[0] + ((block[0] + 4)>>3));
257 }
else if (avctx->
lowres==2) {
262 }
else if (avctx->
lowres==3) {