• Home
  • Raw
  • Download

Lines Matching refs:predict

150 static uint8_t NearLosslessComponent(uint8_t value, uint8_t predict,  in NearLosslessComponent()  argument
152 const int residual = (value - predict) & 0xff; in NearLosslessComponent()
153 const int boundary_residual = (boundary - predict) & 0xff; in NearLosslessComponent()
189 static uint32_t NearLossless(uint32_t value, uint32_t predict, in NearLossless() argument
197 return VP8LSubPixels(value, predict); in NearLossless()
205 a = NearLosslessDiff((value >> 24) & 0xff, (predict >> 24) & 0xff); in NearLossless()
207 a = NearLosslessComponent(value >> 24, predict >> 24, 0xff, quantization); in NearLossless()
209 g = NearLosslessComponent((value >> 8) & 0xff, (predict >> 8) & 0xff, 0xff, in NearLossless()
214 new_green = ((predict >> 8) + g) & 0xff; in NearLossless()
221 (predict >> 16) & 0xff, 0xff - new_green, in NearLossless()
224 predict & 0xff, 0xff - new_green, quantization); in NearLossless()
245 uint32_t predict; in GetResidual() local
248 predict = (x == 0) ? ARGB_BLACK : current_row[x - 1]; // Left. in GetResidual()
250 predict = upper_row[x]; // Top. in GetResidual()
252 predict = pred_func(current_row[x - 1], upper_row + x); in GetResidual()
257 residual = VP8LSubPixels(current_row[x], predict); in GetResidual()
259 residual = NearLossless(current_row[x], predict, max_quantization, in GetResidual()
262 current_row[x] = VP8LAddPixels(predict, residual); in GetResidual()
270 residual = VP8LSubPixels(current_row[x], predict); in GetResidual()
279 current_row[x] = predict & ~kMaskAlpha; in GetResidual()