Runtime selection of hardware GPU encoder

temporary implementation
This commit is contained in:
Bruno Herbelin
2021-12-03 01:05:32 +01:00
parent 4c4ad144b9
commit 14bab1e299
2 changed files with 50 additions and 19 deletions

View File

@@ -2,6 +2,8 @@
#define RECORDER_H
#include <vector>
#include <string>
#include <gst/pbutils/pbutils.h>
#include <gst/app/gstappsrc.h>
@@ -45,9 +47,9 @@ public:
DEFAULT
} Profile;
static const char* profile_name[DEFAULT];
static const char* hardware_encoder[DEFAULT];
static const std::vector<std::string> profile_description;
static const std::vector<std::string> hardware_profile_description;
static std::vector<std::string> hardware_encoder;
static std::vector<std::string> hardware_profile_description;
static const char* buffering_preset_name[6];
static const guint64 buffering_preset_value[6];