Home | History | Annotate | Download | only in enc

Lines Matching refs:histo

512   VP8LHistogram* const histo = VP8LAllocateHistogram(cache_bits);
513 if (histo == NULL) goto Error;
515 VP8LHistogramCreate(histo, refs, cache_bits);
518 VP8LHistogramNumCodes(histo->palette_code_bits_),
519 histo->literal_, m->literal_);
521 VALUES_IN_BYTE, histo->red_, m->red_);
523 VALUES_IN_BYTE, histo->blue_, m->blue_);
525 VALUES_IN_BYTE, histo->alpha_, m->alpha_);
527 NUM_DISTANCE_CODES, histo->distance_, m->distance_);
531 VP8LFreeHistogram(histo);
844 VP8LHistogram* histo = VP8LAllocateHistogram(cache_bits);
845 if (histo == NULL) goto Error;
853 VP8LHistogramAddSinglePixOrCopy(histo, c.cur_pos);
863 ++histo->literal_[NUM_LITERAL_CODES + NUM_LENGTH_CODES + key];
866 ++histo->blue_[pix & 0xff];
867 ++histo->literal_[(pix >> 8) & 0xff];
868 ++histo->red_[(pix >> 16) & 0xff];
869 ++histo->alpha_[pix >> 24];
875 ++histo->literal_[NUM_LITERAL_CODES + code];
877 ++histo->distance_[code];
885 entropy = VP8LHistogramEstimateBits(histo) +
889 VP8LFreeHistogram(histo);
1009 VP8LHistogram* histo = NULL;
1034 histo = VP8LAllocateHistogram(*cache_bits);
1035 if (histo == NULL) goto Error;
1039 VP8LHistogramCreate(histo, refs_lz77, *cache_bits);
1040 bit_cost_lz77 = VP8LHistogramEstimateBits(histo);
1042 VP8LHistogramCreate(histo, refs_rle, *cache_bits);
1043 bit_cost_rle = VP8LHistogramEstimateBits(histo);
1064 VP8LHistogramCreate(histo, refs_trace, *cache_bits);
1065 bit_cost_trace = VP8LHistogramEstimateBits(histo);
1078 VP8LFreeHistogram(histo);