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

Unified Diff: webrtc/test/frame_generator.h

Issue 1267463002: Add a frame generator that allows scrolling images (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fixed casts Created 5 years, 5 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 | « no previous file | webrtc/test/frame_generator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/test/frame_generator.h
diff --git a/webrtc/test/frame_generator.h b/webrtc/test/frame_generator.h
index 03afaccc3067765e24b7e6bc9fb2921e7a558620..7f20c749e8eea9b920ce8b0afde26445eaa10499 100644
--- a/webrtc/test/frame_generator.h
+++ b/webrtc/test/frame_generator.h
@@ -17,6 +17,7 @@
#include "webrtc/video_frame.h"
namespace webrtc {
+class Clock;
namespace test {
class FrameGenerator {
@@ -38,6 +39,24 @@ class FrameGenerator {
size_t width,
size_t height,
int frame_repeat_count);
+
+ // Creates a frame generator which takes a set of yuv files (wrapping a
+ // frame generator created by CreateFromYuvFile() above), but outputs frames
+ // that have been cropped to specified resolution: source_width/source_height
+ // is the size of the source images, target_width/target_height is the size of
+ // the cropped output. For each source image read, the cropped viewport will
+ // be scrolled top to bottom/left to right for scroll_tim_ms milliseconds.
+ // After that the image will stay in place for pause_time_ms milliseconds,
+ // and then this will be repeated with the next file from the input set.
+ static FrameGenerator* CreateScrollingInputFromYuvFiles(
+ Clock* clock,
+ std::vector<std::string> filenames,
+ size_t source_width,
+ size_t source_height,
+ size_t target_width,
+ size_t target_height,
+ int64_t scroll_time_ms,
+ int64_t pause_time_ms);
};
} // namespace test
} // namespace webrtc
« no previous file with comments | « no previous file | webrtc/test/frame_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698