diff options
author | Lei Zhang <thestig@google.com> | 2017-11-17 10:41:02 -0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2017-11-27 23:38:44 +0000 |
commit | 8445617191201ef0f2b57f112efacc255b095dfa (patch) | |
tree | 92f428e7eb2bfcc69c5d6b648967fd8535fb6ace /source/convert_from_argb.cc | |
parent | 26173eb73ec1f52fe4b405b760b1e9f2a2d2d04a (diff) | |
download | libyuv-8445617191201ef0f2b57f112efacc255b095dfa.tar.gz |
Mark a bunch of kArray variables as const.
This allows the linker to move the variables from the .data section to
the .rodata section.
Bug: libyuv:254
Test: out/Release/libyuv_unittest --gtest_filter=* --libyuv_width=1280 --libyuv_height=720 --libyuv_repeat=999 --libyuv_flags=-1 --libyuv_cpu_info=-1
Change-Id: I6998570f1af4337d7b80313d9e18e36aa20d6ec0
Reviewed-on: https://chromium-review.googlesource.com/777033
Commit-Queue: Frank Barchard <fbarchard@chromium.org>
Reviewed-by: Frank Barchard <fbarchard@chromium.org>
Diffstat (limited to 'source/convert_from_argb.cc')
-rw-r--r-- | source/convert_from_argb.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/convert_from_argb.cc b/source/convert_from_argb.cc index 77c542b7..fbd9e990 100644 --- a/source/convert_from_argb.cc +++ b/source/convert_from_argb.cc @@ -906,8 +906,8 @@ int ARGBToI400(const uint8* src_argb, } // Shuffle table for converting ARGB to RGBA. -static uvec8 kShuffleMaskARGBToRGBA = {3u, 0u, 1u, 2u, 7u, 4u, 5u, 6u, - 11u, 8u, 9u, 10u, 15u, 12u, 13u, 14u}; +static const uvec8 kShuffleMaskARGBToRGBA = { + 3u, 0u, 1u, 2u, 7u, 4u, 5u, 6u, 11u, 8u, 9u, 10u, 15u, 12u, 13u, 14u}; // Convert ARGB to RGBA. LIBYUV_API |