libobs: Add encoder caps (with deprecated flag)

Allows the ability to mark an encoder as deprecated (such as the media
foundation h264 encoders)
This commit is contained in:
jp9000
2016-04-11 05:02:39 -07:00
parent bc231eda75
commit e38a5c61d3
3 changed files with 12 additions and 0 deletions

View File

@@ -29,6 +29,8 @@
extern "C" {
#endif
#define OBS_ENCODER_CAP_DEPRECATED (1<<0)
/** Specifies the encoder type */
enum obs_encoder_type {
OBS_ENCODER_AUDIO, /**< The encoder provides an audio codec */
@@ -227,6 +229,8 @@ struct obs_encoder_info {
void *type_data;
void (*free_type_data)(void *type_data);
uint32_t caps;
};
EXPORT void obs_register_encoder_s(const struct obs_encoder_info *info,