Encode video with nvenc

This commit is contained in:
loki
2020-04-08 02:15:08 +03:00
parent 65f44cc885
commit c21038af88
3 changed files with 93 additions and 51 deletions
+4
View File
@@ -6,6 +6,7 @@
#define SUNSHINE_COMMON_H
#include <string>
#include <mutex>
#include "sunshine/utility.h"
struct sockaddr;
@@ -66,6 +67,9 @@ public:
struct hwdevice_ctx_t {
void *hwdevice {};
// Could be nullptr, depends on the encoder
std::shared_ptr<std::recursive_mutex> lock;
virtual const platf::img_t*const convert(platf::img_t &img) {
return nullptr;
}