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

Resize warnings

parent dff36975
No related branches found
No related tags found
1 merge request!152Implements #168 keeping decoding on GPU
Pipeline #16031 passed
......@@ -309,11 +309,13 @@ void Source::notify(int64_t ts, cv::cuda::GpuMat &c1, cv::cuda::GpuMat &c2) {
// Should channel 1 be scaled?
if (c1.cols < max_width || c1.rows < max_height) {
LOG(WARNING) << "Resizing on GPU";
cv::cuda::resize(c1, c1, cv::Size(max_width, max_height));
}
// Should channel 2 be scaled?
if (!c2.empty() && (c2.cols < max_width || c2.rows < max_height)) {
LOG(WARNING) << "Resizing on GPU";
if (c2.type() == CV_32F) {
cv::cuda::resize(c2, c2, cv::Size(max_width, max_height), 0.0, 0.0, cv::INTER_NEAREST);
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment