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

Side by Side Diff: webrtc/modules/video_coding/codecs/test/videoprocessor.h

Issue 2999613002: Minor improvements to VideoProcessorIntegrationTest. (Closed)
Patch Set: Fix iOS more. Created 3 years, 4 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
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 PacketManipulator* packet_manipulator, 145 PacketManipulator* packet_manipulator,
146 const TestConfig& config, 146 const TestConfig& config,
147 Stats* stats, 147 Stats* stats,
148 IvfFileWriter* encoded_frame_writer, 148 IvfFileWriter* encoded_frame_writer,
149 FrameWriter* decoded_frame_writer); 149 FrameWriter* decoded_frame_writer);
150 ~VideoProcessor(); 150 ~VideoProcessor();
151 151
152 // Sets up callbacks and initializes the encoder and decoder. 152 // Sets up callbacks and initializes the encoder and decoder.
153 void Init(); 153 void Init();
154 154
155 // Tears down callbacks and releases the encoder and decoder.
156 void Release();
157
155 // Processes a single frame. Returns true as long as there's more frames 158 // Processes a single frame. Returns true as long as there's more frames
156 // available in the source clip. 159 // available in the source clip.
157 // |frame_number| must be an integer >= 0. 160 // |frame_number| must be an integer >= 0.
158 bool ProcessFrame(int frame_number); 161 bool ProcessFrame(int frame_number);
159 162
160 // Updates the encoder with the target |bit_rate| and the |frame_rate|. 163 // Updates the encoder with the target |bit_rate| and the |frame_rate|.
161 void SetRates(int bit_rate, int frame_rate); 164 void SetRates(int bit_rate, int frame_rate);
162 165
163 // Return the size of the encoded frame in bytes. Dropped frames by the 166 // Return the size of the encoded frame in bytes. Dropped frames by the
164 // encoder are regarded as zero size. 167 // encoder are regarded as zero size.
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 // Statistics. 317 // Statistics.
315 Stats* stats_; 318 Stats* stats_;
316 int num_dropped_frames_; 319 int num_dropped_frames_;
317 int num_spatial_resizes_; 320 int num_spatial_resizes_;
318 }; 321 };
319 322
320 } // namespace test 323 } // namespace test
321 } // namespace webrtc 324 } // namespace webrtc
322 325
323 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_VIDEOPROCESSOR_H_ 326 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_VIDEOPROCESSOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698