aboutsummaryrefslogtreecommitdiff
path: root/source/scale_common.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/scale_common.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/scale_common.cc')
-rw-r--r--source/scale_common.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/scale_common.cc b/source/scale_common.cc
index f53e2de9..8d41c03d 100644
--- a/source/scale_common.cc
+++ b/source/scale_common.cc
@@ -400,7 +400,7 @@ void ScaleRowDown34_1_Box_16_C(const uint16_t* src_ptr,
}
}
-// sample position: (O is src sample position, X is dst sample position)
+// Sample position: (O is src sample position, X is dst sample position)
//
// v dst_ptr at here v stop at here
// X O X X O X X O X X O X X O X
@@ -417,7 +417,7 @@ void ScaleRowUp2_Linear_C(const uint8_t* src_ptr,
}
}
-// sample position: (O is src sample position, X is dst sample position)
+// Sample position: (O is src sample position, X is dst sample position)
//
// src_ptr at here
// X v X X X X X X X X X
@@ -451,7 +451,7 @@ void ScaleRowUp2_Bilinear_C(const uint8_t* src_ptr,
}
}
-// only suitable for at most 14bit range.
+// Only suitable for at most 14 bit range.
void ScaleRowUp2_Linear_16_C(const uint16_t* src_ptr,
uint16_t* dst_ptr,
int dst_width) {