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

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

Issue 2708993005: Minor changes in videoprocessor and videoprocessor_integrationtests.h (Closed)
Patch Set: Created 3 years, 9 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 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 }; 223 };
224 224
225 // Invoked by the callback when a frame has completed encoding. 225 // Invoked by the callback when a frame has completed encoding.
226 void FrameEncoded(webrtc::VideoCodecType codec, 226 void FrameEncoded(webrtc::VideoCodecType codec,
227 const webrtc::EncodedImage& encodedImage, 227 const webrtc::EncodedImage& encodedImage,
228 const webrtc::RTPFragmentationHeader* fragmentation); 228 const webrtc::RTPFragmentationHeader* fragmentation);
229 229
230 // Invoked by the callback when a frame has completed decoding. 230 // Invoked by the callback when a frame has completed decoding.
231 void FrameDecoded(const webrtc::VideoFrame& image); 231 void FrameDecoded(const webrtc::VideoFrame& image);
232 232
233 // Used for getting a 32-bit integer representing time
234 // (checks the size is within signed 32-bit bounds before casting it)
235 int GetElapsedTimeMicroseconds(int64_t start, int64_t stop);
236
237 // Updates the encoder with the target bit rate and the frame rate. 233 // Updates the encoder with the target bit rate and the frame rate.
238 void SetRates(int bit_rate, int frame_rate) override; 234 void SetRates(int bit_rate, int frame_rate) override;
239 235
240 // Return the size of the encoded frame in bytes. 236 // Return the size of the encoded frame in bytes.
241 size_t EncodedFrameSize() override; 237 size_t EncodedFrameSize() override;
242 238
243 // Return the encoded frame type (key or delta). 239 // Return the encoded frame type (key or delta).
244 FrameType EncodedFrameType() override; 240 FrameType EncodedFrameType() override;
245 241
246 // Return the number of dropped frames. 242 // Return the number of dropped frames.
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 // Statistics. 289 // Statistics.
294 double bit_rate_factor_; // Multiply frame length with this to get bit rate. 290 double bit_rate_factor_; // Multiply frame length with this to get bit rate.
295 int64_t encode_start_ns_; 291 int64_t encode_start_ns_;
296 int64_t decode_start_ns_; 292 int64_t decode_start_ns_;
297 }; 293 };
298 294
299 } // namespace test 295 } // namespace test
300 } // namespace webrtc 296 } // namespace webrtc
301 297
302 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_VIDEOPROCESSOR_H_ 298 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_VIDEOPROCESSOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698