Home
last modified time | relevance | path

Searched refs:histo (Results 1 – 11 of 11) 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 …]
Dhistogram.c32 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()
Dvp8l.c191 const VP8LHistogram* const histo = histogram_image->histograms[i]; in GetHuffBitLengthsAndCodes() local
194 const int num_symbols = (k == 0) ? VP8LHistogramNumCodes(histo) in GetHuffBitLengthsAndCodes()
226 VP8LHistogram* const histo = histogram_image->histograms[i]; in GetHuffBitLengthsAndCodes() local
227 ok = ok && VP8LCreateHuffmanTree(histo->literal_, 15, codes + 0); in GetHuffBitLengthsAndCodes()
228 ok = ok && VP8LCreateHuffmanTree(histo->red_, 15, codes + 1); in GetHuffBitLengthsAndCodes()
229 ok = ok && VP8LCreateHuffmanTree(histo->blue_, 15, codes + 2); in GetHuffBitLengthsAndCodes()
230 ok = ok && VP8LCreateHuffmanTree(histo->alpha_, 15, codes + 3); in GetHuffBitLengthsAndCodes()
231 ok = ok && VP8LCreateHuffmanTree(histo->distance_, 15, codes + 4); in GetHuffBitLengthsAndCodes()
645 VP8LHistogram* const histo = (VP8LHistogram*)malloc(sizeof(*histo)); in EvalAndApplySubtractGreen() local
646 if (histo == NULL) return 0; in EvalAndApplySubtractGreen()
[all …]
Danalysis.c114 static int GetAlpha(const VP8Histogram* const histo) { in GetAlpha() argument
119 const int value = histo->distribution[k]; in GetAlpha()
244 VP8Histogram histo = { { 0 } }; in MBAnalyzeBestIntra16Mode() local
249 0, 16, &histo); in MBAnalyzeBestIntra16Mode()
250 alpha = GetAlpha(&histo); in MBAnalyzeBestIntra16Mode()
313 VP8Histogram histo = { { 0 } }; in MBAnalyzeBestUVMode() local
317 16, 16 + 4 + 4, &histo); in MBAnalyzeBestUVMode()
318 alpha = GetAlpha(&histo); in MBAnalyzeBestUVMode()
Dhistogram.h65 VP8LHistogram* const histo);
72 void VP8LHistogramAddSinglePixOrCopy(VP8LHistogram* const histo,
/external/webp/src/dsp/
Dlossless.c531 int histo[4][256]; in GetBestPredictorForTile() local
541 memset(&histo[0][0], 0, sizeof(histo)); in GetBestPredictorForTile()
559 ++histo[0][predict_diff >> 24]; in GetBestPredictorForTile()
560 ++histo[1][((predict_diff >> 16) & 0xff)]; in GetBestPredictorForTile()
561 ++histo[2][((predict_diff >> 8) & 0xff)]; in GetBestPredictorForTile()
562 ++histo[3][(predict_diff & 0xff)]; in GetBestPredictorForTile()
565 cur_diff = PredictionCostSpatialHistogram(accumulated, histo); in GetBestPredictorForTile()
620 int histo[4][256]; in VP8LResidualImage() local
621 memset(histo, 0, sizeof(histo)); in VP8LResidualImage()
641 pred = GetBestPredictorForTile(width, height, tile_x, tile_y, bits, histo, in VP8LResidualImage()
[all …]
Ddsp.h90 struct VP8Histogram* const histo);
Denc.c45 VP8Histogram* const histo) { in CollectHistogram() argument
57 histo->distribution[clipped_value]++; in CollectHistogram()
Denc_sse2.c59 VP8Histogram* const histo) { in CollectHistogramSSE2() argument
94 histo->distribution[out[k]]++; in CollectHistogramSSE2()
/external/llvm/utils/lit/lit/
DUtil.py111 histo = [set() for i in range(N)]
114 histo[bin].add(name)
133 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 …]