aboutsummaryrefslogtreecommitdiff
path: root/source/convert.cc
diff options
context:
space:
mode:
authorFrank Barchard <fbarchard@google.com>2023-06-01 15:01:14 -0700
committerlibyuv LUCI CQ <libyuv-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-06-02 00:42:02 +0000
commit157b153b6083acf0b39bfd3192538c4a8ae5d817 (patch)
tree28190da2a9e7776ce4c576b75859ccf0cfeec2ab /source/convert.cc
parentc0f64c14ca28b49d7eeb77c0f7982610879e0074 (diff)
downloadlibyuv-157b153b6083acf0b39bfd3192538c4a8ae5d817.tar.gz
Fix tidy warning that uint32_t dither4 should not be const
- Remove const from uint32_t dither4 parameter to fix clang-tidy warning - Apply clang format - Bump version - Remove unused MMI source; superceded by MSA Bug: None Change-Id: Id49991db25bca4e99590b415312542d917471c62 Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/4581882 Reviewed-by: Wan-Teh Chang <wtc@google.com> Commit-Queue: Frank Barchard <fbarchard@chromium.org> Reviewed-by: Frank Barchard <fbarchard@chromium.org>
Diffstat (limited to 'source/convert.cc')
-rw-r--r--source/convert.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/convert.cc b/source/convert.cc
index dd4d9794..b11ab1bf 100644
--- a/source/convert.cc
+++ b/source/convert.cc
@@ -2010,7 +2010,8 @@ int ARGBToI420Alpha(const uint8_t* src_argb,
ARGBToYRow_C;
void (*ARGBExtractAlphaRow)(const uint8_t* src_argb, uint8_t* dst_a,
int width) = ARGBExtractAlphaRow_C;
- if (!src_argb || !dst_y || !dst_u || !dst_v || !dst_a || width <= 0 || height == 0) {
+ if (!src_argb || !dst_y || !dst_u || !dst_v || !dst_a || width <= 0 ||
+ height == 0) {
return -1;
}
// Negative height means invert the image.
@@ -2133,7 +2134,8 @@ int ARGBToI420Alpha(const uint8_t* src_argb,
ARGBToYRow(src_argb, dst_y, width);
ARGBToYRow(src_argb + src_stride_argb, dst_y + dst_stride_y, width);
ARGBExtractAlphaRow(src_argb, dst_a, width);
- ARGBExtractAlphaRow(src_argb + src_stride_argb, dst_a + dst_stride_a, width);
+ ARGBExtractAlphaRow(src_argb + src_stride_argb, dst_a + dst_stride_a,
+ width);
src_argb += src_stride_argb * 2;
dst_y += dst_stride_y * 2;
dst_u += dst_stride_u;