Home
last modified time | relevance | path

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

1234567

/third_party/node/src/
Dhistogram.cc24 hdr_histogram* histogram; in Histogram() local
28 &histogram)); in Histogram()
29 histogram_.reset(histogram); in Histogram()
39 HistogramImpl::HistogramImpl(std::shared_ptr<Histogram> histogram) in HistogramImpl() argument
40 : histogram_(std::move(histogram)) {} in HistogramImpl()
54 std::shared_ptr<Histogram> histogram) in HistogramBase() argument
56 HistogramImpl(std::move(histogram)) { in HistogramBase()
61 tracker->TrackField("histogram", histogram()); in MemoryInfo()
65 HistogramBase* histogram; in GetCount() local
66 ASSIGN_OR_RETURN_UNWRAP(&histogram, args.Holder()); in GetCount()
[all …]
Dhistogram.h74 explicit HistogramImpl(std::shared_ptr<Histogram> histogram);
78 const std::shared_ptr<Histogram>& histogram() const { return histogram_; } in histogram() function
97 std::shared_ptr<Histogram> histogram);
137 std::shared_ptr<Histogram> histogram);
146 explicit HistogramTransferData(const HistogramBase* histogram) in HistogramTransferData() argument
147 : histogram_(histogram->histogram()) {} in HistogramTransferData()
149 explicit HistogramTransferData(std::shared_ptr<Histogram> histogram) in HistogramTransferData() argument
150 : histogram_(std::move(histogram)) {} in HistogramTransferData()
/third_party/node/test/sequential/
Dtest-performance-eventloopdelay.js12 const histogram = monitorEventLoopDelay(); constant
13 assert(histogram);
14 assert(histogram.enable());
15 assert(!histogram.enable());
16 histogram.reset();
17 assert(histogram.disable());
18 assert(!histogram.disable());
54 const histogram = monitorEventLoopDelay({ resolution: 1 }); constant
55 histogram.enable();
62 histogram.disable();
[all …]
/third_party/skia/third_party/externals/brotli/c/enc/
Dbit_cost_inc.h12 double FN(BrotliPopulationCost)(const HistogramType* histogram) { in FN()
22 if (histogram->total_count_ == 0) { in FN()
26 if (histogram->data_[i] > 0) { in FN()
36 return (kTwoSymbolHistogramCost + (double)histogram->total_count_); in FN()
39 const uint32_t histo0 = histogram->data_[s[0]]; in FN()
40 const uint32_t histo1 = histogram->data_[s[1]]; in FN()
41 const uint32_t histo2 = histogram->data_[s[2]]; in FN()
52 histo[i] = histogram->data_[s[i]]; in FN()
75 const double log2total = FastLog2(histogram->total_count_); in FN()
77 if (histogram->data_[i] > 0) { in FN()
[all …]
Dliteral_cost.c61 size_t histogram[3][256] = { { 0 } }; in EstimateBitCostsForLiteralsUTF8() local
72 ++histogram[utf8_pos][c]; in EstimateBitCostsForLiteralsUTF8()
88 --histogram[utf8_pos2][data[(pos + i - window_half) & mask]]; in EstimateBitCostsForLiteralsUTF8()
96 ++histogram[utf8_pos2][data[(pos + i + window_half) & mask]]; in EstimateBitCostsForLiteralsUTF8()
104 size_t histo = histogram[utf8_pos][data[masked_pos]]; in EstimateBitCostsForLiteralsUTF8()
133 size_t histogram[256] = { 0 }; in BrotliEstimateBitCostsForLiterals() local
140 ++histogram[data[(pos + i) & mask]]; in BrotliEstimateBitCostsForLiterals()
148 --histogram[data[(pos + i - window_half) & mask]]; in BrotliEstimateBitCostsForLiterals()
153 ++histogram[data[(pos + i + window_half) & mask]]; in BrotliEstimateBitCostsForLiterals()
156 histo = histogram[data[(pos + i) & mask]]; in BrotliEstimateBitCostsForLiterals()
/third_party/node/deps/brotli/c/enc/
Dbit_cost_inc.h12 double FN(BrotliPopulationCost)(const HistogramType* histogram) { in FN()
22 if (histogram->total_count_ == 0) { in FN()
26 if (histogram->data_[i] > 0) { in FN()
36 return (kTwoSymbolHistogramCost + (double)histogram->total_count_); in FN()
39 const uint32_t histo0 = histogram->data_[s[0]]; in FN()
40 const uint32_t histo1 = histogram->data_[s[1]]; in FN()
41 const uint32_t histo2 = histogram->data_[s[2]]; in FN()
52 histo[i] = histogram->data_[s[i]]; in FN()
75 const double log2total = FastLog2(histogram->total_count_); in FN()
77 if (histogram->data_[i] > 0) { in FN()
[all …]
Dliteral_cost.c61 size_t histogram[3][256] = { { 0 } }; in EstimateBitCostsForLiteralsUTF8() local
72 ++histogram[utf8_pos][c]; in EstimateBitCostsForLiteralsUTF8()
88 --histogram[utf8_pos2][data[(pos + i - window_half) & mask]]; in EstimateBitCostsForLiteralsUTF8()
96 ++histogram[utf8_pos2][data[(pos + i + window_half) & mask]]; in EstimateBitCostsForLiteralsUTF8()
104 size_t histo = histogram[utf8_pos][data[masked_pos]]; in EstimateBitCostsForLiteralsUTF8()
133 size_t histogram[256] = { 0 }; in BrotliEstimateBitCostsForLiterals() local
140 ++histogram[data[(pos + i) & mask]]; in BrotliEstimateBitCostsForLiterals()
148 --histogram[data[(pos + i - window_half) & mask]]; in BrotliEstimateBitCostsForLiterals()
153 ++histogram[data[(pos + i + window_half) & mask]]; in BrotliEstimateBitCostsForLiterals()
156 histo = histogram[data[(pos + i) & mask]]; in BrotliEstimateBitCostsForLiterals()
/third_party/node/deps/v8/tools/
Deval_gc_nvp.py52 self.histogram = {}
58 if index not in self.histogram:
59 self.histogram[index] = 0
60 self.histogram[index] += 1
64 keys = self.histogram.keys()
72 str(min_value), str(max_value), self.histogram[i]))
81 def __init__(self, key, histogram, csv, percentiles): argument
84 self.histogram = histogram
91 if self.histogram:
92 self.histogram.add(float(entry[self.key]))
[all …]
/third_party/node/lib/internal/perf/
Dtimerify.js37 function processComplete(name, start, args, histogram) { argument
39 if (histogram !== undefined)
40 histogram.record(MathCeil(duration * 1e6));
60 histogram,
63 if (histogram !== undefined &&
64 (!isHistogram(histogram) || typeof histogram.record !== 'function')) {
68 histogram);
85 histogram));
87 processComplete(fn.name, start, args, histogram);
/third_party/ffmpeg/libavfilter/
Dvf_midequalizer.c36 float *histogram[2]; member
121 s->histogram[0], s->histogram[1], in process_frame()
131 int w, int h, float *histogram, size_t hsize) in compute_histogram8() argument
135 memset(histogram, 0, hsize * sizeof(*histogram)); in compute_histogram8()
139 histogram[src[x]] += 1; in compute_histogram8()
145 histogram[x + 1] += histogram[x]; in compute_histogram8()
146 histogram[x] /= hsize; in compute_histogram8()
148 histogram[x] /= hsize; in compute_histogram8()
152 int w, int h, float *histogram, size_t hsize) in compute_histogram16() argument
156 memset(histogram, 0, hsize * sizeof(*histogram)); in compute_histogram16()
[all …]
Dvf_entropy.c42 int64_t *histogram; member
95 s->histogram = av_malloc_array(1 << s->depth, sizeof(*s->histogram)); in config_input()
96 if (!s->histogram) in config_input()
118 memset(s->histogram, 0, (1 << s->depth) * sizeof(*s->histogram)); in filter_frame()
123 s->histogram[src8[x]]++; in filter_frame()
131 s->histogram[src16[x]]++; in filter_frame()
140 if (s->histogram[y]) { in filter_frame()
141 float p = s->histogram[y] / total; in filter_frame()
145 if (y && (s->histogram[y] - s->histogram[y - 1]) != 0) { in filter_frame()
146 float p = FFABS(s->histogram[y] - s->histogram[y - 1]) / total; in filter_frame()
[all …]
Dvf_thumbnail_cuda.cu26 int *histogram, int src_width, int src_height) in Thumbnail_uchar() argument
33 atomicAdd(&histogram[pixel], 1); in Thumbnail_uchar()
38 int *histogram, int src_width, int src_height) in Thumbnail_uchar2() argument
46 atomicAdd(&histogram[pixel.x], 1); in Thumbnail_uchar2()
47 atomicAdd(&histogram[256 + pixel.y], 1); in Thumbnail_uchar2()
52 int *histogram, int src_width, int src_height) in Thumbnail_ushort() argument
60 atomicAdd(&histogram[pixel], 1); in Thumbnail_ushort()
65 int *histogram, int src_width, int src_height) in Thumbnail_ushort2() argument
73 atomicAdd(&histogram[(pixel.x + 128) >> 8], 1); in Thumbnail_ushort2()
74 atomicAdd(&histogram[256 + ((pixel.y + 128) >> 8)], 1); in Thumbnail_ushort2()
Dvf_tmidequalizer.c46 float *histogram[4][256]; member
52 int w, int h, float *histogram, size_t hsize);
195 s->histogram[p][s->f_frames], in filter_frame()
206 memcpy(s->histogram[p][s->f_frames], in filter_frame()
207 s->histogram[p][s->f_frames - 1], in filter_frame()
221 memcpy(s->histogram[p][s->f_frames], in filter_frame()
222 s->histogram[p][s->f_frames - 1], in filter_frame()
237 s->histogram[p][s->del_frame], in filter_frame()
268 compute_contrast_function((const float *const *)s->histogram[p], s->kernel, in filter_frame()
274 s->change[p], s->histogram[p][idx]); in filter_frame()
[all …]
Dvf_thumbnail_cuda.c52 int histogram[HIST_SIZE]; ///< RGB color distribution histogram of the frame member
130 avg_hist[j] += (double)s->frames[i].histogram[j]; in get_best_frame()
136 sq_err = frame_sum_square_err(s->frames[i].histogram, avg_hist); in get_best_frame()
143 memset(s->frames[i].histogram, 0, sizeof(s->frames[i].histogram)); in get_best_frame()
160 int *histogram, uint8_t *src_dptr, int src_width, int src_height, int src_pitch, int pixel_size) in thumbnail_kernel() argument
166 void *args[] = { &tex, &histogram, &src_width, &src_height }; in thumbnail_kernel()
199 static int thumbnail(AVFilterContext *ctx, int *histogram, AVFrame *in) in thumbnail() argument
207 histogram, in->data[0], in->width, in->height, in->linesize[0], 1); in thumbnail()
209 histogram + 256, in->data[1], in->width / 2, in->height / 2, in->linesize[1], 1); in thumbnail()
213 histogram, in->data[0], in->width, in->height, in->linesize[0], 1); in thumbnail()
[all …]
Daf_volumedetect.c33 uint64_t histogram[0x10001]; member
53 vd->histogram[pcm[i] + 0x8000]++; in filter_frame()
77 nb_samples += vd->histogram[i]; in print_stats()
88 nb_samples_shift += vd->histogram[i] >> shift; in print_stats()
89 power += (i - 0x8000) * (i - 0x8000) * (vd->histogram[i] >> shift); in print_stats()
98 while (max_volume > 0 && !vd->histogram[0x8000 + max_volume] && in print_stats()
99 !vd->histogram[0x8000 - max_volume]) in print_stats()
104 histdb[(int)logdb((i - 0x8000) * (i - 0x8000))] += vd->histogram[i]; in print_stats()
Dvf_readeia608.c65 uint64_t *histogram; member
156 if (!scan->histogram) in config_filter()
157 scan->histogram = av_calloc(s->max + 1, sizeof(*scan->histogram)); in config_filter()
162 if (!scan->line || !scan->code || !scan->histogram) in config_filter()
174 memset(scan->histogram, 0, (s->max + 1) * sizeof(*scan->histogram)); in build_histogram()
177 scan->histogram[line[i].input]++; in build_histogram()
188 if (scan->histogram[i]) { in find_black_and_white()
195 if (scan->histogram[i]) { in find_black_and_white()
205 if (scan->histogram[i] > cnt) { in find_black_and_white()
206 cnt = scan->histogram[i]; in find_black_and_white()
[all …]
Dvf_deflicker.c60 uint64_t *histogram; member
166 memset(s->histogram, 0, (1 << s->depth) * sizeof(*s->histogram)); in calc_avgy8()
170 s->histogram[src[x]]++; in calc_avgy8()
176 sum += s->histogram[y] * y; in calc_avgy8()
189 memset(s->histogram, 0, (1 << s->depth) * sizeof(*s->histogram)); in calc_avgy16()
193 s->histogram[src[x]]++; in calc_avgy16()
199 sum += s->histogram[y] * y; in calc_avgy16()
336 s->histogram = av_calloc(1 << s->depth, sizeof(*s->histogram)); in config_input()
337 if (!s->histogram) in config_input()
440 av_freep(&s->histogram); in uninit()
/third_party/node/deps/v8/src/logging/
Dcounters-scopes.h17 explicit BaseTimedHistogramScope(TimedHistogram* histogram) in BaseTimedHistogramScope() argument
18 : histogram_(histogram) {} in BaseTimedHistogramScope()
56 explicit TimedHistogramScope(TimedHistogram* histogram,
58 : BaseTimedHistogramScope(histogram), isolate_(isolate) { in BaseTimedHistogramScope() argument
81 OptionalTimedHistogramScope(TimedHistogram* histogram, Isolate* isolate, in OptionalTimedHistogramScope() argument
83 : BaseTimedHistogramScope(histogram), isolate_(isolate), mode_(mode) { in OptionalTimedHistogramScope()
113 void set_histogram(TimedHistogram* histogram) { in set_histogram() argument
114 DCHECK_IMPLIES(histogram->Enabled(), histogram->ToggleRunningState(true)); in set_histogram()
115 histogram_ = histogram; in set_histogram()
122 explicit NestedTimedHistogramScope(NestedTimedHistogram* histogram,
[all …]
Dcounters.cc121 for (const auto& histogram : kHistograms) { in Counters() local
122 (this->*histogram.member) in Counters()
123 .Initialize(histogram.caption, histogram.min, histogram.max, in Counters()
124 histogram.num_buckets, this); in Counters()
204 for (const auto& histogram : kLegacyMemoryHistograms) { in Counters() local
205 (this->*histogram.member) in Counters()
206 .Initialize(histogram.caption, 1000, 500000, 50, this); in Counters()
/third_party/node/test/parallel/
Dtest-performance-function.js93 const histogram = createHistogram(); constant
95 const n = performance.timerify(m, { histogram }); field
96 assert.strictEqual(histogram.max, 0);
101 assert.notStrictEqual(histogram.max, 0);
102 [1, '', {}, [], false].forEach((histogram) => {
103 assert.throws(() => performance.timerify(m, { histogram }), { field
110 const histogram = createHistogram(); constant
114 const n = performance.timerify(m, { histogram }); field
115 assert.strictEqual(histogram.max, 0);
119 assert.notStrictEqual(histogram.max, 0);
[all …]
/third_party/skia/third_party/externals/angle2/src/tests/test_utils/runner/
DHistogramWriter.cpp82 for (const auto &histogram : mHistograms) in getAsJSON() local
84 std::unique_ptr<proto::Histogram> proto = histogram.second->toProto(); in getAsJSON()
95 const proto::Histogram &histogram = histogramSet.histograms(histogramIndex); in getAsJSON() local
99 js::Value name(histogram.name(), allocator); in getAsJSON()
102 js::Value description(histogram.description(), allocator); in getAsJSON()
105 js::Value unitAndDirection(GetUnitAndDirection(histogram.unit()), allocator); in getAsJSON()
108 if (histogram.has_diagnostics()) in getAsJSON()
112 for (const auto &mapIter : histogram.diagnostics().diagnostic_map()) in getAsJSON()
152 for (int sampleIndex = 0; sampleIndex < histogram.sample_values_size(); ++sampleIndex) in getAsJSON()
154 js::Value sample(histogram.sample_values(sampleIndex)); in getAsJSON()
[all …]
/third_party/skia/third_party/externals/opengl-registry/extensions/EXT/
DEXT_histogram.txt25 specific color component values (histogram) and that track the minimum
27 pixel data to be discarded after the histogram and/or minmax operations
140 The specification of histogram and minmax operators is added to
142 histogram table is specified using the HistogramEXT command. Its
143 <target> parameter must be HISTOGRAM_EXT if a histogram table is
146 2, specifies the number of entries in the histogram table, and its
149 the histogram operation (TRUE) or passed on to the minmax
152 TABLE_TOO_LARGE_EXT results if the specified histogram table is
161 histogram table is redefined to have <width> entries, each with the
164 to zero. The values in the previous histogram table, if any, are lost.
[all …]
/third_party/openGLES/extensions/EXT/
DEXT_histogram.txt25 specific color component values (histogram) and that track the minimum
27 pixel data to be discarded after the histogram and/or minmax operations
140 The specification of histogram and minmax operators is added to
142 histogram table is specified using the HistogramEXT command. Its
143 <target> parameter must be HISTOGRAM_EXT if a histogram table is
146 2, specifies the number of entries in the histogram table, and its
149 the histogram operation (TRUE) or passed on to the minmax
152 TABLE_TOO_LARGE_EXT results if the specified histogram table is
161 histogram table is redefined to have <width> entries, each with the
164 to zero. The values in the previous histogram table, if any, are lost.
[all …]
/third_party/skia/third_party/externals/libjpeg-turbo/
Djquant2.c180 hist3d histogram; /* pointer to the histogram */ member
209 register hist3d histogram = cquantize->histogram; in prescan_quantize() local
218 histp = &histogram[ptr[0] >> C0_SHIFT] in prescan_quantize()
297 hist3d histogram = cquantize->histogram; in update_box() local
311 histp = &histogram[c0][c1][c2min]; in update_box()
322 histp = &histogram[c0][c1][c2min]; in update_box()
333 histp = &histogram[c0][c1][c2min]; in update_box()
344 histp = &histogram[c0][c1][c2min]; in update_box()
355 histp = &histogram[c0][c1min][c2]; in update_box()
366 histp = &histogram[c0][c1min][c2]; in update_box()
[all …]
/third_party/mesa3d/src/amd/vulkan/radix_sort/shaders/
Dhistogram.comp36 // Push constants for histogram shader
160 uint32_t histogram[RS_RADIX_SIZE];
197 // Zero SMEM histogram
205 smem.histogram[smem_offset + ii] = 0;
214 smem.histogram[smem_offset + ii] = 0;
221 smem.histogram[smem_idx] = 0;
230 smem.histogram[gl_LocalInvocationID.x] = 0;
251 const uint32_t count = smem.histogram[smem_offset + ii];
262 const uint32_t count = smem.histogram[smem_offset + ii];
271 const uint32_t count = smem.histogram[smem_idx];
[all …]

1234567