Lines Matching refs:uv_w
292 fixed_t* dst, int uv_w) { in UpdateChroma() argument
294 for (i = 0; i < uv_w; ++i) { in UpdateChroma()
295 const int r = ScaleDown(src1[0 * uv_w + 0], src1[0 * uv_w + 1], in UpdateChroma()
296 src2[0 * uv_w + 0], src2[0 * uv_w + 1]); in UpdateChroma()
297 const int g = ScaleDown(src1[2 * uv_w + 0], src1[2 * uv_w + 1], in UpdateChroma()
298 src2[2 * uv_w + 0], src2[2 * uv_w + 1]); in UpdateChroma()
299 const int b = ScaleDown(src1[4 * uv_w + 0], src1[4 * uv_w + 1], in UpdateChroma()
300 src2[4 * uv_w + 0], src2[4 * uv_w + 1]); in UpdateChroma()
302 dst[0 * uv_w] = (fixed_t)(r - W); in UpdateChroma()
303 dst[1 * uv_w] = (fixed_t)(g - W); in UpdateChroma()
304 dst[2 * uv_w] = (fixed_t)(b - W); in UpdateChroma()
359 const int uv_w = w >> 1; in InterpolateTwoRows() local
372 out1[w - 1] = Filter2(cur_uv[uv_w - 1], prev_uv[uv_w - 1], in InterpolateTwoRows()
374 out2[w - 1] = Filter2(cur_uv[uv_w - 1], next_uv[uv_w - 1], in InterpolateTwoRows()
379 prev_uv += uv_w; in InterpolateTwoRows()
380 cur_uv += uv_w; in InterpolateTwoRows()
381 next_uv += uv_w; in InterpolateTwoRows()
409 const int uv_w = w >> 1; in ConvertWRGBToYUV() local
415 const int r = best_uv[off + 0 * uv_w] + W; in ConvertWRGBToYUV()
416 const int g = best_uv[off + 1 * uv_w] + W; in ConvertWRGBToYUV()
417 const int b = best_uv[off + 2 * uv_w] + W; in ConvertWRGBToYUV()
421 best_uv += (j & 1) * 3 * uv_w; in ConvertWRGBToYUV()
425 for (i = 0; i < uv_w; ++i) { in ConvertWRGBToYUV()
427 const int r = best_uv[off + 0 * uv_w]; in ConvertWRGBToYUV()
428 const int g = best_uv[off + 1 * uv_w]; in ConvertWRGBToYUV()
429 const int b = best_uv[off + 2 * uv_w]; in ConvertWRGBToYUV()
433 best_uv += 3 * uv_w; in ConvertWRGBToYUV()
453 const int uv_w = w >> 1; in PreprocessARGB() local
464 fixed_t* const best_uv_base = SAFE_ALLOC(uv_w * 3, uv_h, fixed_t); in PreprocessARGB()
465 fixed_t* const target_uv_base = SAFE_ALLOC(uv_w * 3, uv_h, fixed_t); in PreprocessARGB()
466 fixed_t* const best_rgb_uv = SAFE_ALLOC(uv_w * 3, 1, fixed_t); in PreprocessARGB()
505 UpdateChroma(src1, src2, target_uv, uv_w); in PreprocessARGB()
506 memcpy(best_uv, target_uv, 3 * uv_w * sizeof(*best_uv)); in PreprocessARGB()
508 best_uv += 3 * uv_w; in PreprocessARGB()
510 target_uv += 3 * uv_w; in PreprocessARGB()
530 const fixed_t* const next_uv = cur_uv + ((j < h - 2) ? 3 * uv_w : 0); in PreprocessARGB()
538 UpdateChroma(src1, src2, best_rgb_uv, uv_w); in PreprocessARGB()
542 WebPSharpYUVUpdateRGB(target_uv, best_rgb_uv, best_uv, 3 * uv_w); in PreprocessARGB()
545 best_uv += 3 * uv_w; in PreprocessARGB()
547 target_uv += 3 * uv_w; in PreprocessARGB()