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 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 // Exclude native handle | 54 // Exclude native handle |
55 if (f1->native_handle()) { | 55 if (f1->native_handle()) { |
56 return f1->native_handle() == f2->native_handle(); | 56 return f1->native_handle() == f2->native_handle(); |
57 } | 57 } |
58 | 58 |
59 if (f2->native_handle()) { | 59 if (f2->native_handle()) { |
60 return false; | 60 return false; |
61 } | 61 } |
62 const int half_width = (f1->width() + 1) / 2; | 62 const int half_width = (f1->width() + 1) / 2; |
63 const int half_height = (f1->height() + 1) / 2; | 63 const int half_height = (f1->height() + 1) / 2; |
64 return EqualPlane(f1->data(webrtc::kYPlane), f2->data(webrtc::kYPlane), | 64 return EqualPlane(f1->DataY(), f2->DataY(), |
65 f1->stride(webrtc::kYPlane), f2->stride(webrtc::kYPlane), | 65 f1->StrideY(), f2->StrideY(), |
66 f1->width(), f1->height()) && | 66 f1->width(), f1->height()) && |
67 EqualPlane(f1->data(webrtc::kUPlane), f2->data(webrtc::kUPlane), | 67 EqualPlane(f1->DataU(), f2->DataU(), |
68 f1->stride(webrtc::kUPlane), f2->stride(webrtc::kUPlane), | 68 f1->StrideU(), f2->StrideU(), |
69 half_width, half_height) && | 69 half_width, half_height) && |
70 EqualPlane(f1->data(webrtc::kVPlane), f2->data(webrtc::kVPlane), | 70 EqualPlane(f1->DataV(), f2->DataV(), |
71 f1->stride(webrtc::kVPlane), f2->stride(webrtc::kVPlane), | 71 f1->StrideV(), f2->StrideV(), |
72 half_width, half_height); | 72 half_width, half_height); |
73 } | 73 } |
74 | 74 |
75 } // namespace test | 75 } // namespace test |
76 } // namespace webrtc | 76 } // namespace webrtc |
OLD | NEW |