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:
@ -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_
|
||||
|
Reference in New Issue
Block a user