Home
last modified time | relevance | path

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

/external/webp/src/enc/
Dhistogram.c57 void VP8LFreeHistogram(VP8LHistogram* const histo) { in VP8LFreeHistogram() argument
58 WebPSafeFree(histo); in VP8LFreeHistogram()
61 void VP8LFreeHistogramSet(VP8LHistogramSet* const histo) { in VP8LFreeHistogramSet() argument
62 WebPSafeFree(histo); in VP8LFreeHistogramSet()
66 VP8LHistogram* const histo) { in VP8LHistogramStoreRefs() argument
69 VP8LHistogramAddSinglePixOrCopy(histo, c.cur_pos); in VP8LHistogramStoreRefs()
90 VP8LHistogram* histo = NULL; in VP8LAllocateHistogram() local
94 histo = (VP8LHistogram*)memory; in VP8LAllocateHistogram()
96 histo->literal_ = (uint32_t*)(memory + sizeof(VP8LHistogram)); in VP8LAllocateHistogram()
97 VP8LHistogramInit(histo, cache_bits); in VP8LAllocateHistogram()
[all …]
Dhistogram.h73 VP8LHistogram* const histo);
76 void VP8LFreeHistogram(VP8LHistogram* const histo);
79 void VP8LFreeHistogramSet(VP8LHistogramSet* const histo);
91 void VP8LHistogramAddSinglePixOrCopy(VP8LHistogram* const histo,
Dbackward_references.c496 VP8LHistogram* histo = NULL; in CostModelBuild() local
511 histo = VP8LAllocateHistogram(cache_bits); in CostModelBuild()
512 if (histo == NULL) goto Error; in CostModelBuild()
514 VP8LHistogramCreate(histo, refs, cache_bits); in CostModelBuild()
517 VP8LHistogramNumCodes(histo->palette_code_bits_), in CostModelBuild()
518 histo->literal_, m->literal_); in CostModelBuild()
520 VALUES_IN_BYTE, histo->red_, m->red_); in CostModelBuild()
522 VALUES_IN_BYTE, histo->blue_, m->blue_); in CostModelBuild()
524 VALUES_IN_BYTE, histo->alpha_, m->alpha_); in CostModelBuild()
526 NUM_DISTANCE_CODES, histo->distance_, m->distance_); in CostModelBuild()
[all …]
Dvp8l.c199 const VP8LHistogram* const histo = histogram_image->histograms[i]; in GetHuffBitLengthsAndCodes() local
203 (k == 0) ? VP8LHistogramNumCodes(histo->palette_code_bits_) : in GetHuffBitLengthsAndCodes()
240 VP8LHistogram* const histo = histogram_image->histograms[i]; in GetHuffBitLengthsAndCodes() local
241 VP8LCreateHuffmanTree(histo->literal_, 15, buf_rle, huff_tree, codes + 0); in GetHuffBitLengthsAndCodes()
242 VP8LCreateHuffmanTree(histo->red_, 15, buf_rle, huff_tree, codes + 1); in GetHuffBitLengthsAndCodes()
243 VP8LCreateHuffmanTree(histo->blue_, 15, buf_rle, huff_tree, codes + 2); in GetHuffBitLengthsAndCodes()
244 VP8LCreateHuffmanTree(histo->alpha_, 15, buf_rle, huff_tree, codes + 3); in GetHuffBitLengthsAndCodes()
245 VP8LCreateHuffmanTree(histo->distance_, 15, buf_rle, huff_tree, codes + 4); in GetHuffBitLengthsAndCodes()
709 VP8LHistogram* const histo = VP8LAllocateHistogram(1); in EvalAndApplySubtractGreen() local
710 if (histo == NULL) return VP8_ENC_ERROR_OUT_OF_MEMORY; in EvalAndApplySubtractGreen()
[all …]
Danalysis.c113 static int GetAlpha(const VP8Histogram* const histo) { in GetAlpha() argument
118 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()
310 VP8Histogram histo = { { 0 } }; in MBAnalyzeBestUVMode() local
314 16, 16 + 4 + 4, &histo); in MBAnalyzeBestUVMode()
315 alpha = GetAlpha(&histo); in MBAnalyzeBestUVMode()
/external/chromium_org/third_party/libwebp/enc/
Dhistogram.c57 void VP8LFreeHistogram(VP8LHistogram* const histo) { in VP8LFreeHistogram() argument
58 WebPSafeFree(histo); in VP8LFreeHistogram()
61 void VP8LFreeHistogramSet(VP8LHistogramSet* const histo) { in VP8LFreeHistogramSet() argument
62 WebPSafeFree(histo); in VP8LFreeHistogramSet()
66 VP8LHistogram* const histo) { in VP8LHistogramStoreRefs() argument
69 VP8LHistogramAddSinglePixOrCopy(histo, c.cur_pos); in VP8LHistogramStoreRefs()
90 VP8LHistogram* histo = NULL; in VP8LAllocateHistogram() local
94 histo = (VP8LHistogram*)memory; in VP8LAllocateHistogram()
96 histo->literal_ = (uint32_t*)(memory + sizeof(VP8LHistogram)); in VP8LAllocateHistogram()
97 VP8LHistogramInit(histo, cache_bits); in VP8LAllocateHistogram()
[all …]
Dhistogram.h73 VP8LHistogram* const histo);
76 void VP8LFreeHistogram(VP8LHistogram* const histo);
79 void VP8LFreeHistogramSet(VP8LHistogramSet* const histo);
91 void VP8LHistogramAddSinglePixOrCopy(VP8LHistogram* const histo,
Dbackward_references.c496 VP8LHistogram* histo = NULL; in CostModelBuild() local
511 histo = VP8LAllocateHistogram(cache_bits); in CostModelBuild()
512 if (histo == NULL) goto Error; in CostModelBuild()
514 VP8LHistogramCreate(histo, refs, cache_bits); in CostModelBuild()
517 VP8LHistogramNumCodes(histo->palette_code_bits_), in CostModelBuild()
518 histo->literal_, m->literal_); in CostModelBuild()
520 VALUES_IN_BYTE, histo->red_, m->red_); in CostModelBuild()
522 VALUES_IN_BYTE, histo->blue_, m->blue_); in CostModelBuild()
524 VALUES_IN_BYTE, histo->alpha_, m->alpha_); in CostModelBuild()
526 NUM_DISTANCE_CODES, histo->distance_, m->distance_); in CostModelBuild()
[all …]
Dvp8l.c199 const VP8LHistogram* const histo = histogram_image->histograms[i]; in GetHuffBitLengthsAndCodes() local
203 (k == 0) ? VP8LHistogramNumCodes(histo->palette_code_bits_) : in GetHuffBitLengthsAndCodes()
240 VP8LHistogram* const histo = histogram_image->histograms[i]; in GetHuffBitLengthsAndCodes() local
241 VP8LCreateHuffmanTree(histo->literal_, 15, buf_rle, huff_tree, codes + 0); in GetHuffBitLengthsAndCodes()
242 VP8LCreateHuffmanTree(histo->red_, 15, buf_rle, huff_tree, codes + 1); in GetHuffBitLengthsAndCodes()
243 VP8LCreateHuffmanTree(histo->blue_, 15, buf_rle, huff_tree, codes + 2); in GetHuffBitLengthsAndCodes()
244 VP8LCreateHuffmanTree(histo->alpha_, 15, buf_rle, huff_tree, codes + 3); in GetHuffBitLengthsAndCodes()
245 VP8LCreateHuffmanTree(histo->distance_, 15, buf_rle, huff_tree, codes + 4); in GetHuffBitLengthsAndCodes()
709 VP8LHistogram* const histo = VP8LAllocateHistogram(1); in EvalAndApplySubtractGreen() local
710 if (histo == NULL) return VP8_ENC_ERROR_OUT_OF_MEMORY; in EvalAndApplySubtractGreen()
[all …]
Danalysis.c113 static int GetAlpha(const VP8Histogram* const histo) { in GetAlpha() argument
118 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()
310 VP8Histogram histo = { { 0 } }; in MBAnalyzeBestUVMode() local
314 16, 16 + 4 + 4, &histo); in MBAnalyzeBestUVMode()
315 alpha = GetAlpha(&histo); in MBAnalyzeBestUVMode()
/external/chromium_org/third_party/brotli/src/brotli/enc/
Dliteral_cost.cc110 int histo = histogram[utf8_pos][data[masked_pos]]; in EstimateBitCostsForLiteralsUTF8() local
111 if (histo == 0) { in EstimateBitCostsForLiteralsUTF8()
112 histo = 1; in EstimateBitCostsForLiteralsUTF8()
115 / histo); in EstimateBitCostsForLiteralsUTF8()
156 int histo = histogram[data[(pos + i) & mask]]; in EstimateBitCostsForLiterals() local
157 if (histo == 0) { in EstimateBitCostsForLiterals()
158 histo = 1; in EstimateBitCostsForLiterals()
160 float lit_cost = log2(static_cast<double>(in_window) / histo); in EstimateBitCostsForLiterals()
Dblock_splitter.cc105 HistogramType histo; in InitialEntropyCodes() local
106 histo.Add(data + pos, stride); in InitialEntropyCodes()
107 vec->push_back(histo); in InitialEntropyCodes()
/external/llvm/utils/lit/lit/
Dutil.py114 histo = [set() for i in range(N)]
117 histo[bin].add(name)
136 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 …]
/external/chromium_org/third_party/libwebp/dsp/
Dlossless.c694 int histo[4][256]; in VP8LResidualImage() local
695 memset(histo, 0, sizeof(histo)); in VP8LResidualImage()
716 (const int (*)[256])histo, in VP8LResidualImage()
730 UpdateHisto(histo, argb[ix]); in VP8LResidualImage()
915 int histo[256] = { 0 }; in GetPredictionCostCrossColorRed() local
921 ++histo[TransformColorRed(green_to_red, argb[ix])]; // red. in GetPredictionCostCrossColorRed()
924 cur_diff = PredictionCostCrossColor(accumulated_red_histo, histo); in GetPredictionCostCrossColorRed()
982 int histo[256] = { 0 }; in GetPredictionCostCrossColorBlue() local
988 ++histo[TransformColorBlue(green_to_blue, red_to_blue, argb[ix])]; in GetPredictionCostCrossColorBlue()
991 cur_diff = PredictionCostCrossColor(accumulated_blue_histo, histo); in GetPredictionCostCrossColorBlue()
Ddsp.h124 struct VP8Histogram* const histo);
Denc.c45 VP8Histogram* const histo) { in CollectHistogram() argument
57 histo->distribution[clipped_value]++; in CollectHistogram()
Denc_neon.c885 VP8Histogram* const histo) { in CollectHistogram() argument
905 histo->distribution[out[k]]++; in CollectHistogram()
Denc_sse2.c59 VP8Histogram* const histo) { in CollectHistogram() argument
94 histo->distribution[out[k]]++; in CollectHistogram()
/external/webp/src/dsp/
Dlossless.c685 int histo[4][256]; in VP8LResidualImage() local
686 memset(histo, 0, sizeof(histo)); in VP8LResidualImage()
707 (const int (*)[256])histo, in VP8LResidualImage()
721 UpdateHisto(histo, argb[ix]); in VP8LResidualImage()
906 int histo[256] = { 0 }; in GetPredictionCostCrossColorRed() local
912 ++histo[TransformColorRed(green_to_red, argb[ix])]; // red. in GetPredictionCostCrossColorRed()
915 cur_diff = PredictionCostCrossColor(accumulated_red_histo, histo); in GetPredictionCostCrossColorRed()
973 int histo[256] = { 0 }; in GetPredictionCostCrossColorBlue() local
979 ++histo[TransformColorBlue(green_to_blue, red_to_blue, argb[ix])]; in GetPredictionCostCrossColorBlue()
982 cur_diff = PredictionCostCrossColor(accumulated_blue_histo, histo); in GetPredictionCostCrossColorBlue()
Ddsp.h124 struct VP8Histogram* const histo);
Denc_neon.c885 VP8Histogram* const histo) { in CollectHistogram() argument
905 histo->distribution[out[k]]++; in CollectHistogram()
Denc.c45 VP8Histogram* const histo) { in CollectHistogram() argument
57 histo->distribution[clipped_value]++; in CollectHistogram()
Denc_sse2.c59 VP8Histogram* const histo) { in CollectHistogram() argument
94 histo->distribution[out[k]]++; in CollectHistogram()
/external/chromium_org/media/cast/logging/
Dstats_event_subscriber.cc66 scoped_ptr<base::ListValue> histo(new base::ListValue); in GetHistogram() local
73 histo->Append(bucket.release()); in GetHistogram()
85 histo->Append(bucket.release()); in GetHistogram()
92 histo->Append(bucket.release()); in GetHistogram()
94 return histo.Pass(); in GetHistogram()