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

Side by Side Diff: webrtc/common_video/i420_video_frame_unittest.cc

Issue 2622263002: Delete deprecated and transitional stuff related to video frame refactoring. (Closed)
Patch Set: Fix include order. Add dependency in api/video_codecs/BUILD.gn. Created 3 years, 7 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
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 The WebRTC 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
11 #include <math.h> 11 #include <math.h>
12 #include <string.h> 12 #include <string.h>
13 13
14 #include "webrtc/api/video/video_frame.h" 14 #include "webrtc/api/video/video_frame.h"
15 #include "webrtc/api/video/i420_buffer.h"
15 #include "webrtc/base/bind.h" 16 #include "webrtc/base/bind.h"
16 #include "webrtc/base/timeutils.h" 17 #include "webrtc/base/timeutils.h"
17 #include "webrtc/test/fake_texture_frame.h" 18 #include "webrtc/test/fake_texture_frame.h"
18 #include "webrtc/test/frame_utils.h" 19 #include "webrtc/test/frame_utils.h"
19 #include "webrtc/test/gtest.h" 20 #include "webrtc/test/gtest.h"
20 21
21 namespace webrtc { 22 namespace webrtc {
22 23
23 namespace { 24 namespace {
24 25
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 I420Buffer::Rotate(*buffer, GetParam()); 285 I420Buffer::Rotate(*buffer, GetParam());
285 CheckRotate(640, 480, GetParam(), *rotated_buffer); 286 CheckRotate(640, 480, GetParam(), *rotated_buffer);
286 } 287 }
287 288
288 INSTANTIATE_TEST_CASE_P(Rotate, TestI420BufferRotate, 289 INSTANTIATE_TEST_CASE_P(Rotate, TestI420BufferRotate,
289 ::testing::Values(kVideoRotation_0, 290 ::testing::Values(kVideoRotation_0,
290 kVideoRotation_90, 291 kVideoRotation_90,
291 kVideoRotation_180, 292 kVideoRotation_180,
292 kVideoRotation_270)); 293 kVideoRotation_270));
293 294
294 class TestI420BufferRotateOld
295 : public ::testing::TestWithParam<webrtc::VideoRotation> {};
296
297 TEST_P(TestI420BufferRotateOld, Rotates) {
298 rtc::scoped_refptr<VideoFrameBuffer> buffer = CreateGradient(640, 480);
299 rtc::scoped_refptr<VideoFrameBuffer> rotated_buffer =
300 I420Buffer::Rotate(buffer, GetParam());
301 CheckRotate(640, 480, GetParam(), *rotated_buffer);
302 }
303
304 INSTANTIATE_TEST_CASE_P(Rotate, TestI420BufferRotateOld,
305 ::testing::Values(kVideoRotation_0,
306 kVideoRotation_90,
307 kVideoRotation_180,
308 kVideoRotation_270));
309
310 } // namespace webrtc 295 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/common_video/corevideo_frame_buffer.cc ('k') | webrtc/common_video/include/video_frame_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698