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

Side by Side Diff: webrtc/test/frame_utils.cc

Issue 2517173004: Move VideoFrame and related declarations to webrtc/api/video. (Closed)
Patch Set: Make rotation check clearer. Created 3 years, 11 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 | « webrtc/test/frame_generator_capturer.h ('k') | webrtc/test/testsupport/frame_reader.cc » ('j') | 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 (c) 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2013 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 <stdio.h>
12 #include <string.h>
13
14 #include "webrtc/api/video/i420_buffer.h"
15 #include "webrtc/api/video/video_frame.h"
11 #include "webrtc/test/frame_utils.h" 16 #include "webrtc/test/frame_utils.h"
12 #include "webrtc/video_frame.h"
13 17
14 namespace webrtc { 18 namespace webrtc {
15 namespace test { 19 namespace test {
16 20
17 bool EqualPlane(const uint8_t* data1, 21 bool EqualPlane(const uint8_t* data1,
18 const uint8_t* data2, 22 const uint8_t* data2,
19 int stride1, 23 int stride1,
20 int stride2, 24 int stride2,
21 int width, 25 int width,
22 int height) { 26 int height) {
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 return nullptr; 88 return nullptr;
85 if (fread(buffer->MutableDataU(), 1, size_uv, f) < size_uv) 89 if (fread(buffer->MutableDataU(), 1, size_uv, f) < size_uv)
86 return nullptr; 90 return nullptr;
87 if (fread(buffer->MutableDataV(), 1, size_uv, f) < size_uv) 91 if (fread(buffer->MutableDataV(), 1, size_uv, f) < size_uv)
88 return nullptr; 92 return nullptr;
89 return buffer; 93 return buffer;
90 } 94 }
91 95
92 } // namespace test 96 } // namespace test
93 } // namespace webrtc 97 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/test/frame_generator_capturer.h ('k') | webrtc/test/testsupport/frame_reader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698