Home
last modified time | relevance | path

Searched refs:kTableSize (Results 1 – 16 of 16) sorted by relevance

/external/dng_sdk/source/
Ddng_1d_table.cpp50 bool subDivide = (range > (kTableSize >> 8)); in SubDivide()
72 fTable [middle] = (real32) function.Evaluate (middle * (1.0 / (real64) kTableSize)); in SubDivide()
113 fBuffer.Reset (allocator.Allocate ((kTableSize + 2) * sizeof (real32))); in Initialize()
121 fTable [kTableSize] = (real32) function.Evaluate (1.0); in Initialize()
123 real32 maxDelta = Max_real32 (Abs_real32 (fTable [kTableSize] - in Initialize()
129 kTableSize, in Initialize()
137 for (uint32 j = 0; j <= kTableSize; j++) in Initialize()
140 real64 x = j * (1.0 / (real64) kTableSize); in Initialize()
150 fTable [kTableSize + 1] = fTable [kTableSize]; in Initialize()
159 real64 step = (real64) kTableSize / 65535.0; in Expand16()
Ddng_1d_table.h44 kTableSize = (1 << kTableBits) //< Number of entries in table. enumerator
76 real32 y = x * (real32) kTableSize; in Interpolate()
80 if (index < 0 || index > kTableSize) in Interpolate()
87 DNG_ASSERT (index >= 0 && index <= kTableSize, in Interpolate()
Ddng_render.cpp400 const uint32 kTableSize = sizeof (kTable ) / in Evaluate() local
403 real32 y = (real32) x * (real32) (kTableSize - 1); in Evaluate()
405 int32 index = Pin_int32 (0, (int32) y, kTableSize - 2); in Evaluate()
680 const uint32 kTableSize = sizeof (kTable ) / in EvaluateInverse() local
683 real32 y = (real32) x * (real32) (kTableSize - 1); in EvaluateInverse()
685 int32 index = Pin_int32 (0, (int32) y, kTableSize - 2); in EvaluateInverse()
Ddng_read_image.cpp392 kTableSize = 4096 enumerator
461 fBuffer.Allocate (kTableSize * sizeof (LZWExpanderNode)); in dng_lzw_expander()
496 DNG_ASSERT ((w >= 0) && (w <= kTableSize), in AddTable()
505 DNG_ASSERT ((nextCode >= 0) && (nextCode <= kTableSize), in AddTable()
717 if (localCode < 0 || localCode > kTableSize) in Expand()
771 if (code > kTableSize) in Expand()
790 if (fNextCode < kTableSize) in Expand()
Ddng_image_writer.cpp3257 kTableSize = 4096 enumerator
3302 DNG_ASSERT ((w >= 0) && (w <= kTableSize), in SearchTable()
3348 fBuffer.Allocate (kTableSize, sizeof (LZWCompressorNode)); in dng_lzw_compressor()
3384 DNG_ASSERT ((w >= 0) && (w <= kTableSize), in AddTable()
3391 DNG_ASSERT ((nextCode >= 0) && (nextCode <= kTableSize), in AddTable()
/external/webrtc/common_audio/vad/
Dvad_core.h22 enum { kTableSize = kNumChannels * kNumGaussians }; enumerator
29 int16_t noise_means[kTableSize];
30 int16_t speech_means[kTableSize];
31 int16_t noise_stds[kTableSize];
32 int16_t speech_stds[kTableSize];
Dvad_core.c37 static const int16_t kNoiseDataWeights[kTableSize] = {
40 static const int16_t kSpeechDataWeights[kTableSize] = {
43 static const int16_t kNoiseDataMeans[kTableSize] = {
46 static const int16_t kSpeechDataMeans[kTableSize] = {
50 static const int16_t kNoiseDataStds[kTableSize] = {
53 static const int16_t kSpeechDataStds[kTableSize] = {
147 int16_t deltaN[kTableSize], deltaS[kTableSize]; in GmmProbability()
148 int16_t ngprvec[kTableSize] = { 0 }; // Conditional probability = 0. in GmmProbability()
149 int16_t sgprvec[kTableSize] = { 0 }; // Conditional probability = 0. in GmmProbability()
512 for (i = 0; i < kTableSize; i++) { in WebRtcVad_InitCore()
/external/grpc-grpc/test/core/slice/
Dslice_weak_hash_table_test.cc72 constexpr int kTableSize = 10; in TEST() local
73 auto table = SliceWeakHashTable<UniquePtr<char>, kTableSize>::Create(); in TEST()
75 for (int i = 0; i < kTableSize * 2; ++i) { in TEST()
85 for (int i = 0; i < kTableSize * 2; ++i) { in TEST()
93 ASSERT_GE(num_missing, kTableSize); in TEST()
/external/llvm-project/compiler-rt/lib/tsan/rtl/
Dtsan_defs.h50 static const uptr kTableSize = kSize / sizeof(u32); member
52 static const uptr kRefIdx = kTableSize - 1;
53 static const uptr kBlockIdx = kTableSize - 2;
56 u32 table[kTableSize];
Dtsan_fd.cpp21 const int kTableSize = kTableSizeL1 * kTableSizeL2; variable
46 return fd < 0 || fd >= kTableSize; in bogusfd()
75 CHECK_LT(fd, kTableSize); in fddesc()
/external/tensorflow/tensorflow/core/kernels/image/
Dresize_bicubic_op_test.cc61 static constexpr int64 kTableSize = (1 << 10); member in tensorflow::ResizeBicubicOpTest
67 float* coeffs_tab = new float[(kTableSize + 1) * 2]; in InitCoeffsTable()
69 for (int i = 0; i <= kTableSize; ++i) { in InitCoeffsTable()
70 float x = i * 1.0 / kTableSize; in InitCoeffsTable()
95 const int64 offset = lrintf(delta * kTableSize); in GetWeightsAndIndices()
98 coeffs_tab[(kTableSize - offset) * 2], in GetWeightsAndIndices()
99 coeffs_tab[(kTableSize - offset) * 2 + 1]}}; in GetWeightsAndIndices()
Dresize_bicubic_op.cc37 static const int64 kTableSize = (1 << 10); variable
43 float* coeffs_table = new float[(kTableSize + 1) * 2]; in InitCoeffsTable()
44 for (int i = 0; i <= kTableSize; ++i) { in InitCoeffsTable()
45 float x = i * 1.0 / kTableSize; in InitCoeffsTable()
93 const int64 offset = lrintf(delta * kTableSize); in GetWeightsAndIndices()
109 (out->index_2 == in_loc + 1 ? coeffs_table[(kTableSize - offset) * 2] in GetWeightsAndIndices()
113 ? coeffs_table[(kTableSize - offset) * 2 + 1] in GetWeightsAndIndices()
128 out->weight_2 = coeffs_table[(kTableSize - offset) * 2]; in GetWeightsAndIndices()
129 out->weight_3 = coeffs_table[(kTableSize - offset) * 2 + 1]; in GetWeightsAndIndices()
/external/tensorflow/tensorflow/core/util/
Dpresized_cuckoo_map_test.cc63 static constexpr int kTableSize = 1000; in TEST() local
64 PresizedCuckooMap<int> pscm(kTableSize); in TEST()
65 for (uint64 i = 0; i < kTableSize; i++) { in TEST()
73 for (uint64 i = kTableSize; i < (2 * kTableSize); i++) { in TEST()
/external/compiler-rt/lib/tsan/rtl/
Dtsan_clock.h28 static const uptr kTableSize = kSize / sizeof(u32); member
32 u32 table[kTableSize];
Dtsan_fd.cc22 const int kTableSize = kTableSizeL1 * kTableSizeL2; variable
47 return fd < 0 || fd >= kTableSize; in bogusfd()
76 CHECK_LT(fd, kTableSize); in fddesc()
/external/webp/src/dec/
Dvp8l_dec.c89 static const uint16_t kTableSize[12] = { variable
371 const int table_size = kTableSize[color_cache_bits]; in ReadHuffmanCodes()