/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/ |
H A D | h264bsd_stream.c | 118 i32 bits, shift; local 152 shift = (i32)(24 + pStrmData->bitPosInWord); 153 out = (u32)(*pStrm++) << shift; 157 shift -= 8; 158 out |= (u32)(*pStrm++) << shift;
|
/frameworks/compile/mclinker/lib/Support/ |
H A D | LEB128.cpp | 121 unsigned shift; local 125 shift = 28; 131 result |= (static_cast<uint64_t>(byte & 0x7f) << shift); 132 shift += 7; 169 unsigned shift; local 172 shift = 28; 175 result |= (static_cast<uint64_t>(byte & 0x7f) << shift); 176 shift += 7; 191 unsigned shift = 0; local 198 result |= (static_cast<uint64_t>(byte & 0x7f) << shift); 212 unsigned shift = 0; local [all...] |
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/ |
H A D | hp_max.cpp | 140 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/av/media/libstagefright/codecs/amrwbenc/src/ |
H A D | autocorr.c | 40 Word32 i, norm, shift; local 71 shift = 4 - (norm >> 1); 72 if(shift > 0) 77 *p1 = vo_shr_r(*p1, shift); 79 *p1 = vo_shr_r(*p1, shift); 81 *p1 = vo_shr_r(*p1, shift); 83 *p1 = vo_shr_r(*p1, shift);
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/ |
H A D | sad_mb_offset.h | 252 int32 shift = SHIFT; local 261 : "r"(blk), "r"(shift), "r"(shift2)); 283 : "r"(blk), "r"(shift), "r"(shift2));
|
H A D | fastquant_inline.h | 41 __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 D | bitstream_io.cpp | 260 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 D | fastquant.cpp | 128 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/av/media/libstagefright/codecs/amrnb/dec/src/ |
H A D | c_g_aver.cpp | 286 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/opt/net/voip/src/jni/rtp/ |
H A D | EchoSuppressor.cpp | 46 int shift = 0; local 47 while ((sampleCount >> shift) > 1 && (tailLength >> shift) > 256) { 48 ++shift; 51 mShift = shift + 4; 52 mScale = 1 << shift; 54 mWindowSize = sampleCount >> shift; 55 mTailLength = tailLength >> shift;
|
/frameworks/av/media/libstagefright/codecs/aacenc/basic_op/ |
H A D | oper_32b.c | 236 #define step(shift) \ 237 if ((0x40000000l >> shift) + root <= value) \ 239 value -= (0x40000000l >> shift) + root; \ 240 root = (root >> 1) | (0x40000000l >> shift); \ 355 Word32 shift, shift2; local
|
/frameworks/av/media/libstagefright/codecs/aacenc/src/ |
H A D | ms_stereo.c | 65 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 D | psy_configuration.c | 291 Word16 pbVal0, pbVal1, shift; local 322 shift = norm_l(snr); 323 snr = Div_32(0x00008000 << shift, snr << shift);
|
/frameworks/av/media/libstagefright/codecs/amrwb/src/ |
H A D | homing_amr_wb_dec.cpp | 250 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/native/opengl/libagl/ |
H A D | matrix.h | 193 // that have been shifted right by 'shift' bits relative to normal 198 GLint shift, 213 "r"(shift), 227 accum = (accum << shift) + c; 238 GLint shift, 254 "r"(shift), 269 accum = (accum << shift) + c; 279 GLint shift, 295 "r"(shift), 310 accum = (accum << shift) 195 mla3a16( GLfixed a0, int32_t b1b0, GLfixed a1, GLfixed a2, int32_t b2, GLint shift, GLfixed c) argument 234 mla3a16_btb( GLfixed a0, GLfixed a1, GLfixed a2, int32_t b1b0, int32_t xxb2, GLint shift, GLfixed c) argument 275 mla3a16_btt( GLfixed a0, GLfixed a1, GLfixed a2, int32_t b1b0, int32_t b2xx, GLint shift, GLfixed c) argument [all...] |
/frameworks/av/media/libstagefright/codecs/avc/enc/src/ |
H A D | residual.cpp | 158 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/av/media/libstagefright/codecs/m4v_h263/dec/src/ |
H A D | bitstream.cpp | 953 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/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm11/vc/m4p10/src/ |
H A D | omxVCM4P10_DequantTransformResidualFromPairAndAdd_s.s | 64 shift RN 3 label 92 LDRSB shift,[pQPdiv,QP] ;// Shift = QP / 6 106 ;// So we can shift the packed rowLuma values [0b|0a] with a single LSL operation 110 LSL rowLuma01,rowLuma01,shift 111 LSL rowLuma23,rowLuma23,shift 209 shift RN 3 label 237 LDRSB shift,[pQPdiv,QP] ;// Shift = QP / 6 249 ;// So we can shift the packed rowLuma values [0b|0a] with a single LSL operation 253 LSL rowLuma01,rowLuma01,shift 254 LSL rowLuma23,rowLuma23,shift [all...] |
/frameworks/av/services/audioflinger/ |
H A D | PatchPanel.cpp | 439 int shift = __builtin_ctz(recordFramecount); local 440 if (playbackShift < shift) { 441 shift = playbackShift; 443 size_t frameCount = (playbackFrameCount * recordFramecount) >> shift;
|
/frameworks/rs/driver/runtime/ |
H A D | rs_allocation.c | 314 const size_t shift = alloc->mHal.drvState.yuv.shift; local 319 return pin[((x >> shift) * cstep) + ((y >> shift) * stride)]; 328 const size_t shift = alloc->mHal.drvState.yuv.shift; local 333 return pin[((x >> shift) * cstep) + ((y >> shift) * stride)];
|
/frameworks/rs/ |
H A D | rsAllocation.h | 88 uint32_t shift; member in struct:android::renderscript::Allocation::Hal::DrvState::YuvState
|
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm11/src/ |
H A D | armCOMM.c | 375 * Description: Divides a float value by 2^shift and 383 * [in] shift Divides the input "v" by "2^shift" 390 OMX_U32 armShiftSat_F32(OMX_F32 v, OMX_INT shift, OMX_INT satBits) argument 394 OMX_F32 vShifted, vRounded, shiftDiv = (OMX_F32)(1 << shift); 731 * Returns the result of rounded right shift operation of input by the scalefactor 733 * output = Saturate_in_16Bits( ( Right/LeftShift( (Round(input) , shift ) ) 737 * [in] shift The shift number 745 OMX_S16 armSatRoundRightShift_S32_S16(OMX_S32 input, OMX_INT shift) argument [all...] |
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm_neon/src/ |
H A D | armCOMM.c | 375 * Description: Divides a float value by 2^shift and 383 * [in] shift Divides the input "v" by "2^shift" 390 OMX_U32 armShiftSat_F32(OMX_F32 v, OMX_INT shift, OMX_INT satBits) argument 394 OMX_F32 vShifted, vRounded, shiftDiv = (OMX_F32)(1 << shift); 731 * Returns the result of rounded right shift operation of input by the scalefactor 733 * output = Saturate_in_16Bits( ( Right/LeftShift( (Round(input) , shift ) ) 737 * [in] shift The shift number 745 OMX_S16 armSatRoundRightShift_S32_S16(OMX_S32 input, OMX_INT shift) argument [all...] |
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/reference/src/ |
H A D | armCOMM.c | 375 * Description: Divides a float value by 2^shift and 383 * [in] shift Divides the input "v" by "2^shift" 390 OMX_U32 armShiftSat_F32(OMX_F32 v, OMX_INT shift, OMX_INT satBits) argument 394 OMX_F32 vShifted, vRounded, shiftDiv = (OMX_F32)(1 << shift); 731 * Returns the result of rounded right shift operation of input by the scalefactor 733 * output = Saturate_in_16Bits( ( Right/LeftShift( (Round(input) , shift ) ) 737 * [in] shift The shift number 745 OMX_S16 armSatRoundRightShift_S32_S16(OMX_S32 input, OMX_INT shift) argument [all...] |
/frameworks/rs/cpu_ref/linkloader/include/impl/ |
H A D | ELFObject.hxx | 481 uint32_t shift = 0; local 483 case R_AARCH64_LDST8_ABS_LO12_NC: shift = 0; break; 484 case R_AARCH64_LDST16_ABS_LO12_NC: shift = 1; break; 485 case R_AARCH64_LDST32_ABS_LO12_NC: shift = 2; break; 486 case R_AARCH64_LDST64_ABS_LO12_NC: shift = 3; break; 487 case R_AARCH64_LDST128_ABS_LO12_NC: shift = 4; break; 493 uint32_t imm12 = ((S + A) & 0xFFF) >> shift; 603 int shift = 0; local 606 case R_AARCH64_MOVW_UABS_G0_NC: shift = 0; break; 608 case R_AARCH64_MOVW_UABS_G1_NC: shift 624 int shift = 0; local [all...] |