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/media/webrtc/webrtcvideoframe.h" | 11 #include "webrtc/media/engine/webrtcvideoframe.h" |
12 | 12 |
13 #include "libyuv/convert.h" | 13 #include "libyuv/convert.h" |
14 #include "webrtc/base/logging.h" | 14 #include "webrtc/base/logging.h" |
15 #include "webrtc/media/base/videocapturer.h" | 15 #include "webrtc/media/base/videocapturer.h" |
16 #include "webrtc/media/base/videocommon.h" | 16 #include "webrtc/media/base/videocommon.h" |
17 #include "webrtc/video_frame.h" | 17 #include "webrtc/video_frame.h" |
18 | 18 |
19 using webrtc::kYPlane; | 19 using webrtc::kYPlane; |
20 using webrtc::kUPlane; | 20 using webrtc::kUPlane; |
21 using webrtc::kVPlane; | 21 using webrtc::kVPlane; |
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 rotated_frame_->GetUPlane(), rotated_frame_->GetUPitch(), | 272 rotated_frame_->GetUPlane(), rotated_frame_->GetUPitch(), |
273 rotated_frame_->GetVPlane(), rotated_frame_->GetVPitch(), width, height, | 273 rotated_frame_->GetVPlane(), rotated_frame_->GetVPitch(), width, height, |
274 static_cast<libyuv::RotationMode>(GetVideoRotation())); | 274 static_cast<libyuv::RotationMode>(GetVideoRotation())); |
275 if (ret == 0) { | 275 if (ret == 0) { |
276 return rotated_frame_.get(); | 276 return rotated_frame_.get(); |
277 } | 277 } |
278 return nullptr; | 278 return nullptr; |
279 } | 279 } |
280 | 280 |
281 } // namespace cricket | 281 } // namespace cricket |
OLD | NEW |