Commit 29383c8b authored by Frank Barchard's avatar Frank Barchard Committed by Frank Barchard

switch to static_assert for clang-tidy

Bug: None
Test: try bots and lint pass
Change-Id: I7429b394c89450c13732205dae672793e4bb6f44
Reviewed-on: https://chromium-review.googlesource.com/939844Reviewed-by: 's avatarNoah Richards <noahric@chromium.org>
Commit-Queue: Frank Barchard <fbarchard@chromium.org>
parent 368ac76a
Name: libyuv
URL: http://code.google.com/p/libyuv/
Version: 1702
Version: 1703
License: BSD
License File: LICENSE
......
......@@ -11,6 +11,6 @@
#ifndef INCLUDE_LIBYUV_VERSION_H_
#define INCLUDE_LIBYUV_VERSION_H_
#define LIBYUV_VERSION 1702
#define LIBYUV_VERSION 1703
#endif // INCLUDE_LIBYUV_VERSION_H_
......@@ -51,12 +51,16 @@ namespace libyuv {
SRC_SUBSAMP_Y, FMT_PLANAR, DST_T, DST_BPC, \
DST_SUBSAMP_X, DST_SUBSAMP_Y, W1280, N, NEG, OFF) \
TEST_F(LibYUVConvertTest, SRC_FMT_PLANAR##To##FMT_PLANAR##N) { \
assert(SRC_BPC == 1 || SRC_BPC == 2); \
assert(DST_BPC == 1 || DST_BPC == 2); \
assert(SRC_SUBSAMP_X == 1 || SRC_SUBSAMP_X == 2); \
assert(SRC_SUBSAMP_Y == 1 || SRC_SUBSAMP_Y == 2); \
assert(DST_SUBSAMP_X == 1 || DST_SUBSAMP_X == 2); \
assert(DST_SUBSAMP_Y == 1 || DST_SUBSAMP_Y == 2); \
static_assert(SRC_BPC == 1 || SRC_BPC == 2, "SRC BPC unsupported"); \
static_assert(DST_BPC == 1 || DST_BPC == 2, "DST BPC unsupported"); \
static_assert(SRC_SUBSAMP_X == 1 || SRC_SUBSAMP_X == 2, \
"DST SRC_SUBSAMP_X unsupported"); \
static_assert(SRC_SUBSAMP_Y == 1 || SRC_SUBSAMP_Y == 2, \
"DST SRC_SUBSAMP_Y unsupported"); \
static_assert(DST_SUBSAMP_X == 1 || DST_SUBSAMP_X == 2, \
"DST DST_SUBSAMP_X unsupported"); \
static_assert(DST_SUBSAMP_Y == 1 || DST_SUBSAMP_Y == 2, \
"DST DST_SUBSAMP_Y unsupported"); \
const int kWidth = ((W1280) > 0) ? (W1280) : 1; \
const int kHeight = benchmark_height_; \
const int kSrcHalfWidth = SUBSAMPLE(kWidth, SRC_SUBSAMP_X); \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment