| 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" | 10 #include "webrtc/common_video/include/video_frame_buffer.h" |
| 11 | 11 |
| 12 #include <string.h> | 12 #include <string.h> |
| 13 | 13 |
| 14 #include <algorithm> | 14 #include <algorithm> |
| 15 | 15 |
| 16 #include "webrtc/base/checks.h" | |
| 17 #include "webrtc/base/keep_ref_until_done.h" | |
| 18 #include "libyuv/convert.h" | 16 #include "libyuv/convert.h" |
| 19 #include "libyuv/planar_functions.h" | 17 #include "libyuv/planar_functions.h" |
| 20 #include "libyuv/scale.h" | 18 #include "libyuv/scale.h" |
| 19 #include "webrtc/rtc_base/checks.h" |
| 20 #include "webrtc/rtc_base/keep_ref_until_done.h" |
| 21 | 21 |
| 22 namespace webrtc { | 22 namespace webrtc { |
| 23 | 23 |
| 24 WrappedI420Buffer::WrappedI420Buffer(int width, | 24 WrappedI420Buffer::WrappedI420Buffer(int width, |
| 25 int height, | 25 int height, |
| 26 const uint8_t* y_plane, | 26 const uint8_t* y_plane, |
| 27 int y_stride, | 27 int y_stride, |
| 28 const uint8_t* u_plane, | 28 const uint8_t* u_plane, |
| 29 int u_stride, | 29 int u_stride, |
| 30 const uint8_t* v_plane, | 30 const uint8_t* v_plane, |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 case VideoFrameBuffer::Type::kI444: | 178 case VideoFrameBuffer::Type::kI444: |
| 179 return WrapI444Buffer(width, height, y_plane, y_stride, u_plane, u_stride, | 179 return WrapI444Buffer(width, height, y_plane, y_stride, u_plane, u_stride, |
| 180 v_plane, v_stride, no_longer_used); | 180 v_plane, v_stride, no_longer_used); |
| 181 default: | 181 default: |
| 182 FATAL() << "Unexpected frame buffer type."; | 182 FATAL() << "Unexpected frame buffer type."; |
| 183 return nullptr; | 183 return nullptr; |
| 184 } | 184 } |
| 185 } | 185 } |
| 186 | 186 |
| 187 } // namespace webrtc | 187 } // namespace webrtc |
| OLD | NEW |