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

Side by Side Diff: webrtc/test/frame_generator.h

Issue 2351633002: Let ViEEncoder handle resolution changes. (Closed)
Patch Set: rebased Created 4 years, 2 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 unified diff | Download patch
« no previous file with comments | « webrtc/test/encoder_settings.cc ('k') | webrtc/test/frame_generator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef WEBRTC_TEST_FRAME_GENERATOR_H_ 10 #ifndef WEBRTC_TEST_FRAME_GENERATOR_H_
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 }; 42 };
43 43
44 class FrameGenerator { 44 class FrameGenerator {
45 public: 45 public:
46 FrameGenerator() {} 46 FrameGenerator() {}
47 virtual ~FrameGenerator() {} 47 virtual ~FrameGenerator() {}
48 48
49 // Returns video frame that remains valid until next call. 49 // Returns video frame that remains valid until next call.
50 virtual VideoFrame* NextFrame() = 0; 50 virtual VideoFrame* NextFrame() = 0;
51 51
52 // Change the capture resolution.
53 virtual void ChangeResolution(size_t width, size_t height) {
54 RTC_NOTREACHED();
55 }
56
52 // Creates a test frame generator that creates fully saturated frames with 57 // Creates a test frame generator that creates fully saturated frames with
53 // varying U, V values over time. 58 // varying U, V values over time.
54 static FrameGenerator* CreateChromaGenerator(size_t width, size_t height); 59 static FrameGenerator* CreateChromaGenerator(size_t width, size_t height);
55 60
56 // Creates a frame generator that repeatedly plays a set of yuv files. 61 // Creates a frame generator that repeatedly plays a set of yuv files.
57 // The frame_repeat_count determines how many times each frame is shown, 62 // The frame_repeat_count determines how many times each frame is shown,
58 // with 1 = show each frame once, etc. 63 // with 1 = show each frame once, etc.
59 static FrameGenerator* CreateFromYuvFile(std::vector<std::string> files, 64 static FrameGenerator* CreateFromYuvFile(std::vector<std::string> files,
60 size_t width, 65 size_t width,
61 size_t height, 66 size_t height,
(...skipping 14 matching lines...) Expand all
76 size_t source_height, 81 size_t source_height,
77 size_t target_width, 82 size_t target_width,
78 size_t target_height, 83 size_t target_height,
79 int64_t scroll_time_ms, 84 int64_t scroll_time_ms,
80 int64_t pause_time_ms); 85 int64_t pause_time_ms);
81 }; 86 };
82 } // namespace test 87 } // namespace test
83 } // namespace webrtc 88 } // namespace webrtc
84 89
85 #endif // WEBRTC_TEST_FRAME_GENERATOR_H_ 90 #endif // WEBRTC_TEST_FRAME_GENERATOR_H_
OLDNEW
« no previous file with comments | « webrtc/test/encoder_settings.cc ('k') | webrtc/test/frame_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698