Skip to content
Snippets Groups Projects
Commit cb66a171 authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Remove use of encoder stream

parent ef738baf
No related branches found
No related tags found
1 merge request!338Resolves #375 full colour resolution
Pipeline #29304 passed
...@@ -196,7 +196,7 @@ bool NvidiaEncoder::encode(const cv::cuda::GpuMat &in, ftl::codecs::Packet &pkt) ...@@ -196,7 +196,7 @@ bool NvidiaEncoder::encode(const cv::cuda::GpuMat &in, ftl::codecs::Packet &pkt)
pkt.data.resize(ftl::codecs::kVideoBufferSize); pkt.data.resize(ftl::codecs::kVideoBufferSize);
// Make sure conversions complete... // Make sure conversions complete...
//stream_.waitForCompletion(); stream_.waitForCompletion();
// Insert periodic i-frames here. // Insert periodic i-frames here.
if (((++frame_count_) % 128) == 0) { if (((++frame_count_) % 128) == 0) {
...@@ -300,7 +300,6 @@ bool NvidiaEncoder::_createEncoder(const cv::cuda::GpuMat &in, const ftl::codecs ...@@ -300,7 +300,6 @@ bool NvidiaEncoder::_createEncoder(const cv::cuda::GpuMat &in, const ftl::codecs
} }
nvenc_->CreateEncoder(&initializeParams); nvenc_->CreateEncoder(&initializeParams);
nvenc_->SetIOCudaStreams(cv::cuda::StreamAccessor::getStream(stream_), 0);
} }
catch (NVENCException& e) catch (NVENCException& e)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment