aboutsummaryrefslogtreecommitdiff
path: root/source/row_common.cc
diff options
context:
space:
mode:
authorMirko Bonadei <mbonadei@chromium.org>2021-04-01 17:39:01 +0200
committerCommit Bot <commit-bot@chromium.org>2021-04-01 18:41:25 +0000
commit34bf48e160a286a9681f00ba1a89085e2e342ae1 (patch)
tree9eed93b1390e64228ad35f22d4598d6ccfcf98a2 /source/row_common.cc
parent8a13626e42f7fdcf3a6acbb0316760ee54cda7d8 (diff)
downloadlibyuv-34bf48e160a286a9681f00ba1a89085e2e342ae1.tar.gz
Check if LIBYUV_UNLIMITED_DATA is defined to avoid -Wundef.
No-Try: True Bug: None Change-Id: I32f6da42c82628210f82ce446d4ec69e2013a2ff Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/2799761 Commit-Queue: Mirko Bonadei <mbonadei@chromium.org> Reviewed-by: Frank Barchard <fbarchard@chromium.org>
Diffstat (limited to 'source/row_common.cc')
-rw-r--r--source/row_common.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/row_common.cc b/source/row_common.cc
index 3ccac51a..18b313a7 100644
--- a/source/row_common.cc
+++ b/source/row_common.cc
@@ -1486,7 +1486,7 @@ void J400ToARGBRow_C(const uint8_t* src_y, uint8_t* dst_argb, int width) {
// KR = 0.299; KB = 0.114
// U and V contributions to R,G,B.
-#if LIBYUV_UNLIMITED_DATA
+#if defined(LIBYUV_UNLIMITED_DATA)
#define UB 129 /* round(2.018 * 64) */
#else
#define UB 128 /* max(128, round(2.018 * 64)) */
@@ -1540,7 +1540,7 @@ MAKEYUVCONSTANTS(JPEG, YG, YB, UB, UG, VG, VR, BB, BG, BR)
// KR = 0.2126, KB = 0.0722
// U and V contributions to R,G,B.
-#if LIBYUV_UNLIMITED_DATA
+#if defined(LIBYUV_UNLIMITED_DATA)
#define UB 135 /* round(2.112 * 64) */
#else
#define UB 128 /* max(128, round(2.112 * 64)) */
@@ -1594,7 +1594,7 @@ MAKEYUVCONSTANTS(F709, YG, YB, UB, UG, VG, VR, BB, BG, BR)
// KR = 0.2627; KB = 0.0593
// U and V contributions to R,G,B.
-#if LIBYUV_UNLIMITED_DATA
+#if defined(LIBYUV_UNLIMITED_DATA)
#define UB 137 /* round(2.142 * 64) */
#else
#define UB 128 /* max(128, round(2.142 * 64)) */
@@ -1646,7 +1646,7 @@ MAKEYUVCONSTANTS(V2020, YG, YB, UB, UG, VG, VR, BB, BG, BR)
#undef MAKEYUVCONSTANTS
-#if LIBYUV_UNLIMITED_DATA
+#if defined(LIBYUV_UNLIMITED_DATA)
// C reference code that mimics the YUV assembly.
// Reads 8 bit YUV and leaves result as 16 bit.