diff options
author | Vignesh Venkatasubramanian <vigneshv@google.com> | 2022-08-03 15:36:23 -0700 |
---|---|---|
committer | Wan-Teh Chang <wtc@google.com> | 2022-08-04 18:19:46 +0000 |
commit | 394436b289b07bffae8e4d94f4020f4f3dfc1b09 (patch) | |
tree | 0f06513ed7f99ef82f9d1c8d5be9206cf7298e2a /source/row_neon.cc | |
parent | 9892d70c965678381d2a70a1c9002d1cf136ee78 (diff) | |
download | libyuv-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_neon.cc')
-rw-r--r-- | source/row_neon.cc | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/source/row_neon.cc b/source/row_neon.cc index 14eed6ff..804ff839 100644 --- a/source/row_neon.cc +++ b/source/row_neon.cc @@ -2502,9 +2502,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 @@ -2513,9 +2515,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, |