Searched defs:shift (Results 1 - 25 of 33) sorted by relevance

12

/frameworks/base/media/libstagefright/codecs/aacdec/
H A Dps_bstr_decoding.cpp232 Int32 shift; local
234 shift = ps_dec->noEnv >> 1;
241 (env * ps_dec->noSubSamples) >> shift;
H A Dtrans4m_time_2_freq_fxp.cpp51 Added shift down operation for case when the window was equal to one.
388 Int shift = *pQ_format - 1; local
423 *pAux_temp_1 = fxp_mul32_by_16((*pAux_temp_1), *pLong_Window_1++) >> shift;
425 *pAux_temp_2 = fxp_mul32_by_16((*pAux_temp_2), *pLong_Window_2++) >> shift;
433 if (shift)
437 *(pAux_temp_1++) >>= shift;
438 *(pAux_temp_1++) >>= shift;
454 *pAux_temp_1 = fxp_mul32_by_16((*pAux_temp_1), *pShort_Window_1--) >> shift;
456 *pAux_temp_2 = fxp_mul32_by_16((*pAux_temp_2), *pShort_Window_2--) >> shift;
487 *pAux_temp_1 = fxp_mul32_by_16((*pAux_temp_1), *pShort_Window_1++) >> shift;
[all...]
H A Dimdct_fxp.cpp51 shift = shift factor to reflect scaling introduced by IFFT and imdct_fxp,
149 RETURNING( shift )
179 RETURN (exp - shift)
277 Int shift = 0; local
305 shift = 21; /* log2(n)-1 + 14 acomodates 2/N factor */
310 shift = 24; /* log2(n)-1 +14 acomodates 2/N factor */
446 shift -= mix_radix_fft(data_quant,
449 shift -= inv_long_complex_rot(data_quant,
456 shift
[all...]
H A Dlong_term_prediction.cpp388 Int shift; local
633 shift = 16 - pv_normalize(max);
635 if (shift < 0)
637 shift = 0;
643 return (shift);
H A Dmdct_fxp.cpp43 shift = shift factor to reflect scaling introduced by FFT and mdct_fxp,
161 RETURNING( shift )
178 RETURN (-shift-1)
278 Int shift; local
413 shift = mix_radix_fft(
417 shift += fwd_long_complex_rot(
426 shift = fft_rx4_short(
430 shift += fwd_short_complex_rot(
439 shift
[all...]
H A Desc_iquant_scaling.cpp163 shift = QTABLE - *pQFormat;
171 tmp_coef = x * (inverseQuantTable[absX] >> shift);
190 tmp_coef = x * (inverseQuantTable[absX] >> shift);
195 approxOneThird = (w1 * FACTOR) >> shift;
203 deltaOneThird >>= (shift + ORDER - 1);
349 * a) If yes, just multiply by table value by itself, then shift as
367 * then FACTOR is a simple power of 2, so a shift can do the job.
447 Int shift; local
492 shift = QTABLE - QFormat;
506 mult_high = (x * (inverseQuantTable[absX] >> shift));
[all...]
H A Dfft_rx4_short.cpp38 (2) Increased down shift from 1 to 2, to ensure that 32-bit
66 exponent returns a shift to compensate the scaling introduced by
228 Int shift; local
247 /* shift down to avoid possible overflow in first pass of the loop */
248 shift = 2;
268 temp1 >>= shift; local
269 temp2 >>= shift; local
276 temp3 >>= shift; local
277 temp4 >>= shift; local
287 temp1 >>= shift; local
288 temp2 >>= shift; local
295 temp3 >>= shift; local
296 temp4 >>= shift; local
329 temp1 >>= shift; local
330 temp2 >>= shift; local
336 temp3 >>= shift; local
337 temp4 >>= shift; local
347 temp1 >>= shift; local
348 temp2 >>= shift; local
358 temp3 >>= shift; local
359 temp4 >>= shift; local
[all...]
H A Dtrans4m_freq_2_time_fxp.cpp58 The result of a shift is undefined if the right operand is greater than
60 To avoid undefined shift by 32, a check of the shift has been
62 than 32. By design the shift up is related to the global gain,
65 input buffer or excessive down shift is detected.
96 - Corrected negative shift when computing rounding factor
577 Int shift; local
630 * "The result [of a shift] is undefined if the right operand is
633 * => avoid shift by 32 or 16
656 Int shift local
758 Int shift = -exp; local
1581 Int shift; local
1663 Int shift = exp + 15 - SCALING; local
1774 Int shift = -exp; local
[all...]
/frameworks/base/media/libstagefright/codecs/amrwbenc/src/
H A Dautocorr.c38 Word32 i, norm, shift; local
67 shift = 4 - (norm >> 1);
68 if(shift > 0)
73 *p1 = vo_shr_r(*p1, shift);
75 *p1 = vo_shr_r(*p1, shift);
77 *p1 = vo_shr_r(*p1, shift);
79 *p1 = vo_shr_r(*p1, shift);
/frameworks/base/media/libstagefright/codecs/amrnb/enc/src/
H A Dhp_max.cpp140 Word16 shift, shift1, shift2;
196 shift = sub(shift1, shift2);
198 if (shift >= 0)
200 *cor_hp_max = shr(cor_max, shift); // Q15
204 *cor_hp_max = shl(cor_max, negate(shift)); // Q15
251 Word16 shift, shift1, shift2; local
319 shift = sub(shift1, shift2, pOverflow);
321 if (shift >= 0)
323 *cor_hp_max = shr(cor_max, shift, pOverflow); /* Q15 */
327 *cor_hp_max = shl(cor_max, negate(shift), pOverflo
[all...]
/frameworks/base/media/libstagefright/codecs/m4v_h263/enc/src/
H A Dsad_mb_offset.h252 int32 shift = SHIFT; local
261 : "r"(blk), "r"(shift), "r"(shift2));
283 : "r"(blk), "r"(shift), "r"(shift2));
H A Dfastquant_inline.h41 __inline int32 coeff_quant(int32 coeff, int32 q_scale, int32 shift) argument
46 q_value >>= shift; //q_value = (((coeff - QPdiv2)*q_scale)>>LSL ); local
187 __inline int32 coeff_quant(int32 coeff, int32 q_scale, int32 shift) argument
194 mov coeff, q_value, asr shift /*smull tmp, coeff, q_scale, coeff*/
282 __inline int32 coeff_quant(int32 coeff, int32 q_scale, int32 shift) argument
289 mov coeff, q_value, asr shift /*smull tmp, coeff, q_scale, coeff*/
449 __inline int32 coeff_quant(int32 coeff, int32 q_scale, int32 shift) argument
455 register int32 ss = shift;
H A Dbitstream_io.cpp260 UInt word, shift; local
293 shift = ((WORD_SIZE - 1) << 3);
296 *ptr++ = (UChar)((word >> shift) & 0xFF);
303 // *ptr = (UChar)((word>>shift)&0xFF); /* need to do it for the last fractional byte */
700 /* shift bitstream1 to the right by movebyte */
709 /* now shift back previous bitstream1 buffer to the end */
H A Dfastquant.cpp128 changed the division into LUT multiplication/shift and other
161 Int shift = 15 + (QPx2 >> 4); local
225 q_value = coeff_quant(coeff, q_scale, shift);
280 Int shift = 15 + (QPx2 >> 4); local
388 q_value >>= shift; local
449 Int shift = 15 + (QP >> 3); local
473 scale_q = coeff_quant(coeff, scale_q, shift);
555 Int shift = 15 + (QP >> 3); local
608 q_value = coeff_quant(coeff, q_scale, shift);
684 Int shift local
783 q_value >>= shift; local
858 Int shift = 15 + (QP >> 3); local
[all...]
/frameworks/base/media/libstagefright/codecs/amrnb/dec/src/
H A Dc_g_aver.cpp286 Word16 tmp[M], tmp1, tmp2, shift1, shift2, shift;
309 shift = sub(add(2, shift1), shift2);
310 if (shift >= 0)
312 tmp[i] = shr(tmp[i], shift); // Q15+Qn-Qm-Qx=Q13
316 tmp[i] = shl(tmp[i], negate(shift)); // Q15+Qn-Qm-Qx=Q13
490 Word16 shift; local
524 shift = 2 + shift1 - shift2;
526 if (shift >= 0)
528 *(tmp + i) = shr(*(tmp + i), shift, pOverflow);
533 *(tmp + i) = shl(*(tmp + i), negate(shift), pOverflo
[all...]
/frameworks/base/voip/jni/rtp/
H A DEchoSuppressor.cpp45 int shift = 0; local
46 while ((sampleCount >> shift) > 1 && (tailLength >> shift) > 256) {
47 ++shift;
50 mShift = shift + 4;
51 mScale = 1 << shift;
53 mWindowSize = sampleCount >> shift;
54 mTailLength = tailLength >> shift;
/frameworks/base/media/libstagefright/codecs/aacenc/basic_op/
H A Doper_32b.c234 #define step(shift) \
235 if ((0x40000000l >> shift) + root <= value) \
237 value -= (0x40000000l >> shift) + root; \
238 root = (root >> 1) | (0x40000000l >> shift); \
351 Word32 shift, shift2; local
/frameworks/base/media/libstagefright/codecs/aacenc/src/
H A Dms_stereo.c65 Word32 idx, shift; local
77 shift = norm_l(nrgL);
78 nrgL = Div_32(thrL << shift, nrgL << shift);
80 shift = norm_l(nrgR);
81 nrgR = Div_32(thrR << shift, nrgR << shift);
89 shift = norm_l(nrgL);
90 nrgL = Div_32(minThreshold << shift, nrgL << shift);
[all...]
H A Dpsy_configuration.c291 Word16 pbVal0, pbVal1, shift; local
322 shift = norm_l(snr);
323 snr = Div_32(0x00008000 << shift, snr << shift);
/frameworks/base/media/libstagefright/codecs/amrwb/src/
H A Dhoming_amr_wb_dec.cpp250 int16 i, j, tmp, shift; local
289 shift = 15 - tmp;
290 param[i] = shl_int16(param[i], shift);
320 shift = 0;
335 tmp >>= shift; local
336 tmp = shl_int16(tmp, shift);
/frameworks/base/opengl/libagl/
H A Dmatrix.h149 // that have been shifted right by 'shift' bits relative to normal
154 GLint shift,
169 "r"(shift),
183 accum = (accum << shift) + c;
194 GLint shift,
210 "r"(shift),
225 accum = (accum << shift) + c;
235 GLint shift,
251 "r"(shift),
266 accum = (accum << shift)
151 mla3a16( GLfixed a0, int32_t b1b0, GLfixed a1, GLfixed a2, int32_t b2, GLint shift, GLfixed c) argument
190 mla3a16_btb( GLfixed a0, GLfixed a1, GLfixed a2, int32_t b1b0, int32_t xxb2, GLint shift, GLfixed c) argument
231 mla3a16_btt( GLfixed a0, GLfixed a1, GLfixed a2, int32_t b1b0, int32_t b2xx, GLint shift, GLfixed c) argument
[all...]
/frameworks/base/media/libeffects/visualizer/
H A DEffectVisualizer.cpp245 int32_t shift = 32; local
251 if (shift > clz) shift = clz;
254 // translate to a shift of 8 (for converting 16 bit to 8 bit)
255 shift = 25 - shift;
257 if (shift < 3) {
258 shift = 3;
261 shift++;
270 smp = smp >> shift;
[all...]
/frameworks/base/media/libstagefright/codecs/avc/enc/src/
H A Dresidual.cpp158 int escape, numPrefix, sufmask, suffix, shift, sign, value, absvalue, vlcnum, level_two_or_higher; local
332 shift = vlcnum - 1;
333 escape = (15 << shift) + 1;
334 numPrefix = (value - 1) >> shift;
335 sufmask = ~((0xffffffff) << shift);
339 status = BitstreamWriteBits(stream, numPrefix + vlcnum + 1, (1 << (shift + 1)) | (suffix << 1) | sign);
/frameworks/base/media/libstagefright/codecs/m4v_h263/dec/src/
H A Dbitstream.cpp953 int byte0, byte1, byte2, shift, tmpvar; local
983 shift = 9 - firstOne[tmpvar];
987 shift = 5 - firstOne[byte2];
990 if ((byte0 & msk[shift]) == 0)
992 PV_BitstreamFlushBits(stream, 8 - shift);
/frameworks/base/services/surfaceflinger/
H A DBlurFilter.cpp80 inline uint16_t to(int shift, int last, int dither) const { argument
91 R += (dither << shift) >> BLUR_DITHER_BITS;
92 G += (dither << shift) >> BLUR_DITHER_BITS;
93 B += (dither << shift) >> BLUR_DITHER_BITS;
95 R >>= shift; local
96 G >>= shift; local
97 B >>= shift; local
127 inline uint32_t to(int shift, int last, int dither) const { argument
139 R >>= shift; local
140 G >>= shift; local
141 B >>= shift; local
170 to(int shift, int last, int dither) const argument
175 L >>= shift; local
202 to(int shift, int last, int dither) const argument
210 A >>= shift; local
235 const int shift = 31 - clz(kernelSizeUser); local
[all...]

Completed in 812 milliseconds

12