Home
last modified time | relevance | path

Searched refs:histo (Results 1 – 20 of 20) sorted by relevance

/external/webp/src/enc/
Dbackward_references.c414 VP8LHistogram histo; in CostModelBuild() local
430 VP8LHistogramCreate(&histo, &refs, cache_bits); in CostModelBuild()
432 VP8LHistogramNumCodes(&histo), histo.literal_, m->literal_); in CostModelBuild()
434 VALUES_IN_BYTE, histo.red_, m->red_); in CostModelBuild()
436 VALUES_IN_BYTE, histo.blue_, m->blue_); in CostModelBuild()
438 VALUES_IN_BYTE, histo.alpha_, m->alpha_); in CostModelBuild()
440 NUM_DISTANCE_CODES, histo.distance_, m->distance_); in CostModelBuild()
768 VP8LHistogram* const histo = (VP8LHistogram*)malloc(sizeof(*histo)); in VP8LGetBackwardReferences() local
769 if (histo == NULL) goto Error1; in VP8LGetBackwardReferences()
771 VP8LHistogramCreate(histo, &refs_lz77, cache_bits); in VP8LGetBackwardReferences()
[all …]
Dvp8l.c193 const VP8LHistogram* const histo = histogram_image->histograms[i]; in GetHuffBitLengthsAndCodes() local
196 const int num_symbols = (k == 0) ? VP8LHistogramNumCodes(histo) in GetHuffBitLengthsAndCodes()
228 VP8LHistogram* const histo = histogram_image->histograms[i]; in GetHuffBitLengthsAndCodes() local
229 ok = ok && VP8LCreateHuffmanTree(histo->literal_, 15, codes + 0); in GetHuffBitLengthsAndCodes()
230 ok = ok && VP8LCreateHuffmanTree(histo->red_, 15, codes + 1); in GetHuffBitLengthsAndCodes()
231 ok = ok && VP8LCreateHuffmanTree(histo->blue_, 15, codes + 2); in GetHuffBitLengthsAndCodes()
232 ok = ok && VP8LCreateHuffmanTree(histo->alpha_, 15, codes + 3); in GetHuffBitLengthsAndCodes()
233 ok = ok && VP8LCreateHuffmanTree(histo->distance_, 15, codes + 4); in GetHuffBitLengthsAndCodes()
647 VP8LHistogram* const histo = (VP8LHistogram*)malloc(sizeof(*histo)); in EvalAndApplySubtractGreen() local
648 if (histo == NULL) return 0; in EvalAndApplySubtractGreen()
[all …]
Danalysis.c116 static int GetAlpha(const VP8Histogram* const histo) { in GetAlpha() argument
121 const int value = histo->distribution[k]; in GetAlpha()
246 VP8Histogram histo = { { 0 } }; in MBAnalyzeBestIntra16Mode() local
251 0, 16, &histo); in MBAnalyzeBestIntra16Mode()
252 alpha = GetAlpha(&histo); in MBAnalyzeBestIntra16Mode()
315 VP8Histogram histo = { { 0 } }; in MBAnalyzeBestUVMode() local
319 16, 16 + 4 + 4, &histo); in MBAnalyzeBestUVMode()
320 alpha = GetAlpha(&histo); in MBAnalyzeBestUVMode()
Dhistogram.c34 VP8LHistogram* const histo) { in VP8LHistogramStoreRefs() argument
37 VP8LHistogramAddSinglePixOrCopy(histo, &refs->refs[i]); in VP8LHistogramStoreRefs()
82 void VP8LHistogramAddSinglePixOrCopy(VP8LHistogram* const histo, in VP8LHistogramAddSinglePixOrCopy() argument
85 ++histo->alpha_[PixOrCopyLiteral(v, 3)]; in VP8LHistogramAddSinglePixOrCopy()
86 ++histo->red_[PixOrCopyLiteral(v, 2)]; in VP8LHistogramAddSinglePixOrCopy()
87 ++histo->literal_[PixOrCopyLiteral(v, 1)]; in VP8LHistogramAddSinglePixOrCopy()
88 ++histo->blue_[PixOrCopyLiteral(v, 0)]; in VP8LHistogramAddSinglePixOrCopy()
91 ++histo->literal_[literal_ix]; in VP8LHistogramAddSinglePixOrCopy()
96 ++histo->literal_[256 + code]; in VP8LHistogramAddSinglePixOrCopy()
99 ++histo->distance_[code]; in VP8LHistogramAddSinglePixOrCopy()
Dhistogram.h67 VP8LHistogram* const histo);
74 void VP8LHistogramAddSinglePixOrCopy(VP8LHistogram* const histo,
/external/chromium_org/third_party/libwebp/enc/
Dbackward_references.c414 VP8LHistogram histo; in CostModelBuild() local
430 VP8LHistogramCreate(&histo, &refs, cache_bits); in CostModelBuild()
432 VP8LHistogramNumCodes(&histo), histo.literal_, m->literal_); in CostModelBuild()
434 VALUES_IN_BYTE, histo.red_, m->red_); in CostModelBuild()
436 VALUES_IN_BYTE, histo.blue_, m->blue_); in CostModelBuild()
438 VALUES_IN_BYTE, histo.alpha_, m->alpha_); in CostModelBuild()
440 NUM_DISTANCE_CODES, histo.distance_, m->distance_); in CostModelBuild()
768 VP8LHistogram* const histo = (VP8LHistogram*)malloc(sizeof(*histo)); in VP8LGetBackwardReferences() local
769 if (histo == NULL) goto Error1; in VP8LGetBackwardReferences()
771 VP8LHistogramCreate(histo, &refs_lz77, cache_bits); in VP8LGetBackwardReferences()
[all …]
Dvp8l.c193 const VP8LHistogram* const histo = histogram_image->histograms[i]; in GetHuffBitLengthsAndCodes() local
196 const int num_symbols = (k == 0) ? VP8LHistogramNumCodes(histo) in GetHuffBitLengthsAndCodes()
228 VP8LHistogram* const histo = histogram_image->histograms[i]; in GetHuffBitLengthsAndCodes() local
229 ok = ok && VP8LCreateHuffmanTree(histo->literal_, 15, codes + 0); in GetHuffBitLengthsAndCodes()
230 ok = ok && VP8LCreateHuffmanTree(histo->red_, 15, codes + 1); in GetHuffBitLengthsAndCodes()
231 ok = ok && VP8LCreateHuffmanTree(histo->blue_, 15, codes + 2); in GetHuffBitLengthsAndCodes()
232 ok = ok && VP8LCreateHuffmanTree(histo->alpha_, 15, codes + 3); in GetHuffBitLengthsAndCodes()
233 ok = ok && VP8LCreateHuffmanTree(histo->distance_, 15, codes + 4); in GetHuffBitLengthsAndCodes()
647 VP8LHistogram* const histo = (VP8LHistogram*)malloc(sizeof(*histo)); in EvalAndApplySubtractGreen() local
648 if (histo == NULL) return 0; in EvalAndApplySubtractGreen()
[all …]
Danalysis.c116 static int GetAlpha(const VP8Histogram* const histo) { in GetAlpha() argument
121 const int value = histo->distribution[k]; in GetAlpha()
246 VP8Histogram histo = { { 0 } }; in MBAnalyzeBestIntra16Mode() local
251 0, 16, &histo); in MBAnalyzeBestIntra16Mode()
252 alpha = GetAlpha(&histo); in MBAnalyzeBestIntra16Mode()
315 VP8Histogram histo = { { 0 } }; in MBAnalyzeBestUVMode() local
319 16, 16 + 4 + 4, &histo); in MBAnalyzeBestUVMode()
320 alpha = GetAlpha(&histo); in MBAnalyzeBestUVMode()
Dhistogram.c34 VP8LHistogram* const histo) { in VP8LHistogramStoreRefs() argument
37 VP8LHistogramAddSinglePixOrCopy(histo, &refs->refs[i]); in VP8LHistogramStoreRefs()
82 void VP8LHistogramAddSinglePixOrCopy(VP8LHistogram* const histo, in VP8LHistogramAddSinglePixOrCopy() argument
85 ++histo->alpha_[PixOrCopyLiteral(v, 3)]; in VP8LHistogramAddSinglePixOrCopy()
86 ++histo->red_[PixOrCopyLiteral(v, 2)]; in VP8LHistogramAddSinglePixOrCopy()
87 ++histo->literal_[PixOrCopyLiteral(v, 1)]; in VP8LHistogramAddSinglePixOrCopy()
88 ++histo->blue_[PixOrCopyLiteral(v, 0)]; in VP8LHistogramAddSinglePixOrCopy()
91 ++histo->literal_[literal_ix]; in VP8LHistogramAddSinglePixOrCopy()
96 ++histo->literal_[256 + code]; in VP8LHistogramAddSinglePixOrCopy()
99 ++histo->distance_[code]; in VP8LHistogramAddSinglePixOrCopy()
Dhistogram.h67 VP8LHistogram* const histo);
74 void VP8LHistogramAddSinglePixOrCopy(VP8LHistogram* const histo,
/external/webp/src/dsp/
Dlossless.c533 int histo[4][256]; in GetBestPredictorForTile() local
543 memset(&histo[0][0], 0, sizeof(histo)); in GetBestPredictorForTile()
561 ++histo[0][predict_diff >> 24]; in GetBestPredictorForTile()
562 ++histo[1][((predict_diff >> 16) & 0xff)]; in GetBestPredictorForTile()
563 ++histo[2][((predict_diff >> 8) & 0xff)]; in GetBestPredictorForTile()
564 ++histo[3][(predict_diff & 0xff)]; in GetBestPredictorForTile()
567 cur_diff = PredictionCostSpatialHistogram(accumulated, histo); in GetBestPredictorForTile()
622 int histo[4][256]; in VP8LResidualImage() local
623 memset(histo, 0, sizeof(histo)); in VP8LResidualImage()
643 pred = GetBestPredictorForTile(width, height, tile_x, tile_y, bits, histo, in VP8LResidualImage()
[all …]
Ddsp.h92 struct VP8Histogram* const histo);
Denc.c47 VP8Histogram* const histo) { in CollectHistogram() argument
59 histo->distribution[clipped_value]++; in CollectHistogram()
Denc_sse2.c61 VP8Histogram* const histo) { in CollectHistogramSSE2() argument
96 histo->distribution[out[k]]++; in CollectHistogramSSE2()
/external/chromium_org/third_party/libwebp/dsp/
Dlossless.c533 int histo[4][256]; in GetBestPredictorForTile() local
543 memset(&histo[0][0], 0, sizeof(histo)); in GetBestPredictorForTile()
561 ++histo[0][predict_diff >> 24]; in GetBestPredictorForTile()
562 ++histo[1][((predict_diff >> 16) & 0xff)]; in GetBestPredictorForTile()
563 ++histo[2][((predict_diff >> 8) & 0xff)]; in GetBestPredictorForTile()
564 ++histo[3][(predict_diff & 0xff)]; in GetBestPredictorForTile()
567 cur_diff = PredictionCostSpatialHistogram(accumulated, histo); in GetBestPredictorForTile()
622 int histo[4][256]; in VP8LResidualImage() local
623 memset(histo, 0, sizeof(histo)); in VP8LResidualImage()
643 pred = GetBestPredictorForTile(width, height, tile_x, tile_y, bits, histo, in VP8LResidualImage()
[all …]
Ddsp.h92 struct VP8Histogram* const histo);
Denc.c47 VP8Histogram* const histo) { in CollectHistogram() argument
59 histo->distribution[clipped_value]++; in CollectHistogram()
Denc_sse2.c61 VP8Histogram* const histo) { in CollectHistogramSSE2() argument
96 histo->distribution[out[k]]++; in CollectHistogramSSE2()
/external/llvm/utils/lit/lit/
DUtil.py112 histo = [set() for i in range(N)]
115 histo[bin].add(name)
134 for i,row in enumerate(histo):
/external/valgrind/main/exp-dhat/
Ddh_main.c212 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 …]