Prepare for hardware encoders

This commit is contained in:
loki
2020-03-25 10:51:32 +01:00
parent a9423574fe
commit 55705af922
6 changed files with 352 additions and 170 deletions

View File

@@ -339,8 +339,8 @@ public:
return capture_e::ok;
}
std::unique_ptr<::platf::img_t> alloc_img() override {
auto img = std::make_unique<img_t>();
std::shared_ptr<::platf::img_t> alloc_img() override {
auto img = std::make_shared<img_t>();
img->data = nullptr;
img->height = 0;