Usage:
writer.set(cv::CAP_PROP_IMAGES_BASE + cv::IMWRITE_JPEG_QUALITY, 80);
//! @} gPhoto2
+
+/** @name Images backend
+ @{
+*/
+
+/** @brief Images backend properties
+
+*/
+enum { CAP_PROP_IMAGES_BASE = 18000,
+ CAP_PROP_IMAGES_LAST = 19000 // excluding
+ };
+
+//! @} Images
+
//! @} videoio_flags_others
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
}