Commit 6b8938fa authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Add macro to ease definition of video configuration.

parent 3d815a05
......@@ -145,6 +145,9 @@ struct _MSVideoConfiguration {
void *extra; /**< A pointer to some extra parameters that may be used by the encoder when using this video configuration. */
};
#define MS_VIDEO_CONF(required_bitrate, bitrate_limit, resolution, fps, mincpu) \
{ required_bitrate, bitrate_limit, { MS_VIDEO_SIZE_ ## resolution ## _W, MS_VIDEO_SIZE_ ## resolution ## _H }, fps, mincpu, NULL }
/**
* Definition of the MSVideoConfiguration type.
* @see struct _MSVideoConfiguration
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment