Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(49)

Unified Diff: webrtc/media/base/videoframe_unittest.h

Issue 2020593002: Refactor scaling. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Trivial rebase. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/media/base/videoframe.cc ('k') | webrtc/media/base/videoframefactory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/media/base/videoframe_unittest.h
diff --git a/webrtc/media/base/videoframe_unittest.h b/webrtc/media/base/videoframe_unittest.h
index 720634b9d163354b8af5008ebf86957b44b6d1b4..a79492d1067a6a1d6c88a1fa24fbb02fd3808bc5 100644
--- a/webrtc/media/base/videoframe_unittest.h
+++ b/webrtc/media/base/videoframe_unittest.h
@@ -1811,33 +1811,6 @@ class VideoFrameTest : public testing::Test {
EXPECT_EQ(const_source->video_frame_buffer(), target->video_frame_buffer());
}
- void StretchToFrame() {
- // Create the source frame as a black frame.
- rtc::scoped_refptr<webrtc::I420Buffer> buffer(
- new rtc::RefCountedObject<webrtc::I420Buffer>(kWidth * 2, kHeight * 2));
-
- buffer->SetToBlack();
- T source(buffer, 0, webrtc::kVideoRotation_0);
-
- EXPECT_TRUE(IsSize(source, kWidth * 2, kHeight * 2));
-
- // Create the target frame by loading from a file.
- T target1;
- ASSERT_TRUE(LoadFrameNoRepeat(&target1));
- EXPECT_FALSE(IsBlack(target1));
-
- // Stretch and check if the stretched target is black.
- source.StretchToFrame(&target1, true, false);
- EXPECT_TRUE(IsBlack(target1));
-
- // Crop and stretch and check if the stretched target is black.
- T target2;
- ASSERT_TRUE(LoadFrameNoRepeat(&target2));
- source.StretchToFrame(&target2, true, true);
- EXPECT_TRUE(IsBlack(target2));
- EXPECT_EQ(source.GetTimeStamp(), target2.GetTimeStamp());
- }
-
int repeat_;
};
« no previous file with comments | « webrtc/media/base/videoframe.cc ('k') | webrtc/media/base/videoframefactory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698