diff options
author | Frank Barchard <fbarchard@google.com> | 2023-01-17 13:06:38 -0800 |
---|---|---|
committer | libyuv LUCI CQ <libyuv-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-01-17 21:40:45 +0000 |
commit | 541d8efbaf0319b1e068d9c31f6dbc653d5c72b8 (patch) | |
tree | 51cb0f426435b7b3d9f5553144300772806053e8 /source/convert.cc | |
parent | d5aa3d4a76930cde9527f5be5bc89524b48fc069 (diff) | |
download | libyuv-541d8efbaf0319b1e068d9c31f6dbc653d5c72b8.tar.gz |
Fix for divide row functions used by P010ToI010
Bug: libyuv:951
Change-Id: Id323656cb6f99b1be0be7aaa854d3cc15feeba69
Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/4166562
Reviewed-by: Justin Green <greenjustin@google.com>
Commit-Queue: Frank Barchard <fbarchard@chromium.org>
Diffstat (limited to 'source/convert.cc')
-rw-r--r-- | source/convert.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/convert.cc b/source/convert.cc index a41974a2..9a263536 100644 --- a/source/convert.cc +++ b/source/convert.cc @@ -24,7 +24,10 @@ namespace libyuv { extern "C" { #endif -// subsample amount uses a shift. +// Subsample amount uses a shift. +// v is value +// a is amount to add to round up +// s is shift to subsample down #define SUBSAMPLE(v, a, s) (v < 0) ? (-((-v + a) >> s)) : ((v + a) >> s) static __inline int Abs(int v) { return v >= 0 ? v : -v; @@ -1291,7 +1294,6 @@ static int PxxxToIxxx(const uint16_t* src_y, if (width <= 0 || height == 0) { return -1; } - ConvertToLSBPlane_16(src_y, src_stride_y, dst_y, dst_stride_y, width, height, depth); SplitUVPlane_16(src_uv, src_stride_uv, dst_u, dst_stride_u, dst_v, |