| 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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 TEST_WEBRTCVIDEOFRAME(ConvertFromI400BufferInverted) | 230 TEST_WEBRTCVIDEOFRAME(ConvertFromI400BufferInverted) |
| 231 TEST_WEBRTCVIDEOFRAME(ConvertFromYUY2Buffer) | 231 TEST_WEBRTCVIDEOFRAME(ConvertFromYUY2Buffer) |
| 232 TEST_WEBRTCVIDEOFRAME(ConvertFromYUY2BufferStride) | 232 TEST_WEBRTCVIDEOFRAME(ConvertFromYUY2BufferStride) |
| 233 TEST_WEBRTCVIDEOFRAME(ConvertFromYUY2BufferInverted) | 233 TEST_WEBRTCVIDEOFRAME(ConvertFromYUY2BufferInverted) |
| 234 TEST_WEBRTCVIDEOFRAME(ConvertFromUYVYBuffer) | 234 TEST_WEBRTCVIDEOFRAME(ConvertFromUYVYBuffer) |
| 235 TEST_WEBRTCVIDEOFRAME(ConvertFromUYVYBufferStride) | 235 TEST_WEBRTCVIDEOFRAME(ConvertFromUYVYBufferStride) |
| 236 TEST_WEBRTCVIDEOFRAME(ConvertFromUYVYBufferInverted) | 236 TEST_WEBRTCVIDEOFRAME(ConvertFromUYVYBufferInverted) |
| 237 // TEST_WEBRTCVIDEOFRAME(ConvertToI422Buffer) | 237 // TEST_WEBRTCVIDEOFRAME(ConvertToI422Buffer) |
| 238 // TEST_WEBRTCVIDEOFRAME(ConstructARGBBlackWhitePixel) | 238 // TEST_WEBRTCVIDEOFRAME(ConstructARGBBlackWhitePixel) |
| 239 | 239 |
| 240 TEST_WEBRTCVIDEOFRAME(StretchToFrame) | |
| 241 TEST_WEBRTCVIDEOFRAME(Copy) | 240 TEST_WEBRTCVIDEOFRAME(Copy) |
| 242 TEST_WEBRTCVIDEOFRAME(CopyIsRef) | 241 TEST_WEBRTCVIDEOFRAME(CopyIsRef) |
| 243 | 242 |
| 244 // These functions test implementation-specific details. | 243 // These functions test implementation-specific details. |
| 245 // Tests the Init function with different cropped size. | 244 // Tests the Init function with different cropped size. |
| 246 TEST_F(WebRtcVideoFrameTest, InitEvenSize) { | 245 TEST_F(WebRtcVideoFrameTest, InitEvenSize) { |
| 247 TestInit(640, 360, webrtc::kVideoRotation_0, true); | 246 TestInit(640, 360, webrtc::kVideoRotation_0, true); |
| 248 } | 247 } |
| 249 | 248 |
| 250 TEST_F(WebRtcVideoFrameTest, InitOddWidth) { | 249 TEST_F(WebRtcVideoFrameTest, InitOddWidth) { |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 | 322 |
| 324 // Claim the frame 2 needs to be rotated for another 270 degree. The output | 323 // Claim the frame 2 needs to be rotated for another 270 degree. The output |
| 325 // from frame 2 rotation should be the same as frame 1. | 324 // from frame 2 rotation should be the same as frame 1. |
| 326 applied90->set_rotation(webrtc::kVideoRotation_270); | 325 applied90->set_rotation(webrtc::kVideoRotation_270); |
| 327 const cricket::VideoFrame* applied360 = | 326 const cricket::VideoFrame* applied360 = |
| 328 applied90->GetCopyWithRotationApplied(); | 327 applied90->GetCopyWithRotationApplied(); |
| 329 EXPECT_TRUE(applied360); | 328 EXPECT_TRUE(applied360); |
| 330 EXPECT_EQ(applied360->rotation(), webrtc::kVideoRotation_0); | 329 EXPECT_EQ(applied360->rotation(), webrtc::kVideoRotation_0); |
| 331 EXPECT_TRUE(IsEqual(applied0, *applied360, 0)); | 330 EXPECT_TRUE(IsEqual(applied0, *applied360, 0)); |
| 332 } | 331 } |
| OLD | NEW |