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

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

Issue 2383493005: Revert of Let ViEEncoder handle resolution changes. (Closed)
Patch Set: 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
57 // Creates a test frame generator that creates fully saturated frames with 52 // Creates a test frame generator that creates fully saturated frames with
58 // varying U, V values over time. 53 // varying U, V values over time.
59 static FrameGenerator* CreateChromaGenerator(size_t width, size_t height); 54 static FrameGenerator* CreateChromaGenerator(size_t width, size_t height);
60 55
61 // Creates a frame generator that repeatedly plays a set of yuv files. 56 // Creates a frame generator that repeatedly plays a set of yuv files.
62 // The frame_repeat_count determines how many times each frame is shown, 57 // The frame_repeat_count determines how many times each frame is shown,
63 // with 1 = show each frame once, etc. 58 // with 1 = show each frame once, etc.
64 static FrameGenerator* CreateFromYuvFile(std::vector<std::string> files, 59 static FrameGenerator* CreateFromYuvFile(std::vector<std::string> files,
65 size_t width, 60 size_t width,
66 size_t height, 61 size_t height,
(...skipping 14 matching lines...) Expand all
81 size_t source_height, 76 size_t source_height,
82 size_t target_width, 77 size_t target_width,
83 size_t target_height, 78 size_t target_height,
84 int64_t scroll_time_ms, 79 int64_t scroll_time_ms,
85 int64_t pause_time_ms); 80 int64_t pause_time_ms);
86 }; 81 };
87 } // namespace test 82 } // namespace test
88 } // namespace webrtc 83 } // namespace webrtc
89 84
90 #endif // WEBRTC_TEST_FRAME_GENERATOR_H_ 85 #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