| OLD | NEW |
| 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 #include "webrtc/test/frame_generator.h" | 10 #include "webrtc/test/frame_generator.h" |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 (pixels_scrolled_y / 2)) + | 210 (pixels_scrolled_y / 2)) + |
| 211 (pixels_scrolled_x / 2); | 211 (pixels_scrolled_x / 2); |
| 212 | 212 |
| 213 current_frame_.CreateFrame( | 213 current_frame_.CreateFrame( |
| 214 ¤t_source_frame_->buffer(PlaneType::kYPlane)[offset_y], | 214 ¤t_source_frame_->buffer(PlaneType::kYPlane)[offset_y], |
| 215 ¤t_source_frame_->buffer(PlaneType::kUPlane)[offset_u], | 215 ¤t_source_frame_->buffer(PlaneType::kUPlane)[offset_u], |
| 216 ¤t_source_frame_->buffer(PlaneType::kVPlane)[offset_v], | 216 ¤t_source_frame_->buffer(PlaneType::kVPlane)[offset_v], |
| 217 kTargetWidth, kTargetHeight, | 217 kTargetWidth, kTargetHeight, |
| 218 current_source_frame_->stride(PlaneType::kYPlane), | 218 current_source_frame_->stride(PlaneType::kYPlane), |
| 219 current_source_frame_->stride(PlaneType::kUPlane), | 219 current_source_frame_->stride(PlaneType::kUPlane), |
| 220 current_source_frame_->stride(PlaneType::kVPlane), | 220 current_source_frame_->stride(PlaneType::kVPlane)); |
| 221 kVideoRotation_0); | |
| 222 } | 221 } |
| 223 | 222 |
| 224 Clock* const clock_; | 223 Clock* const clock_; |
| 225 const int64_t start_time_; | 224 const int64_t start_time_; |
| 226 const int64_t scroll_time_; | 225 const int64_t scroll_time_; |
| 227 const int64_t pause_time_; | 226 const int64_t pause_time_; |
| 228 const size_t num_frames_; | 227 const size_t num_frames_; |
| 229 size_t current_frame_num_; | 228 size_t current_frame_num_; |
| 230 VideoFrame* current_source_frame_; | 229 VideoFrame* current_source_frame_; |
| 231 VideoFrame current_frame_; | 230 VideoFrame current_frame_; |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 files.push_back(file); | 271 files.push_back(file); |
| 273 } | 272 } |
| 274 | 273 |
| 275 return new ScrollingImageFrameGenerator( | 274 return new ScrollingImageFrameGenerator( |
| 276 clock, files, source_width, source_height, target_width, target_height, | 275 clock, files, source_width, source_height, target_width, target_height, |
| 277 scroll_time_ms, pause_time_ms); | 276 scroll_time_ms, pause_time_ms); |
| 278 } | 277 } |
| 279 | 278 |
| 280 } // namespace test | 279 } // namespace test |
| 281 } // namespace webrtc | 280 } // namespace webrtc |
| OLD | NEW |