Home
last modified time | relevance | path

Searched refs:shift (Results 1 – 25 of 68) sorted by relevance

123

/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/encoder/
Dvp9_writer.h43 register unsigned int shift; in vp9_write() local
54 shift = vp9_norm[range]; in vp9_write()
56 range <<= shift; in vp9_write()
57 count += shift; in vp9_write()
60 int offset = shift - count; in vp9_write()
75 shift = count; in vp9_write()
80 lowvalue <<= shift; in vp9_write()
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/encoder/
Dboolhuff.h72 register unsigned int shift; in vp8_encode_bool() local
95 shift = vp8_norm[range]; in vp8_encode_bool()
97 range <<= shift; in vp8_encode_bool()
98 count += shift; in vp8_encode_bool()
102 int offset = shift - count; in vp8_encode_bool()
121 shift = count; in vp8_encode_bool()
126 lowvalue <<= shift; in vp8_encode_bool()
Dbitstream.c167 unsigned int shift; in vp8_pack_tokens_c() local
204 shift = vp8_norm[range]; in vp8_pack_tokens_c()
205 range <<= shift; in vp8_pack_tokens_c()
206 count += shift; in vp8_pack_tokens_c()
210 int offset = shift - count; in vp8_pack_tokens_c()
232 shift = count; in vp8_pack_tokens_c()
237 lowvalue <<= shift; in vp8_pack_tokens_c()
269 shift = vp8_norm[range]; in vp8_pack_tokens_c()
270 range <<= shift; in vp8_pack_tokens_c()
271 count += shift; in vp8_pack_tokens_c()
[all …]
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/common/
Dreconintra.c39 int shift; in vp8_build_intra_predictors_mby_s_c() local
65 shift = 3 + x->up_available + x->left_available; in vp8_build_intra_predictors_mby_s_c()
66 expected_dc = (average + (1 << (shift - 1))) >> shift; in vp8_build_intra_predictors_mby_s_c()
170 int shift; in vp8_build_intra_predictors_mbuv_s_c() local
199 shift = 2 + x->up_available + x->left_available; in vp8_build_intra_predictors_mbuv_s_c()
200 expected_udc = (Uaverage + (1 << (shift - 1))) >> shift; in vp8_build_intra_predictors_mbuv_s_c()
201 expected_vdc = (Vaverage + (1 << (shift - 1))) >> shift; in vp8_build_intra_predictors_mbuv_s_c()
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/decoder/
Ddboolhuff.c42 int shift = VP8_BD_VALUE_SIZE - 8 - (count + 8); in vp8dx_bool_decoder_fill() local
45 int x = (int)(shift + CHAR_BIT - bits_left); in vp8dx_bool_decoder_fill()
63 while(shift >= loop_end) in vp8dx_bool_decoder_fill()
66 value |= (VP8_BD_VALUE)*bufptr << shift; in vp8dx_bool_decoder_fill()
69 shift -= CHAR_BIT; in vp8dx_bool_decoder_fill()
Ddboolhuff.h91 register unsigned int shift = vp8_norm[range]; in vp8dx_decode_bool() local
92 range <<= shift; in vp8dx_decode_bool()
93 value <<= shift; in vp8dx_decode_bool()
94 count -= shift; in vp8dx_decode_bool()
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/decoder/
Dvp9_reader.c40 int shift = BD_VALUE_SIZE - CHAR_BIT - (count + CHAR_BIT); in vp9_reader_fill() local
43 const int x = shift + CHAR_BIT - bits_left; in vp9_reader_fill()
51 while (shift >= loop_end) { in vp9_reader_fill()
53 value |= (BD_VALUE)*buffer++ << shift; in vp9_reader_fill()
54 shift -= CHAR_BIT; in vp9_reader_fill()
Dvp9_reader.h72 register unsigned int shift = vp9_norm[range]; in vp9_read() local
73 range <<= shift; in vp9_read()
74 value <<= shift; in vp9_read()
75 count -= shift; in vp9_read()
/hardware/akm/AK8975_FS/akmdfs/AKFS_APIs_8975/
DAKFS_Device.c44 const int16 shift, /*!< shift size */ in AKFS_BufShift() argument
50 if((shift < 1) || (len < shift)) { in AKFS_BufShift()
53 for (i = len-1; i >= shift; i--) { in AKFS_BufShift()
54 v[i] = v[i-shift]; in AKFS_BufShift()
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/encoder/arm/armv5te/
Dboolhuff_armv5te.asm81 sub r6, r6, #24 ; shift
85 adds r3, r3, r6 ; count += shift
86 lsl r5, r4, r6 ; range <<= shift
89 sub r6, r6, r3 ; offset = shift - count
118 mov r6, r3 ; shift = count
129 lsl r2, r2, r6 ; lowvalue <<= shift
157 sub r6, r6, #24 ; shift
161 adds r3, r3, r6 ; count += shift
162 lsl r5, r4, r6 ; range <<= shift
165 sub r6, r6, r3 ; offset = shift - count
[all …]
Dvp8_packtokens_partitions_armv5.asm156 sub r6, r6, #24 ; shift
160 adds r3, r3, r6 ; count += shift
161 lsl r5, r4, r6 ; range <<= shift
164 sub r6, r6, r3 ; offset = shift - count
193 mov r6, r3 ; shift = count
209 lsl r2, r2, r6 ; lowvalue <<= shift
258 adds r3, r3, r6 ; count += shift
259 lsl r5, r4, r6 ; range <<= shift
262 sub r6, r6, r3 ; offset= shift - count
291 mov r6, r3 ; shift = count
[all …]
Dvp8_packtokens_armv5.asm106 sub r6, r6, #24 ; shift
110 adds r3, r3, r6 ; count += shift
111 lsl r5, r4, r6 ; range <<= shift
114 sub r6, r6, r3 ; offset = shift - count
143 mov r6, r3 ; shift = count
159 lsl r2, r2, r6 ; lowvalue <<= shift
208 adds r3, r3, r6 ; count += shift
209 lsl r5, r4, r6 ; range <<= shift
212 sub r6, r6, r3 ; offset= shift - count
241 mov r6, r3 ; shift = count
Dvp8_packtokens_mbrow_armv5.asm127 sub r6, r6, #24 ; shift
131 adds r3, r3, r6 ; count += shift
132 lsl r5, r4, r6 ; range <<= shift
135 sub r6, r6, r3 ; offset = shift - count
164 mov r6, r3 ; shift = count
180 lsl r2, r2, r6 ; lowvalue <<= shift
229 adds r3, r3, r6 ; count += shift
230 lsl r5, r4, r6 ; range <<= shift
233 sub r6, r6, r3 ; offset= shift - count
262 mov r6, r3 ; shift = count
/hardware/qcom/media/msm8974/mm-video-v4l2/vidc/common/src/
Dextra_data_handler.cpp52 OMX_U32 rem_bits = num_bits, bins = 0, shift = 0; in d_u() local
57 bins <<= shift; in d_u()
58 shift = (8-bit_ptr); in d_u()
59 bins |= ((rbsp_buf[byte_ptr] << shift) & 0xFF) >> shift; in d_u()
387 OMX_U32 rem_bits = num_bits, shift; in e_u() local
392 shift = rem_bits - bit_ptr; in e_u()
393 rbsp_buf[byte_ptr] |= (symbol >> shift); in e_u()
394 symbol = (symbol << (32 - shift)) >> (32 - shift); in e_u()
403 shift = bit_ptr - rem_bits; in e_u()
404 rbsp_buf[byte_ptr] |= (symbol << shift); in e_u()
/hardware/qcom/media/msm8974/mm-video-legacy/vidc/common/src/
Dextra_data_handler.cpp50 OMX_U32 rem_bits = num_bits, bins = 0, shift = 0; in d_u() local
55 bins <<= shift; in d_u()
56 shift = (8-bit_ptr); in d_u()
57 bins |= ((rbsp_buf[byte_ptr] << shift) & 0xFF) >> shift; in d_u()
323 OMX_U32 rem_bits = num_bits, shift; in e_u() local
328 shift = rem_bits - bit_ptr; in e_u()
329 rbsp_buf[byte_ptr] |= (symbol >> shift); in e_u()
330 symbol = (symbol << (32 - shift)) >> (32 - shift); in e_u()
339 shift = bit_ptr - rem_bits; in e_u()
340 rbsp_buf[byte_ptr] |= (symbol << shift); in e_u()
/hardware/qcom/media/msm8998/mm-video-v4l2/vidc/common/src/
Dextra_data_handler.cpp52 OMX_U32 rem_bits = num_bits, bins = 0, shift = 0; in d_u() local
57 bins <<= shift; in d_u()
58 shift = (8-bit_ptr); in d_u()
59 bins |= ((rbsp_buf[byte_ptr] << shift) & 0xFF) >> shift; in d_u()
387 OMX_U32 rem_bits = num_bits, shift; in e_u() local
392 shift = rem_bits - bit_ptr; in e_u()
393 rbsp_buf[byte_ptr] |= (symbol >> shift); in e_u()
394 symbol = (symbol << (32 - shift)) >> (32 - shift); in e_u()
403 shift = bit_ptr - rem_bits; in e_u()
404 rbsp_buf[byte_ptr] |= (symbol << shift); in e_u()
/hardware/qcom/media/msm8996/mm-video-v4l2/vidc/common/src/
Dextra_data_handler.cpp52 OMX_U32 rem_bits = num_bits, bins = 0, shift = 0; in d_u() local
57 bins <<= shift; in d_u()
58 shift = (8-bit_ptr); in d_u()
59 bins |= ((rbsp_buf[byte_ptr] << shift) & 0xFF) >> shift; in d_u()
387 OMX_U32 rem_bits = num_bits, shift; in e_u() local
392 shift = rem_bits - bit_ptr; in e_u()
393 rbsp_buf[byte_ptr] |= (symbol >> shift); in e_u()
394 symbol = (symbol << (32 - shift)) >> (32 - shift); in e_u()
403 shift = bit_ptr - rem_bits; in e_u()
404 rbsp_buf[byte_ptr] |= (symbol << shift); in e_u()
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/common/
Dvp9_systemdependent.h68 const int shift = (1 << i); in get_msb() local
69 const unsigned int x = value >> shift; in get_msb()
72 log += shift; in get_msb()
/hardware/libhardware/include/hardware/
Dsensors.h119 #define SENSOR_FLAG_MASK(nbit, shift) (((1<<(nbit))-1)<<(shift)) argument
120 #define SENSOR_FLAG_MASK_1(shift) SENSOR_FLAG_MASK(1, shift) argument
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/encoder/arm/armv6/
Dvp8_short_fdct4x4_armv6.asm34 qadd16 r6, r4, r5 ; [i1+i2 | i0+i3] = [b1 | a1] without shift
35 qsub16 r7, r4, r5 ; [i1-i2 | i0-i3] = [c1 | d1] without shift
59 qadd16 r6, r8, r9 ; [i5+i6 | i4+i7] = [b1 | a1] without shift
60 qsub16 r7, r8, r9 ; [i5-i6 | i4-i7] = [c1 | d1] without shift
84 qadd16 r6, r4, r5 ; [i9+i10 | i8+i11]=[b1 | a1] without shift
85 qsub16 r7, r4, r5 ; [i9-i10 | i8-i11]=[c1 | d1] without shift
109 qadd16 r6, r4, r5 ; [i13+i14 | i12+i15]=[b1|a1] without shift
110 qsub16 r7, r4, r5 ; [i13-i14 | i12-i15]=[c1|d1] without shift
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/common/x86/
Dloopfilter_mmx.asm492 psraw mm0, 11 ; sign extended shift right by 3
497 psraw mm1, 11 ; sign extended shift right by 3
1175 psraw mm0, 11 ; sign extended shift right by 3
1177 psraw mm7, 11 ; sign extended shift right by 3
1187 psraw mm0, 11 ; sign extended shift right by 3
1189 psraw mm7, 11 ; sign extended shift right by 3
1619 psllw mm0, 8 ; shift left 8
1620 psraw mm0, 3 ; arithmetic shift right 11
1624 psraw mm7, 11 ; arithmetic shift right 11
1625 psllw mm7, 8 ; shift left 8 to put it back
[all …]
/hardware/qcom/audio/visualizer/
Doffload_visualizer.c749 int32_t shift; in visualizer_process() local
754 shift = 32; in visualizer_process()
761 if (shift > clz) shift = clz; in visualizer_process()
765 shift = 25 - shift; in visualizer_process()
767 if (shift < 3) { in visualizer_process()
768 shift = 3; in visualizer_process()
772 shift++; in visualizer_process()
775 shift = 9; in visualizer_process()
789 smp = smp >> shift; in visualizer_process()
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/common/arm/neon/
Didct_dequant_full_2x_neon.asm73 ; so we can shift the constant without losing precision. this avoids
74 ; shift again afterward, but also avoids the sign issue. win win!
76 ; pre-shift it
193 ; because the lowest bit in 0x8a8c is 0, we can pre-shift this
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/encoder/arm/neon/
Dfastquantizeb_neon.asm40 ;right shift 15 to get sign, all 0 if it is positive, all 1 if it is negative
74 vshr.s16 q4, #1 ; right shift 1 after vqdmulh
173 ;right shift 15 to get sign, all 0 if it is positive, all 1 if it is negative
195 vshr.s16 q12, #1 ; right shift 1 after vqdmulh
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/test/
Dintrapred_test.cc99 int sum = 0, shift = BlockSizeLog2Min1() + mbptr_->up_available + in CheckDCPrediction() local
107 expected = (sum + (1 << (shift - 1))) >> shift; in CheckDCPrediction()

123