• Home
  • Raw
  • Download

Lines Matching refs:uv_w

288                          fixed_t* dst, int uv_w) {  in UpdateChroma()  argument
290 for (i = 0; i < uv_w; ++i) { in UpdateChroma()
291 const int r = ScaleDown(src1[0 * uv_w + 0], src1[0 * uv_w + 1], in UpdateChroma()
292 src2[0 * uv_w + 0], src2[0 * uv_w + 1]); in UpdateChroma()
293 const int g = ScaleDown(src1[2 * uv_w + 0], src1[2 * uv_w + 1], in UpdateChroma()
294 src2[2 * uv_w + 0], src2[2 * uv_w + 1]); in UpdateChroma()
295 const int b = ScaleDown(src1[4 * uv_w + 0], src1[4 * uv_w + 1], in UpdateChroma()
296 src2[4 * uv_w + 0], src2[4 * uv_w + 1]); in UpdateChroma()
298 dst[0 * uv_w] = (fixed_t)(r - W); in UpdateChroma()
299 dst[1 * uv_w] = (fixed_t)(g - W); in UpdateChroma()
300 dst[2 * uv_w] = (fixed_t)(b - W); in UpdateChroma()
355 const int uv_w = w >> 1; in InterpolateTwoRows() local
368 out1[w - 1] = Filter2(cur_uv[uv_w - 1], prev_uv[uv_w - 1], in InterpolateTwoRows()
370 out2[w - 1] = Filter2(cur_uv[uv_w - 1], next_uv[uv_w - 1], in InterpolateTwoRows()
375 prev_uv += uv_w; in InterpolateTwoRows()
376 cur_uv += uv_w; in InterpolateTwoRows()
377 next_uv += uv_w; in InterpolateTwoRows()
405 const int uv_w = w >> 1; in ConvertWRGBToYUV() local
411 const int r = best_uv[off + 0 * uv_w] + W; in ConvertWRGBToYUV()
412 const int g = best_uv[off + 1 * uv_w] + W; in ConvertWRGBToYUV()
413 const int b = best_uv[off + 2 * uv_w] + W; in ConvertWRGBToYUV()
417 best_uv += (j & 1) * 3 * uv_w; in ConvertWRGBToYUV()
421 for (i = 0; i < uv_w; ++i) { in ConvertWRGBToYUV()
423 const int r = best_uv[off + 0 * uv_w]; in ConvertWRGBToYUV()
424 const int g = best_uv[off + 1 * uv_w]; in ConvertWRGBToYUV()
425 const int b = best_uv[off + 2 * uv_w]; in ConvertWRGBToYUV()
429 best_uv += 3 * uv_w; in ConvertWRGBToYUV()
449 const int uv_w = w >> 1; in PreprocessARGB() local
460 fixed_t* const best_uv_base = SAFE_ALLOC(uv_w * 3, uv_h, fixed_t); in PreprocessARGB()
461 fixed_t* const target_uv_base = SAFE_ALLOC(uv_w * 3, uv_h, fixed_t); in PreprocessARGB()
462 fixed_t* const best_rgb_uv = SAFE_ALLOC(uv_w * 3, 1, fixed_t); in PreprocessARGB()
501 UpdateChroma(src1, src2, target_uv, uv_w); in PreprocessARGB()
502 memcpy(best_uv, target_uv, 3 * uv_w * sizeof(*best_uv)); in PreprocessARGB()
504 best_uv += 3 * uv_w; in PreprocessARGB()
506 target_uv += 3 * uv_w; in PreprocessARGB()
526 const fixed_t* const next_uv = cur_uv + ((j < h - 2) ? 3 * uv_w : 0); in PreprocessARGB()
534 UpdateChroma(src1, src2, best_rgb_uv, uv_w); in PreprocessARGB()
538 WebPSharpYUVUpdateRGB(target_uv, best_rgb_uv, best_uv, 3 * uv_w); in PreprocessARGB()
541 best_uv += 3 * uv_w; in PreprocessARGB()
543 target_uv += 3 * uv_w; in PreprocessARGB()