| Line |
Branch |
Exec |
Source |
| 1 |
|
|
/* |
| 2 |
|
|
* H.264 IDCT |
| 3 |
|
|
* Copyright (c) 2004-2011 Michael Niedermayer <michaelni@gmx.at> |
| 4 |
|
|
* |
| 5 |
|
|
* This file is part of FFmpeg. |
| 6 |
|
|
* |
| 7 |
|
|
* FFmpeg is free software; you can redistribute it and/or |
| 8 |
|
|
* modify it under the terms of the GNU Lesser General Public |
| 9 |
|
|
* License as published by the Free Software Foundation; either |
| 10 |
|
|
* version 2.1 of the License, or (at your option) any later version. |
| 11 |
|
|
* |
| 12 |
|
|
* FFmpeg is distributed in the hope that it will be useful, |
| 13 |
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 |
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 |
|
|
* Lesser General Public License for more details. |
| 16 |
|
|
* |
| 17 |
|
|
* You should have received a copy of the GNU Lesser General Public |
| 18 |
|
|
* License along with FFmpeg; if not, write to the Free Software |
| 19 |
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 |
|
|
*/ |
| 21 |
|
|
|
| 22 |
|
|
/** |
| 23 |
|
|
* @file |
| 24 |
|
|
* H.264 IDCT. |
| 25 |
|
|
* @author Michael Niedermayer <michaelni@gmx.at> |
| 26 |
|
|
*/ |
| 27 |
|
|
|
| 28 |
|
|
#include "bit_depth_template.c" |
| 29 |
|
|
#include "libavutil/common.h" |
| 30 |
|
|
#include "h264_parse.h" |
| 31 |
|
|
#include "h264idct.h" |
| 32 |
|
|
|
| 33 |
|
54906524 |
void FUNCC(ff_h264_idct_add)(uint8_t *_dst, int16_t *_block, ptrdiff_t stride) |
| 34 |
|
|
{ |
| 35 |
|
|
int i; |
| 36 |
|
54906524 |
pixel *dst = (pixel*)_dst; |
| 37 |
|
54906524 |
dctcoef *block = (dctcoef*)_block; |
| 38 |
|
54906524 |
stride >>= sizeof(pixel)-1; |
| 39 |
|
|
|
| 40 |
|
54906524 |
block[0] += 1 << 5; |
| 41 |
|
|
|
| 42 |
10/10
ff_h264_idct_add_10_c:
✓ Branch 4 → 3 taken 51304200 times.
✓ Branch 4 → 5 taken 12826050 times.
ff_h264_idct_add_12_c:
✓ Branch 4 → 3 taken 24 times.
✓ Branch 4 → 5 taken 6 times.
ff_h264_idct_add_14_c:
✓ Branch 4 → 3 taken 24 times.
✓ Branch 4 → 5 taken 6 times.
ff_h264_idct_add_8_c:
✓ Branch 4 → 3 taken 168125260 times.
✓ Branch 4 → 5 taken 42031315 times.
ff_h264_idct_add_9_c:
✓ Branch 4 → 3 taken 196588 times.
✓ Branch 4 → 5 taken 49147 times.
|
274532620 |
for(i=0; i<4; i++){ |
| 43 |
|
219626096 |
const SUINT z0= block[i + 4*0] + (unsigned)block[i + 4*2]; |
| 44 |
|
219626096 |
const SUINT z1= block[i + 4*0] - (unsigned)block[i + 4*2]; |
| 45 |
|
219626096 |
const SUINT z2= (block[i + 4*1]>>1) - (unsigned)block[i + 4*3]; |
| 46 |
|
219626096 |
const SUINT z3= block[i + 4*1] + (unsigned)(block[i + 4*3]>>1); |
| 47 |
|
|
|
| 48 |
|
219626096 |
block[i + 4*0]= z0 + z3; |
| 49 |
|
219626096 |
block[i + 4*1]= z1 + z2; |
| 50 |
|
219626096 |
block[i + 4*2]= z1 - z2; |
| 51 |
|
219626096 |
block[i + 4*3]= z0 - z3; |
| 52 |
|
|
} |
| 53 |
|
|
|
| 54 |
10/10
ff_h264_idct_add_10_c:
✓ Branch 7 → 6 taken 51304200 times.
✓ Branch 7 → 8 taken 12826050 times.
ff_h264_idct_add_12_c:
✓ Branch 7 → 6 taken 24 times.
✓ Branch 7 → 8 taken 6 times.
ff_h264_idct_add_14_c:
✓ Branch 7 → 6 taken 24 times.
✓ Branch 7 → 8 taken 6 times.
ff_h264_idct_add_8_c:
✓ Branch 7 → 6 taken 168125260 times.
✓ Branch 7 → 8 taken 42031315 times.
ff_h264_idct_add_9_c:
✓ Branch 7 → 6 taken 196588 times.
✓ Branch 7 → 8 taken 49147 times.
|
274532620 |
for(i=0; i<4; i++){ |
| 55 |
|
219626096 |
const SUINT z0= block[0 + 4*i] + (SUINT)block[2 + 4*i]; |
| 56 |
|
219626096 |
const SUINT z1= block[0 + 4*i] - (SUINT)block[2 + 4*i]; |
| 57 |
|
219626096 |
const SUINT z2= (block[1 + 4*i]>>1) - (SUINT)block[3 + 4*i]; |
| 58 |
|
219626096 |
const SUINT z3= block[1 + 4*i] + (SUINT)(block[3 + 4*i]>>1); |
| 59 |
|
|
|
| 60 |
|
219626096 |
dst[i + 0*stride]= av_clip_pixel(dst[i + 0*stride] + ((int)(z0 + z3) >> 6)); |
| 61 |
|
219626096 |
dst[i + 1*stride]= av_clip_pixel(dst[i + 1*stride] + ((int)(z1 + z2) >> 6)); |
| 62 |
|
219626096 |
dst[i + 2*stride]= av_clip_pixel(dst[i + 2*stride] + ((int)(z1 - z2) >> 6)); |
| 63 |
|
219626096 |
dst[i + 3*stride]= av_clip_pixel(dst[i + 3*stride] + ((int)(z0 - z3) >> 6)); |
| 64 |
|
|
} |
| 65 |
|
|
|
| 66 |
|
54906524 |
memset(block, 0, 16 * sizeof(dctcoef)); |
| 67 |
|
54906524 |
} |
| 68 |
|
|
|
| 69 |
|
6855034 |
void FUNCC(ff_h264_idct8_add)(uint8_t *_dst, int16_t *_block, ptrdiff_t stride) |
| 70 |
|
|
{ |
| 71 |
|
|
int i; |
| 72 |
|
6855034 |
pixel *dst = (pixel*)_dst; |
| 73 |
|
6855034 |
dctcoef *block = (dctcoef*)_block; |
| 74 |
|
6855034 |
stride >>= sizeof(pixel)-1; |
| 75 |
|
|
|
| 76 |
|
6855034 |
block[0] += 32; |
| 77 |
|
|
|
| 78 |
10/10
ff_h264_idct8_add_10_c:
✓ Branch 4 → 3 taken 26318944 times.
✓ Branch 4 → 5 taken 3289868 times.
ff_h264_idct8_add_12_c:
✓ Branch 4 → 3 taken 24 times.
✓ Branch 4 → 5 taken 3 times.
ff_h264_idct8_add_14_c:
✓ Branch 4 → 3 taken 24 times.
✓ Branch 4 → 5 taken 3 times.
ff_h264_idct8_add_8_c:
✓ Branch 4 → 3 taken 28457720 times.
✓ Branch 4 → 5 taken 3557215 times.
ff_h264_idct8_add_9_c:
✓ Branch 4 → 3 taken 63560 times.
✓ Branch 4 → 5 taken 7945 times.
|
61695306 |
for( i = 0; i < 8; i++ ) |
| 79 |
|
|
{ |
| 80 |
|
54840272 |
const unsigned int a0 = block[i+0*8] + (unsigned)block[i+4*8]; |
| 81 |
|
54840272 |
const unsigned int a2 = block[i+0*8] - (unsigned)block[i+4*8]; |
| 82 |
|
54840272 |
const unsigned int a4 = (block[i+2*8]>>1) - (unsigned)block[i+6*8]; |
| 83 |
|
54840272 |
const unsigned int a6 = (block[i+6*8]>>1) + (unsigned)block[i+2*8]; |
| 84 |
|
|
|
| 85 |
|
54840272 |
const unsigned int b0 = a0 + a6; |
| 86 |
|
54840272 |
const unsigned int b2 = a2 + a4; |
| 87 |
|
54840272 |
const unsigned int b4 = a2 - a4; |
| 88 |
|
54840272 |
const unsigned int b6 = a0 - a6; |
| 89 |
|
|
|
| 90 |
|
54840272 |
const int a1 = -block[i+3*8] + (unsigned)block[i+5*8] - block[i+7*8] - (block[i+7*8]>>1); |
| 91 |
|
54840272 |
const int a3 = block[i+1*8] + (unsigned)block[i+7*8] - block[i+3*8] - (block[i+3*8]>>1); |
| 92 |
|
54840272 |
const int a5 = -block[i+1*8] + (unsigned)block[i+7*8] + block[i+5*8] + (block[i+5*8]>>1); |
| 93 |
|
54840272 |
const int a7 = block[i+3*8] + (unsigned)block[i+5*8] + block[i+1*8] + (block[i+1*8]>>1); |
| 94 |
|
|
|
| 95 |
|
54840272 |
const int b1 = (a7>>2) + (unsigned)a1; |
| 96 |
|
54840272 |
const int b3 = (unsigned)a3 + (a5>>2); |
| 97 |
|
54840272 |
const int b5 = (a3>>2) - (unsigned)a5; |
| 98 |
|
54840272 |
const int b7 = (unsigned)a7 - (a1>>2); |
| 99 |
|
|
|
| 100 |
|
54840272 |
block[i+0*8] = b0 + b7; |
| 101 |
|
54840272 |
block[i+7*8] = b0 - b7; |
| 102 |
|
54840272 |
block[i+1*8] = b2 + b5; |
| 103 |
|
54840272 |
block[i+6*8] = b2 - b5; |
| 104 |
|
54840272 |
block[i+2*8] = b4 + b3; |
| 105 |
|
54840272 |
block[i+5*8] = b4 - b3; |
| 106 |
|
54840272 |
block[i+3*8] = b6 + b1; |
| 107 |
|
54840272 |
block[i+4*8] = b6 - b1; |
| 108 |
|
|
} |
| 109 |
10/10
ff_h264_idct8_add_10_c:
✓ Branch 7 → 6 taken 26318944 times.
✓ Branch 7 → 8 taken 3289868 times.
ff_h264_idct8_add_12_c:
✓ Branch 7 → 6 taken 24 times.
✓ Branch 7 → 8 taken 3 times.
ff_h264_idct8_add_14_c:
✓ Branch 7 → 6 taken 24 times.
✓ Branch 7 → 8 taken 3 times.
ff_h264_idct8_add_8_c:
✓ Branch 7 → 6 taken 28457720 times.
✓ Branch 7 → 8 taken 3557215 times.
ff_h264_idct8_add_9_c:
✓ Branch 7 → 6 taken 63560 times.
✓ Branch 7 → 8 taken 7945 times.
|
61695306 |
for( i = 0; i < 8; i++ ) |
| 110 |
|
|
{ |
| 111 |
|
54840272 |
const unsigned a0 = block[0+i*8] + (unsigned)block[4+i*8]; |
| 112 |
|
54840272 |
const unsigned a2 = block[0+i*8] - (unsigned)block[4+i*8]; |
| 113 |
|
54840272 |
const unsigned a4 = (block[2+i*8]>>1) - (unsigned)block[6+i*8]; |
| 114 |
|
54840272 |
const unsigned a6 = (block[6+i*8]>>1) + (unsigned)block[2+i*8]; |
| 115 |
|
|
|
| 116 |
|
54840272 |
const unsigned b0 = a0 + a6; |
| 117 |
|
54840272 |
const unsigned b2 = a2 + a4; |
| 118 |
|
54840272 |
const unsigned b4 = a2 - a4; |
| 119 |
|
54840272 |
const unsigned b6 = a0 - a6; |
| 120 |
|
|
|
| 121 |
|
54840272 |
const int a1 = -(unsigned)block[3+i*8] + block[5+i*8] - block[7+i*8] - (block[7+i*8]>>1); |
| 122 |
|
54840272 |
const int a3 = (unsigned)block[1+i*8] + block[7+i*8] - block[3+i*8] - (block[3+i*8]>>1); |
| 123 |
|
54840272 |
const int a5 = -(unsigned)block[1+i*8] + block[7+i*8] + block[5+i*8] + (block[5+i*8]>>1); |
| 124 |
|
54840272 |
const int a7 = (unsigned)block[3+i*8] + block[5+i*8] + block[1+i*8] + (block[1+i*8]>>1); |
| 125 |
|
|
|
| 126 |
|
54840272 |
const unsigned b1 = (a7>>2) + (unsigned)a1; |
| 127 |
|
54840272 |
const unsigned b3 = (unsigned)a3 + (a5>>2); |
| 128 |
|
54840272 |
const unsigned b5 = (a3>>2) - (unsigned)a5; |
| 129 |
|
54840272 |
const unsigned b7 = (unsigned)a7 - (a1>>2); |
| 130 |
|
|
|
| 131 |
|
54840272 |
dst[i + 0*stride] = av_clip_pixel( dst[i + 0*stride] + ((int)(b0 + b7) >> 6) ); |
| 132 |
|
54840272 |
dst[i + 1*stride] = av_clip_pixel( dst[i + 1*stride] + ((int)(b2 + b5) >> 6) ); |
| 133 |
|
54840272 |
dst[i + 2*stride] = av_clip_pixel( dst[i + 2*stride] + ((int)(b4 + b3) >> 6) ); |
| 134 |
|
54840272 |
dst[i + 3*stride] = av_clip_pixel( dst[i + 3*stride] + ((int)(b6 + b1) >> 6) ); |
| 135 |
|
54840272 |
dst[i + 4*stride] = av_clip_pixel( dst[i + 4*stride] + ((int)(b6 - b1) >> 6) ); |
| 136 |
|
54840272 |
dst[i + 5*stride] = av_clip_pixel( dst[i + 5*stride] + ((int)(b4 - b3) >> 6) ); |
| 137 |
|
54840272 |
dst[i + 6*stride] = av_clip_pixel( dst[i + 6*stride] + ((int)(b2 - b5) >> 6) ); |
| 138 |
|
54840272 |
dst[i + 7*stride] = av_clip_pixel( dst[i + 7*stride] + ((int)(b0 - b7) >> 6) ); |
| 139 |
|
|
} |
| 140 |
|
|
|
| 141 |
|
6855034 |
memset(block, 0, 64 * sizeof(dctcoef)); |
| 142 |
|
6855034 |
} |
| 143 |
|
|
|
| 144 |
|
|
// assumes all AC coefs are 0 |
| 145 |
|
29449193 |
void FUNCC(ff_h264_idct_dc_add)(uint8_t *_dst, int16_t *_block, ptrdiff_t stride) |
| 146 |
|
|
{ |
| 147 |
|
|
int i, j; |
| 148 |
|
29449193 |
pixel *dst = (pixel*)_dst; |
| 149 |
|
29449193 |
dctcoef *block = (dctcoef*)_block; |
| 150 |
|
29449193 |
int dc = (block[0] + 32) >> 6; |
| 151 |
|
29449193 |
stride /= sizeof(pixel); |
| 152 |
|
29449193 |
block[0] = 0; |
| 153 |
10/10
ff_h264_idct_dc_add_10_c:
✓ Branch 7 → 3 taken 31831516 times.
✓ Branch 7 → 8 taken 7957879 times.
ff_h264_idct_dc_add_12_c:
✓ Branch 7 → 3 taken 24 times.
✓ Branch 7 → 8 taken 6 times.
ff_h264_idct_dc_add_14_c:
✓ Branch 7 → 3 taken 24 times.
✓ Branch 7 → 8 taken 6 times.
ff_h264_idct_dc_add_8_c:
✓ Branch 7 → 3 taken 85840760 times.
✓ Branch 7 → 8 taken 21460190 times.
ff_h264_idct_dc_add_9_c:
✓ Branch 7 → 3 taken 124448 times.
✓ Branch 7 → 8 taken 31112 times.
|
147245965 |
for( j = 0; j < 4; j++ ) |
| 154 |
|
|
{ |
| 155 |
10/10
ff_h264_idct_dc_add_10_c:
✓ Branch 5 → 4 taken 127326064 times.
✓ Branch 5 → 6 taken 31831516 times.
ff_h264_idct_dc_add_12_c:
✓ Branch 5 → 4 taken 96 times.
✓ Branch 5 → 6 taken 24 times.
ff_h264_idct_dc_add_14_c:
✓ Branch 5 → 4 taken 96 times.
✓ Branch 5 → 6 taken 24 times.
ff_h264_idct_dc_add_8_c:
✓ Branch 5 → 4 taken 343363040 times.
✓ Branch 5 → 6 taken 85840760 times.
ff_h264_idct_dc_add_9_c:
✓ Branch 5 → 4 taken 497792 times.
✓ Branch 5 → 6 taken 124448 times.
|
588983860 |
for( i = 0; i < 4; i++ ) |
| 156 |
|
471187088 |
dst[i] = av_clip_pixel( dst[i] + dc ); |
| 157 |
|
117796772 |
dst += stride; |
| 158 |
|
|
} |
| 159 |
|
29449193 |
} |
| 160 |
|
|
|
| 161 |
|
628964 |
void FUNCC(ff_h264_idct8_dc_add)(uint8_t *_dst, int16_t *_block, ptrdiff_t stride) |
| 162 |
|
|
{ |
| 163 |
|
|
int i, j; |
| 164 |
|
628964 |
pixel *dst = (pixel*)_dst; |
| 165 |
|
628964 |
dctcoef *block = (dctcoef*)_block; |
| 166 |
|
628964 |
int dc = (block[0] + 32) >> 6; |
| 167 |
|
628964 |
block[0] = 0; |
| 168 |
|
628964 |
stride /= sizeof(pixel); |
| 169 |
10/10
ff_h264_idct8_dc_add_10_c:
✓ Branch 7 → 3 taken 960560 times.
✓ Branch 7 → 8 taken 120070 times.
ff_h264_idct8_dc_add_12_c:
✓ Branch 7 → 3 taken 24 times.
✓ Branch 7 → 8 taken 3 times.
ff_h264_idct8_dc_add_14_c:
✓ Branch 7 → 3 taken 24 times.
✓ Branch 7 → 8 taken 3 times.
ff_h264_idct8_dc_add_8_c:
✓ Branch 7 → 3 taken 4069536 times.
✓ Branch 7 → 8 taken 508692 times.
ff_h264_idct8_dc_add_9_c:
✓ Branch 7 → 3 taken 1568 times.
✓ Branch 7 → 8 taken 196 times.
|
5660676 |
for( j = 0; j < 8; j++ ) |
| 170 |
|
|
{ |
| 171 |
10/10
ff_h264_idct8_dc_add_10_c:
✓ Branch 5 → 4 taken 7684480 times.
✓ Branch 5 → 6 taken 960560 times.
ff_h264_idct8_dc_add_12_c:
✓ Branch 5 → 4 taken 192 times.
✓ Branch 5 → 6 taken 24 times.
ff_h264_idct8_dc_add_14_c:
✓ Branch 5 → 4 taken 192 times.
✓ Branch 5 → 6 taken 24 times.
ff_h264_idct8_dc_add_8_c:
✓ Branch 5 → 4 taken 32556288 times.
✓ Branch 5 → 6 taken 4069536 times.
ff_h264_idct8_dc_add_9_c:
✓ Branch 5 → 4 taken 12544 times.
✓ Branch 5 → 6 taken 1568 times.
|
45285408 |
for( i = 0; i < 8; i++ ) |
| 172 |
|
40253696 |
dst[i] = av_clip_pixel( dst[i] + dc ); |
| 173 |
|
5031712 |
dst += stride; |
| 174 |
|
|
} |
| 175 |
|
628964 |
} |
| 176 |
|
|
|
| 177 |
|
4915517 |
void FUNCC(ff_h264_idct_add16)(uint8_t *dst, const int *block_offset, |
| 178 |
|
|
int16_t *block, ptrdiff_t stride, |
| 179 |
|
|
const uint8_t nnzc[5 * 8]) |
| 180 |
|
|
{ |
| 181 |
|
|
int i; |
| 182 |
6/10
ff_h264_idct_add16_10_c:
✓ Branch 9 → 3 taken 726240 times.
✓ Branch 9 → 10 taken 45390 times.
ff_h264_idct_add16_12_c:
✗ Branch 9 → 3 not taken.
✗ Branch 9 → 10 not taken.
ff_h264_idct_add16_14_c:
✗ Branch 9 → 3 not taken.
✗ Branch 9 → 10 not taken.
ff_h264_idct_add16_8_c:
✓ Branch 9 → 3 taken 77845552 times.
✓ Branch 9 → 10 taken 4865347 times.
ff_h264_idct_add16_9_c:
✓ Branch 9 → 3 taken 76480 times.
✓ Branch 9 → 10 taken 4780 times.
|
83563789 |
for(i=0; i<16; i++){ |
| 183 |
|
78648272 |
int nnz = nnzc[ scan8[i] ]; |
| 184 |
6/10
ff_h264_idct_add16_10_c:
✓ Branch 3 → 4 taken 331089 times.
✓ Branch 3 → 8 taken 395151 times.
ff_h264_idct_add16_12_c:
✗ Branch 3 → 4 not taken.
✗ Branch 3 → 8 not taken.
ff_h264_idct_add16_14_c:
✗ Branch 3 → 4 not taken.
✗ Branch 3 → 8 not taken.
ff_h264_idct_add16_8_c:
✓ Branch 3 → 4 taken 29095196 times.
✓ Branch 3 → 8 taken 48750356 times.
ff_h264_idct_add16_9_c:
✓ Branch 3 → 4 taken 18813 times.
✓ Branch 3 → 8 taken 57667 times.
|
78648272 |
if(nnz){ |
| 185 |
12/20
ff_h264_idct_add16_10_c:
✓ Branch 4 → 5 taken 104663 times.
✓ Branch 4 → 7 taken 226426 times.
✓ Branch 5 → 6 taken 39983 times.
✓ Branch 5 → 7 taken 64680 times.
ff_h264_idct_add16_12_c:
✗ Branch 4 → 5 not taken.
✗ Branch 4 → 7 not taken.
✗ Branch 5 → 6 not taken.
✗ Branch 5 → 7 not taken.
ff_h264_idct_add16_14_c:
✗ Branch 4 → 5 not taken.
✗ Branch 4 → 7 not taken.
✗ Branch 5 → 6 not taken.
✗ Branch 5 → 7 not taken.
ff_h264_idct_add16_8_c:
✓ Branch 4 → 5 taken 13166285 times.
✓ Branch 4 → 7 taken 15928911 times.
✓ Branch 5 → 6 taken 4644548 times.
✓ Branch 5 → 7 taken 8521737 times.
ff_h264_idct_add16_9_c:
✓ Branch 4 → 5 taken 2984 times.
✓ Branch 4 → 7 taken 15829 times.
✓ Branch 5 → 6 taken 1781 times.
✓ Branch 5 → 7 taken 1203 times.
|
29445098 |
if(nnz==1 && ((dctcoef*)block)[i*16]) FUNCC(ff_h264_idct_dc_add)(dst + block_offset[i], block + i*16*sizeof(pixel), stride); |
| 186 |
|
24758786 |
else FUNCC(ff_h264_idct_add )(dst + block_offset[i], block + i*16*sizeof(pixel), stride); |
| 187 |
|
|
} |
| 188 |
|
|
} |
| 189 |
|
4915517 |
} |
| 190 |
|
|
|
| 191 |
|
1011787 |
void FUNCC(ff_h264_idct_add16intra)(uint8_t *dst, const int *block_offset, |
| 192 |
|
|
int16_t *block, ptrdiff_t stride, |
| 193 |
|
|
const uint8_t nnzc[5 * 8]) |
| 194 |
|
|
{ |
| 195 |
|
|
int i; |
| 196 |
6/10
ff_h264_idct_add16intra_10_c:
✓ Branch 8 → 3 taken 3183184 times.
✓ Branch 8 → 9 taken 198949 times.
ff_h264_idct_add16intra_12_c:
✗ Branch 8 → 3 not taken.
✗ Branch 8 → 9 not taken.
ff_h264_idct_add16intra_14_c:
✗ Branch 8 → 3 not taken.
✗ Branch 8 → 9 not taken.
ff_h264_idct_add16intra_8_c:
✓ Branch 8 → 3 taken 13005136 times.
✓ Branch 8 → 9 taken 812821 times.
ff_h264_idct_add16intra_9_c:
✓ Branch 8 → 3 taken 272 times.
✓ Branch 8 → 9 taken 17 times.
|
17200379 |
for(i=0; i<16; i++){ |
| 197 |
6/10
ff_h264_idct_add16intra_10_c:
✓ Branch 3 → 4 taken 1459232 times.
✓ Branch 3 → 5 taken 1723952 times.
ff_h264_idct_add16intra_12_c:
✗ Branch 3 → 4 not taken.
✗ Branch 3 → 5 not taken.
ff_h264_idct_add16intra_14_c:
✗ Branch 3 → 4 not taken.
✗ Branch 3 → 5 not taken.
ff_h264_idct_add16intra_8_c:
✓ Branch 3 → 4 taken 2328878 times.
✓ Branch 3 → 5 taken 10676258 times.
ff_h264_idct_add16intra_9_c:
✓ Branch 3 → 4 taken 51 times.
✓ Branch 3 → 5 taken 221 times.
|
16188592 |
if(nnzc[ scan8[i] ]) FUNCC(ff_h264_idct_add )(dst + block_offset[i], block + i*16*sizeof(pixel), stride); |
| 198 |
6/10
ff_h264_idct_add16intra_10_c:
✓ Branch 5 → 6 taken 1254491 times.
✓ Branch 5 → 7 taken 469461 times.
ff_h264_idct_add16intra_12_c:
✗ Branch 5 → 6 not taken.
✗ Branch 5 → 7 not taken.
ff_h264_idct_add16intra_14_c:
✗ Branch 5 → 6 not taken.
✗ Branch 5 → 7 not taken.
ff_h264_idct_add16intra_8_c:
✓ Branch 5 → 6 taken 3836047 times.
✓ Branch 5 → 7 taken 6840211 times.
ff_h264_idct_add16intra_9_c:
✓ Branch 5 → 6 taken 207 times.
✓ Branch 5 → 7 taken 14 times.
|
12400431 |
else if(((dctcoef*)block)[i*16]) FUNCC(ff_h264_idct_dc_add)(dst + block_offset[i], block + i*16*sizeof(pixel), stride); |
| 199 |
|
|
} |
| 200 |
|
1011787 |
} |
| 201 |
|
|
|
| 202 |
|
932009 |
void FUNCC(ff_h264_idct8_add4)(uint8_t *dst, const int *block_offset, |
| 203 |
|
|
int16_t *block, ptrdiff_t stride, |
| 204 |
|
|
const uint8_t nnzc[5 * 8]) |
| 205 |
|
|
{ |
| 206 |
|
|
int i; |
| 207 |
6/10
ff_h264_idct8_add4_10_c:
✓ Branch 9 → 3 taken 263944 times.
✓ Branch 9 → 10 taken 65986 times.
ff_h264_idct8_add4_12_c:
✗ Branch 9 → 3 not taken.
✗ Branch 9 → 10 not taken.
ff_h264_idct8_add4_14_c:
✗ Branch 9 → 3 not taken.
✗ Branch 9 → 10 not taken.
ff_h264_idct8_add4_8_c:
✓ Branch 9 → 3 taken 3456180 times.
✓ Branch 9 → 10 taken 864045 times.
ff_h264_idct8_add4_9_c:
✓ Branch 9 → 3 taken 7912 times.
✓ Branch 9 → 10 taken 1978 times.
|
4660045 |
for(i=0; i<16; i+=4){ |
| 208 |
|
3728036 |
int nnz = nnzc[ scan8[i] ]; |
| 209 |
6/10
ff_h264_idct8_add4_10_c:
✓ Branch 3 → 4 taken 189196 times.
✓ Branch 3 → 8 taken 74748 times.
ff_h264_idct8_add4_12_c:
✗ Branch 3 → 4 not taken.
✗ Branch 3 → 8 not taken.
ff_h264_idct8_add4_14_c:
✗ Branch 3 → 4 not taken.
✗ Branch 3 → 8 not taken.
ff_h264_idct8_add4_8_c:
✓ Branch 3 → 4 taken 2174423 times.
✓ Branch 3 → 8 taken 1281757 times.
ff_h264_idct8_add4_9_c:
✓ Branch 3 → 4 taken 4697 times.
✓ Branch 3 → 8 taken 3215 times.
|
3728036 |
if(nnz){ |
| 210 |
12/20
ff_h264_idct8_add4_10_c:
✓ Branch 4 → 5 taken 32399 times.
✓ Branch 4 → 7 taken 156797 times.
✓ Branch 5 → 6 taken 16141 times.
✓ Branch 5 → 7 taken 16258 times.
ff_h264_idct8_add4_12_c:
✗ Branch 4 → 5 not taken.
✗ Branch 4 → 7 not taken.
✗ Branch 5 → 6 not taken.
✗ Branch 5 → 7 not taken.
ff_h264_idct8_add4_14_c:
✗ Branch 4 → 5 not taken.
✗ Branch 4 → 7 not taken.
✗ Branch 5 → 6 not taken.
✗ Branch 5 → 7 not taken.
ff_h264_idct8_add4_8_c:
✓ Branch 4 → 5 taken 669736 times.
✓ Branch 4 → 7 taken 1504687 times.
✓ Branch 5 → 6 taken 368574 times.
✓ Branch 5 → 7 taken 301162 times.
ff_h264_idct8_add4_9_c:
✓ Branch 4 → 5 taken 471 times.
✓ Branch 4 → 7 taken 4226 times.
✓ Branch 5 → 6 taken 119 times.
✓ Branch 5 → 7 taken 352 times.
|
2368316 |
if(nnz==1 && ((dctcoef*)block)[i*16]) FUNCC(ff_h264_idct8_dc_add)(dst + block_offset[i], block + i*16*sizeof(pixel), stride); |
| 211 |
|
1983482 |
else FUNCC(ff_h264_idct8_add )(dst + block_offset[i], block + i*16*sizeof(pixel), stride); |
| 212 |
|
|
} |
| 213 |
|
|
} |
| 214 |
|
932009 |
} |
| 215 |
|
|
|
| 216 |
|
4559890 |
void FUNCC(ff_h264_idct_add8)(uint8_t **dest, const int *block_offset, int16_t *block, |
| 217 |
|
|
ptrdiff_t stride, const uint8_t nnzc[15*8]) |
| 218 |
|
|
{ |
| 219 |
|
|
int i, j; |
| 220 |
6/10
ff_h264_idct_add8_10_c:
✓ Branch 11 → 3 taken 1138658 times.
✓ Branch 11 → 12 taken 569329 times.
ff_h264_idct_add8_12_c:
✗ Branch 11 → 3 not taken.
✗ Branch 11 → 12 not taken.
ff_h264_idct_add8_14_c:
✗ Branch 11 → 3 not taken.
✗ Branch 11 → 12 not taken.
ff_h264_idct_add8_8_c:
✓ Branch 11 → 3 taken 7974504 times.
✓ Branch 11 → 12 taken 3987252 times.
ff_h264_idct_add8_9_c:
✓ Branch 11 → 3 taken 6618 times.
✓ Branch 11 → 12 taken 3309 times.
|
13679670 |
for(j=1; j<3; j++){ |
| 221 |
6/10
ff_h264_idct_add8_10_c:
✓ Branch 9 → 4 taken 4554632 times.
✓ Branch 9 → 10 taken 1138658 times.
ff_h264_idct_add8_12_c:
✗ Branch 9 → 4 not taken.
✗ Branch 9 → 10 not taken.
ff_h264_idct_add8_14_c:
✗ Branch 9 → 4 not taken.
✗ Branch 9 → 10 not taken.
ff_h264_idct_add8_8_c:
✓ Branch 9 → 4 taken 31898016 times.
✓ Branch 9 → 10 taken 7974504 times.
ff_h264_idct_add8_9_c:
✓ Branch 9 → 4 taken 26472 times.
✓ Branch 9 → 10 taken 6618 times.
|
45598900 |
for(i=j*16; i<j*16+4; i++){ |
| 222 |
6/10
ff_h264_idct_add8_10_c:
✓ Branch 4 → 5 taken 1591621 times.
✓ Branch 4 → 6 taken 2963011 times.
ff_h264_idct_add8_12_c:
✗ Branch 4 → 5 not taken.
✗ Branch 4 → 6 not taken.
ff_h264_idct_add8_14_c:
✗ Branch 4 → 5 not taken.
✗ Branch 4 → 6 not taken.
ff_h264_idct_add8_8_c:
✓ Branch 4 → 5 taken 6762134 times.
✓ Branch 4 → 6 taken 25135882 times.
ff_h264_idct_add8_9_c:
✓ Branch 4 → 5 taken 8464 times.
✓ Branch 4 → 6 taken 18008 times.
|
36479120 |
if(nnzc[ scan8[i] ]) |
| 223 |
|
8362219 |
FUNCC(ff_h264_idct_add )(dest[j-1] + block_offset[i], block + i*16*sizeof(pixel), stride); |
| 224 |
6/10
ff_h264_idct_add8_10_c:
✓ Branch 6 → 7 taken 1672282 times.
✓ Branch 6 → 8 taken 1290729 times.
ff_h264_idct_add8_12_c:
✗ Branch 6 → 7 not taken.
✗ Branch 6 → 8 not taken.
ff_h264_idct_add8_14_c:
✗ Branch 6 → 7 not taken.
✗ Branch 6 → 8 not taken.
ff_h264_idct_add8_8_c:
✓ Branch 6 → 7 taken 11263104 times.
✓ Branch 6 → 8 taken 13872778 times.
ff_h264_idct_add8_9_c:
✓ Branch 6 → 7 taken 10284 times.
✓ Branch 6 → 8 taken 7724 times.
|
28116901 |
else if(((dctcoef*)block)[i*16]) |
| 225 |
|
12945670 |
FUNCC(ff_h264_idct_dc_add)(dest[j-1] + block_offset[i], block + i*16*sizeof(pixel), stride); |
| 226 |
|
|
} |
| 227 |
|
|
} |
| 228 |
|
4559890 |
} |
| 229 |
|
|
|
| 230 |
|
675326 |
void FUNCC(ff_h264_idct_add8_422)(uint8_t **dest, const int *block_offset, |
| 231 |
|
|
int16_t *block, ptrdiff_t stride, const uint8_t nnzc[15*8]) |
| 232 |
|
|
{ |
| 233 |
|
|
int i, j; |
| 234 |
|
|
|
| 235 |
6/10
ff_h264_idct_add8_422_10_c:
✓ Branch 11 → 3 taken 1330690 times.
✓ Branch 11 → 12 taken 665345 times.
ff_h264_idct_add8_422_12_c:
✗ Branch 11 → 3 not taken.
✗ Branch 11 → 12 not taken.
ff_h264_idct_add8_422_14_c:
✗ Branch 11 → 3 not taken.
✗ Branch 11 → 12 not taken.
ff_h264_idct_add8_422_8_c:
✓ Branch 11 → 3 taken 15428 times.
✓ Branch 11 → 12 taken 7714 times.
ff_h264_idct_add8_422_9_c:
✓ Branch 11 → 3 taken 4534 times.
✓ Branch 11 → 12 taken 2267 times.
|
2025978 |
for(j=1; j<3; j++){ |
| 236 |
6/10
ff_h264_idct_add8_422_10_c:
✓ Branch 9 → 4 taken 5322760 times.
✓ Branch 9 → 10 taken 1330690 times.
ff_h264_idct_add8_422_12_c:
✗ Branch 9 → 4 not taken.
✗ Branch 9 → 10 not taken.
ff_h264_idct_add8_422_14_c:
✗ Branch 9 → 4 not taken.
✗ Branch 9 → 10 not taken.
ff_h264_idct_add8_422_8_c:
✓ Branch 9 → 4 taken 61712 times.
✓ Branch 9 → 10 taken 15428 times.
ff_h264_idct_add8_422_9_c:
✓ Branch 9 → 4 taken 18136 times.
✓ Branch 9 → 10 taken 4534 times.
|
6753260 |
for(i=j*16; i<j*16+4; i++){ |
| 237 |
6/10
ff_h264_idct_add8_422_10_c:
✓ Branch 4 → 5 taken 1784483 times.
✓ Branch 4 → 6 taken 3538277 times.
ff_h264_idct_add8_422_12_c:
✗ Branch 4 → 5 not taken.
✗ Branch 4 → 6 not taken.
ff_h264_idct_add8_422_14_c:
✗ Branch 4 → 5 not taken.
✗ Branch 4 → 6 not taken.
ff_h264_idct_add8_422_8_c:
✓ Branch 4 → 5 taken 32256 times.
✓ Branch 4 → 6 taken 29456 times.
ff_h264_idct_add8_422_9_c:
✓ Branch 4 → 5 taken 4166 times.
✓ Branch 4 → 6 taken 13970 times.
|
5402608 |
if(nnzc[ scan8[i] ]) |
| 238 |
|
1820905 |
FUNCC(ff_h264_idct_add )(dest[j-1] + block_offset[i], block + i*16*sizeof(pixel), stride); |
| 239 |
6/10
ff_h264_idct_add8_422_10_c:
✓ Branch 6 → 7 taken 2261359 times.
✓ Branch 6 → 8 taken 1276918 times.
ff_h264_idct_add8_422_12_c:
✗ Branch 6 → 7 not taken.
✗ Branch 6 → 8 not taken.
ff_h264_idct_add8_422_14_c:
✗ Branch 6 → 7 not taken.
✗ Branch 6 → 8 not taken.
ff_h264_idct_add8_422_8_c:
✓ Branch 6 → 7 taken 21162 times.
✓ Branch 6 → 8 taken 8294 times.
ff_h264_idct_add8_422_9_c:
✓ Branch 6 → 7 taken 8374 times.
✓ Branch 6 → 8 taken 5596 times.
|
3581703 |
else if(((dctcoef*)block)[i*16]) |
| 240 |
|
2290895 |
FUNCC(ff_h264_idct_dc_add)(dest[j-1] + block_offset[i], block + i*16*sizeof(pixel), stride); |
| 241 |
|
|
} |
| 242 |
|
|
} |
| 243 |
|
|
|
| 244 |
6/10
ff_h264_idct_add8_422_10_c:
✓ Branch 21 → 13 taken 1330690 times.
✓ Branch 21 → 22 taken 665345 times.
ff_h264_idct_add8_422_12_c:
✗ Branch 21 → 13 not taken.
✗ Branch 21 → 22 not taken.
ff_h264_idct_add8_422_14_c:
✗ Branch 21 → 13 not taken.
✗ Branch 21 → 22 not taken.
ff_h264_idct_add8_422_8_c:
✓ Branch 21 → 13 taken 15428 times.
✓ Branch 21 → 22 taken 7714 times.
ff_h264_idct_add8_422_9_c:
✓ Branch 21 → 13 taken 4534 times.
✓ Branch 21 → 22 taken 2267 times.
|
2025978 |
for(j=1; j<3; j++){ |
| 245 |
6/10
ff_h264_idct_add8_422_10_c:
✓ Branch 19 → 14 taken 5322760 times.
✓ Branch 19 → 20 taken 1330690 times.
ff_h264_idct_add8_422_12_c:
✗ Branch 19 → 14 not taken.
✗ Branch 19 → 20 not taken.
ff_h264_idct_add8_422_14_c:
✗ Branch 19 → 14 not taken.
✗ Branch 19 → 20 not taken.
ff_h264_idct_add8_422_8_c:
✓ Branch 19 → 14 taken 61712 times.
✓ Branch 19 → 20 taken 15428 times.
ff_h264_idct_add8_422_9_c:
✓ Branch 19 → 14 taken 18136 times.
✓ Branch 19 → 20 taken 4534 times.
|
6753260 |
for(i=j*16+4; i<j*16+8; i++){ |
| 246 |
6/10
ff_h264_idct_add8_422_10_c:
✓ Branch 14 → 15 taken 1809646 times.
✓ Branch 14 → 16 taken 3513114 times.
ff_h264_idct_add8_422_12_c:
✗ Branch 14 → 15 not taken.
✗ Branch 14 → 16 not taken.
ff_h264_idct_add8_422_14_c:
✗ Branch 14 → 15 not taken.
✗ Branch 14 → 16 not taken.
ff_h264_idct_add8_422_8_c:
✓ Branch 14 → 15 taken 31780 times.
✓ Branch 14 → 16 taken 29932 times.
ff_h264_idct_add8_422_9_c:
✓ Branch 14 → 15 taken 4520 times.
✓ Branch 14 → 16 taken 13616 times.
|
5402608 |
if(nnzc[ scan8[i+4] ]) |
| 247 |
|
1845946 |
FUNCC(ff_h264_idct_add )(dest[j-1] + block_offset[i+4], block + i*16*sizeof(pixel), stride); |
| 248 |
6/10
ff_h264_idct_add8_422_10_c:
✓ Branch 16 → 17 taken 2293085 times.
✓ Branch 16 → 18 taken 1220029 times.
ff_h264_idct_add8_422_12_c:
✗ Branch 16 → 17 not taken.
✗ Branch 16 → 18 not taken.
ff_h264_idct_add8_422_14_c:
✗ Branch 16 → 17 not taken.
✗ Branch 16 → 18 not taken.
ff_h264_idct_add8_422_8_c:
✓ Branch 16 → 17 taken 22234 times.
✓ Branch 16 → 18 taken 7698 times.
ff_h264_idct_add8_422_9_c:
✓ Branch 16 → 17 taken 8114 times.
✓ Branch 16 → 18 taken 5502 times.
|
3556662 |
else if(((dctcoef*)block)[i*16]) |
| 249 |
|
2323433 |
FUNCC(ff_h264_idct_dc_add)(dest[j-1] + block_offset[i+4], block + i*16*sizeof(pixel), stride); |
| 250 |
|
|
} |
| 251 |
|
|
} |
| 252 |
|
675326 |
} |
| 253 |
|
|
|
| 254 |
|
|
#if BIT_DEPTH == 8 || BIT_DEPTH == 9 |
| 255 |
|
|
/** |
| 256 |
|
|
* IDCT transforms the 16 dc values and dequantizes them. |
| 257 |
|
|
* @param qmul quantization parameter |
| 258 |
|
|
*/ |
| 259 |
|
602226 |
void FUNCC2(ff_h264_luma_dc_dequant_idct)(int16_t *_output, int16_t *_input, int qmul) |
| 260 |
|
|
{ |
| 261 |
|
|
#define stride 16 |
| 262 |
|
|
int i; |
| 263 |
|
|
int temp[16]; |
| 264 |
|
|
static const uint8_t x_offset[4]={0, 2*stride, 8*stride, 10*stride}; |
| 265 |
|
602226 |
dctcoef *input = (dctcoef*)_input; |
| 266 |
|
602226 |
dctcoef *output = (dctcoef*)_output; |
| 267 |
|
|
|
| 268 |
4/4
ff_h264_luma_dc_dequant_idct_16_c:
✓ Branch 4 → 3 taken 728208 times.
✓ Branch 4 → 5 taken 182052 times.
ff_h264_luma_dc_dequant_idct_8_c:
✓ Branch 4 → 3 taken 1680696 times.
✓ Branch 4 → 5 taken 420174 times.
|
3011130 |
for(i=0; i<4; i++){ |
| 269 |
|
2408904 |
const int z0= input[4*i+0] + input[4*i+1]; |
| 270 |
|
2408904 |
const int z1= input[4*i+0] - input[4*i+1]; |
| 271 |
|
2408904 |
const int z2= input[4*i+2] - input[4*i+3]; |
| 272 |
|
2408904 |
const int z3= input[4*i+2] + input[4*i+3]; |
| 273 |
|
|
|
| 274 |
|
2408904 |
temp[4*i+0]= z0+z3; |
| 275 |
|
2408904 |
temp[4*i+1]= z0-z3; |
| 276 |
|
2408904 |
temp[4*i+2]= z1-z2; |
| 277 |
|
2408904 |
temp[4*i+3]= z1+z2; |
| 278 |
|
|
} |
| 279 |
|
|
|
| 280 |
4/4
ff_h264_luma_dc_dequant_idct_16_c:
✓ Branch 7 → 6 taken 728208 times.
✓ Branch 7 → 8 taken 182052 times.
ff_h264_luma_dc_dequant_idct_8_c:
✓ Branch 7 → 6 taken 1680696 times.
✓ Branch 7 → 8 taken 420174 times.
|
3011130 |
for(i=0; i<4; i++){ |
| 281 |
|
2408904 |
const int offset= x_offset[i]; |
| 282 |
|
2408904 |
const SUINT z0= temp[4*0+i] + temp[4*2+i]; |
| 283 |
|
2408904 |
const SUINT z1= temp[4*0+i] - temp[4*2+i]; |
| 284 |
|
2408904 |
const SUINT z2= temp[4*1+i] - temp[4*3+i]; |
| 285 |
|
2408904 |
const SUINT z3= temp[4*1+i] + temp[4*3+i]; |
| 286 |
|
|
|
| 287 |
|
2408904 |
output[stride* 0+offset]= (int)((z0 + z3)*qmul + 128 ) >> 8; |
| 288 |
|
2408904 |
output[stride* 1+offset]= (int)((z1 + z2)*qmul + 128 ) >> 8; |
| 289 |
|
2408904 |
output[stride* 4+offset]= (int)((z1 - z2)*qmul + 128 ) >> 8; |
| 290 |
|
2408904 |
output[stride* 5+offset]= (int)((z0 - z3)*qmul + 128 ) >> 8; |
| 291 |
|
|
} |
| 292 |
|
|
#undef stride |
| 293 |
|
602226 |
} |
| 294 |
|
|
|
| 295 |
|
1141165 |
void FUNCC2(ff_h264_chroma422_dc_dequant_idct)(int16_t *_block, int qmul) |
| 296 |
|
|
{ |
| 297 |
|
1141165 |
const int stride= 16*2; |
| 298 |
|
1141165 |
const int xStride= 16; |
| 299 |
|
|
int i; |
| 300 |
|
|
unsigned temp[8]; |
| 301 |
|
|
static const uint8_t x_offset[2]={0, 16}; |
| 302 |
|
1141165 |
dctcoef *block = (dctcoef*)_block; |
| 303 |
|
|
|
| 304 |
4/4
ff_h264_chroma422_dc_dequant_idct_16_c:
✓ Branch 4 → 3 taken 4506860 times.
✓ Branch 4 → 5 taken 1126715 times.
ff_h264_chroma422_dc_dequant_idct_8_c:
✓ Branch 4 → 3 taken 57800 times.
✓ Branch 4 → 5 taken 14450 times.
|
5705825 |
for(i=0; i<4; i++){ |
| 305 |
|
4564660 |
temp[2*i+0] = block[stride*i + xStride*0] + (unsigned)block[stride*i + xStride*1]; |
| 306 |
|
4564660 |
temp[2*i+1] = block[stride*i + xStride*0] - (unsigned)block[stride*i + xStride*1]; |
| 307 |
|
|
} |
| 308 |
|
|
|
| 309 |
4/4
ff_h264_chroma422_dc_dequant_idct_16_c:
✓ Branch 7 → 6 taken 2253430 times.
✓ Branch 7 → 8 taken 1126715 times.
ff_h264_chroma422_dc_dequant_idct_8_c:
✓ Branch 7 → 6 taken 28900 times.
✓ Branch 7 → 8 taken 14450 times.
|
3423495 |
for(i=0; i<2; i++){ |
| 310 |
|
2282330 |
const int offset= x_offset[i]; |
| 311 |
|
2282330 |
const SUINT z0= temp[2*0+i] + temp[2*2+i]; |
| 312 |
|
2282330 |
const SUINT z1= temp[2*0+i] - temp[2*2+i]; |
| 313 |
|
2282330 |
const SUINT z2= temp[2*1+i] - temp[2*3+i]; |
| 314 |
|
2282330 |
const SUINT z3= temp[2*1+i] + temp[2*3+i]; |
| 315 |
|
|
|
| 316 |
|
2282330 |
block[stride*0+offset]= (int)((z0 + z3)*qmul + 128) >> 8; |
| 317 |
|
2282330 |
block[stride*1+offset]= (int)((z1 + z2)*qmul + 128) >> 8; |
| 318 |
|
2282330 |
block[stride*2+offset]= (int)((z1 - z2)*qmul + 128) >> 8; |
| 319 |
|
2282330 |
block[stride*3+offset]= (int)((z0 - z3)*qmul + 128) >> 8; |
| 320 |
|
|
} |
| 321 |
|
1141165 |
} |
| 322 |
|
|
|
| 323 |
|
6656721 |
void FUNCC2(ff_h264_chroma_dc_dequant_idct)(int16_t *_block, int qmul) |
| 324 |
|
|
{ |
| 325 |
|
6656721 |
const int stride= 16*2; |
| 326 |
|
6656721 |
const int xStride= 16; |
| 327 |
|
|
SUINT a,b,c,d,e; |
| 328 |
|
6656721 |
dctcoef *block = (dctcoef*)_block; |
| 329 |
|
|
|
| 330 |
|
6656721 |
a= block[stride*0 + xStride*0]; |
| 331 |
|
6656721 |
b= block[stride*0 + xStride*1]; |
| 332 |
|
6656721 |
c= block[stride*1 + xStride*0]; |
| 333 |
|
6656721 |
d= block[stride*1 + xStride*1]; |
| 334 |
|
|
|
| 335 |
|
6656721 |
e= a-b; |
| 336 |
|
6656721 |
a= a+b; |
| 337 |
|
6656721 |
b= c-d; |
| 338 |
|
6656721 |
c= c+d; |
| 339 |
|
|
|
| 340 |
|
6656721 |
block[stride*0 + xStride*0]= (int)((a+c)*qmul) >> 7; |
| 341 |
|
6656721 |
block[stride*0 + xStride*1]= (int)((e+b)*qmul) >> 7; |
| 342 |
|
6656721 |
block[stride*1 + xStride*0]= (int)((a-c)*qmul) >> 7; |
| 343 |
|
6656721 |
block[stride*1 + xStride*1]= (int)((e-b)*qmul) >> 7; |
| 344 |
|
6656721 |
} |
| 345 |
|
|
#endif |
| 346 |
|
|
|