/external/libgav1/libgav1/src/utils/ |
D | entropy_decoder.cc | 55 // decreasing as the values of index increases (note that the |cdf| array is 57 uint32_t ScaleCdf(uint32_t values_in_range_shifted, const uint16_t* const cdf, in ScaleCdf() argument 59 return ((values_in_range_shifted * (cdf[index] >> kCdfPrecision)) >> 1) + in ScaleCdf() 63 void UpdateCdf(uint16_t* const cdf, const int symbol_count, const int symbol) { in UpdateCdf() argument 64 const uint16_t count = cdf[symbol_count]; in UpdateCdf() 66 // 3 + ( cdf[N] > 15 ) + ( cdf[N] > 31 ) + Min(FloorLog2(N), 2) in UpdateCdf() 67 // In this case cdf[N] is |count|. in UpdateCdf() 97 // cdf[i] += static_cast<int16_t>(a - cdf[i]) >> rate; in UpdateCdf() 100 // The subtraction (a - cdf[i]) relies on the overflow semantics of unsigned in UpdateCdf() 109 cdf[i] += (kCdfMaxProbability - cdf[i]) >> rate; in UpdateCdf() [all …]
|
D | entropy_decoder.h | 45 int ReadSymbol(uint16_t* cdf, int symbol_count); 48 bool ReadSymbol(uint16_t* cdf); 49 bool ReadSymbolWithoutCdfUpdate(uint16_t cdf); 54 int ReadSymbol(uint16_t* cdf); 60 // Reads a symbol using the |cdf| table which contains the probabilities of 62 // 1) Scale the |cdf| values. 63 // 2) Find the index in the |cdf| array where the scaled CDF value crosses 68 inline int ReadSymbolImpl(const uint16_t* cdf, int symbol_count); 72 inline int ReadSymbolImplBinarySearch(const uint16_t* cdf, int symbol_count); 75 inline int ReadSymbolImpl(uint16_t cdf); [all …]
|
/external/libaom/libaom/tools/ |
D | gen_constrained_tokenset.py | 15 from a Pareto distribution. The cdf of the distribution is: 16 cdf(x) = 0.5 + 0.5 * sgn(x) * [1 - {alpha/(alpha + |x|)} ^ beta] 37 cdf = cdf_spareto 40 return ((cdf(1.5, x, beta) - cdf(0.5, x, beta)) / 41 (1 - cdf(0.5, x, beta)) - p)**2 45 parray[0] = 2 * (cdf(0.5, alpha, beta) - 0.5) 46 parray[1] = (2 * (cdf(1.5, alpha, beta) - cdf(0.5, alpha, beta))) 47 parray[2] = (2 * (cdf(2.5, alpha, beta) - cdf(1.5, alpha, beta))) 48 parray[3] = (2 * (cdf(3.5, alpha, beta) - cdf(2.5, alpha, beta))) 49 parray[4] = (2 * (cdf(4.5, alpha, beta) - cdf(3.5, alpha, beta))) [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
D | CompactDecimalFormatTest.java | 350 // CompactDecimalFormat cdf = new CompactDecimalFormat( 362 // checkCdf("special cdf ", cdf, testItems); 370 CompactDecimalFormat cdf = in TestDefaultSignificantDigits() local 372 assertEquals("Default significant digits", "123K", cdf.format(123456)); in TestDefaultSignificantDigits() 373 assertEquals("Default significant digits", "12K", cdf.format(12345)); in TestDefaultSignificantDigits() 374 assertEquals("Default significant digits", "1.2K", cdf.format(1234)); in TestDefaultSignificantDigits() 375 assertEquals("Default significant digits", "123", cdf.format(123)); in TestDefaultSignificantDigits() 380 CompactDecimalFormat cdf = in TestCharacterIterator() local 382 AttributedCharacterIterator iter = cdf.formatToCharacterIterator(1234567); in TestCharacterIterator() 384 iter = cdf.formatToCharacterIterator(1234567); in TestCharacterIterator() [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
D | CompactDecimalFormatTest.java | 347 // CompactDecimalFormat cdf = new CompactDecimalFormat( 359 // checkCdf("special cdf ", cdf, testItems); 367 CompactDecimalFormat cdf = in TestDefaultSignificantDigits() local 369 assertEquals("Default significant digits", "123K", cdf.format(123456)); in TestDefaultSignificantDigits() 370 assertEquals("Default significant digits", "12K", cdf.format(12345)); in TestDefaultSignificantDigits() 371 assertEquals("Default significant digits", "1.2K", cdf.format(1234)); in TestDefaultSignificantDigits() 372 assertEquals("Default significant digits", "123", cdf.format(123)); in TestDefaultSignificantDigits() 377 CompactDecimalFormat cdf = in TestCharacterIterator() local 379 AttributedCharacterIterator iter = cdf.formatToCharacterIterator(1234567); in TestCharacterIterator() 381 iter = cdf.formatToCharacterIterator(1234567); in TestCharacterIterator() [all …]
|
/external/libgav1/libgav1/src/tile/bitstream/ |
D | partition.cc | 31 // The spec computes the cdf value using the following formula (not writing in PartitionCdfGatherHorizontalAlike() 33 // cdf = None - H + V - S + S - HTS + HTS - HBS + HBS - VLS; in PartitionCdfGatherHorizontalAlike() 35 // cdf += VRS - H4; in PartitionCdfGatherHorizontalAlike() 38 // cdf = None - H + V - VLS; in PartitionCdfGatherHorizontalAlike() 40 // cdf += VRS - H4; in PartitionCdfGatherHorizontalAlike() 42 uint16_t cdf = partition_cdf[kPartitionNone] - in PartitionCdfGatherHorizontalAlike() local 47 cdf += partition_cdf[kPartitionVerticalWithRightSplit] - in PartitionCdfGatherHorizontalAlike() 50 return cdf; in PartitionCdfGatherHorizontalAlike() 55 // The spec computes the cdf value using the following formula (not writing in PartitionCdfGatherVerticalAlike() 57 // cdf = H - V + V - S + HBS - VLS + VLS - VRS + S - HTS; in PartitionCdfGatherVerticalAlike() [all …]
|
/external/webrtc/modules/audio_coding/codecs/isac/fix/source/ |
D | arith_routines_hist.c | 29 * - cdf : array of cdf arrays 37 const uint16_t *const *cdf, in WebRtcIsacfix_EncHistMulti() argument 62 /* fetch cdf_lower and cdf_upper from cdf tables */ in WebRtcIsacfix_EncHistMulti() 63 cdfLo = (uint32_t) *(*cdf + (uint32_t)*data); in WebRtcIsacfix_EncHistMulti() 64 cdfHi = (uint32_t) *(*cdf++ + (uint32_t)*data++ + 1); in WebRtcIsacfix_EncHistMulti() 132 * method of bisection cdf tables should be of size 2^k-1 (which corresponds 137 * - cdf : array of cdf arrays 138 * - cdfSize : array of cdf table sizes+1 (power of two: 2^k) 149 const uint16_t *const *cdf, in WebRtcIsacfix_DecHistBisectMulti() argument 189 /* start halfway the cdf range */ in WebRtcIsacfix_DecHistBisectMulti() [all …]
|
D | spectrum_ar_model_tables.h | 27 /* cdf for quantized reflection coefficient 1 */ 30 /* cdf for quantized reflection coefficient 2 */ 33 /* cdf for quantized reflection coefficient 3 */ 36 /* cdf for quantized reflection coefficient 4 */ 39 /* cdf for quantized reflection coefficient 5 */ 42 /* cdf for quantized reflection coefficient 6 */ 66 /* initial indices for AR reflection coefficient quantizer and cdf table search 70 /* pointers to AR cdf tables */ 77 /* cdf for Gain coefficient */ 86 /* pointer to Gain cdf table */ [all …]
|
D | arith_routins.h | 86 * - cdf : array of cdf arrays 94 const uint16_t* const* cdf, 107 * - cdf : array of cdf arrays 108 * - cdfSize : array of cdf table sizes+1 (power of two: 2^k) 119 const uint16_t* const* cdf, 128 * cdf tables can be of arbitrary size, but large tables may take a lot of 133 * - cdf : array of cdf arrays 134 * - initIndex : vector of initial cdf table search entries 145 const uint16_t* const* cdf,
|
D | lpc_tables.h | 28 /* cdf array for model indicator */ 31 /* pointer to cdf array for model indicator */ 34 /* initial cdf index for decoder of model indicator */ 52 /* initial cdf index for KLT coefficients */ 67 /* cdf tables for quantizer indices */ 72 /* pointers to cdf tables for quantizer indices */
|
D | spectrum_ar_model_tables.c | 24 /* cdf for quantized reflection coefficient 1 */ 30 /* cdf for quantized reflection coefficient 2 */ 36 /* cdf for quantized reflection coefficient 3 */ 42 /* cdf for quantized reflection coefficient 4 */ 48 /* cdf for quantized reflection coefficient 5 */ 54 /* cdf for quantized reflection coefficient 6 */ 96 /* initial index for AR reflection coefficient quantizer and cdf table search */ 101 /* pointers to AR cdf tables */ 124 /* cdf for Gain coefficient */ 142 /* pointers to Gain cdf table */ [all …]
|
/external/webrtc/modules/audio_coding/codecs/isac/main/source/ |
D | arith_routines_hist.c | 20 const uint16_t *const *cdf, /* input: array of cdf arrays */ in WebRtcIsac_EncHistMulti() argument 37 /* fetch cdf_lower and cdf_upper from cdf tables */ in WebRtcIsac_EncHistMulti() 38 cdf_lo = (uint32_t) *(*cdf + *data); in WebRtcIsac_EncHistMulti() 39 cdf_hi = (uint32_t) *(*cdf++ + *data++ + 1); in WebRtcIsac_EncHistMulti() 83 * cdf tables should be of size 2^k-1 (which corresponds to an alphabet size of 2^k-2) 87 const uint16_t *const *cdf, /* input: array of cdf arrays */ in WebRtcIsac_DecHistBisectMulti() argument 88 … const uint16_t *cdf_size, /* input: array of cdf table sizes+1 (power of two: 2^k) */ in WebRtcIsac_DecHistBisectMulti() 124 /* start halfway the cdf range */ in WebRtcIsac_DecHistBisectMulti() 126 cdf_ptr = *cdf + (size_tmp - 1); in WebRtcIsac_DecHistBisectMulti() 147 *data++ = (int)(cdf_ptr - *cdf++); in WebRtcIsac_DecHistBisectMulti() [all …]
|
D | spectrum_ar_model_tables.h | 27 /* cdf for quantized reflection coefficient 1 */ 30 /* cdf for quantized reflection coefficient 2 */ 33 /* cdf for quantized reflection coefficient 3 */ 36 /* cdf for quantized reflection coefficient 4 */ 39 /* cdf for quantized reflection coefficient 5 */ 42 /* cdf for quantized reflection coefficient 6 */ 48 /* initial indices for AR reflection coefficient quantizer and cdf table search 52 /* pointers to AR cdf tables */ 59 /* cdf for Gain coefficient */ 68 /* pointer to Gain cdf table */ [all …]
|
D | arith_routines.h | 48 const uint16_t* const* cdf, /* input: array of cdf arrays */ 54 const uint16_t* const* cdf, /* input: array of cdf arrays */ 56 cdf_size, /* input: array of cdf table sizes+1 (power of two: 2^k) */ 62 const uint16_t* const* cdf, /* input: array of cdf arrays */ 64 init_index, /* input: vector of initial cdf table search entries */
|
D | lpc_tables.h | 40 /* cdf array for model indicator */ 43 /* pointer to cdf array for model indicator */ 46 /* initial cdf index for decoder of model indicator */ 64 /* initial cdf index for KLT coefficients */ 74 /* cdf tables for quantizer indices */ 79 /* pointers to cdf tables for quantizer indices */
|
D | spectrum_ar_model_tables.c | 15 /* cdf for quantized reflection coefficient 1 */ 20 /* cdf for quantized reflection coefficient 2 */ 25 /* cdf for quantized reflection coefficient 3 */ 30 /* cdf for quantized reflection coefficient 4 */ 35 /* cdf for quantized reflection coefficient 5 */ 40 /* cdf for quantized reflection coefficient 6 */ 81 /* initial index for AR reflection coefficient quantizer and cdf table search */ 85 /* pointers to AR cdf tables */ 99 /* cdf for Gain coefficient */ 112 /* pointers to Gain cdf table */ [all …]
|
/external/libaom/libaom/aom_dsp/ |
D | bitreader.h | 44 #define aom_read_cdf(r, cdf, nsymbs, ACCT_STR_NAME) \ argument 45 aom_read_cdf_(r, cdf, nsymbs ACCT_STR_ARG(ACCT_STR_NAME)) 46 #define aom_read_symbol(r, cdf, nsymbs, ACCT_STR_NAME) \ argument 47 aom_read_symbol_(r, cdf, nsymbs ACCT_STR_ARG(ACCT_STR_NAME)) 122 "\n *** [bit] cdf error, frame_idx_r %d cdf {%d, %d} ref_cdf {%d", in aom_read_() 164 static INLINE int aom_read_cdf_(aom_reader *r, const aom_cdf_prob *cdf, in aom_read_cdf_() argument 167 assert(cdf != NULL); in aom_read_cdf_() 168 symb = od_ec_decode_cdf_q15(&r->ec, cdf, nsymbs); in aom_read_cdf_() 188 if (cdf[i] != ref_cdf[i]) cdf_error = 1; in aom_read_cdf_() 191 fprintf(stderr, "\n *** cdf error, frame_idx_r %d cdf {%d", frame_idx, in aom_read_cdf_() [all …]
|
D | bitwriter.h | 66 aom_cdf_prob cdf[2] = { (aom_cdf_prob)p, 32767 }; in aom_write() local 75 bitstream_queue_push(bit, cdf, 2); in aom_write() 92 const aom_cdf_prob *cdf, int nsymbs) { in aom_write_cdf() argument 102 bitstream_queue_push(symb, cdf, nsymbs); in aom_write_cdf() 105 od_ec_encode_cdf_q15(&w->ec, symb, cdf, nsymbs); in aom_write_cdf() 108 static INLINE void aom_write_symbol(aom_writer *w, int symb, aom_cdf_prob *cdf, in aom_write_symbol() argument 110 aom_write_cdf(w, symb, cdf, nsymbs); in aom_write_symbol() 111 if (w->allow_update_cdf) update_cdf(cdf, symb, nsymbs); in aom_write_symbol()
|
/external/icu/icu4c/source/test/intltest/ |
D | compactdecimalformattest.cpp | 255 const CompactDecimalFormat* cdf, const ExpectedResult* expectedResult, 329 LocalPointer<CompactDecimalFormat> cdf(createCDFInstance("sw", UNUM_SHORT, status)); in TestFieldPosition() local 336 cdf->format(1234567.0, result, fp); in TestFieldPosition() 366 …LocalPointer<CompactDecimalFormat> cdf(CompactDecimalFormat::createInstance("en", UNUM_SHORT, stat… in TestDefaultSignificantDigits() local 374 assertEquals("Default significant digits", u"123K", cdf->format(123456, actual.remove())); in TestDefaultSignificantDigits() 375 assertEquals("Default significant digits", u"12K", cdf->format(12345, actual.remove())); in TestDefaultSignificantDigits() 376 assertEquals("Default significant digits", u"1.2K", cdf->format(1234, actual.remove())); in TestDefaultSignificantDigits() 377 assertEquals("Default significant digits", u"123", cdf->format(123, actual.remove())); in TestDefaultSignificantDigits() 382 …LocalPointer<CompactDecimalFormat> cdf(CompactDecimalFormat::createInstance("en", UNUM_SHORT, stat… in TestAPIVariants() local 396 cdf->format((double)123456.0, actual, pos); in TestAPIVariants() [all …]
|
/external/zstd/tests/gzip/ |
D | mixed.sh | 2 # Ensure that gzip -cdf handles mixed compressed/not-compressed data 29 gzip -cdf < in > out || fail=1 35 # gzip -cdf < in > out || fail=1 40 gzip -cdf < in > out || fail=1 44 gzip -cdf < in > out || fail=1 59 # Ensure that "gzip -cdf" acts like cat, for a range of small input files. 64 gzip -cdf < in > out
|
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/random/ |
D | poisson_distribution_test.cc | 173 // InitCDF() initializes the CDF for the distribution parameters. 177 struct CDF { struct in __anon63d2d87f0111::PoissonModel 180 double cdf; member 182 CDF InverseCDF(double p) { in InverseCDF() 183 CDF target{0, 0, p}; in InverseCDF() 186 [](const CDF& a, const CDF& b) { return a.cdf < b.cdf; }); in InverseCDF() 191 ABSL_INTERNAL_LOG(INFO, absl::StrCat("CDF (mean = ", mean_, ")")); in LogCDF() 194 absl::StrCat(c.index, ": pmf=", c.pmf, " cdf=", c.cdf)); in LogCDF() 201 std::vector<CDF> cdf_; 206 // range buckets. However there is no closed form solution for the inverse cdf [all …]
|
/external/webrtc/third_party/abseil-cpp/absl/random/ |
D | poisson_distribution_test.cc | 172 // InitCDF() initializes the CDF for the distribution parameters. 176 struct CDF { struct in __anon3c7c18ed0111::PoissonModel 179 double cdf; member 181 CDF InverseCDF(double p) { in InverseCDF() 182 CDF target{0, 0, p}; in InverseCDF() 185 [](const CDF& a, const CDF& b) { return a.cdf < b.cdf; }); in InverseCDF() 190 ABSL_INTERNAL_LOG(INFO, absl::StrCat("CDF (mean = ", mean_, ")")); in LogCDF() 193 absl::StrCat(c.index, ": pmf=", c.pmf, " cdf=", c.cdf)); in LogCDF() 200 std::vector<CDF> cdf_; 205 // range buckets. However there is no closed form solution for the inverse cdf [all …]
|
/external/abseil-cpp/absl/random/ |
D | poisson_distribution_test.cc | 172 // InitCDF() initializes the CDF for the distribution parameters. 176 struct CDF { struct in __anon4ecd091e0111::PoissonModel 179 double cdf; member 181 CDF InverseCDF(double p) { in InverseCDF() 182 CDF target{0, 0, p}; in InverseCDF() 185 [](const CDF& a, const CDF& b) { return a.cdf < b.cdf; }); in InverseCDF() 190 ABSL_INTERNAL_LOG(INFO, absl::StrCat("CDF (mean = ", mean_, ")")); in LogCDF() 193 absl::StrCat(c.index, ": pmf=", c.pmf, " cdf=", c.cdf)); in LogCDF() 200 std::vector<CDF> cdf_; 205 // range buckets. However there is no closed form solution for the inverse cdf [all …]
|
/external/libtextclassifier/abseil-cpp/absl/random/ |
D | poisson_distribution_test.cc | 173 // InitCDF() initializes the CDF for the distribution parameters. 177 struct CDF { struct in __anon102acb2e0111::PoissonModel 180 double cdf; member 182 CDF InverseCDF(double p) { in InverseCDF() 183 CDF target{0, 0, p}; in InverseCDF() 186 [](const CDF& a, const CDF& b) { return a.cdf < b.cdf; }); in InverseCDF() 191 ABSL_INTERNAL_LOG(INFO, absl::StrCat("CDF (mean = ", mean_, ")")); in LogCDF() 194 absl::StrCat(c.index, ": pmf=", c.pmf, " cdf=", c.cdf)); in LogCDF() 201 std::vector<CDF> cdf_; 206 // range buckets. However there is no closed form solution for the inverse cdf [all …]
|
/external/openscreen/third_party/abseil/src/absl/random/ |
D | poisson_distribution_test.cc | 173 // InitCDF() initializes the CDF for the distribution parameters. 177 struct CDF { struct in __anon1434511f0111::PoissonModel 180 double cdf; member 182 CDF InverseCDF(double p) { in InverseCDF() 183 CDF target{0, 0, p}; in InverseCDF() 186 [](const CDF& a, const CDF& b) { return a.cdf < b.cdf; }); in InverseCDF() 191 ABSL_INTERNAL_LOG(INFO, absl::StrCat("CDF (mean = ", mean_, ")")); in LogCDF() 194 absl::StrCat(c.index, ": pmf=", c.pmf, " cdf=", c.cdf)); in LogCDF() 201 std::vector<CDF> cdf_; 206 // range buckets. However there is no closed form solution for the inverse cdf [all …]
|