You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/cudacodec/include/opencv2/cudacodec.hpp
+16-2Lines changed: 16 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -305,16 +305,27 @@ enum DeinterlaceMode
305
305
Adaptive = 2
306
306
};
307
307
308
+
/** @brief Output format for a decoded frame when the resolution of the source is reduced by the encoder. In all cases the size of the output frame remains the same.
309
+
* * @param Default Use the approach adopted by cv::VideoCapture, i.e. maintain the same frame size by placing the smaller output in the top left corner.
310
+
* @param Qos Maintain the same frame resolution by upscaling to the original resolution to seamlessly process streams produced by servers that are adhering to Quality of Service constraints.
311
+
* */
312
+
enum ResolutionChangeMode
313
+
{
314
+
Default = 0,
315
+
Qos = 1
316
+
};
317
+
308
318
/** @brief Struct providing information about video file format. :
@@ -533,16 +545,18 @@ but it cannot go below the number determined by NVDEC.
533
545
@param srcRoi Region of interest (x/width should be multiples of 4 and y/height multiples of 2) decoded from video source, defaults to the full frame.
534
546
@param targetRoi Region of interest (x/width should be multiples of 4 and y/height multiples of 2) within the output frame to copy and resize the decoded frame to,
535
547
defaults to the full frame.
548
+
@param resChangeMode Output mode to use when the resolution of the source is changed by the encoder, ignored when targetRoi is specified.
0 commit comments