diff options
author | Frank Barchard <fbarchard@google.com> | 2022-03-01 04:30:20 -0800 |
---|---|---|
committer | libyuv LUCI CQ <libyuv-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-03-01 19:33:49 +0000 |
commit | 42d76a342f9f0775d5f5fd47f7ef1a9ba6444074 (patch) | |
tree | 8c7593515bc084b67e2d116381542a2f4d99352e /source/convert.cc | |
parent | 2dd3ea6f39d5b0a4efca97657e716a42dba1835d (diff) | |
download | libyuv-42d76a342f9f0775d5f5fd47f7ef1a9ba6444074.tar.gz |
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 <rrwinterton@gmail.com>
Commit-Queue: Frank Barchard <fbarchard@chromium.org>
Diffstat (limited to 'source/convert.cc')
-rw-r--r-- | source/convert.cc | 3 |
1 files changed, 1 insertions, 2 deletions
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. |