Lines Matching defs:histo
193 const VP8LHistogram* const histo = histogram_image->histograms[i];
196 const int num_symbols = (k == 0) ? VP8LHistogramNumCodes(histo)
228 VP8LHistogram* const histo = histogram_image->histograms[i];
229 ok = ok && VP8LCreateHuffmanTree(histo->literal_, 15, codes + 0);
230 ok = ok && VP8LCreateHuffmanTree(histo->red_, 15, codes + 1);
231 ok = ok && VP8LCreateHuffmanTree(histo->blue_, 15, codes + 2);
232 ok = ok && VP8LCreateHuffmanTree(histo->alpha_, 15, codes + 3);
233 ok = ok && VP8LCreateHuffmanTree(histo->distance_, 15, codes + 4);
647 VP8LHistogram* const histo = (VP8LHistogram*)malloc(sizeof(*histo));
648 if (histo == NULL) return 0;
650 VP8LHistogramInit(histo, 1);
653 ++histo->red_[(c >> 16) & 0xff];
654 ++histo->blue_[(c >> 0) & 0xff];
656 bit_cost_before = VP8LHistogramEstimateBits(histo);
658 VP8LHistogramInit(histo, 1);
662 ++histo->red_[((c >> 16) - green) & 0xff];
663 ++histo->blue_[((c >> 0) - green) & 0xff];
665 bit_cost_after = VP8LHistogramEstimateBits(histo);
666 free(histo);