Lines Matching refs:cache_bits
343 int cache_bits, VP8LBackwardRefs* const refs) { in BackwardReferencesRle() argument
346 const int use_color_cache = (cache_bits > 0); in BackwardReferencesRle()
349 if (use_color_cache && !VP8LColorCacheInit(&hashers, cache_bits)) { in BackwardReferencesRle()
386 const uint32_t* const argb, int cache_bits, in BackwardReferencesLz77() argument
393 const int use_color_cache = (cache_bits > 0); in BackwardReferencesLz77()
401 cc_init = VP8LColorCacheInit(&hashers, cache_bits); in BackwardReferencesLz77()
485 int cache_bits, VP8LHashChain* const hash_chain,
509 static int CostModelBuild(CostModel* const m, int cache_bits, in CostModelBuild() argument
512 VP8LHistogram* const histo = VP8LAllocateHistogram(cache_bits); in CostModelBuild()
515 VP8LHistogramCreate(histo, refs, cache_bits); in CostModelBuild()
588 int quality, int cache_bits, VP8LHashChain* const hash_chain, in BackwardReferencesHashChainDistanceOnly() argument
594 const int use_color_cache = (cache_bits > 0); in BackwardReferencesHashChainDistanceOnly()
599 ((cache_bits > 0) ? (1 << cache_bits) : 0)); in BackwardReferencesHashChainDistanceOnly()
613 cc_init = VP8LColorCacheInit(&hashers, cache_bits); in BackwardReferencesHashChainDistanceOnly()
617 if (!CostModelBuild(cost_model, cache_bits, refs)) { in BackwardReferencesHashChainDistanceOnly()
727 int quality, int cache_bits, in BackwardReferencesHashChainFollowChosenPath() argument
732 const int use_color_cache = (cache_bits > 0); in BackwardReferencesHashChainFollowChosenPath()
741 cc_init = VP8LColorCacheInit(&hashers, cache_bits); in BackwardReferencesHashChainFollowChosenPath()
792 int quality, int cache_bits, in BackwardReferencesTraceBackwards() argument
805 xsize, ysize, argb, quality, cache_bits, hash_chain, in BackwardReferencesTraceBackwards()
811 xsize, ysize, argb, quality, cache_bits, chosen_path, chosen_path_size, in BackwardReferencesTraceBackwards()
837 int cache_bits) { in ComputeCacheEntropy() argument
838 const int use_color_cache = (cache_bits > 0); in ComputeCacheEntropy()
844 VP8LHistogram* histo = VP8LAllocateHistogram(cache_bits); in ComputeCacheEntropy()
848 cc_init = VP8LColorCacheInit(&hashers, cache_bits); in ComputeCacheEntropy()
886 kSmallPenaltyForLargeCache * cache_bits; in ComputeCacheEntropy()
953 int cache_bits, in BackwardRefsWithLocalCache() argument
958 if (!VP8LColorCacheInit(&hashers, cache_bits)) return 0; in BackwardRefsWithLocalCache()
987 int* const cache_bits, VP8LHashChain* const hash_chain, in GetBackwardReferencesLowEffort() argument
990 *cache_bits = 0; in GetBackwardReferencesLowEffort()
1001 int* const cache_bits, VP8LHashChain* const hash_chain, in GetBackwardReferences() argument
1012 refs_lz77, &lz77_computed, cache_bits)) { in GetBackwardReferences()
1018 if (*cache_bits > 0) { in GetBackwardReferences()
1019 if (!BackwardRefsWithLocalCache(argb, *cache_bits, refs_lz77)) { in GetBackwardReferences()
1024 if (!BackwardReferencesLz77(width, height, argb, *cache_bits, quality, in GetBackwardReferences()
1030 if (!BackwardReferencesRle(width, height, argb, *cache_bits, refs_rle)) { in GetBackwardReferences()
1034 histo = VP8LAllocateHistogram(*cache_bits); in GetBackwardReferences()
1039 VP8LHistogramCreate(histo, refs_lz77, *cache_bits); in GetBackwardReferences()
1042 VP8LHistogramCreate(histo, refs_rle, *cache_bits); in GetBackwardReferences()
1060 *cache_bits, hash_chain, in GetBackwardReferences()
1064 VP8LHistogramCreate(histo, refs_trace, *cache_bits); in GetBackwardReferences()
1084 int low_effort, int* const cache_bits, VP8LHashChain* const hash_chain, in VP8LGetBackwardReferences() argument
1088 cache_bits, hash_chain, refs_array); in VP8LGetBackwardReferences()
1090 return GetBackwardReferences(width, height, argb, quality, cache_bits, in VP8LGetBackwardReferences()