Lines Matching refs:dist_array

565     uint16_t* const dist_array) {  in AddSingleLiteralWithCostModel()  argument
582 dist_array[idx] = 1; // only one is inserted. in AddSingleLiteralWithCostModel()
589 VP8LBackwardRefs* const refs, uint16_t* const dist_array) { in BackwardReferencesHashChainDistanceOnly() argument
625 dist_array[0] = 0; in BackwardReferencesHashChainDistanceOnly()
629 0, use_color_cache, 0.0, cost, dist_array); in BackwardReferencesHashChainDistanceOnly()
646 dist_array[i + k] = k + 1; in BackwardReferencesHashChainDistanceOnly()
683 dist_array[i + 1] = 2; in BackwardReferencesHashChainDistanceOnly()
689 dist_array); in BackwardReferencesHashChainDistanceOnly()
696 dist_array); in BackwardReferencesHashChainDistanceOnly()
709 static void TraceBackwards(uint16_t* const dist_array, in TraceBackwards() argument
713 uint16_t* path = dist_array + dist_array_size; in TraceBackwards()
714 uint16_t* cur = dist_array + dist_array_size - 1; in TraceBackwards()
715 while (cur >= dist_array) { in TraceBackwards()
722 *chosen_path_size = (int)(dist_array + dist_array_size - path); in TraceBackwards()
799 uint16_t* dist_array = in BackwardReferencesTraceBackwards() local
800 (uint16_t*)WebPSafeMalloc(dist_array_size, sizeof(*dist_array)); in BackwardReferencesTraceBackwards()
802 if (dist_array == NULL) goto Error; in BackwardReferencesTraceBackwards()
806 refs, dist_array)) { in BackwardReferencesTraceBackwards()
809 TraceBackwards(dist_array, dist_array_size, &chosen_path, &chosen_path_size); in BackwardReferencesTraceBackwards()
817 WebPSafeFree(dist_array); in BackwardReferencesTraceBackwards()