| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2011 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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 TEST_WEBRTCVIDEOFRAME(ValidateI420SmallSize) | 159 TEST_WEBRTCVIDEOFRAME(ValidateI420SmallSize) |
| 160 TEST_WEBRTCVIDEOFRAME(ValidateI420LargeSize) | 160 TEST_WEBRTCVIDEOFRAME(ValidateI420LargeSize) |
| 161 TEST_WEBRTCVIDEOFRAME(ValidateI420HugeSize) | 161 TEST_WEBRTCVIDEOFRAME(ValidateI420HugeSize) |
| 162 // TEST_WEBRTCVIDEOFRAME(ValidateMjpgI420InvalidSize) | 162 // TEST_WEBRTCVIDEOFRAME(ValidateMjpgI420InvalidSize) |
| 163 // TEST_WEBRTCVIDEOFRAME(ValidateI420InvalidSize) | 163 // TEST_WEBRTCVIDEOFRAME(ValidateI420InvalidSize) |
| 164 | 164 |
| 165 // TODO(fbarchard): WebRtcVideoFrame does not support odd sizes. | 165 // TODO(fbarchard): WebRtcVideoFrame does not support odd sizes. |
| 166 // Re-evaluate once WebRTC switches to libyuv | 166 // Re-evaluate once WebRTC switches to libyuv |
| 167 // TEST_WEBRTCVIDEOFRAME(ConstructYuy2AllSizes) | 167 // TEST_WEBRTCVIDEOFRAME(ConstructYuy2AllSizes) |
| 168 // TEST_WEBRTCVIDEOFRAME(ConstructARGBAllSizes) | 168 // TEST_WEBRTCVIDEOFRAME(ConstructARGBAllSizes) |
| 169 TEST_WEBRTCVIDEOFRAME(ResetAndApplyRotation) | |
| 170 TEST_WEBRTCVIDEOFRAME(ResetAndDontApplyRotation) | |
| 171 TEST_WEBRTCVIDEOFRAME(ConvertToABGRBuffer) | 169 TEST_WEBRTCVIDEOFRAME(ConvertToABGRBuffer) |
| 172 TEST_WEBRTCVIDEOFRAME(ConvertToABGRBufferStride) | 170 TEST_WEBRTCVIDEOFRAME(ConvertToABGRBufferStride) |
| 173 TEST_WEBRTCVIDEOFRAME(ConvertToABGRBufferInverted) | 171 TEST_WEBRTCVIDEOFRAME(ConvertToABGRBufferInverted) |
| 174 TEST_WEBRTCVIDEOFRAME(ConvertToARGB1555Buffer) | 172 TEST_WEBRTCVIDEOFRAME(ConvertToARGB1555Buffer) |
| 175 TEST_WEBRTCVIDEOFRAME(ConvertToARGB1555BufferStride) | 173 TEST_WEBRTCVIDEOFRAME(ConvertToARGB1555BufferStride) |
| 176 TEST_WEBRTCVIDEOFRAME(ConvertToARGB1555BufferInverted) | 174 TEST_WEBRTCVIDEOFRAME(ConvertToARGB1555BufferInverted) |
| 177 TEST_WEBRTCVIDEOFRAME(ConvertToARGB4444Buffer) | 175 TEST_WEBRTCVIDEOFRAME(ConvertToARGB4444Buffer) |
| 178 TEST_WEBRTCVIDEOFRAME(ConvertToARGB4444BufferStride) | 176 TEST_WEBRTCVIDEOFRAME(ConvertToARGB4444BufferStride) |
| 179 TEST_WEBRTCVIDEOFRAME(ConvertToARGB4444BufferInverted) | 177 TEST_WEBRTCVIDEOFRAME(ConvertToARGB4444BufferInverted) |
| 180 TEST_WEBRTCVIDEOFRAME(ConvertToARGBBuffer) | 178 TEST_WEBRTCVIDEOFRAME(ConvertToARGBBuffer) |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 | 317 |
| 320 // Claim the frame 2 needs to be rotated for another 270 degree. The output | 318 // Claim the frame 2 needs to be rotated for another 270 degree. The output |
| 321 // from frame 2 rotation should be the same as frame 1. | 319 // from frame 2 rotation should be the same as frame 1. |
| 322 applied90->SetRotation(webrtc::kVideoRotation_270); | 320 applied90->SetRotation(webrtc::kVideoRotation_270); |
| 323 const cricket::VideoFrame* applied360 = | 321 const cricket::VideoFrame* applied360 = |
| 324 applied90->GetCopyWithRotationApplied(); | 322 applied90->GetCopyWithRotationApplied(); |
| 325 EXPECT_TRUE(applied360); | 323 EXPECT_TRUE(applied360); |
| 326 EXPECT_EQ(applied360->GetVideoRotation(), webrtc::kVideoRotation_0); | 324 EXPECT_EQ(applied360->GetVideoRotation(), webrtc::kVideoRotation_0); |
| 327 EXPECT_TRUE(IsEqual(applied0, *applied360, 0)); | 325 EXPECT_TRUE(IsEqual(applied0, *applied360, 0)); |
| 328 } | 326 } |
| OLD | NEW |