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

Side by Side Diff: media/base/yuv_convert_unittest.cc

Issue 449048: Move some XDG code from chrome to base. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix linux base_unittest Created 11 years 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 | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « media/audio/win/audio_output_win_unittest.cc ('k') | media/filters/file_data_source_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698