encoder, ui/handler: Massive Refactor

This refactor is primarily to make the entire interface more unified and capable of more than before.
This commit is contained in:
Michael Fabian 'Xaymar' Dirks
2019-11-15 17:29:24 +01:00
parent 8f20a45ee8
commit be7b2737b4
9 changed files with 188 additions and 139 deletions
+3 -2
View File
@@ -32,6 +32,8 @@ extern "C" {
}
namespace obsffmpeg {
class encoder;
namespace nvenc {
enum class preset : int64_t {
DEFAULT,
@@ -75,8 +77,7 @@ namespace obsffmpeg {
extern std::map<b_ref_mode, std::string> b_ref_mode_to_opt;
void override_lag_in_frames(size_t& lag, obs_data_t* settings, const AVCodec* codec,
AVCodecContext* context);
void override_update(obsffmpeg::encoder* instance, obs_data_t* settings);
void get_defaults(obs_data_t* settings, const AVCodec* codec, AVCodecContext* context);