From 42d76a342f9f0775d5f5fd47f7ef1a9ba6444074 Mon Sep 17 00:00:00 2001 From: Frank Barchard Date: Tue, 1 Mar 2022 04:30:20 -0800 Subject: RAWToJNV21 function with 2 step conversion RAWToJ420 + J420ToNV21 on row level Pixel 6 RAWToJNV21_Opt (320 ms) Skylake Xeon RAWToJNV21_Opt (302 ms) Bug: b/220171611 Change-Id: I39dcce9cf56c576b95666bb4fb1baccf9fbc7f7a Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/3495876 Reviewed-by: richard winterton Commit-Queue: Frank Barchard --- source/convert.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source/convert.cc') diff --git a/source/convert.cc b/source/convert.cc index 9c5e8aa8..875afb30 100644 --- a/source/convert.cc +++ b/source/convert.cc @@ -801,8 +801,7 @@ int I444ToNV12(const uint8_t* src_y, int dst_stride_uv, int width, int height) { - if (!src_y || !src_u || !src_v || !dst_y || !dst_uv || width <= 0 || - height == 0) { + if (!src_y || !src_u || !src_v || !dst_uv || width <= 0 || height == 0) { return -1; } // Negative height means invert the image. -- cgit v1.2.3