ui/nvenc_h264_handler: Add name override

This commit is contained in:
Michael Fabian 'Xaymar' Dirks
2019-07-25 03:06:42 +02:00
parent fbf5ffb921
commit 8d0b12dfe3
2 changed files with 6 additions and 0 deletions
+4
View File
@@ -79,6 +79,10 @@ INITIALIZER(nvenc_h264_handler_init)
}); });
}; };
void obsffmpeg::ui::nvenc_h264_handler::override_visible_name(AVCodec* codec, std::string& name) {
name = "H.264/AVC Encoder (NVidia NVENC)";
}
void obsffmpeg::ui::nvenc_h264_handler::get_defaults(obs_data_t* settings, AVCodec* codec, AVCodecContext* context) void obsffmpeg::ui::nvenc_h264_handler::get_defaults(obs_data_t* settings, AVCodec* codec, AVCodecContext* context)
{ {
nvenc::get_defaults(settings, codec, context); nvenc::get_defaults(settings, codec, context);
+2
View File
@@ -34,6 +34,8 @@ namespace obsffmpeg {
namespace ui { namespace ui {
class nvenc_h264_handler : public handler { class nvenc_h264_handler : public handler {
public: public:
virtual void override_visible_name(AVCodec* codec, std::string& name) override;
virtual void get_defaults(obs_data_t* settings, AVCodec* codec, virtual void get_defaults(obs_data_t* settings, AVCodec* codec,
AVCodecContext* context) override; AVCodecContext* context) override;