/external/webp/src/enc/ |
D | backward_references.c | 392 VP8LHistogram histo; in CostModelBuild() local 409 VP8LHistogramCreate(&histo, &refs, cache_bits); in CostModelBuild() 411 VP8LHistogramNumCodes(&histo), histo.literal_, m->literal_); in CostModelBuild() 413 VALUES_IN_BYTE, histo.red_, m->red_); in CostModelBuild() 415 VALUES_IN_BYTE, histo.blue_, m->blue_); in CostModelBuild() 417 VALUES_IN_BYTE, histo.alpha_, m->alpha_); in CostModelBuild() 419 NUM_DISTANCE_CODES, histo.distance_, m->distance_); in CostModelBuild() 750 VP8LHistogram* const histo = (VP8LHistogram*)malloc(sizeof(*histo)); in VP8LGetBackwardReferences() local 751 if (histo == NULL) goto Error1; in VP8LGetBackwardReferences() 753 VP8LHistogramCreate(histo, &refs_lz77, cache_bits); in VP8LGetBackwardReferences() [all …]
|
D | histogram.c | 32 VP8LHistogram* const histo) { in VP8LHistogramStoreRefs() argument 35 VP8LHistogramAddSinglePixOrCopy(histo, &refs->refs[i]); in VP8LHistogramStoreRefs() 80 void VP8LHistogramAddSinglePixOrCopy(VP8LHistogram* const histo, in VP8LHistogramAddSinglePixOrCopy() argument 83 ++histo->alpha_[PixOrCopyLiteral(v, 3)]; in VP8LHistogramAddSinglePixOrCopy() 84 ++histo->red_[PixOrCopyLiteral(v, 2)]; in VP8LHistogramAddSinglePixOrCopy() 85 ++histo->literal_[PixOrCopyLiteral(v, 1)]; in VP8LHistogramAddSinglePixOrCopy() 86 ++histo->blue_[PixOrCopyLiteral(v, 0)]; in VP8LHistogramAddSinglePixOrCopy() 89 ++histo->literal_[literal_ix]; in VP8LHistogramAddSinglePixOrCopy() 94 ++histo->literal_[256 + code]; in VP8LHistogramAddSinglePixOrCopy() 97 ++histo->distance_[code]; in VP8LHistogramAddSinglePixOrCopy()
|
D | vp8l.c | 190 const VP8LHistogram* const histo = histogram_image->histograms[i]; in GetHuffBitLengthsAndCodes() local 193 const int num_symbols = (k == 0) ? VP8LHistogramNumCodes(histo) in GetHuffBitLengthsAndCodes() 225 VP8LHistogram* const histo = histogram_image->histograms[i]; in GetHuffBitLengthsAndCodes() local 226 ok = ok && VP8LCreateHuffmanTree(histo->literal_, 15, codes + 0); in GetHuffBitLengthsAndCodes() 227 ok = ok && VP8LCreateHuffmanTree(histo->red_, 15, codes + 1); in GetHuffBitLengthsAndCodes() 228 ok = ok && VP8LCreateHuffmanTree(histo->blue_, 15, codes + 2); in GetHuffBitLengthsAndCodes() 229 ok = ok && VP8LCreateHuffmanTree(histo->alpha_, 15, codes + 3); in GetHuffBitLengthsAndCodes() 230 ok = ok && VP8LCreateHuffmanTree(histo->distance_, 15, codes + 4); in GetHuffBitLengthsAndCodes() 634 VP8LHistogram* const histo = (VP8LHistogram*)malloc(sizeof(*histo)); in EvalAndApplySubtractGreen() local 635 if (histo == NULL) return 0; in EvalAndApplySubtractGreen() [all …]
|
D | histogram.h | 65 VP8LHistogram* const histo); 72 void VP8LHistogramAddSinglePixOrCopy(VP8LHistogram* const histo,
|
/external/webp/src/dsp/ |
D | lossless.c | 390 int histo[4][256]; in GetBestPredictorForTile() local 400 memset(&histo[0][0], 0, sizeof(histo)); in GetBestPredictorForTile() 418 ++histo[0][predict_diff >> 24]; in GetBestPredictorForTile() 419 ++histo[1][((predict_diff >> 16) & 0xff)]; in GetBestPredictorForTile() 420 ++histo[2][((predict_diff >> 8) & 0xff)]; in GetBestPredictorForTile() 421 ++histo[3][(predict_diff & 0xff)]; in GetBestPredictorForTile() 424 cur_diff = PredictionCostSpatialHistogram(accumulated, histo); in GetBestPredictorForTile() 479 int histo[4][256]; in VP8LResidualImage() local 480 memset(histo, 0, sizeof(histo)); in VP8LResidualImage() 500 pred = GetBestPredictorForTile(width, height, tile_x, tile_y, bits, histo, in VP8LResidualImage() [all …]
|
D | enc.c | 28 int VP8GetAlpha(const int histo[MAX_COEFF_THRESH + 1]) { in VP8GetAlpha() 34 if (histo[k + 1]) { in VP8GetAlpha() 35 val += histo[k + 1]; in VP8GetAlpha() 58 int histo[MAX_COEFF_THRESH + 1] = { 0 }; in CollectHistogram() local 72 histo[out[k]]++; in CollectHistogram() 76 return VP8GetAlpha(histo); in CollectHistogram()
|
D | dsp.h | 52 int VP8GetAlpha(const int histo[]);
|
D | enc_sse2.c | 30 int histo[MAX_COEFF_THRESH + 1] = { 0 }; in CollectHistogramSSE2() local 63 histo[out[k]]++; in CollectHistogramSSE2() 67 return VP8GetAlpha(histo); in CollectHistogramSSE2()
|
/external/llvm/utils/lit/lit/ |
D | Util.py | 111 histo = [set() for i in range(N)] 114 histo[bin].add(name) 133 for i,row in enumerate(histo):
|
/external/valgrind/main/exp-dhat/ |
D | dh_main.c | 212 UInt* histo; /* [0 .. xsize-1] */ member 340 tl_assert(!api->histo); in retire_Block() 346 api->histo = VG_(malloc)("dh.main.retire_Block.1", in retire_Block() 348 VG_(memset)(api->histo, 0, api->xsize * sizeof(UInt)); in retire_Block() 360 if (api->histo) { in retire_Block() 361 VG_(free)(api->histo); in retire_Block() 362 api->histo = NULL; in retire_Block() 377 if (api->xsize_tag == Exactly && api->histo && bk->histoW) { in retire_Block() 383 if (api->histo[i] <= 0xFFFE0000) in retire_Block() 384 api->histo[i] += (UInt)bk->histoW[i]; in retire_Block() [all …]
|