aboutsummaryrefslogtreecommitdiff
path: root/source/row_neon64.cc
diff options
context:
space:
mode:
authorVignesh Venkatasubramanian <vigneshv@google.com>2022-08-03 15:36:23 -0700
committerWan-Teh Chang <wtc@google.com>2022-08-04 18:19:46 +0000
commit394436b289b07bffae8e4d94f4020f4f3dfc1b09 (patch)
tree0f06513ed7f99ef82f9d1c8d5be9206cf7298e2a /source/row_neon64.cc
parent9892d70c965678381d2a70a1c9002d1cf136ee78 (diff)
downloadlibyuv-394436b289b07bffae8e4d94f4020f4f3dfc1b09.tar.gz
row_neon*: Explicitly initialize pad in RgbConstants
Explicitly initialize the 'pad' field of RgbConstants to 0. This prevents the following warning/error in some compilers: error: missing field 'pad' initializer [-Werror,-Wmissing-field-initializers] Bug: b/241008246 Change-Id: Id6a0beb75c5c709404290c75915049f8a3898c83 Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/3808044 Reviewed-by: Wan-Teh Chang <wtc@google.com>
Diffstat (limited to 'source/row_neon64.cc')
-rw-r--r--source/row_neon64.cc13
1 files changed, 9 insertions, 4 deletions
diff --git a/source/row_neon64.cc b/source/row_neon64.cc
index a5313b7e..0f120373 100644
--- a/source/row_neon64.cc
+++ b/source/row_neon64.cc
@@ -2746,9 +2746,11 @@ struct RgbConstants {
// G * 0.5870 coefficient = 150
// R * 0.2990 coefficient = 77
// Add 0.5 = 0x80
-static const struct RgbConstants kRgb24JPEGConstants = {{29, 150, 77, 0}, 128};
+static const struct RgbConstants kRgb24JPEGConstants = {{29, 150, 77, 0},
+ 128,
+ 0};
-static const struct RgbConstants kRawJPEGConstants = {{77, 150, 29, 0}, 128};
+static const struct RgbConstants kRawJPEGConstants = {{77, 150, 29, 0}, 128, 0};
// RGB to BT.601 coefficients
// B * 0.1016 coefficient = 25
@@ -2757,9 +2759,12 @@ static const struct RgbConstants kRawJPEGConstants = {{77, 150, 29, 0}, 128};
// Add 16.5 = 0x1080
static const struct RgbConstants kRgb24I601Constants = {{25, 129, 66, 0},
- 0x1080};
+ 0x1080,
+ 0};
-static const struct RgbConstants kRawI601Constants = {{66, 129, 25, 0}, 0x1080};
+static const struct RgbConstants kRawI601Constants = {{66, 129, 25, 0},
+ 0x1080,
+ 0};
// ARGB expects first 3 values to contain RGB and 4th value is ignored.
void ARGBToYMatrixRow_NEON(const uint8_t* src_argb,