Commit d586d55a authored by fbarchard@google.com's avatar fbarchard@google.com

Tests the full range of Y

BUG=391
TESTED=TestYUV
R=tpsiaki@google.com

Review URL: https://webrtc-codereview.appspot.com/36809004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1231 16f28f9a-4ce2-e073-06de-1de4eb20be90
parent 131aef14
Name: libyuv
URL: http://code.google.com/p/libyuv/
Version: 1229
Version: 1230
License: BSD
License File: LICENSE
......
......@@ -11,6 +11,6 @@
#ifndef INCLUDE_LIBYUV_VERSION_H_ // NOLINT
#define INCLUDE_LIBYUV_VERSION_H_
#define LIBYUV_VERSION 1229
#define LIBYUV_VERSION 1230
#endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT
......@@ -186,6 +186,14 @@ TEST_F(libyuvTest, TestYUV) {
EXPECT_EQ(255, r1);
EXPECT_EQ(255, g1);
EXPECT_EQ(255, b1);
for (int i = 0; i < 255; ++i) {
TestYUVToRGBReference(i, 128, 128, r0, g0, b0);
TestYUVToRGB(i, 128, 128, r1, g1, b1, benchmark_width_, benchmark_height_);
EXPECT_NEAR(r0, r1, 3);
EXPECT_NEAR(r0, g1, 3);
EXPECT_NEAR(r0, b1, 3);
}
}
} // namespace libyuv
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