Config struct for VideoEncoder.

Used for config parameters in common between multiple codecs as well as
the encoder-specific pointer. In particular this contains content mode
(realtime video vs. screenshare).

BUG=1788
R=mflodman@webrtc.org, stefan@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/16319004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@7239 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
pbos@webrtc.org
2014-09-19 12:30:25 +00:00
parent 02686115cc
commit bbe0a8517d
19 changed files with 246 additions and 189 deletions

View File

@ -108,6 +108,20 @@ struct VideoStream {
std::vector<int> temporal_layers;
};
struct VideoEncoderConfig {
enum ContentType {
kRealtimeVideo,
kScreenshare,
};
VideoEncoderConfig()
: content_type(kRealtimeVideo), encoder_specific_settings(NULL) {}
std::vector<VideoStream> streams;
ContentType content_type;
void* encoder_specific_settings;
};
} // namespace webrtc
#endif // WEBRTC_CONFIG_H_