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_from.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_from.cc')
-rw-r--r-- | source/convert_from.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/convert_from.cc b/source/convert_from.cc index 85b87bdb..d331ed2d 100644 --- a/source/convert_from.cc +++ b/source/convert_from.cc @@ -645,8 +645,7 @@ int I420ToNV12(const uint8_t* src_y, int height) { int halfwidth = (width + 1) / 2; int halfheight = (height + 1) / 2; - 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. |