ui/nvenc_hevc_handler: Add name override

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