OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2011 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 "webrtc/test/testsupport/frame_reader.h" | 11 #include "webrtc/test/testsupport/frame_reader.h" |
12 | 12 |
13 #include <assert.h> | 13 #include <assert.h> |
14 | 14 |
| 15 #include "webrtc/api/video/i420_buffer.h" |
15 #include "webrtc/test/frame_utils.h" | 16 #include "webrtc/test/frame_utils.h" |
16 #include "webrtc/test/testsupport/fileutils.h" | 17 #include "webrtc/test/testsupport/fileutils.h" |
17 #include "webrtc/common_video/include/video_frame_buffer.h" | |
18 | 18 |
19 namespace webrtc { | 19 namespace webrtc { |
20 namespace test { | 20 namespace test { |
21 | 21 |
22 FrameReaderImpl::FrameReaderImpl(std::string input_filename, | 22 FrameReaderImpl::FrameReaderImpl(std::string input_filename, |
23 int width, int height) | 23 int width, int height) |
24 : input_filename_(input_filename), | 24 : input_filename_(input_filename), |
25 width_(width), height_(height), | 25 width_(width), height_(height), |
26 input_file_(NULL) { | 26 input_file_(NULL) { |
27 } | 27 } |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 input_filename_.c_str()); | 75 input_filename_.c_str()); |
76 } | 76 } |
77 return buffer; | 77 return buffer; |
78 } | 78 } |
79 | 79 |
80 size_t FrameReaderImpl::FrameLength() { return frame_length_in_bytes_; } | 80 size_t FrameReaderImpl::FrameLength() { return frame_length_in_bytes_; } |
81 int FrameReaderImpl::NumberOfFrames() { return number_of_frames_; } | 81 int FrameReaderImpl::NumberOfFrames() { return number_of_frames_; } |
82 | 82 |
83 } // namespace test | 83 } // namespace test |
84 } // namespace webrtc | 84 } // namespace webrtc |
OLD | NEW |