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 "base/path_service.h" |
7 #include "media/base/djb2.h" | 8 #include "media/base/djb2.h" |
8 #include "media/base/yuv_convert.h" | 9 #include "media/base/yuv_convert.h" |
9 #include "media/base/yuv_row.h" | 10 #include "media/base/yuv_row.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
11 | 12 |
12 // Reference images were created with the following steps | 13 // Reference images were created with the following steps |
13 // ffmpeg -vframes 25 -i bali.mov -vcodec rawvideo -pix_fmt yuv420p -an | 14 // ffmpeg -vframes 25 -i bali.mov -vcodec rawvideo -pix_fmt yuv420p -an |
14 // bali_1280x720_P420.yuv | 15 // bali_1280x720_P420.yuv |
15 // yuvhalf -yv12 -skip 24 bali_1280x720_P420.yuv bali_640x360_P420.yuv | 16 // yuvhalf -yv12 -skip 24 bali_1280x720_P420.yuv bali_640x360_P420.yuv |
16 | 17 |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 &rgb[0], // RGB output | 248 &rgb[0], // RGB output |
248 1, 1, // Dimensions | 249 1, 1, // Dimensions |
249 0, // YStride | 250 0, // YStride |
250 0, // UVStride | 251 0, // UVStride |
251 0, // RGBStride | 252 0, // RGBStride |
252 media::YV12); | 253 media::YV12); |
253 | 254 |
254 int expected_test = memcmp(rgb, expected, sizeof(expected)); | 255 int expected_test = memcmp(rgb, expected, sizeof(expected)); |
255 EXPECT_EQ(0, expected_test); | 256 EXPECT_EQ(0, expected_test); |
256 } | 257 } |
257 | |
OLD | NEW |