aboutsummaryrefslogtreecommitdiff
path: root/source/convert_from.cc
diff options
context:
space:
mode:
authorFrank Barchard <fbarchard@google.com>2021-02-05 16:14:25 -0800
committerFrank Barchard <fbarchard@chromium.org>2021-02-06 00:26:55 +0000
commit942c5084482d8592883be66151e0dea502f4cbc0 (patch)
treee02d37c46fb6e9d06d5165fc86ce483b70928524 /source/convert_from.cc
parent60d37a064bc0307017537ed3091b1b0204213855 (diff)
downloadlibyuv-942c5084482d8592883be66151e0dea502f4cbc0.tar.gz
BT.2020 Full Range yuvconstants
new color util to compute constants needed based on white point. [ RUN ] LibYUVColorTest.TestFullYUVV hist -2 -1 0 1 2 red 0 1627136 13670144 1479936 0 green 319285 3456836 9243059 3440771 317265 blue 0 1561088 14202112 1014016 0 Bug: libyuv:877, b/178283356 Change-Id: If432ebfab76b01302fdb416a153c4f26ca0832d6 Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/2678859 Reviewed-by: Frank Barchard <fbarchard@chromium.org> Reviewed-by: richard winterton <rrwinterton@gmail.com>
Diffstat (limited to 'source/convert_from.cc')
-rw-r--r--source/convert_from.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/convert_from.cc b/source/convert_from.cc
index 6524f969..591e2782 100644
--- a/source/convert_from.cc
+++ b/source/convert_from.cc
@@ -30,6 +30,8 @@ static __inline int Abs(int v) {
}
// I420 To any I4xx YUV format with mirroring.
+// TODO(fbarchard): Consider kFilterNone for Y, or CopyPlane
+
static int I420ToI4xx(const uint8_t* src_y,
int src_stride_y,
const uint8_t* src_u,