Home
last modified time | relevance | path

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

123

/third_party/skia/third_party/externals/libwebp/src/dsp/
Dlossless_enc_sse41.c53 int histo[]) { in CollectColorBlueTransforms_SSE41() argument
71 ++histo[_mm_extract_epi8(E, 0)]; in CollectColorBlueTransforms_SSE41()
73 ++histo[_mm_extract_epi8(E, 4)]; in CollectColorBlueTransforms_SSE41()
75 ++histo[_mm_extract_epi8(E, 8)]; in CollectColorBlueTransforms_SSE41()
77 ++histo[_mm_extract_epi8(E, 12)]; in CollectColorBlueTransforms_SSE41()
80 ++histo[_mm_extract_epi8(E, 0)]; in CollectColorBlueTransforms_SSE41()
81 ++histo[_mm_extract_epi8(E, 4)]; in CollectColorBlueTransforms_SSE41()
82 ++histo[_mm_extract_epi8(E, 8)]; in CollectColorBlueTransforms_SSE41()
83 ++histo[_mm_extract_epi8(E, 12)]; in CollectColorBlueTransforms_SSE41()
91 green_to_blue, red_to_blue, histo); in CollectColorBlueTransforms_SSE41()
[all …]
Dlossless_enc_mips_dsp_r2.c180 int histo[]) { in CollectColorBlueTransforms_MIPSdspR2() argument
211 ++histo[(uint8_t)(temp2 >> 16)]; in CollectColorBlueTransforms_MIPSdspR2()
212 ++histo[(uint8_t)temp2]; in CollectColorBlueTransforms_MIPSdspR2()
215 ++histo[TransformColorBlue(green_to_blue, red_to_blue, *p_argb)]; in CollectColorBlueTransforms_MIPSdspR2()
233 int histo[]) { in CollectColorRedTransforms_MIPSdspR2() argument
256 ++histo[(uint8_t)(temp2 >> 16)]; in CollectColorRedTransforms_MIPSdspR2()
257 ++histo[(uint8_t)temp2]; in CollectColorRedTransforms_MIPSdspR2()
260 ++histo[TransformColorRed(green_to_red, *p_argb)]; in CollectColorRedTransforms_MIPSdspR2()
Dlossless.h143 int green_to_blue, int red_to_blue, int histo[]);
149 int green_to_red, int histo[]);
158 int green_to_red, int histo[]);
162 int histo[]);
/third_party/skia/third_party/externals/brotli/research/
Ddraw_histogram.cc67 void BuildHistogram(FILE* fin, int** histo) { in BuildHistogram() argument
77 histo[i][j] = 0; in BuildHistogram()
113 histo[x][y] += copy; in BuildHistogram()
116 histo[x][y] += pos2 - pos; in BuildHistogram()
118 histo[x][i] += max_pos / width; // Sometimes 1 more, but who cares. in BuildHistogram()
123 histo[x][right] += pos + copy - 1 - pos2 + 1; in BuildHistogram()
127 histo[x][y]++; in BuildHistogram()
133 void ConvertToPixels(int** histo, uint8_t** pixel) { in ConvertToPixels() argument
140 if (maxs < histo[i][j]) maxs = histo[i][j]; in ConvertToPixels()
149 pixel[i][j] = histo[i][j] > 0 ? 0 : 255; in ConvertToPixels()
[all …]
/third_party/skia/third_party/externals/brotli/c/enc/
Dbit_cost_inc.h48 uint32_t histo[4]; in FN() local
52 histo[i] = histogram->data_[s[i]]; in FN()
58 if (histo[j] > histo[i]) { in FN()
59 BROTLI_SWAP(uint32_t, histo, j, i); in FN()
63 h23 = histo[2] + histo[3]; in FN()
64 histomax = BROTLI_MAX(uint32_t, h23, histo[0]); in FN()
66 3 * h23 + 2 * (histo[0] + histo[1]) - histomax); in FN()
Dliteral_cost.c104 size_t histo = histogram[utf8_pos][data[masked_pos]]; in EstimateBitCostsForLiteralsUTF8() local
106 if (histo == 0) { in EstimateBitCostsForLiteralsUTF8()
107 histo = 1; in EstimateBitCostsForLiteralsUTF8()
109 lit_cost = FastLog2(in_window_utf8[utf8_pos]) - FastLog2(histo); in EstimateBitCostsForLiteralsUTF8()
145 size_t histo; in BrotliEstimateBitCostsForLiterals() local
156 histo = histogram[data[(pos + i) & mask]]; in BrotliEstimateBitCostsForLiterals()
157 if (histo == 0) { in BrotliEstimateBitCostsForLiterals()
158 histo = 1; in BrotliEstimateBitCostsForLiterals()
161 double lit_cost = FastLog2(in_window) - FastLog2(histo); in BrotliEstimateBitCostsForLiterals()
Dcompress_fragment.c180 uint32_t histo[128], in EmitInsertLen()
186 ++histo[code]; in EmitInsertLen()
194 ++histo[inscode]; in EmitInsertLen()
201 ++histo[code]; in EmitInsertLen()
205 ++histo[61]; in EmitInsertLen()
212 uint32_t histo[128], in EmitLongInsertLen()
218 ++histo[62]; in EmitLongInsertLen()
222 ++histo[63]; in EmitLongInsertLen()
229 uint32_t histo[128], in EmitCopyLen()
235 ++histo[copylen + 14]; in EmitCopyLen()
[all …]
/third_party/node/deps/brotli/c/enc/
Dbit_cost_inc.h48 uint32_t histo[4]; in FN() local
52 histo[i] = histogram->data_[s[i]]; in FN()
58 if (histo[j] > histo[i]) { in FN()
59 BROTLI_SWAP(uint32_t, histo, j, i); in FN()
63 h23 = histo[2] + histo[3]; in FN()
64 histomax = BROTLI_MAX(uint32_t, h23, histo[0]); in FN()
66 3 * h23 + 2 * (histo[0] + histo[1]) - histomax); in FN()
Dliteral_cost.c104 size_t histo = histogram[utf8_pos][data[masked_pos]]; in EstimateBitCostsForLiteralsUTF8() local
106 if (histo == 0) { in EstimateBitCostsForLiteralsUTF8()
107 histo = 1; in EstimateBitCostsForLiteralsUTF8()
109 lit_cost = FastLog2(in_window_utf8[utf8_pos]) - FastLog2(histo); in EstimateBitCostsForLiteralsUTF8()
145 size_t histo; in BrotliEstimateBitCostsForLiterals() local
156 histo = histogram[data[(pos + i) & mask]]; in BrotliEstimateBitCostsForLiterals()
157 if (histo == 0) { in BrotliEstimateBitCostsForLiterals()
158 histo = 1; in BrotliEstimateBitCostsForLiterals()
161 double lit_cost = FastLog2(in_window) - FastLog2(histo); in BrotliEstimateBitCostsForLiterals()
Dcompress_fragment.c180 uint32_t histo[128], in EmitInsertLen()
186 ++histo[code]; in EmitInsertLen()
194 ++histo[inscode]; in EmitInsertLen()
201 ++histo[code]; in EmitInsertLen()
205 ++histo[61]; in EmitInsertLen()
212 uint32_t histo[128], in EmitLongInsertLen()
218 ++histo[62]; in EmitLongInsertLen()
222 ++histo[63]; in EmitLongInsertLen()
229 uint32_t histo[128], in EmitCopyLen()
235 ++histo[copylen + 14]; in EmitCopyLen()
[all …]
/third_party/flutter/skia/third_party/externals/libwebp/src/dsp/
Dlossless_enc_mips_dsp_r2.c180 int histo[]) { in CollectColorBlueTransforms_MIPSdspR2() argument
211 ++histo[(uint8_t)(temp2 >> 16)]; in CollectColorBlueTransforms_MIPSdspR2()
212 ++histo[(uint8_t)temp2]; in CollectColorBlueTransforms_MIPSdspR2()
215 ++histo[TransformColorBlue(green_to_blue, red_to_blue, *p_argb)]; in CollectColorBlueTransforms_MIPSdspR2()
233 int histo[]) { in CollectColorRedTransforms_MIPSdspR2() argument
256 ++histo[(uint8_t)(temp2 >> 16)]; in CollectColorRedTransforms_MIPSdspR2()
257 ++histo[(uint8_t)temp2]; in CollectColorRedTransforms_MIPSdspR2()
260 ++histo[TransformColorRed(green_to_red, *p_argb)]; in CollectColorRedTransforms_MIPSdspR2()
Dlossless_enc_sse41.c51 int histo[]) { in CollectColorBlueTransforms_SSE41() argument
82 for (i = 0; i < SPAN; ++i) ++histo[values[i]]; in CollectColorBlueTransforms_SSE41()
90 green_to_blue, red_to_blue, histo); in CollectColorBlueTransforms_SSE41()
97 int green_to_red, int histo[]) { in CollectColorRedTransforms_SSE41() argument
120 for (i = 0; i < SPAN; ++i) ++histo[values[i]]; in CollectColorRedTransforms_SSE41()
128 histo); in CollectColorRedTransforms_SSE41()
Dlossless.h128 int green_to_blue, int red_to_blue, int histo[]);
134 int green_to_red, int histo[]);
143 int green_to_red, int histo[]);
147 int histo[]);
/third_party/skia/third_party/externals/libwebp/src/enc/
Danalysis_enc.c113 static int GetAlpha(const VP8Histogram* const histo) { in GetAlpha() argument
117 const int max_value = histo->max_value; in GetAlpha()
118 const int last_non_zero = histo->last_non_zero; in GetAlpha()
124 static void InitHistogram(VP8Histogram* const histo) { in InitHistogram() argument
125 histo->max_value = 0; in InitHistogram()
126 histo->last_non_zero = 1; in InitHistogram()
238 VP8Histogram histo; in MBAnalyzeBestIntra16Mode() local
241 InitHistogram(&histo); in MBAnalyzeBestIntra16Mode()
244 0, 16, &histo); in MBAnalyzeBestIntra16Mode()
245 alpha = GetAlpha(&histo); in MBAnalyzeBestIntra16Mode()
[all …]
Dhistogram_enc.c69 void VP8LFreeHistogram(VP8LHistogram* const histo) { in VP8LFreeHistogram() argument
70 WebPSafeFree(histo); in VP8LFreeHistogram()
73 void VP8LFreeHistogramSet(VP8LHistogramSet* const histo) { in VP8LFreeHistogramSet() argument
74 WebPSafeFree(histo); in VP8LFreeHistogramSet()
78 VP8LHistogram* const histo) { in VP8LHistogramStoreRefs() argument
81 VP8LHistogramAddSinglePixOrCopy(histo, c.cur_pos, NULL, 0); in VP8LHistogramStoreRefs()
112 VP8LHistogram* histo = NULL; in VP8LAllocateHistogram() local
116 histo = (VP8LHistogram*)memory; in VP8LAllocateHistogram()
118 histo->literal_ = (uint32_t*)(memory + sizeof(VP8LHistogram)); in VP8LAllocateHistogram()
119 VP8LHistogramInit(histo, cache_bits, /*init_arrays=*/ 0); in VP8LAllocateHistogram()
[all …]
Dhistogram_enc.h77 VP8LHistogram* const histo);
80 void VP8LFreeHistogram(VP8LHistogram* const histo);
83 void VP8LFreeHistogramSet(VP8LHistogramSet* const histo);
98 void VP8LHistogramAddSinglePixOrCopy(VP8LHistogram* const histo,
Dvp8l_enc.c388 uint32_t* histo; in AnalyzeEntropy() local
397 histo = (uint32_t*)WebPSafeCalloc(kHistoTotal, sizeof(*histo) * 256); in AnalyzeEntropy()
398 if (histo != NULL) { in AnalyzeEntropy()
412 &histo[kHistoAlpha * 256], in AnalyzeEntropy()
413 &histo[kHistoRed * 256], in AnalyzeEntropy()
414 &histo[kHistoGreen * 256], in AnalyzeEntropy()
415 &histo[kHistoBlue * 256]); in AnalyzeEntropy()
417 &histo[kHistoAlphaPred * 256], in AnalyzeEntropy()
418 &histo[kHistoRedPred * 256], in AnalyzeEntropy()
419 &histo[kHistoGreenPred * 256], in AnalyzeEntropy()
[all …]
Dbackward_references_cost_enc.c65 VP8LHistogram* const histo = VP8LAllocateHistogram(cache_bits); in CostModelBuild() local
66 if (histo == NULL) goto Error; in CostModelBuild()
70 VP8LHistogramInit(histo, cache_bits, /*init_arrays=*/ 1); in CostModelBuild()
72 VP8LHistogramAddSinglePixOrCopy(histo, c.cur_pos, VP8LDistanceToPlaneCode, in CostModelBuild()
78 VP8LHistogramNumCodes(histo->palette_code_bits_), in CostModelBuild()
79 histo->literal_, m->literal_); in CostModelBuild()
81 VALUES_IN_BYTE, histo->red_, m->red_); in CostModelBuild()
83 VALUES_IN_BYTE, histo->blue_, m->blue_); in CostModelBuild()
85 VALUES_IN_BYTE, histo->alpha_, m->alpha_); in CostModelBuild()
87 NUM_DISTANCE_CODES, histo->distance_, m->distance_); in CostModelBuild()
[all …]
Dpredictor_enc.c482 int histo[4][256]; in VP8LResidualImage() local
490 memset(histo, 0, sizeof(histo)); in VP8LResidualImage()
495 bits, histo, argb_scratch, argb, max_quantization, exact, in VP8LResidualImage()
544 int histo[256] = { 0 }; in GetPredictionCostCrossColorRed() local
548 green_to_red, histo); in GetPredictionCostCrossColorRed()
550 cur_diff = PredictionCostCrossColor(accumulated_red_histo, histo); in GetPredictionCostCrossColorRed()
597 int histo[256] = { 0 }; in GetPredictionCostCrossColorBlue() local
601 green_to_blue, red_to_blue, histo); in GetPredictionCostCrossColorBlue()
603 cur_diff = PredictionCostCrossColor(accumulated_blue_histo, histo); in GetPredictionCostCrossColorBlue()
/third_party/flutter/skia/third_party/externals/libwebp/src/enc/
Dhistogram_enc.c69 void VP8LFreeHistogram(VP8LHistogram* const histo) { in VP8LFreeHistogram() argument
70 WebPSafeFree(histo); in VP8LFreeHistogram()
73 void VP8LFreeHistogramSet(VP8LHistogramSet* const histo) { in VP8LFreeHistogramSet() argument
74 WebPSafeFree(histo); in VP8LFreeHistogramSet()
78 VP8LHistogram* const histo) { in VP8LHistogramStoreRefs() argument
81 VP8LHistogramAddSinglePixOrCopy(histo, c.cur_pos, NULL, 0); in VP8LHistogramStoreRefs()
112 VP8LHistogram* histo = NULL; in VP8LAllocateHistogram() local
116 histo = (VP8LHistogram*)memory; in VP8LAllocateHistogram()
118 histo->literal_ = (uint32_t*)(memory + sizeof(VP8LHistogram)); in VP8LAllocateHistogram()
119 VP8LHistogramInit(histo, cache_bits, /*init_arrays=*/ 0); in VP8LAllocateHistogram()
[all …]
Dhistogram_enc.h77 VP8LHistogram* const histo);
80 void VP8LFreeHistogram(VP8LHistogram* const histo);
83 void VP8LFreeHistogramSet(VP8LHistogramSet* const histo);
98 void VP8LHistogramAddSinglePixOrCopy(VP8LHistogram* const histo,
Danalysis_enc.c113 static int GetAlpha(const VP8Histogram* const histo) { in GetAlpha() argument
117 const int max_value = histo->max_value; in GetAlpha()
118 const int last_non_zero = histo->last_non_zero; in GetAlpha()
124 static void InitHistogram(VP8Histogram* const histo) { in InitHistogram() argument
125 histo->max_value = 0; in InitHistogram()
126 histo->last_non_zero = 1; in InitHistogram()
248 VP8Histogram histo; in MBAnalyzeBestIntra16Mode() local
251 InitHistogram(&histo); in MBAnalyzeBestIntra16Mode()
254 0, 16, &histo); in MBAnalyzeBestIntra16Mode()
255 alpha = GetAlpha(&histo); in MBAnalyzeBestIntra16Mode()
[all …]
Dvp8l_enc.c195 uint32_t* histo; in AnalyzeEntropy() local
204 histo = (uint32_t*)WebPSafeCalloc(kHistoTotal, sizeof(*histo) * 256); in AnalyzeEntropy()
205 if (histo != NULL) { in AnalyzeEntropy()
219 &histo[kHistoAlpha * 256], in AnalyzeEntropy()
220 &histo[kHistoRed * 256], in AnalyzeEntropy()
221 &histo[kHistoGreen * 256], in AnalyzeEntropy()
222 &histo[kHistoBlue * 256]); in AnalyzeEntropy()
224 &histo[kHistoAlphaPred * 256], in AnalyzeEntropy()
225 &histo[kHistoRedPred * 256], in AnalyzeEntropy()
226 &histo[kHistoGreenPred * 256], in AnalyzeEntropy()
[all …]
Dbackward_references_cost_enc.c65 VP8LHistogram* const histo = VP8LAllocateHistogram(cache_bits); in CostModelBuild() local
66 if (histo == NULL) goto Error; in CostModelBuild()
70 VP8LHistogramInit(histo, cache_bits, /*init_arrays=*/ 1); in CostModelBuild()
72 VP8LHistogramAddSinglePixOrCopy(histo, c.cur_pos, VP8LDistanceToPlaneCode, in CostModelBuild()
78 VP8LHistogramNumCodes(histo->palette_code_bits_), in CostModelBuild()
79 histo->literal_, m->literal_); in CostModelBuild()
81 VALUES_IN_BYTE, histo->red_, m->red_); in CostModelBuild()
83 VALUES_IN_BYTE, histo->blue_, m->blue_); in CostModelBuild()
85 VALUES_IN_BYTE, histo->alpha_, m->alpha_); in CostModelBuild()
87 NUM_DISTANCE_CODES, histo->distance_, m->distance_); in CostModelBuild()
[all …]
Dpredictor_enc.c482 int histo[4][256]; in VP8LResidualImage() local
490 memset(histo, 0, sizeof(histo)); in VP8LResidualImage()
495 bits, histo, argb_scratch, argb, max_quantization, exact, in VP8LResidualImage()
544 int histo[256] = { 0 }; in GetPredictionCostCrossColorRed() local
548 green_to_red, histo); in GetPredictionCostCrossColorRed()
550 cur_diff = PredictionCostCrossColor(accumulated_red_histo, histo); in GetPredictionCostCrossColorRed()
597 int histo[256] = { 0 }; in GetPredictionCostCrossColorBlue() local
601 green_to_blue, red_to_blue, histo); in GetPredictionCostCrossColorBlue()
603 cur_diff = PredictionCostCrossColor(accumulated_blue_histo, histo); in GetPredictionCostCrossColorBlue()

123