/external/v4l2_codec2/vda/ |
D | bit_reader_core.cc | 44 int BitReaderCore::PeekBitsMsbAligned(int num_bits, uint64_t* out) { in PeekBitsMsbAligned() argument 46 if (nbits_ < num_bits) in PeekBitsMsbAligned() 47 Refill(num_bits); in PeekBitsMsbAligned() 53 bool BitReaderCore::SkipBitsSmall(int num_bits) { in SkipBitsSmall() argument 54 DCHECK_GE(num_bits, 0); in SkipBitsSmall() 56 while (num_bits >= kRegWidthInBits) { in SkipBitsSmall() 59 num_bits -= kRegWidthInBits; in SkipBitsSmall() 61 return ReadBitsInternal(num_bits, &dummy); in SkipBitsSmall() 64 bool BitReaderCore::SkipBits(int num_bits) { in SkipBits() argument 65 DCHECK_GE(num_bits, 0); in SkipBits() [all …]
|
D | bit_reader_core.h | 39 bool ReadBits(int num_bits, bool* out) { in ReadBits() argument 40 DCHECK_EQ(num_bits, 1); in ReadBits() 57 template<typename T> bool ReadBits(int num_bits, T* out) { in ReadBits() argument 58 DCHECK_LE(num_bits, static_cast<int>(sizeof(T) * 8)); in ReadBits() 60 bool ret = ReadBitsInternal(num_bits, &temp); in ReadBits() 77 int PeekBitsMsbAligned(int num_bits, uint64_t* out); 84 bool SkipBits(int num_bits); 93 bool SkipBitsSmall(int num_bits); 96 bool ReadBitsInternal(int num_bits, uint64_t* out);
|
D | bit_reader.h | 25 template<typename T> bool ReadBits(int num_bits, T* out) { in ReadBits() argument 26 return bit_reader_core_.ReadBits(num_bits, out); in ReadBits() 36 bool ReadString(int num_bits, std::string* str); 38 bool SkipBits(int num_bits) { in SkipBits() argument 39 return bit_reader_core_.SkipBits(num_bits); in SkipBits()
|
D | vp8_bool_decoder.cc | 151 bool Vp8BoolDecoder::ReadLiteral(size_t num_bits, int* out) { in ReadLiteral() argument 152 DCHECK_LE(num_bits, sizeof(int) * CHAR_BIT); in ReadLiteral() 154 for (; num_bits > 0; --num_bits) in ReadLiteral() 168 bool Vp8BoolDecoder::ReadLiteralWithSign(size_t num_bits, int* out) { in ReadLiteralWithSign() argument 169 ReadLiteral(num_bits, out); in ReadLiteralWithSign()
|
D | bit_reader.cc | 21 bool BitReader::ReadString(int num_bits, std::string* str) { in ReadString() argument 22 DCHECK_EQ(num_bits % 8, 0); in ReadString() 23 DCHECK_GT(num_bits, 0); in ReadString() 25 int num_bytes = num_bits / 8; in ReadString()
|
D | h264_bit_reader.cc | 68 bool H264BitReader::ReadBits(int num_bits, int* out) { in ReadBits() argument 69 int bits_left = num_bits; in ReadBits() 71 DCHECK(num_bits <= 31); in ReadBits() 83 *out &= ((1u << num_bits) - 1u); in ReadBits()
|
/external/valgrind/memcheck/tests/vbit-test/ |
D | vbits.c | 54 switch (v.num_bits) { in get_bits64() 71 switch (v.num_bits) { in print_vbits() 107 undefined_vbits(unsigned num_bits) in undefined_vbits() argument 109 vbits_t new = { .num_bits = num_bits }; in undefined_vbits() 111 switch (num_bits) { in undefined_vbits() 139 vbits_t new = { .num_bits = v.num_bits }; in undefined_vbits_BxE() 166 vbits_t new = { .num_bits = v.num_bits }; in undefined_vbits_BxE_rotate() 209 vbits_t new = { .num_bits = v.num_bits }; in undefined_vbits_128_even_element() 236 vbits_t new = { .num_bits = v.num_bits }; in undefined_vbits_64x2_transpose() 268 vbits_t new = { .num_bits = src1_v.num_bits }; in undefined_vbits_Narrow256_AtoB() [all …]
|
D | binary.c | 37 assert(v1.num_bits == v2.num_bits); in and_combine() 39 vbits_t new = { .num_bits = v2.num_bits }; in and_combine() 42 switch (v2.num_bits) { in and_combine() 52 switch (v2.num_bits) { in and_combine() 84 expected_vbits = defined_vbits(result->vbits.num_bits); in check_result_for_binary() 91 expected_vbits = undefined_vbits(result->vbits.num_bits); in check_result_for_binary() 97 result->vbits.num_bits); in check_result_for_binary() 101 assert(opnd1->vbits.num_bits == opnd2->vbits.num_bits); in check_result_for_binary() 102 assert(opnd1->vbits.num_bits == result->vbits.num_bits); in check_result_for_binary() 109 assert(opnd1->vbits.num_bits == opnd2->vbits.num_bits); in check_result_for_binary() [all …]
|
D | unary.c | 37 unsigned num_bits = result->vbits.num_bits; in check_result_for_unary() local 43 expected_vbits = undefined_vbits(num_bits); in check_result_for_unary() 51 expected_vbits = truncate_vbits(opnd->vbits, num_bits); in check_result_for_unary() 55 expected_vbits = left_vbits(opnd->vbits, num_bits); in check_result_for_unary() 59 assert(num_bits * 2 == opnd->vbits.num_bits); in check_result_for_unary() 64 expected_vbits = sextend_vbits(opnd->vbits, num_bits); in check_result_for_unary() 68 expected_vbits = zextend_vbits(opnd->vbits, num_bits); in check_result_for_unary() 72 assert(num_bits == 128); in check_result_for_unary() 77 assert(num_bits == 128); in check_result_for_unary() 82 assert(num_bits == 128); in check_result_for_unary() [all …]
|
D | vbits.h | 39 unsigned num_bits; member 65 vbits_t undefined_vbits(unsigned num_bits); 79 vbits_t defined_vbits(unsigned num_bits); 81 vbits_t truncate_vbits(vbits_t, unsigned num_bits); 82 vbits_t left_vbits(vbits_t, unsigned num_bits); 87 vbits_t sextend_vbits(vbits_t, unsigned num_bits); 88 vbits_t zextend_vbits(vbits_t, unsigned num_bits); 89 vbits_t onehot_vbits(unsigned bitno, unsigned num_bits);
|
/external/mesa3d/src/gallium/auxiliary/vl/ |
D | vl_vlc.h | 227 vl_vlc_peekbits(struct vl_vlc *vlc, unsigned num_bits) in vl_vlc_peekbits() argument 229 assert(vl_vlc_valid_bits(vlc) >= num_bits || vlc->data >= vlc->end); in vl_vlc_peekbits() 230 return vlc->buffer >> (64 - num_bits); in vl_vlc_peekbits() 237 vl_vlc_eatbits(struct vl_vlc *vlc, unsigned num_bits) in vl_vlc_eatbits() argument 239 assert(vl_vlc_valid_bits(vlc) >= num_bits); in vl_vlc_eatbits() 241 vlc->buffer <<= num_bits; in vl_vlc_eatbits() 242 vlc->invalid_bits += num_bits; in vl_vlc_eatbits() 249 vl_vlc_get_uimsbf(struct vl_vlc *vlc, unsigned num_bits) in vl_vlc_get_uimsbf() argument 253 assert(vl_vlc_valid_bits(vlc) >= num_bits); in vl_vlc_get_uimsbf() 255 value = vlc->buffer >> (64 - num_bits); in vl_vlc_get_uimsbf() [all …]
|
/external/freetype/src/lzw/ |
D | ftzopen.c | 39 state->num_bits ); /* WHY? */ in ft_lzwstate_refill() 43 state->in_eof = FT_BOOL( count < state->num_bits ); in ft_lzwstate_refill() 47 if ( state->buf_size > state->num_bits ) in ft_lzwstate_refill() 48 state->buf_size -= state->num_bits - 1; in ft_lzwstate_refill() 62 FT_UInt num_bits = state->num_bits; in ft_lzwstate_get_code() local 74 state->num_bits = ++num_bits; in ft_lzwstate_get_code() 75 if ( num_bits > LZW_MAX_BITS ) in ft_lzwstate_get_code() 78 state->free_bits = state->num_bits < state->max_bits in ft_lzwstate_get_code() 79 ? (FT_UInt)( ( 1UL << num_bits ) - 256 ) in ft_lzwstate_get_code() 85 state->num_bits = num_bits = LZW_INIT_BITS; in ft_lzwstate_get_code() [all …]
|
/external/tensorflow/tensorflow/compiler/tf2xla/kernels/ |
D | fake_quantize_ops.cc | 95 int num_bits; in FakeQuantWithMinMaxArgsOp() local 96 OP_REQUIRES_OK(ctx, ctx->GetAttr("num_bits", &num_bits)); in FakeQuantWithMinMaxArgsOp() 97 OP_REQUIRES(ctx, num_bits >= 2 && num_bits <= 16, in FakeQuantWithMinMaxArgsOp() 100 num_bits)); in FakeQuantWithMinMaxArgsOp() 104 quant_max_ = (1 << num_bits) - 1; in FakeQuantWithMinMaxArgsOp() 143 int num_bits; in FakeQuantWithMinMaxArgsGradOp() local 144 OP_REQUIRES_OK(ctx, ctx->GetAttr("num_bits", &num_bits)); in FakeQuantWithMinMaxArgsGradOp() 145 OP_REQUIRES(ctx, num_bits >= 2 && num_bits <= 16, in FakeQuantWithMinMaxArgsGradOp() 148 num_bits)); in FakeQuantWithMinMaxArgsGradOp() 152 const float quant_max = (1 << num_bits) - 1; in FakeQuantWithMinMaxArgsGradOp() [all …]
|
/external/valgrind/coregrind/m_debuginfo/ |
D | tinfl.c | 218 …E(state_index, c); bit_buf |= (((tinfl_bit_buf_t)c) << num_bits); num_bits += 8; } while (num_bits… 219 …IP_BITS(state_index, n) do { if (num_bits < (mz_uint)(n)) { TINFL_NEED_BITS(state_index, n); } bit… 220 …, b, n) do { if (num_bits < (mz_uint)(n)) { TINFL_NEED_BITS(state_index, n); } b = bit_buf & ((1 <… 231 if ((code_len) && (num_bits >= code_len)) \ 233 } else if (num_bits > TINFL_FAST_LOOKUP_BITS) { \ 237 } while ((temp < 0) && (num_bits >= (code_len + 1))); if (temp >= 0) break; \ 238 … } TINFL_GET_BYTE(state_index, c); bit_buf |= (((tinfl_bit_buf_t)c) << num_bits); num_bits += 8; \ 239 } while (num_bits < 15); 247 if (num_bits < 15) { \ 251 …_bit_buf_t)pIn_buf_cur[0]) << num_bits) | (((tinfl_bit_buf_t)pIn_buf_cur[1]) << (num_bits + 8)); p… [all …]
|
/external/tensorflow/tensorflow/core/kernels/ |
D | fake_quant_ops.cc | 48 bool IsNumBitsValid(int num_bits) { return num_bits >= 2 && num_bits <= 16; } in IsNumBitsValid() argument 66 int num_bits; in FakeQuantWithMinMaxArgsOp() local 67 OP_REQUIRES_OK(context, context->GetAttr("num_bits", &num_bits)); in FakeQuantWithMinMaxArgsOp() 69 context, IsNumBitsValid(num_bits), in FakeQuantWithMinMaxArgsOp() 74 quant_max_ = (1 << num_bits) - 1; in FakeQuantWithMinMaxArgsOp() 106 int num_bits; in FakeQuantWithMinMaxArgsGradientOp() local 107 OP_REQUIRES_OK(context, context->GetAttr("num_bits", &num_bits)); in FakeQuantWithMinMaxArgsGradientOp() 109 context, IsNumBitsValid(num_bits), in FakeQuantWithMinMaxArgsGradientOp() 114 quant_max_ = (1 << num_bits) - 1; in FakeQuantWithMinMaxArgsGradientOp() 178 int num_bits; in FakeQuantWithMinMaxVarsOp() local [all …]
|
D | quantize_and_dequantize_op.h | 29 bool signed_input, int num_bits, bool range_given, 38 bool signed_input, int num_bits, bool range_given, in Compute() 68 T scale = static_cast<T>((uint64_t{1} << (num_bits - 1)) - 1) / max_range; in Compute() 90 T scale = static_cast<T>((uint64_t{1} << num_bits) - 1) / max_range; in Compute()
|
/external/tensorflow/tensorflow/contrib/quantize/python/ |
D | quant_ops.py | 59 num_bits=8, argument 116 num_bits=num_bits, 156 num_bits=num_bits, 171 num_bits=8, argument 229 num_bits=num_bits, 270 num_bits=num_bits, 274 def _FakeQuantWithMinMaxVars(inputs, min_var, max_var, per_channel, num_bits, argument 298 inputs, min_var, max_var, num_bits=num_bits, narrow_range=narrow_range) 303 inputs, min_var, max_var, num_bits=num_bits, narrow_range=narrow_range)
|
/external/webp/src/utils/ |
D | random_utils.h | 39 static WEBP_INLINE int VP8RandomBits2(VP8Random* const rg, int num_bits, in VP8RandomBits2() argument 42 assert(num_bits + VP8_RANDOM_DITHER_FIX <= 31); in VP8RandomBits2() 49 diff = (int)((uint32_t)diff << 1) >> (32 - num_bits); in VP8RandomBits2() 51 diff += 1 << (num_bits - 1); // shift back to 0.5-center in VP8RandomBits2() 55 static WEBP_INLINE int VP8RandomBits(VP8Random* const rg, int num_bits) { in VP8RandomBits() argument 56 return VP8RandomBits2(rg, num_bits, rg->amp_); in VP8RandomBits()
|
/external/tensorflow/tensorflow/core/graph/ |
D | quantize_training_test.cc | 105 const int num_bits = 8; in TEST_F() local 106 TF_ASSERT_OK(DoQuantizeTraining(num_bits, "QuantizeAndDequantizeV2", g)); in TEST_F() 156 const int num_bits = 8; in TEST_F() local 157 TF_ASSERT_OK(DoQuantizeTraining(num_bits, "QuantizeAndDequantizeV2", g)); in TEST_F() 209 int num_bits = 8; in TEST_F() local 210 TF_ASSERT_OK(DoQuantizeTraining(num_bits, "QuantizeAndDequantizeV2", g)); in TEST_F() 263 int num_bits = 8; in TEST_F() local 264 TF_ASSERT_OK(DoQuantizeTraining(num_bits, "FakeQuantWithMinMaxVars", g)); in TEST_F() 298 int num_bits = 8; in TEST_F() local 308 input_string, num_bits, "QuantizeAndDequantizeV2", &result_string)); in TEST_F() [all …]
|
D | quantize_training.h | 38 Status DoQuantizeTraining(int32 num_bits, const string& quant_op_type, 44 int32 num_bits, 51 int32 num_bits, const string& quant_op_type,
|
D | quantize_training.cc | 51 int32 num_bits; member 60 num_bits(bits), in EdgeToConvert() 545 .Attr("num_bits", edge.num_bits) in MakeQuantizeOp() 553 .Attr("num_bits", edge.num_bits) in MakeQuantizeOp() 592 Status DoQuantizeTraining(int32 num_bits, const string& quant_op_type, in DoQuantizeTraining() argument 598 if (num_bits < 1 || num_bits > 63) { in DoQuantizeTraining() 600 num_bits); in DoQuantizeTraining() 646 edge, num_bits, signed_input, range_given, input_min, input_max)); in DoQuantizeTraining() 658 int32 num_bits, const string& quant_op_type, in DoQuantizeTrainingOnGraphDef() argument 665 TF_RETURN_IF_ERROR(DoQuantizeTraining(num_bits, quant_op_type, &graph)); in DoQuantizeTrainingOnGraphDef() [all …]
|
/external/tensorflow/tensorflow/python/training/ |
D | quantize_training.i | 24 int num_bits, in DoQuantizeTrainingOnGraphDefHelper() argument 29 tensorflow::DoQuantizeTrainingOnSerializedGraphDef(input_graph, num_bits, in DoQuantizeTrainingOnGraphDefHelper() 53 int num_bits, 58 def do_quantize_training_on_graphdef(input_graph, num_bits): 64 input_graph.SerializeToString(), num_bits, status)
|
/external/tensorflow/tensorflow/contrib/lite/kernels/ |
D | lsh_projection.cc | 146 int num_bits = SizeOfDimension(hash, 1); in SparseLshProjection() local 149 for (int j = 0; j < num_bits; j++) { in SparseLshProjection() 150 float seed = hash->data.f[i * num_bits + j]; in SparseLshProjection() 154 *out_buf++ = hash_signature + i * (1 << num_bits); in SparseLshProjection() 161 int num_bits = SizeOfDimension(hash, 1); in DenseLshProjection() local 163 for (int j = 0; j < num_bits; j++) { in DenseLshProjection() 164 float seed = hash->data.f[i * num_bits + j]; in DenseLshProjection()
|
/external/tensorflow/tensorflow/compiler/tests/ |
D | fake_quant_ops_test.py | 82 def _TestOp(self, input_min, input_max, num_bits, narrow_range, argument 118 num_bits=num_bits, 180 def _TestOp(self, input_min, input_max, num_bits, narrow_range, argument 212 num_bits=num_bits, 281 def _TestOp(self, input_min, input_max, num_bits, narrow_range, argument 319 num_bits=num_bits, 386 def _TestOp(self, input_min, input_max, num_bits, narrow_range, argument 422 num_bits=num_bits,
|
/external/tensorflow/tensorflow/core/api_def/base_api/ |
D | api_def_QuantizeAndDequantizeV2.pbtxt | 30 name: "num_bits" 66 [-(1 << (num_bits - 1) - 1), (1 << (num_bits - 1)) - 1]. 70 [min_fixed, max_fixed] = [0, (1 << num_bits) - 1]. 82 cases. For example, if num_bits == 8, we get 254 buckets in the signed case 85 For example, suppose num_bits = 8 and m = 1. Then
|