/hardware/google/gfxstream/guest/mesa/src/util/tests/ |
D | fast_idiv_by_const_test.cpp | 34 utrunc(uint64_t x, unsigned num_bits) in utrunc() argument 36 if (num_bits == 64) in utrunc() 39 return (x << (64 - num_bits)) >> (64 - num_bits); in utrunc() 43 strunc(int64_t x, unsigned num_bits) in strunc() argument 45 if (num_bits == 64) in strunc() 48 return (int64_t)((uint64_t)x << (64 - num_bits)) >> (64 - num_bits); in strunc() 52 uint_is_in_range(uint64_t x, unsigned num_bits) in uint_is_in_range() argument 54 if (num_bits == 64) in uint_is_in_range() 57 return x < (1ull << num_bits); in uint_is_in_range() 61 sint_is_in_range(int64_t x, unsigned num_bits) in sint_is_in_range() argument [all …]
|
/hardware/google/gfxstream/guest/mesa/src/util/ |
D | vl_vlc.h | 225 vl_vlc_peekbits(struct vl_vlc *vlc, unsigned num_bits) in vl_vlc_peekbits() argument 227 assert(vl_vlc_valid_bits(vlc) >= num_bits || vlc->data >= vlc->end); in vl_vlc_peekbits() 228 return vlc->buffer >> (64 - num_bits); in vl_vlc_peekbits() 235 vl_vlc_eatbits(struct vl_vlc *vlc, unsigned num_bits) in vl_vlc_eatbits() argument 237 assert(vl_vlc_valid_bits(vlc) >= num_bits); in vl_vlc_eatbits() 239 vlc->buffer <<= num_bits; in vl_vlc_eatbits() 240 vlc->invalid_bits += num_bits; in vl_vlc_eatbits() 247 vl_vlc_get_uimsbf(struct vl_vlc *vlc, unsigned num_bits) in vl_vlc_get_uimsbf() argument 251 assert(vl_vlc_valid_bits(vlc) >= num_bits); in vl_vlc_get_uimsbf() 253 value = vlc->buffer >> (64 - num_bits); in vl_vlc_get_uimsbf() [all …]
|
D | fast_idiv_by_const.c | 47 util_compute_fast_udiv_info(uint64_t D, unsigned num_bits, unsigned UINT_BITS) in util_compute_fast_udiv_info() argument 50 assert(num_bits > 0 && num_bits <= UINT_BITS); in util_compute_fast_udiv_info() 79 const unsigned extra_shift = UINT_BITS - num_bits; in util_compute_fast_udiv_info() 163 result = util_compute_fast_udiv_info(shifted_D, num_bits - pre_shift, in util_compute_fast_udiv_info()
|
D | vl_rbsp.h | 52 static inline void vl_rbsp_init(struct vl_rbsp *rbsp, struct vl_vlc *nal, unsigned num_bits) in vl_rbsp_init() argument 61 while (vl_vlc_search_byte(nal, num_bits, 0x00)) { in vl_rbsp_init()
|
D | fast_idiv_by_const.h | 127 util_compute_fast_udiv_info(uint64_t D, unsigned num_bits, unsigned UINT_BITS);
|
/hardware/qcom/media/msm8974/mm-video-v4l2/vidc/common/inc/ |
D | extra_data_handler.h | 70 OMX_U32 d_u(OMX_U32 num_bits); 75 OMX_U32 e_u(OMX_U32 symbol, OMX_U32 num_bits);
|
/hardware/qcom/media/msm8998/mm-video-v4l2/vidc/common/inc/ |
D | extra_data_handler.h | 69 OMX_U32 d_u(OMX_U32 num_bits); 74 OMX_U32 e_u(OMX_U32 symbol, OMX_U32 num_bits);
|
/hardware/qcom/media/msm8996/mm-video-v4l2/vidc/common/inc/ |
D | extra_data_handler.h | 69 OMX_U32 d_u(OMX_U32 num_bits); 74 OMX_U32 e_u(OMX_U32 symbol, OMX_U32 num_bits);
|
/hardware/qcom/media/msm8974/mm-video-legacy/vidc/common/inc/ |
D | extra_data_handler.h | 89 OMX_U32 d_u(OMX_U32 num_bits); 94 OMX_U32 e_u(OMX_U32 symbol, OMX_U32 num_bits);
|
/hardware/qcom/media/msm8974/mm-video-legacy/vidc/common/src/ |
D | extra_data_handler.cpp | 48 OMX_U32 extra_data_handler::d_u(OMX_U32 num_bits) in d_u() argument 50 OMX_U32 rem_bits = num_bits, bins = 0, shift = 0; in d_u() 77 DEBUG_PRINT_LOW("\nIn %s() bin/num_bits : %x/%d", __func__, bins, num_bits); in d_u() 321 OMX_U32 extra_data_handler::e_u(OMX_U32 symbol, OMX_U32 num_bits) in e_u() argument 323 OMX_U32 rem_bits = num_bits, shift; in e_u() 325 DEBUG_PRINT_LOW("\n%s bin : %x/%d", __func__, symbol, num_bits); in e_u()
|
/hardware/qcom/media/msm8998/mm-video-v4l2/vidc/common/src/ |
D | extra_data_handler.cpp | 54 OMX_U32 extra_data_handler::d_u(OMX_U32 num_bits) in d_u() argument 56 OMX_U32 rem_bits = num_bits, bins = 0, shift = 0; in d_u() 86 … DEBUG_PRINT_LOW("In %s() bin/num_bits : %x/%u", __func__, (unsigned)bins, (unsigned int)num_bits); in d_u() 389 OMX_U32 extra_data_handler::e_u(OMX_U32 symbol, OMX_U32 num_bits) in e_u() argument 391 OMX_U32 rem_bits = num_bits, shift; in e_u() 393 DEBUG_PRINT_LOW("%s bin : %x/%u", __func__, (unsigned)symbol, (unsigned int)num_bits); in e_u()
|
/hardware/qcom/media/msm8974/mm-video-v4l2/vidc/common/src/ |
D | extra_data_handler.cpp | 50 OMX_U32 extra_data_handler::d_u(OMX_U32 num_bits) in d_u() argument 52 OMX_U32 rem_bits = num_bits, bins = 0, shift = 0; in d_u() 82 … DEBUG_PRINT_LOW("In %s() bin/num_bits : %x/%u", __func__, (unsigned)bins, (unsigned int)num_bits); in d_u() 385 OMX_U32 extra_data_handler::e_u(OMX_U32 symbol, OMX_U32 num_bits) in e_u() argument 387 OMX_U32 rem_bits = num_bits, shift; in e_u() 389 DEBUG_PRINT_LOW("%s bin : %x/%u", __func__, (unsigned)symbol, (unsigned int)num_bits); in e_u()
|
/hardware/qcom/media/msm8996/mm-video-v4l2/vidc/common/src/ |
D | extra_data_handler.cpp | 50 OMX_U32 extra_data_handler::d_u(OMX_U32 num_bits) in d_u() argument 52 OMX_U32 rem_bits = num_bits, bins = 0, shift = 0; in d_u() 82 … DEBUG_PRINT_LOW("In %s() bin/num_bits : %x/%u", __func__, (unsigned)bins, (unsigned int)num_bits); in d_u() 385 OMX_U32 extra_data_handler::e_u(OMX_U32 symbol, OMX_U32 num_bits) in e_u() argument 387 OMX_U32 rem_bits = num_bits, shift; in e_u() 389 DEBUG_PRINT_LOW("%s bin : %x/%u", __func__, (unsigned)symbol, (unsigned int)num_bits); in e_u()
|
/hardware/google/gfxstream/third-party/astc-encoder/Source/ |
D | tinyexr.h | 2469 bit_buf |= (((tinfl_bit_buf_t)c) << num_bits); \ 2470 num_bits += 8; \ 2471 } while (num_bits < (mz_uint)(n)) 2474 if (num_bits < (mz_uint)(n)) { \ 2478 num_bits -= (n); \ 2483 if (num_bits < (mz_uint)(n)) { \ 2488 num_bits -= (n); \ 2506 if ((code_len) && (num_bits >= code_len)) break; \ 2507 } else if (num_bits > TINFL_FAST_LOOKUP_BITS) { \ 2511 } while ((temp < 0) && (num_bits >= (code_len + 1))); \ [all …]
|
D | stb_image.h | 4116 int num_bits; member 4140 if (z->code_buffer >= (1U << z->num_bits)) { in stbi__fill_bits() 4144 z->code_buffer |= (unsigned int) stbi__zget8(z) << z->num_bits; in stbi__fill_bits() 4145 z->num_bits += 8; in stbi__fill_bits() 4146 } while (z->num_bits <= 24); in stbi__fill_bits() 4152 if (z->num_bits < n) stbi__fill_bits(z); in stbi__zreceive() 4155 z->num_bits -= n; in stbi__zreceive() 4174 a->num_bits -= s; in stbi__zhuffman_decode_slowpath() 4181 if (a->num_bits < 16) { in stbi__zhuffman_decode() 4191 a->num_bits -= s; in stbi__zhuffman_decode() [all …]
|
/hardware/google/gfxstream/third-party/stb/include/stb/ |
D | stb_image.h | 4123 int num_bits; member 4147 if (z->code_buffer >= (1U << z->num_bits)) { in stbi__fill_bits() 4151 z->code_buffer |= (unsigned int) stbi__zget8(z) << z->num_bits; in stbi__fill_bits() 4152 z->num_bits += 8; in stbi__fill_bits() 4153 } while (z->num_bits <= 24); in stbi__fill_bits() 4159 if (z->num_bits < n) stbi__fill_bits(z); in stbi__zreceive() 4162 z->num_bits -= n; in stbi__zreceive() 4181 a->num_bits -= s; in stbi__zhuffman_decode_slowpath() 4188 if (a->num_bits < 16) { in stbi__zhuffman_decode() 4198 a->num_bits -= s; in stbi__zhuffman_decode() [all …]
|