Handle non-integer frame rates in video codec tests.
Encoder API accepts non-integer frame rate since https://webrtc-review.googlesource.com/c/src/+/131949. Bug: webrtc:10812 Change-Id: I5fc9c5dfac4b182b84a735218a2946a95cc2b93c Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/143483 Reviewed-by: Seth Hampson <shampson@webrtc.org> Reviewed-by: Rasmus Brandt <brandtr@webrtc.org> Commit-Queue: Sergey Silkin <ssilkin@webrtc.org> Cr-Commit-Position: refs/heads/master@{#28548}
This commit is contained in:
committed by
Commit Bot
parent
3ae59d33a3
commit
44cec0b5bd
@ -25,7 +25,7 @@ namespace test {
|
||||
// Rates for the encoder and the frame number when to apply profile.
|
||||
struct RateProfile {
|
||||
size_t target_kbps;
|
||||
size_t input_fps;
|
||||
double input_fps;
|
||||
size_t frame_num;
|
||||
};
|
||||
|
||||
|
||||
@ -43,6 +43,7 @@ std::string VideoCodecTestStats::FrameStatistics::ToString() const {
|
||||
ss << " decode_time_us " << decode_time_us;
|
||||
ss << " rtp_timestamp " << rtp_timestamp;
|
||||
ss << " target_bitrate_kbps " << target_bitrate_kbps;
|
||||
ss << " target_framerate_fps " << target_framerate_fps;
|
||||
return ss.Release();
|
||||
}
|
||||
|
||||
|
||||
@ -42,6 +42,7 @@ class VideoCodecTestStats {
|
||||
bool encoding_successful = false;
|
||||
size_t encode_time_us = 0;
|
||||
size_t target_bitrate_kbps = 0;
|
||||
double target_framerate_fps = 0.0;
|
||||
size_t length_bytes = 0;
|
||||
VideoFrameType frame_type = VideoFrameType::kVideoFrameDelta;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user