Home
last modified time | relevance | path

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

1234

/external/chromium_org/third_party/libvpx/source/libvpx/
Drate_hist.c40 struct rate_hist *hist = malloc(sizeof(*hist)); in init_rate_histogram() local
45 hist->samples = cfg->rc_buf_sz * 5 / 4 * fps->num / fps->den / 1000; in init_rate_histogram()
48 if (hist->samples == 0) in init_rate_histogram()
49 hist->samples = 1; in init_rate_histogram()
51 hist->frames = 0; in init_rate_histogram()
52 hist->total = 0; in init_rate_histogram()
54 hist->pts = calloc(hist->samples, sizeof(*hist->pts)); in init_rate_histogram()
55 hist->sz = calloc(hist->samples, sizeof(*hist->sz)); in init_rate_histogram()
57 hist->bucket[i].low = INT_MAX; in init_rate_histogram()
58 hist->bucket[i].high = 0; in init_rate_histogram()
[all …]
Drate_hist.h25 void destroy_rate_histogram(struct rate_hist *hist);
27 void update_rate_histogram(struct rate_hist *hist,
33 void show_rate_histogram(struct rate_hist *hist, const vpx_codec_enc_cfg_t *cfg,
/external/libvpx/libvpx/
Drate_hist.c40 struct rate_hist *hist = malloc(sizeof(*hist)); in init_rate_histogram() local
45 hist->samples = cfg->rc_buf_sz * 5 / 4 * fps->num / fps->den / 1000; in init_rate_histogram()
48 if (hist->samples == 0) in init_rate_histogram()
49 hist->samples = 1; in init_rate_histogram()
51 hist->frames = 0; in init_rate_histogram()
52 hist->total = 0; in init_rate_histogram()
54 hist->pts = calloc(hist->samples, sizeof(*hist->pts)); in init_rate_histogram()
55 hist->sz = calloc(hist->samples, sizeof(*hist->sz)); in init_rate_histogram()
57 hist->bucket[i].low = INT_MAX; in init_rate_histogram()
58 hist->bucket[i].high = 0; in init_rate_histogram()
[all …]
Drate_hist.h25 void destroy_rate_histogram(struct rate_hist *hist);
27 void update_rate_histogram(struct rate_hist *hist,
33 void show_rate_histogram(struct rate_hist *hist, const vpx_codec_enc_cfg_t *cfg,
/external/opencv/cv/src/
Dcvcalccontrasthistogram.cpp46 CvHistogram* hist, int dont_clear ))
50 CvHistogram* hist, int dont_clear ))
63 CvHistogram* hist, int dont_clear )
68 if( !hist || !img )
71 dims = hist->c_dims;
75 if( hist->type != CV_HIST_ARRAY )
82 for( i = 0; i < hist->c_dims; i++ )
84 if( !hist->thresh[i] )
86 assert( hist->chdims[i] );
89 j = hist->dims[0] * hist->mdims[0];
[all …]
Dcvhistogram.cpp47 CvHistogram *hist = 0; in cvCreateHist() local
58 CV_CALL( hist = (CvHistogram *)cvAlloc( sizeof( CvHistogram ))); in cvCreateHist()
60 hist->type = CV_HIST_MAGIC_VAL; in cvCreateHist()
61 hist->thresh2 = 0; in cvCreateHist()
62 hist->bins = 0; in cvCreateHist()
65 CV_CALL( hist->bins = cvInitMatNDHeader( &hist->mat, dims, sizes, in cvCreateHist()
67 CV_CALL( cvCreateData( hist->bins )); in cvCreateHist()
71 CV_CALL( hist->bins = cvCreateSparseMat( dims, sizes, CV_HIST_DEFAULT_TYPE )); in cvCreateHist()
79 CV_CALL( cvSetHistBinRanges( hist, ranges, uniform )); in cvCreateHist()
84 cvReleaseHist( &hist ); in cvCreateHist()
[all …]
Dcvthresh.cpp197 icvGetThreshVal_Otsu( const CvHistogram* hist ) in icvGetThreshVal_Otsu() argument
214 if( !CV_IS_HIST(hist) || CV_IS_SPARSE_HIST(hist) || hist->mat.dims != 1 ) in icvGetThreshVal_Otsu()
218 count = hist->mat.dim[0].size; in icvGetThreshVal_Otsu()
219 h = (float*)cvPtr1D( hist->bins, 0 ); in icvGetThreshVal_Otsu()
221 if( !CV_HIST_HAS_RANGES(hist) || CV_IS_UNIFORM_HIST(hist) ) in icvGetThreshVal_Otsu()
223 if( CV_HIST_HAS_RANGES(hist) ) in icvGetThreshVal_Otsu()
225 low = hist->thresh[0][0]; in icvGetThreshVal_Otsu()
226 high = hist->thresh[0][1]; in icvGetThreshVal_Otsu()
239 nu_thresh = hist->thresh2[0]; in icvGetThreshVal_Otsu()
299 CvHistogram* hist = 0; in cvThreshold() local
[all …]
Dcvpgh.cpp334 cvCalcPGH( const CvSeq * contour, CvHistogram * hist ) in cvCalcPGH() argument
343 if( !CV_IS_HIST(hist)) in cvCalcPGH()
346 if( CV_IS_SPARSE_HIST( hist )) in cvCalcPGH()
349 dims = cvGetDims( hist->bins, size ); in cvCalcPGH()
357 IPPI_CALL( icvCalcPGH( contour, ((CvMatND*)(hist->bins))->data.fl, size[0], size[1] )); in cvCalcPGH()
/external/srec/srec/clib/
Dspecnorm.c48 else spec->hist[spec_val - spec->low_entry] += UNIT_SIZE; in add_distribution_data()
105 count += spec->hist[ii]; in estimate_percentile()
111 cumval += spec->hist[ii]; in estimate_percentile()
116 count += spec->hist[jj]; in estimate_percentile()
117 accum += spec->hist[jj] * (jj - ii); in estimate_percentile()
141 count += spec->hist[jj]; in estimate_sv6()
142 accum += spec->hist[jj] * ii; in estimate_sv6()
149 totcount += spec->hist[jj]; in estimate_sv6()
235 spec->hist = (long *) CALLOC_CLR(high_entry - low_entry + 1, in create_spectrum_distribution()
258 FREE((char *)spec->hist); in destroy_spectrum_distribution()
[all …]
/external/libedit/examples/
Dtc1.c137 History *hist; in main() local
146 hist = history_init(); /* Init the builtin history */ in main()
148 history(hist, &ev, H_SETSIZE, 100); in main()
160 el_set(el, EL_HIST, history, hist); in main()
222 if (history(hist, &ev, H_SET, lastevent) == -1) in main()
224 history(hist, &ev, H_ADD , buf); in main()
226 history(hist, &ev, H_ENTER, buf); in main()
231 history(hist, &ev, continuation ? H_APPEND : H_ENTER, buf); in main()
254 for (rv = history(hist, &ev, H_LAST); rv != -1; in main()
255 rv = history(hist, &ev, H_PREV)) in main()
[all …]
Dwtc1.c114 HistoryW *hist; in main() local
127 hist = history_winit(); /* Init built-in history */ in main()
128 history_w(hist, &ev, H_SETSIZE, 100); /* Remember 100 events */ in main()
129 history_w(hist, &ev, H_LOAD, hfile); in main()
139 el_wset(el, EL_HIST, history_w, hist); /* FIXME - history_w? */ in main()
193 history_w(hist, &ev, continuation ? H_APPEND : H_ENTER, line); in main()
214 for(rc = history_w(hist, &ev, H_LAST); in main()
216 rc = history_w(hist, &ev, H_PREV)) in main()
222 history_w(hist, &ev, H_CLEAR); in main()
228 history_w(hist, &ev, H_LOAD, in main()
[all …]
/external/webrtc/src/modules/audio_coding/codecs/isac/fix/test/
DISACHist.cc34 unsigned long int hist[601]; in main() local
39 hist[n] = 0; in main()
144 hist[encodedLen]++; in main()
152 totalFrames += hist[n]; in main()
153 fprintf(outFile, "%10lu\n", hist[n]); in main()
164 if(hist[n] > 0) in main()
167 printf(" %3d %3d\n", n, hist[n]); in main()
/external/libvorbis/vq/
Dbookutil.c338 void build_tree_from_lengths(int vals, long *hist, long *lengths){ in build_tree_from_lengths() argument
342 memcpy(histsave,hist,vals*sizeof(long)); in build_tree_from_lengths()
356 if(least==-1 || hist[j]<=least){ in build_tree_from_lengths()
357 least=hist[j]; in build_tree_from_lengths()
362 if((least==-1 || hist[j]<=least) && membership[j]!=first){ in build_tree_from_lengths()
363 least=hist[j]; in build_tree_from_lengths()
372 least=hist[first]+hist[second]; in build_tree_from_lengths()
376 hist[j]=least; in build_tree_from_lengths()
407 void build_tree_from_lengths0(int vals, long *hist, long *lengths){ in build_tree_from_lengths0() argument
417 if(hist[i]>0) in build_tree_from_lengths0()
[all …]
Dhuffbuild.c130 long *hist=_ogg_calloc(vals,sizeof(long)); in main() local
133 for(j=loval;j<vals;j++)hist[j]=guard; in main()
141 hist[val]++; in main()
149 build_tree_from_lengths0(vals,hist,lengths); in main()
Dbookutil.h39 extern void build_tree_from_lengths(int vals, long *hist, long *lengths);
40 extern void build_tree_from_lengths0(int vals, long *hist, long *lengths);
/external/chromium_org/chrome/browser/chromeos/
Dexternal_metrics_unittest.cc40 scoped_ptr<metrics::MetricSample> hist = in TEST_F() local
44 *hist.get(), external_metrics_->uma_events_file_)); in TEST_F()
55 scoped_ptr<metrics::MetricSample> hist = in TEST_F() local
59 *hist.get(), external_metrics_->uma_events_file_)); in TEST_F()
/external/blktrace/btt/
Dunplug_hist.c30 int hist[NBKTS * sizeof(int)]; member
41 memset(hbp->hist, 0, NBKTS * sizeof(int)); in unplug_hist_alloc()
60 hbp->hist[idx]++; in unplug_hist_add()
78 fprintf(fp, "%d %d\n", i, hbp->hist[i]); in unplug_hist_free()
/external/chromium_org/third_party/tcmalloc/chromium/src/tests/
Dmalloc_extension_c_test.c100 int hist[64]; in TestMallocExtension() local
106 MallocExtension_MallocMemoryStats(&blocks, &total, hist); in TestMallocExtension()
134 if (MallocExtension_GetOwnership(hist) != MallocExtension_kNotOwned) { in TestMallocExtension()
/external/chromium_org/third_party/tcmalloc/vendor/src/tests/
Dmalloc_extension_c_test.c100 int hist[64]; in TestMallocExtension() local
106 MallocExtension_MallocMemoryStats(&blocks, &total, hist); in TestMallocExtension()
134 if (MallocExtension_GetOwnership(hist) != MallocExtension_kNotOwned) { in TestMallocExtension()
/external/oprofile/pp/
Dopgprof.cpp186 u16 * hist = (u16*)xcalloc(histsize, sizeof(u16)); in output_gprof() local
208 if (hist[pos] + count > (u16)-1) { in output_gprof()
209 hist[pos] = (u16)-1; in output_gprof()
211 << hist[pos] + count - ((u16)-1) << endl; in output_gprof()
213 hist[pos] += (u16)count; in output_gprof()
218 op_write_file(fp, hist, histsize * sizeof(u16)); in output_gprof()
225 free(hist); in output_gprof()
/external/chromium_org/third_party/webrtc/modules/video_processing/main/interface/
Dvideo_processing.h51 memset(hist, 0, sizeof(hist)); in FrameStats()
54 uint32_t hist[256]; // FRame histogram. member
/external/linux-tools-perf/perf-3.12.0/tools/perf/Documentation/
Dperf-diff.txt82 Show period values for both compared hist entries.
154 - A/B being matching hist entry from data/baseline file specified
157 - period_percent being the % of the hist entry period value within
167 - A/B being matching hist entry from data/baseline file specified
170 - period being the hist entry period value
178 - A/B being matching hist entry from data/baseline file specified
181 - period being the hist entry period value
/external/chromium_org/third_party/webrtc/modules/video_processing/main/source/
Dbrightness_detection.cc54 prop_low += stats.hist[i]; in ProcessFrame()
62 prop_high += stats.hist[i]; in ProcessFrame()
89 sum += stats.hist[i]; in ProcessFrame()
/external/opencv/cv/include/
Dcvcompat.h124 #define cvCalcHistMask(img, mask, hist, doNotClear) cvCalcHist(img, hist, doNotClear, mask) argument
479 #define cvQueryHistValue_1D( hist, idx0 ) \ argument
480 ((float)cvGetReal1D( (hist)->bins, (idx0)))
481 #define cvQueryHistValue_2D( hist, idx0, idx1 ) \ argument
482 ((float)cvGetReal2D( (hist)->bins, (idx0), (idx1)))
483 #define cvQueryHistValue_3D( hist, idx0, idx1, idx2 ) \ argument
484 ((float)cvGetReal3D( (hist)->bins, (idx0), (idx1), (idx2)))
485 #define cvQueryHistValue_nD( hist, idx ) \ argument
486 ((float)cvGetRealND( (hist)->bins, (idx)))
490 #define cvGetHistValue_1D( hist, idx0 ) \ argument
[all …]
Dcv.h779 CVAPI(void) cvCalcPGH( const CvSeq* contour, CvHistogram* hist ); in LOAD_CHDL()
829 CVAPI(void) cvSetHistBinRanges( CvHistogram* hist, float** ranges, in LOAD_CHDL()
834 int dims, int* sizes, CvHistogram* hist, in LOAD_CHDL()
839 CVAPI(void) cvReleaseHist( CvHistogram** hist ); in LOAD_CHDL()
842 CVAPI(void) cvClearHist( CvHistogram* hist ); in LOAD_CHDL()
845 CVAPI(void) cvGetMinMaxHistValue( const CvHistogram* hist, in LOAD_CHDL()
853 CVAPI(void) cvNormalizeHist( CvHistogram* hist, double factor ); in LOAD_CHDL()
857 CVAPI(void) cvThreshHist( CvHistogram* hist, double threshold ); in LOAD_CHDL()
880 CVAPI(void) cvCalcArrHist( CvArr** arr, CvHistogram* hist, in LOAD_CHDL()
884 CV_INLINE void cvCalcHist( IplImage** image, CvHistogram* hist, in LOAD_CHDL()
[all …]

1234