/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
NewChromaHistogramFilter.java | 17 // Extract histogram from image. 19 package androidx.media.filterpacks.histogram; 35 * ChromaHistogramFilter takes in an image in HSVA format and computes a 2-D histogram with a 36 * 2 dimensional chroma histogram based on hue (column) and saturation (row) at the top and 37 * a 1-D value histogram in the last row. The number of bin in the value histogram equals to 65 .addOutputPort("histogram", Signature.PORT_REQUIRED, dataOut) 89 OutputPort outPort = getConnectedOutputPort("histogram");
|
/external/chromium/chrome/browser/tab_contents/ |
thumbnail_generator.cc | 11 #include "base/metrics/histogram.h" 381 int histogram[256] = {0}; local 382 color_utils::BuildLumaHistogram(bitmap, histogram); 384 int color_count = *std::max_element(histogram, histogram + 256);
|
/external/chromium_org/chrome/browser/policy/cloud/ |
cloud_policy_invalidator_unittest.cc | 10 #include "base/metrics/histogram.h" 138 // Get histogram samples for the given histogram. 176 // Stores starting histogram counts for kMetricPolicyRefresh. 179 // Stores starting histogram counts for kMetricPolicyInvalidations. 381 base::HistogramBase* histogram = local 383 if (!histogram) 385 return histogram->SnapshotSamples();
|
/external/chromium_org/chrome/browser/search/ |
search_unittest.cc | 120 base::HistogramBase* histogram = GetHistogram(); local 121 if (histogram) { 122 scoped_ptr<base::HistogramSamples> samples(histogram->SnapshotSamples()); 137 base::HistogramBase* histogram = GetHistogram(); local 138 if (histogram) { 139 scoped_ptr<base::HistogramSamples> samples(histogram->SnapshotSamples());
|
/external/chromium_org/chrome/browser/signin/ |
token_service.cc | 26 #include "base/metrics/histogram.h" 289 // a static histogram in the function - locking us to one metric name. Since 291 // different values, we need to create the histogram ourselves and add the 293 base::HistogramBase* histogram = local 300 histogram->Add(error.state());
|
/external/chromium_org/chrome/browser/spellchecker/ |
spellcheck_custom_dictionary_unittest.cc | 1075 HistogramBase* histogram = local [all...] |
/external/chromium_org/chrome/browser/thumbnails/ |
content_analysis_unittest.cc | 722 int histogram[256] = {}; local 723 color_utils::BuildLumaHistogram(result, histogram); 725 histogram, histogram + 256, std::bind2nd(std::greater<int>(), 0));
|
content_analysis.cc | 68 size_t FindOtsuThresholdingIndex(const std::vector<int>& histogram) { 71 double w1 = histogram[0]; // Total weight of the first class. 75 for (size_t i = 1; i < histogram.size(); ++i) { 76 w2 += histogram[i]; 77 t2 += (0.5 + i) * histogram[i]; 84 // Iterate through all possible ways of splitting the histogram. 85 for (size_t i = 1; i < histogram.size() - 1; i++) { 86 double bin_volume = (0.5 + i) * histogram[i]; 87 w1 += histogram[i]; 88 w2 -= histogram[i] 466 std::vector<int> histogram; local [all...] |
/external/chromium_org/content/ppapi_plugin/ |
ppapi_thread.cc | 12 #include "base/metrics/histogram.h" 509 base::HistogramBase* histogram = local 517 histogram->Add(result);
|
/external/libvorbis/vq/ |
metrics.c | 44 float **histogram=NULL; variable 63 histogram=_ogg_calloc(books,sizeof(float *)); 75 histogram[i]=_ogg_calloc(b->entries,sizeof(float)); 169 sqrt((histogram_errorsq[book]+i*dim)[k]/histogram[book][i])); 185 (histogram_error[book]+i*dim)[k]/histogram[book][i]); 241 histogram[book][entry]++; 253 if(histogram[book][entry]==0 || histogram_hi[book][entry*dim+j]<error) 255 if(histogram[book][entry]==0 || histogram_lo[book][entry*dim+j]>error)
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
KeyboardParams.java | 120 private static int updateHistogramCounter(final SparseIntArray histogram, final int key) { 121 final int index = histogram.indexOfKey(key); 122 final int count = (index >= 0 ? histogram.get(key) : 0) + 1; 123 histogram.put(key, count);
|
/external/chromium_org/net/url_request/ |
url_request_throttler_unittest.cc | 8 #include "base/metrics/histogram.h" 31 using base::Histogram; 181 // After calling this function, histogram snapshots in |samples_| contain 212 // Must retrieve original samples for each histogram for comparison 215 HistogramBase* histogram = StatisticsRecorder::FindHistogram(name); local 216 if (histogram) { 217 original_samples_[name] = histogram->SnapshotSamples().release(); 234 HistogramBase* histogram = StatisticsRecorder::FindHistogram(name); local 235 if (histogram) { 236 ASSERT_EQ(HistogramBase::kUmaTargetedHistogramFlag, histogram->flags()) [all...] |
/external/chromium_org/base/metrics/ |
histogram.cc | 5 // Histogram is an object that aggregates statistics, and can summarize them in 10 #include "base/metrics/histogram.h" 48 DLOG(ERROR) << "Pickle error decoding Histogram: " << *histogram_name; 53 // checks above and beyond those in Histogram::Initialize() 59 DLOG(ERROR) << "Values error decoding Histogram: " << histogram_name; 63 // We use the arguments to find or create the local version of the histogram 71 bool ValidateRangeChecksum(const HistogramBase& histogram, 73 const Histogram& casted_histogram = 74 static_cast<const Histogram&>(histogram); 96 HistogramBase* histogram = StatisticsRecorder::FindHistogram(name); local 357 HistogramBase* histogram = Histogram::FactoryGet( local 545 HistogramBase* histogram = StatisticsRecorder::FindHistogram(name); local 635 HistogramBase* histogram = LinearHistogram::FactoryGet( local 649 HistogramBase* histogram = StatisticsRecorder::FindHistogram(name); local 690 HistogramBase* histogram = BooleanHistogram::FactoryGet( local 708 HistogramBase* histogram = StatisticsRecorder::FindHistogram(name); local 793 HistogramBase* histogram = CustomHistogram::FactoryGet( local [all...] |
/external/chromium_org/cc/layers/ |
heads_up_display_layer_impl.cc | 365 // Collect graph and histogram data. 369 double histogram[kHistogramSize] = { 1.0 }; local 395 // Use the fps value to find the right bucket in the histogram. 400 histogram[bucket_index] += delta.InSecondsF(); 401 max_bucket_value = std::max(histogram[bucket_index], max_bucket_value); 405 // Draw FPS histogram. 422 if (histogram[i] > 0) { 424 histogram[i] / max_bucket_value * histogram_bounds.width();
|
/external/chromium_org/chrome/browser/ui/search/ |
instant_extended_interactive_uitest.cc | 162 base::HistogramBase* histogram = local 164 if (!histogram) { 165 // If no histogram is found, it's possible that no values have been 169 return histogram->SnapshotSamples()->TotalCount(); [all...] |
/external/chromium_org/components/autofill/core/browser/ |
autofill_metrics.cc | 8 #include "base/metrics/histogram.h" 160 // Returns the histogram prefix to use for reporting metrics for |dialog_type|. 206 base::HistogramBase* histogram = local 213 histogram->Add(sample); 221 base::HistogramBase* histogram = local 222 base::Histogram::FactoryTimeGet( 228 histogram->AddTime(duration); 236 base::HistogramBase* histogram = local 237 base::Histogram::FactoryTimeGet( 243 histogram->AddTime(duration) [all...] |
/external/chromium_org/sql/ |
connection.cc | 13 #include "base/metrics/histogram.h" 219 base::HistogramBase* histogram = local 220 base::Histogram::FactoryGet( 223 if (histogram) 224 histogram->Add(sample); 840 // Histogram failures specific to initial open for debugging 989 // TODO(shess): The histogram macros create a bit of static storage 990 // for caching the histogram object. This code shouldn't execute 994 base::HistogramBase* histogram = local 998 if (histogram) [all...] |
/external/chromium_org/content/renderer/ |
render_thread_impl.cc | 20 #include "base/metrics/histogram.h" 217 base::HistogramBase* histogram = base::Histogram::FactoryGet( local 219 base::Histogram::kUmaTargetedHistogramFlag); 220 return histogram; 224 base::Histogram* histogram = static_cast<base::Histogram*>(hist); local 225 histogram->Add(sample); [all...] |
/external/chromium_org/third_party/libwebp/enc/ |
vp8l.c | 325 int histogram[CODE_LENGTH_CODES] = { 0 }; local 328 ++histogram[tokens[i].code]; 331 if (!VP8LCreateHuffmanTree(histogram, 7, &huffman_code)) { 487 // Build histogram image and symbols from backward references. 490 // Create Huffman bit lengths and codes for each histogram image. 552 // Build histogram image and symbols from backward references. 559 // Create Huffman bit lengths and codes for each histogram image. [all...] |
/external/webp/src/enc/ |
vp8l.c | 325 int histogram[CODE_LENGTH_CODES] = { 0 }; local 328 ++histogram[tokens[i].code]; 331 if (!VP8LCreateHuffmanTree(histogram, 7, &huffman_code)) { 487 // Build histogram image and symbols from backward references. 490 // Create Huffman bit lengths and codes for each histogram image. 552 // Build histogram image and symbols from backward references. 559 // Create Huffman bit lengths and codes for each histogram image. [all...] |
/external/chromium_org/third_party/tcmalloc/chromium/src/tests/ |
heap-checker_unittest.cc | 268 int histogram[kMallocHistogramSize]; local 270 ->MallocMemoryStats(&blocks, &total, histogram) && total != 0) { 274 if (histogram[i]) { 275 VLOG(3) << " Malloc histogram at " << i << " : " << histogram[i]; local [all...] |
/external/chromium_org/third_party/tcmalloc/vendor/src/tests/ |
heap-checker_unittest.cc | 268 int histogram[kMallocHistogramSize]; local 270 ->MallocMemoryStats(&blocks, &total, histogram) && total != 0) { 274 if (histogram[i]) { 275 VLOG(3) << " Malloc histogram at " << i << " : " << histogram[i]; local [all...] |
/external/jpeg/ |
jquant2.c | 34 * In the first pass over the image, we accumulate a histogram showing the 35 * usage count of each possible color. To keep the histogram to a reasonable 38 * in the same histogram cell. 81 * you'll probably want to tweak the histogram sizes too. 102 * First we have the histogram data structure and routines for creating it. 109 * To maintain a fully accurate histogram, we'd need to allocate a "long" 113 * enough results. This reduces the recommended histogram size from 256Kb 115 * (In the second pass the histogram space is re-used for pixel mapping data; 119 * machines, we can't just allocate the histogram in one chunk. Instead 132 #define HIST_C0_BITS 5 /* bits of precision in R/B histogram */ 201 hist3d histogram; \/* pointer to the histogram *\/ member in struct:__anon21463 230 register hist3d histogram = cquantize->histogram; local 318 hist3d histogram = cquantize->histogram; local 505 hist3d histogram = cquantize->histogram; local 861 hist3d histogram = cquantize->histogram; local 920 hist3d histogram = cquantize->histogram; local 954 hist3d histogram = cquantize->histogram; local 1170 hist3d histogram = cquantize->histogram; local [all...] |
/external/qemu/distrib/jpeg-6b/ |
jquant2.c | 34 * In the first pass over the image, we accumulate a histogram showing the 35 * usage count of each possible color. To keep the histogram to a reasonable 38 * in the same histogram cell. 81 * you'll probably want to tweak the histogram sizes too. 102 * First we have the histogram data structure and routines for creating it. 109 * To maintain a fully accurate histogram, we'd need to allocate a "long" 113 * enough results. This reduces the recommended histogram size from 256Kb 115 * (In the second pass the histogram space is re-used for pixel mapping data; 119 * machines, we can't just allocate the histogram in one chunk. Instead 132 #define HIST_C0_BITS 5 /* bits of precision in R/B histogram */ 201 hist3d histogram; \/* pointer to the histogram *\/ member in struct:__anon26692 230 register hist3d histogram = cquantize->histogram; local 318 hist3d histogram = cquantize->histogram; local 505 hist3d histogram = cquantize->histogram; local 861 hist3d histogram = cquantize->histogram; local 920 hist3d histogram = cquantize->histogram; local 954 hist3d histogram = cquantize->histogram; local 1170 hist3d histogram = cquantize->histogram; local [all...] |
/device/lge/mako/camera/QCamera/HAL/core/src/ |
QCameraHWI_Parm.cpp | 107 //for histogram stats 304 static const str_map histogram[] = { member in namespace:android 802 //Currently Enabling Histogram for 8x60 804 histogram,sizeof(histogram)/sizeof(str_map)); [all...] |