OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "base/base_paths.h" | 5 #include "base/base_paths.h" |
6 #include "base/file_util.h" | 6 #include "base/file_util.h" |
7 #include "media/base/yuv_convert.h" | 7 #include "media/base/yuv_convert.h" |
8 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
9 | 9 |
10 // Size of raw image. | 10 // Size of raw image. |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 kWidth, kHeight, // Dimensions | 54 kWidth, kHeight, // Dimensions |
55 kWidth, // YStride | 55 kWidth, // YStride |
56 kWidth / 2, // UvStride | 56 kWidth / 2, // UvStride |
57 kWidth * kBpp); // RgbStride | 57 kWidth * kBpp); // RgbStride |
58 | 58 |
59 // Compare converted YUV to reference conversion file. | 59 // Compare converted YUV to reference conversion file. |
60 int rgb_diff = memcmp(rgb_converted_bytes, rgb_bytes, size_of_rgb); | 60 int rgb_diff = memcmp(rgb_converted_bytes, rgb_bytes, size_of_rgb); |
61 | 61 |
62 EXPECT_EQ(rgb_diff, 0); | 62 EXPECT_EQ(rgb_diff, 0); |
63 } | 63 } |
64 | |
OLD | NEW |