diff options
Diffstat (limited to 'media')
-rw-r--r-- | media/video/encoded_video_source.h | 3 | ||||
-rw-r--r-- | media/video/video_encode_types.h | 14 |
2 files changed, 11 insertions, 6 deletions
diff --git a/media/video/encoded_video_source.h b/media/video/encoded_video_source.h index e2ce201..f0c9a13 100644 --- a/media/video/encoded_video_source.h +++ b/media/video/encoded_video_source.h @@ -68,6 +68,9 @@ class EncodedVideoSource { // signaling successful change. virtual void TrySetBitstreamConfig( const RuntimeVideoEncodingParameters& params) = 0; + + // RequestKeyFrame requests a key frame. + virtual void RequestKeyFrame() = 0; }; } // namespace media diff --git a/media/video/video_encode_types.h b/media/video/video_encode_types.h index 0372019..15effab 100644 --- a/media/video/video_encode_types.h +++ b/media/video/video_encode_types.h @@ -15,22 +15,24 @@ namespace media { // Data to represent limitations for a particular encoder config. +// The |max_bitrate| value is in bits per second. struct VideoEncodingConfig { VideoCodec codec_type; std::string codec_name; gfx::Size max_resolution; - int max_frames_per_second; - int max_bitrate; + uint32 max_frames_per_second; + uint32 max_bitrate; }; typedef std::vector<VideoEncodingConfig> VideoEncodingCapabilities; // Encoding parameters that can be configured during streaming without removing -// the bitstream first. +// the bitstream first. The |target_bitrate| and |max_bitrate| values are in +// bits per second. struct RuntimeVideoEncodingParameters { - int target_bitrate; - int max_bitrate; - int frames_per_second; + uint32 target_bitrate; + uint32 max_bitrate; + uint32 frames_per_second; }; // Generic video encoding parameters to be configured during initialization |