| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2014 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/video/video_capture_input.h" | 10 #include "webrtc/video/video_capture_input.h" |
| (...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 } | 283 } |
| 284 | 284 |
| 285 VideoFrame* CreateVideoFrame(uint8_t data) { | 285 VideoFrame* CreateVideoFrame(uint8_t data) { |
| 286 VideoFrame* frame = new VideoFrame(); | 286 VideoFrame* frame = new VideoFrame(); |
| 287 const int width = 36; | 287 const int width = 36; |
| 288 const int height = 24; | 288 const int height = 24; |
| 289 const int kSizeY = width * height * 2; | 289 const int kSizeY = width * height * 2; |
| 290 uint8_t buffer[kSizeY]; | 290 uint8_t buffer[kSizeY]; |
| 291 memset(buffer, data, kSizeY); | 291 memset(buffer, data, kSizeY); |
| 292 frame->CreateFrame(buffer, buffer, buffer, width, height, width, width / 2, | 292 frame->CreateFrame(buffer, buffer, buffer, width, height, width, width / 2, |
| 293 width / 2); | 293 width / 2, kVideoRotation_0); |
| 294 frame->set_render_time_ms(data); | 294 frame->set_render_time_ms(data); |
| 295 return frame; | 295 return frame; |
| 296 } | 296 } |
| 297 | 297 |
| 298 } // namespace webrtc | 298 } // namespace webrtc |
| OLD | NEW |