Configure settings nvenc

This commit is contained in:
loki
2020-04-14 00:15:24 +03:00
parent 679f74e53c
commit c7a72553c4
9 changed files with 454 additions and 211 deletions

View File

@@ -888,7 +888,6 @@ public:
img->texture.reset(tex_p);
img->height = height;
img->width = width;
img->data = (std::uint8_t*)tex_p;
img->pixel_pitch = 4;
return 0;
@@ -916,24 +915,6 @@ public:
return hwdevice;
}
int init() {
if(display_base_t::init()) {
return -1;
}
multithread_t::pointer multithread_p {};
auto status = device->QueryInterface(__uuidof(multithread_t::element_type), (void**)&multithread_p);
multithread_t multithread { multithread_p };
if(FAILED(status)) {
BOOST_LOG(error) << "Couldn't query Multithread interface [0x"sv << util::hex(status).to_string_view() << ']';
return -1;
}
multithread->SetMultithreadProtected(true);
return 0;
}
};
const char *format_str[] = {