1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 07:43:03 +04:00

videoio: preserve conflict with common properties

Usage:
    writer.set(cv::CAP_PROP_IMAGES_BASE + cv::IMWRITE_JPEG_QUALITY, 80);
This commit is contained in:
Alexander Alekhin
2016-12-01 15:17:33 +03:00
parent c560ff23ad
commit e547bbbc3f
2 changed files with 21 additions and 3 deletions
+7 -3
View File
@@ -393,9 +393,13 @@ bool CvVideoWriter_Images::open( const char* _filename )
bool CvVideoWriter_Images::setProperty( int id, double value )
{
params.push_back( id );
params.push_back( static_cast<int>( value ) );
return true;
if (id >= cv::CAP_PROP_IMAGES_BASE && id < cv::CAP_PROP_IMAGES_LAST)
{
params.push_back( id - cv::CAP_PROP_IMAGES_BASE );
params.push_back( static_cast<int>( value ) );
return true;
}
return false; // not supported
}