/hardware/intel/img/libdrm/tests/ |
drmstat.c | 360 int histo[HISTOSIZE]; local 369 for (i = 0; i < HISTOSIZE; i++) histo[i] = 0; 379 if (wt <= 2.5) ++histo[8]; 380 if (wt < 5.0) ++histo[0]; 381 else if (wt < 50.0) ++histo[1]; 382 else if (wt < 500.0) ++histo[2]; 383 else if (wt < 5000.0) ++histo[3]; 384 else if (wt < 50000.0) ++histo[4]; 385 else if (wt < 500000.0) ++histo[5]; 386 else if (wt < 5000000.0) ++histo[6] [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/info/ |
HistogramView.java | 43 int[] histo = new int[256 * 3]; local 55 histo[r]++; 56 histo[256 + g]++; 57 histo[512 + b]++; 60 return histo;
|
/external/chromium_org/third_party/brotli/src/brotli/enc/ |
block_splitter.cc | 105 HistogramType histo; local 106 histo.Add(data + pos, stride); 107 vec->push_back(histo);
|
/external/chromium_org/third_party/libwebp/enc/ |
analysis.c | 113 static int GetAlpha(const VP8Histogram* const histo) { 118 const int value = histo->distribution[k]; 150 // 'int' type is ok for histo, and won't overflow 244 VP8Histogram histo = { { 0 } }; local 249 0, 16, &histo); 250 alpha = GetAlpha(&histo); 286 cur_histo ^= 1; // keep track of best histo so far. 310 VP8Histogram histo = { { 0 } }; local 314 16, 16 + 4 + 4, &histo); 315 alpha = GetAlpha(&histo); [all...] |
backward_references.c | 496 VP8LHistogram* histo = NULL; local 511 histo = VP8LAllocateHistogram(cache_bits); 512 if (histo == NULL) goto Error; 514 VP8LHistogramCreate(histo, refs, cache_bits); 517 VP8LHistogramNumCodes(histo->palette_code_bits_), 518 histo->literal_, m->literal_); 520 VALUES_IN_BYTE, histo->red_, m->red_); 522 VALUES_IN_BYTE, histo->blue_, m->blue_); 524 VALUES_IN_BYTE, histo->alpha_, m->alpha_); 526 NUM_DISTANCE_CODES, histo->distance_, m->distance_) 840 VP8LHistogram* const histo = VP8LAllocateHistogram(cache_bits); local 892 VP8LHistogram* histo = VP8LAllocateHistogram(cache_bits); local [all...] |
histogram.c | 57 void VP8LFreeHistogram(VP8LHistogram* const histo) { 58 WebPSafeFree(histo); 61 void VP8LFreeHistogramSet(VP8LHistogramSet* const histo) { 62 WebPSafeFree(histo); 66 VP8LHistogram* const histo) { 69 VP8LHistogramAddSinglePixOrCopy(histo, c.cur_pos); 90 VP8LHistogram* histo = NULL; local 94 histo = (VP8LHistogram*)memory; 96 histo->literal_ = (uint32_t*)(memory + sizeof(VP8LHistogram)); 97 VP8LHistogramInit(histo, cache_bits) 454 VP8LHistogram* const histo = orig_histograms[i]; local 474 VP8LHistogram* const histo = histograms[i]; local 482 VP8LHistogram* const histo = histograms[i]; local [all...] |
vp8l.c | 199 const VP8LHistogram* const histo = histogram_image->histograms[i]; local 203 (k == 0) ? VP8LHistogramNumCodes(histo->palette_code_bits_) : 240 VP8LHistogram* const histo = histogram_image->histograms[i]; local 241 VP8LCreateHuffmanTree(histo->literal_, 15, buf_rle, huff_tree, codes + 0); 242 VP8LCreateHuffmanTree(histo->red_, 15, buf_rle, huff_tree, codes + 1); 243 VP8LCreateHuffmanTree(histo->blue_, 15, buf_rle, huff_tree, codes + 2); 244 VP8LCreateHuffmanTree(histo->alpha_, 15, buf_rle, huff_tree, codes + 3); 245 VP8LCreateHuffmanTree(histo->distance_, 15, buf_rle, huff_tree, codes + 4); 709 VP8LHistogram* const histo = VP8LAllocateHistogram(1); local 710 if (histo == NULL) return VP8_ENC_ERROR_OUT_OF_MEMORY [all...] |
/external/webp/src/enc/ |
analysis.c | 113 static int GetAlpha(const VP8Histogram* const histo) { 118 const int value = histo->distribution[k]; 150 // 'int' type is ok for histo, and won't overflow 244 VP8Histogram histo = { { 0 } }; local 249 0, 16, &histo); 250 alpha = GetAlpha(&histo); 286 cur_histo ^= 1; // keep track of best histo so far. 310 VP8Histogram histo = { { 0 } }; local 314 16, 16 + 4 + 4, &histo); 315 alpha = GetAlpha(&histo); [all...] |
backward_references.c | 496 VP8LHistogram* histo = NULL; local 511 histo = VP8LAllocateHistogram(cache_bits); 512 if (histo == NULL) goto Error; 514 VP8LHistogramCreate(histo, refs, cache_bits); 517 VP8LHistogramNumCodes(histo->palette_code_bits_), 518 histo->literal_, m->literal_); 520 VALUES_IN_BYTE, histo->red_, m->red_); 522 VALUES_IN_BYTE, histo->blue_, m->blue_); 524 VALUES_IN_BYTE, histo->alpha_, m->alpha_); 526 NUM_DISTANCE_CODES, histo->distance_, m->distance_) 840 VP8LHistogram* const histo = VP8LAllocateHistogram(cache_bits); local 892 VP8LHistogram* histo = VP8LAllocateHistogram(cache_bits); local [all...] |
histogram.c | 57 void VP8LFreeHistogram(VP8LHistogram* const histo) { 58 WebPSafeFree(histo); 61 void VP8LFreeHistogramSet(VP8LHistogramSet* const histo) { 62 WebPSafeFree(histo); 66 VP8LHistogram* const histo) { 69 VP8LHistogramAddSinglePixOrCopy(histo, c.cur_pos); 90 VP8LHistogram* histo = NULL; local 94 histo = (VP8LHistogram*)memory; 96 histo->literal_ = (uint32_t*)(memory + sizeof(VP8LHistogram)); 97 VP8LHistogramInit(histo, cache_bits) 454 VP8LHistogram* const histo = orig_histograms[i]; local 474 VP8LHistogram* const histo = histograms[i]; local 482 VP8LHistogram* const histo = histograms[i]; local [all...] |
vp8l.c | 199 const VP8LHistogram* const histo = histogram_image->histograms[i]; local 203 (k == 0) ? VP8LHistogramNumCodes(histo->palette_code_bits_) : 240 VP8LHistogram* const histo = histogram_image->histograms[i]; local 241 VP8LCreateHuffmanTree(histo->literal_, 15, buf_rle, huff_tree, codes + 0); 242 VP8LCreateHuffmanTree(histo->red_, 15, buf_rle, huff_tree, codes + 1); 243 VP8LCreateHuffmanTree(histo->blue_, 15, buf_rle, huff_tree, codes + 2); 244 VP8LCreateHuffmanTree(histo->alpha_, 15, buf_rle, huff_tree, codes + 3); 245 VP8LCreateHuffmanTree(histo->distance_, 15, buf_rle, huff_tree, codes + 4); 709 VP8LHistogram* const histo = VP8LAllocateHistogram(1); local 710 if (histo == NULL) return VP8_ENC_ERROR_OUT_OF_MEMORY [all...] |
/external/valgrind/main/exp-dhat/ |
dh_main.c | 212 UInt* histo; /* [0 .. xsize-1] */ member in struct:__anon16479 245 // histo stuff 289 the access counts and histo data that have so far accumulated for 334 // histo stuff. First, do state transitions for xsize/xsize_tag. 340 tl_assert(!api->histo); 344 // and allocate the histo 346 api->histo = VG_(malloc)("dh.main.retire_Block.1", 348 VG_(memset)(api->histo, 0, api->xsize * sizeof(UInt)); 359 // deallocate the histo, if any 360 if (api->histo) { [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
ImageCurves.java | 339 int[] histo = new int[256 * 3]; local 351 histo[r]++; 352 histo[256 + g]++; 353 histo[512 + b]++; 356 return histo;
|
/external/chromium_org/third_party/libwebp/dsp/ |
lossless.c | 694 int histo[4][256]; local 695 memset(histo, 0, sizeof(histo)); 716 (const int (*)[256])histo, 730 UpdateHisto(histo, argb[ix]); 915 int histo[256] = { 0 }; local 982 int histo[256] = { 0 }; local [all...] |
/external/webp/src/dsp/ |
lossless.c | 685 int histo[4][256]; local 686 memset(histo, 0, sizeof(histo)); 707 (const int (*)[256])histo, 721 UpdateHisto(histo, argb[ix]); 906 int histo[256] = { 0 }; local 973 int histo[256] = { 0 }; local [all...] |