/external/tensorflow/tensorflow/core/kernels/ |
summary_op_test.cc | 183 histogram::Histogram histo; local 184 EXPECT_TRUE(histo.DecodeFromProto(summary.value(0).histo())); 193 histo.ToString()); 211 histogram::Histogram histo; local 212 EXPECT_TRUE(histo.DecodeFromProto(summary.value(0).histo())); 221 histo.ToString()); 240 histogram::Histogram histo; local 241 EXPECT_TRUE(histo.DecodeFromProto(summary.value(0).histo())) [all...] |
summary_op.cc | 88 histogram::Histogram histo; variable 100 histo.Add(double_val); 106 histo.EncodeToProto(v->mutable_histo(), false /* Drop zero buckets */);
|
/external/brotli/c/enc/ |
literal_cost.c | 104 size_t histo = histogram[utf8_pos][data[masked_pos]]; local 106 if (histo == 0) { 107 histo = 1; 109 lit_cost = FastLog2(in_window_utf8[utf8_pos]) - FastLog2(histo); 145 size_t histo; local 156 histo = histogram[data[(pos + i) & mask]]; 157 if (histo == 0) { 158 histo = 1; 161 double lit_cost = FastLog2(in_window) - FastLog2(histo);
|
bit_cost_inc.h | 48 uint32_t histo[4]; local 52 histo[i] = histogram->data_[s[i]]; 58 if (histo[j] > histo[i]) { 59 BROTLI_SWAP(uint32_t, histo, j, i); 63 h23 = histo[2] + histo[3]; 64 histomax = BROTLI_MAX(uint32_t, h23, histo[0]); 66 3 * h23 + 2 * (histo[0] + histo[1]) - histomax) [all...] |
metablock.c | 96 HistogramDistance histo; local 97 HistogramClearDistance(&histo); 121 HistogramAddDistance(&histo, dist_prefix & 0x3FF); 126 *cost = BrotliPopulationCostDistance(&histo) + extra_bits;
|
compress_fragment.c | 180 uint32_t histo[128], 186 ++histo[code]; 194 ++histo[inscode]; 201 ++histo[code]; 205 ++histo[61]; 212 uint32_t histo[128], 218 ++histo[62]; 222 ++histo[63]; 229 uint32_t histo[128], 235 ++histo[copylen + 14] 374 size_t histo[256] = { 0 }; local [all...] |
/external/brotli/research/ |
draw_histogram.cc | 67 void BuildHistogram(FILE* fin, int** histo) { 77 histo[i][j] = 0; 113 histo[x][y] += copy; 116 histo[x][y] += pos2 - pos; 118 histo[x][i] += max_pos / width; // Sometimes 1 more, but who cares. 123 histo[x][right] += pos + copy - 1 - pos2 + 1; 127 histo[x][y]++; 133 void ConvertToPixels(int** histo, uint8_t** pixel) { 140 if (maxs < histo[i][j]) maxs = histo[i][j] 182 int** histo = new int*[height]; local [all...] |
/external/libcap/libcap/ |
cap_text.c | 330 int histo[8]; local 362 memset(histo, 0, sizeof(histo)); 366 histo[getstateflags(caps, n)]++; 373 if (histo[t] >= histo[m]) 380 histo[getstateflags(caps, n)]++; 389 if (t != m && histo[t]) {
|
/external/tensorflow/tensorflow/core/summary/ |
summary_converter.cc | 220 histogram::Histogram histo; local 230 histo.Add(double_val); 232 histo.EncodeToProto(v->mutable_histo(), false /* Drop zero buckets */);
|
summary_db_writer.cc | 1075 const HistogramProto& histo = s->histo(); local [all...] |
/external/webp/src/enc/ |
analysis_enc.c | 113 static int GetAlpha(const VP8Histogram* const histo) { 117 const int max_value = histo->max_value; 118 const int last_non_zero = histo->last_non_zero; 124 static void InitHistogram(VP8Histogram* const histo) { 125 histo->max_value = 0; 126 histo->last_non_zero = 1; 154 // 'int' type is ok for histo, and won't overflow 248 VP8Histogram histo; local 251 InitHistogram(&histo); 254 0, 16, &histo); 340 VP8Histogram histo; local [all...] |
backward_references_cost_enc.c | 65 VP8LHistogram* const histo = VP8LAllocateHistogram(cache_bits); local 66 if (histo == NULL) goto Error; 70 VP8LHistogramInit(histo, cache_bits, /*init_arrays=*/ 1); 72 VP8LHistogramAddSinglePixOrCopy(histo, c.cur_pos, VP8LDistanceToPlaneCode, 78 VP8LHistogramNumCodes(histo->palette_code_bits_), 79 histo->literal_, m->literal_); 81 VALUES_IN_BYTE, histo->red_, m->red_); 83 VALUES_IN_BYTE, histo->blue_, m->blue_); 85 VALUES_IN_BYTE, histo->alpha_, m->alpha_); 87 NUM_DISTANCE_CODES, histo->distance_, m->distance_) [all...] |
backward_references_enc.c | 851 VP8LHistogram* histo = NULL; local 856 histo = VP8LAllocateHistogram(MAX_COLOR_CACHE_BITS); 857 if (histo == NULL) goto Error; 895 VP8LHistogramCreate(histo, worst, cache_bits_tmp); 896 bit_cost = VP8LHistogramEstimateBits(histo) [all...] |
predictor_enc.c | 482 int histo[4][256]; local 490 memset(histo, 0, sizeof(histo)); 495 bits, histo, argb_scratch, argb, max_quantization, exact, 544 int histo[256] = { 0 }; local 548 green_to_red, histo); 550 cur_diff = PredictionCostCrossColor(accumulated_red_histo, histo); 597 int histo[256] = { 0 }; local 601 green_to_blue, red_to_blue, histo); 603 cur_diff = PredictionCostCrossColor(accumulated_blue_histo, histo); [all...] |
histogram_enc.c | 69 void VP8LFreeHistogram(VP8LHistogram* const histo) { 70 WebPSafeFree(histo); 73 void VP8LFreeHistogramSet(VP8LHistogramSet* const histo) { 74 WebPSafeFree(histo); 78 VP8LHistogram* const histo) { 81 VP8LHistogramAddSinglePixOrCopy(histo, c.cur_pos, NULL, 0); 112 VP8LHistogram* histo = NULL; local 116 histo = (VP8LHistogram*)memory; 118 histo->literal_ = (uint32_t*)(memory + sizeof(VP8LHistogram)); 119 VP8LHistogramInit(histo, cache_bits, /*init_arrays=*/ 0) 591 VP8LHistogram* const histo = orig_histograms[i]; local [all...] |
vp8l_enc.c | 195 uint32_t* histo; local 204 histo = (uint32_t*)WebPSafeCalloc(kHistoTotal, sizeof(*histo) * 256); 205 if (histo != NULL) { 219 &histo[kHistoAlpha * 256], 220 &histo[kHistoRed * 256], 221 &histo[kHistoGreen * 256], 222 &histo[kHistoBlue * 256]); 224 &histo[kHistoAlphaPred * 256], 225 &histo[kHistoRedPred * 256] 463 const VP8LHistogram* const histo = histogram_image->histograms[i]; local 505 VP8LHistogram* const histo = histogram_image->histograms[i]; local [all...] |