OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 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/common_video/include/video_frame_buffer.h" |
| 11 |
| 12 #include <string.h> |
10 | 13 |
11 #include <algorithm> | 14 #include <algorithm> |
12 | 15 |
13 #include "webrtc/common_video/include/video_frame_buffer.h" | |
14 | |
15 #include "webrtc/base/checks.h" | 16 #include "webrtc/base/checks.h" |
16 #include "webrtc/base/keep_ref_until_done.h" | 17 #include "webrtc/base/keep_ref_until_done.h" |
17 #include "libyuv/convert.h" | 18 #include "libyuv/convert.h" |
18 #include "libyuv/planar_functions.h" | 19 #include "libyuv/planar_functions.h" |
19 #include "libyuv/scale.h" | 20 #include "libyuv/scale.h" |
20 | 21 |
21 // Aligning pointer to 64 bytes for improved performance, e.g. use SIMD. | 22 // Aligning pointer to 64 bytes for improved performance, e.g. use SIMD. |
22 static const int kBufferAlignment = 64; | 23 static const int kBufferAlignment = 64; |
23 | 24 |
24 namespace webrtc { | 25 namespace webrtc { |
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
361 void* WrappedI420Buffer::native_handle() const { | 362 void* WrappedI420Buffer::native_handle() const { |
362 return nullptr; | 363 return nullptr; |
363 } | 364 } |
364 | 365 |
365 rtc::scoped_refptr<VideoFrameBuffer> WrappedI420Buffer::NativeToI420Buffer() { | 366 rtc::scoped_refptr<VideoFrameBuffer> WrappedI420Buffer::NativeToI420Buffer() { |
366 RTC_NOTREACHED(); | 367 RTC_NOTREACHED(); |
367 return nullptr; | 368 return nullptr; |
368 } | 369 } |
369 | 370 |
370 } // namespace webrtc | 371 } // namespace webrtc |
OLD | NEW |