| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 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 <stdio.h> |
| 12 #include <string.h> |
| 13 |
| 14 #include "webrtc/api/video/i420_buffer.h" |
| 15 #include "webrtc/api/video/video_frame.h" |
| 11 #include "webrtc/test/frame_utils.h" | 16 #include "webrtc/test/frame_utils.h" |
| 12 #include "webrtc/video_frame.h" | |
| 13 | 17 |
| 14 namespace webrtc { | 18 namespace webrtc { |
| 15 namespace test { | 19 namespace test { |
| 16 | 20 |
| 17 bool EqualPlane(const uint8_t* data1, | 21 bool EqualPlane(const uint8_t* data1, |
| 18 const uint8_t* data2, | 22 const uint8_t* data2, |
| 19 int stride1, | 23 int stride1, |
| 20 int stride2, | 24 int stride2, |
| 21 int width, | 25 int width, |
| 22 int height) { | 26 int height) { |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 return nullptr; | 88 return nullptr; |
| 85 if (fread(buffer->MutableDataU(), 1, size_uv, f) < size_uv) | 89 if (fread(buffer->MutableDataU(), 1, size_uv, f) < size_uv) |
| 86 return nullptr; | 90 return nullptr; |
| 87 if (fread(buffer->MutableDataV(), 1, size_uv, f) < size_uv) | 91 if (fread(buffer->MutableDataV(), 1, size_uv, f) < size_uv) |
| 88 return nullptr; | 92 return nullptr; |
| 89 return buffer; | 93 return buffer; |
| 90 } | 94 } |
| 91 | 95 |
| 92 } // namespace test | 96 } // namespace test |
| 93 } // namespace webrtc | 97 } // namespace webrtc |
| OLD | NEW |