Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(354)

Side by Side Diff: unit_test/video_common_test.cc

Issue 2406123002: Remove I411 support, update doc and switch to side by side test (Closed)
Patch Set: bump version, disable a few lint warnings Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « unit_test/convert_test.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2012 The LibYuv Project Authors. All rights reserved. 2 * Copyright 2012 The LibYuv Project Authors. All rights reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 EXPECT_EQ(FOURCC_RGBO, CanonicalFourCC(FOURCC_L555)); 59 EXPECT_EQ(FOURCC_RGBO, CanonicalFourCC(FOURCC_L555));
60 EXPECT_EQ(FOURCC_RGBP, CanonicalFourCC(FOURCC_L565)); 60 EXPECT_EQ(FOURCC_RGBP, CanonicalFourCC(FOURCC_L565));
61 EXPECT_EQ(FOURCC_RGBO, CanonicalFourCC(FOURCC_5551)); 61 EXPECT_EQ(FOURCC_RGBO, CanonicalFourCC(FOURCC_5551));
62 } 62 }
63 63
64 TEST_F(LibYUVBaseTest, TestFourCC) { 64 TEST_F(LibYUVBaseTest, TestFourCC) {
65 EXPECT_TRUE(TestValidFourCC(FOURCC_I420, FOURCC_BPP_I420)); 65 EXPECT_TRUE(TestValidFourCC(FOURCC_I420, FOURCC_BPP_I420));
66 EXPECT_TRUE(TestValidFourCC(FOURCC_I420, FOURCC_BPP_I420)); 66 EXPECT_TRUE(TestValidFourCC(FOURCC_I420, FOURCC_BPP_I420));
67 EXPECT_TRUE(TestValidFourCC(FOURCC_I422, FOURCC_BPP_I422)); 67 EXPECT_TRUE(TestValidFourCC(FOURCC_I422, FOURCC_BPP_I422));
68 EXPECT_TRUE(TestValidFourCC(FOURCC_I444, FOURCC_BPP_I444)); 68 EXPECT_TRUE(TestValidFourCC(FOURCC_I444, FOURCC_BPP_I444));
69 EXPECT_TRUE(TestValidFourCC(FOURCC_I411, FOURCC_BPP_I411));
70 EXPECT_TRUE(TestValidFourCC(FOURCC_I400, FOURCC_BPP_I400)); 69 EXPECT_TRUE(TestValidFourCC(FOURCC_I400, FOURCC_BPP_I400));
71 EXPECT_TRUE(TestValidFourCC(FOURCC_NV21, FOURCC_BPP_NV21)); 70 EXPECT_TRUE(TestValidFourCC(FOURCC_NV21, FOURCC_BPP_NV21));
72 EXPECT_TRUE(TestValidFourCC(FOURCC_NV12, FOURCC_BPP_NV12)); 71 EXPECT_TRUE(TestValidFourCC(FOURCC_NV12, FOURCC_BPP_NV12));
73 EXPECT_TRUE(TestValidFourCC(FOURCC_YUY2, FOURCC_BPP_YUY2)); 72 EXPECT_TRUE(TestValidFourCC(FOURCC_YUY2, FOURCC_BPP_YUY2));
74 EXPECT_TRUE(TestValidFourCC(FOURCC_UYVY, FOURCC_BPP_UYVY)); 73 EXPECT_TRUE(TestValidFourCC(FOURCC_UYVY, FOURCC_BPP_UYVY));
75 EXPECT_TRUE(TestValidFourCC(FOURCC_M420, FOURCC_BPP_M420)); 74 EXPECT_TRUE(TestValidFourCC(FOURCC_M420, FOURCC_BPP_M420));
76 EXPECT_TRUE(TestValidFourCC(FOURCC_Q420, FOURCC_BPP_Q420)); // deprecated. 75 EXPECT_TRUE(TestValidFourCC(FOURCC_Q420, FOURCC_BPP_Q420)); // deprecated.
77 EXPECT_TRUE(TestValidFourCC(FOURCC_ARGB, FOURCC_BPP_ARGB)); 76 EXPECT_TRUE(TestValidFourCC(FOURCC_ARGB, FOURCC_BPP_ARGB));
78 EXPECT_TRUE(TestValidFourCC(FOURCC_BGRA, FOURCC_BPP_BGRA)); 77 EXPECT_TRUE(TestValidFourCC(FOURCC_BGRA, FOURCC_BPP_BGRA));
79 EXPECT_TRUE(TestValidFourCC(FOURCC_ABGR, FOURCC_BPP_ABGR)); 78 EXPECT_TRUE(TestValidFourCC(FOURCC_ABGR, FOURCC_BPP_ABGR));
(...skipping 18 matching lines...) Expand all
98 EXPECT_TRUE(TestValidFourCC(FOURCC_JPEG, FOURCC_BPP_JPEG)); 97 EXPECT_TRUE(TestValidFourCC(FOURCC_JPEG, FOURCC_BPP_JPEG));
99 EXPECT_TRUE(TestValidFourCC(FOURCC_DMB1, FOURCC_BPP_DMB1)); 98 EXPECT_TRUE(TestValidFourCC(FOURCC_DMB1, FOURCC_BPP_DMB1));
100 EXPECT_TRUE(TestValidFourCC(FOURCC_BA81, FOURCC_BPP_BA81)); 99 EXPECT_TRUE(TestValidFourCC(FOURCC_BA81, FOURCC_BPP_BA81));
101 EXPECT_TRUE(TestValidFourCC(FOURCC_RGB3, FOURCC_BPP_RGB3)); 100 EXPECT_TRUE(TestValidFourCC(FOURCC_RGB3, FOURCC_BPP_RGB3));
102 EXPECT_TRUE(TestValidFourCC(FOURCC_BGR3, FOURCC_BPP_BGR3)); 101 EXPECT_TRUE(TestValidFourCC(FOURCC_BGR3, FOURCC_BPP_BGR3));
103 EXPECT_TRUE(TestValidFourCC(FOURCC_H264, FOURCC_BPP_H264)); 102 EXPECT_TRUE(TestValidFourCC(FOURCC_H264, FOURCC_BPP_H264));
104 EXPECT_TRUE(TestValidFourCC(FOURCC_ANY, FOURCC_BPP_ANY)); 103 EXPECT_TRUE(TestValidFourCC(FOURCC_ANY, FOURCC_BPP_ANY));
105 } 104 }
106 105
107 } // namespace libyuv 106 } // namespace libyuv
OLDNEW
« no previous file with comments | « unit_test/convert_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698