| 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 | 10 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 namespace webrtc { | 24 namespace webrtc { |
| 25 | 25 |
| 26 namespace { | 26 namespace { |
| 27 | 27 |
| 28 int I420DataSize(int height, int stride_y, int stride_u, int stride_v) { | 28 int I420DataSize(int height, int stride_y, int stride_u, int stride_v) { |
| 29 return stride_y * height + (stride_u + stride_v) * ((height + 1) / 2); | 29 return stride_y * height + (stride_u + stride_v) * ((height + 1) / 2); |
| 30 } | 30 } |
| 31 | 31 |
| 32 } // namespace | 32 } // namespace |
| 33 | 33 |
| 34 uint8_t* VideoFrameBuffer::MutableDataY() { | |
| 35 RTC_NOTREACHED(); | |
| 36 return nullptr; | |
| 37 } | |
| 38 uint8_t* VideoFrameBuffer::MutableDataU() { | |
| 39 RTC_NOTREACHED(); | |
| 40 return nullptr; | |
| 41 } | |
| 42 uint8_t* VideoFrameBuffer::MutableDataV() { | |
| 43 RTC_NOTREACHED(); | |
| 44 return nullptr; | |
| 45 } | |
| 46 | |
| 47 VideoFrameBuffer::~VideoFrameBuffer() {} | 34 VideoFrameBuffer::~VideoFrameBuffer() {} |
| 48 | 35 |
| 49 I420Buffer::I420Buffer(int width, int height) | 36 I420Buffer::I420Buffer(int width, int height) |
| 50 : I420Buffer(width, height, width, (width + 1) / 2, (width + 1) / 2) { | 37 : I420Buffer(width, height, width, (width + 1) / 2, (width + 1) / 2) { |
| 51 } | 38 } |
| 52 | 39 |
| 53 I420Buffer::I420Buffer(int width, | 40 I420Buffer::I420Buffer(int width, |
| 54 int height, | 41 int height, |
| 55 int stride_y, | 42 int stride_y, |
| 56 int stride_u, | 43 int stride_u, |
| (...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 374 void* WrappedI420Buffer::native_handle() const { | 361 void* WrappedI420Buffer::native_handle() const { |
| 375 return nullptr; | 362 return nullptr; |
| 376 } | 363 } |
| 377 | 364 |
| 378 rtc::scoped_refptr<VideoFrameBuffer> WrappedI420Buffer::NativeToI420Buffer() { | 365 rtc::scoped_refptr<VideoFrameBuffer> WrappedI420Buffer::NativeToI420Buffer() { |
| 379 RTC_NOTREACHED(); | 366 RTC_NOTREACHED(); |
| 380 return nullptr; | 367 return nullptr; |
| 381 } | 368 } |
| 382 | 369 |
| 383 } // namespace webrtc | 370 } // namespace webrtc |
| OLD | NEW |