• Home
  • Raw
  • Download

Lines Matching refs:coef

34 #define randomize_buffers(src, dst, stride, coef)                            \  argument
41 (coef)[y * 4 + x] = (src)[y * (stride) + x] - \
46 static void dct4x4(int16_t *coef) in dct4x4() argument
50 const int a1 = (coef[i*4 + 0] + coef[i*4 + 3]) * 8; in dct4x4()
51 const int b1 = (coef[i*4 + 1] + coef[i*4 + 2]) * 8; in dct4x4()
52 const int c1 = (coef[i*4 + 1] - coef[i*4 + 2]) * 8; in dct4x4()
53 const int d1 = (coef[i*4 + 0] - coef[i*4 + 3]) * 8; in dct4x4()
54 coef[i*4 + 0] = a1 + b1; in dct4x4()
55 coef[i*4 + 1] = (c1 * 2217 + d1 * 5352 + 14500) >> 12; in dct4x4()
56 coef[i*4 + 2] = a1 - b1; in dct4x4()
57 coef[i*4 + 3] = (d1 * 2217 - c1 * 5352 + 7500) >> 12; in dct4x4()
60 const int a1 = coef[i + 0*4] + coef[i + 3*4]; in dct4x4()
61 const int b1 = coef[i + 1*4] + coef[i + 2*4]; in dct4x4()
62 const int c1 = coef[i + 1*4] - coef[i + 2*4]; in dct4x4()
63 const int d1 = coef[i + 0*4] - coef[i + 3*4]; in dct4x4()
64 coef[i + 0*4] = (a1 + b1 + 7) >> 4; in dct4x4()
65 coef[i + 1*4] = ((c1 * 2217 + d1 * 5352 + 12000) >> 16) + !!d1; in dct4x4()
66 coef[i + 2*4] = (a1 - b1 + 7) >> 4; in dct4x4()
67 coef[i + 3*4] = (d1 * 2217 - c1 * 5352 + 51000) >> 16; in dct4x4()
71 static void wht4x4(int16_t *coef) in wht4x4() argument
75 int a1 = coef[0 * 4 + i]; in wht4x4()
76 int b1 = coef[1 * 4 + i]; in wht4x4()
77 int c1 = coef[2 * 4 + i]; in wht4x4()
78 int d1 = coef[3 * 4 + i]; in wht4x4()
87 coef[0 * 4 + i] = a1; in wht4x4()
88 coef[1 * 4 + i] = c1; in wht4x4()
89 coef[2 * 4 + i] = d1; in wht4x4()
90 coef[3 * 4 + i] = b1; in wht4x4()
93 int a1 = coef[i * 4 + 0]; in wht4x4()
94 int b1 = coef[i * 4 + 1]; in wht4x4()
95 int c1 = coef[i * 4 + 2]; in wht4x4()
96 int d1 = coef[i * 4 + 3]; in wht4x4()
105 coef[i * 4 + 0] = a1 * 2; in wht4x4()
106 coef[i * 4 + 1] = c1 * 2; in wht4x4()
107 coef[i * 4 + 2] = d1 * 2; in wht4x4()
108 coef[i * 4 + 3] = b1 * 2; in wht4x4()
118 LOCAL_ALIGNED_16(int16_t, coef, [4 * 4]); in check_idct()
126 randomize_buffers(src, dst, 4, coef); in check_idct()
128 dct4x4(coef); in check_idct()
136 subcoef0[0] = coef[0]; in check_idct()
138 memcpy(subcoef0, coef, 4 * 4 * sizeof(int16_t)); in check_idct()
163 LOCAL_ALIGNED_16(int16_t, coef, [4], [4 * 4]); in check_idct_dc4()
180 …randomize_buffers(src + stride * blocky + blockx, dst + stride * blocky + blockx, stride, coef[i]); in check_idct_dc4()
181 dct4x4(coef[i]); in check_idct_dc4()
182 memset(&coef[i][1], 0, 15 * sizeof(int16_t)); in check_idct_dc4()
187 memcpy(subcoef0, coef, 4 * 4 * 4 * sizeof(int16_t)); in check_idct_dc4()
188 memcpy(subcoef1, coef, 4 * 4 * 4 * sizeof(int16_t)); in check_idct_dc4()