@ -88,11 +88,6 @@ Thanks to:
*/
/////////////////////////////////////////////////////////
# if defined _MSC_VER && _MSC_VER >= 100
//'sprintf': name was marked as #pragma deprecated
# pragma warning(disable: 4995)
# endif
# if defined(__clang__) // clang or MSVC clang
# pragma clang diagnostic ignored "-Wnon-virtual-dtor"
# elif defined(__GNUC__) // MinGW
@ -2304,29 +2299,29 @@ void videoInput::processPixels(unsigned char * src, unsigned char * dst, int wid
void videoInput : : getMediaSubtypeAsString ( GUID type , char * typeAsString ) {
char tmpStr [ 8 ] ;
if ( type = = MEDIASUBTYPE_RGB24 ) sprintf ( tmpStr , " RGB24 " ) ;
else if ( type = = MEDIASUBTYPE_RGB32 ) sprintf ( tmpStr , " RGB32 " ) ;
else if ( type = = MEDIASUBTYPE_RGB555 ) sprintf ( tmpStr , " RGB555 " ) ;
else if ( type = = MEDIASUBTYPE_RGB565 ) sprintf ( tmpStr , " RGB565 " ) ;
else if ( type = = MEDIASUBTYPE_YUY2 ) sprintf ( tmpStr , " YUY2 " ) ;
else if ( type = = MEDIASUBTYPE_YVYU ) sprintf ( tmpStr , " YVYU " ) ;
else if ( type = = MEDIASUBTYPE_YUYV ) sprintf ( tmpStr , " YUYV " ) ;
else if ( type = = MEDIASUBTYPE_IYUV ) sprintf ( tmpStr , " IYUV " ) ;
else if ( type = = MEDIASUBTYPE_UYVY ) sprintf ( tmpStr , " UYVY " ) ;
else if ( type = = MEDIASUBTYPE_YV12 ) sprintf ( tmpStr , " YV12 " ) ;
else if ( type = = MEDIASUBTYPE_YVU9 ) sprintf ( tmpStr , " YVU9 " ) ;
else if ( type = = MEDIASUBTYPE_Y411 ) sprintf ( tmpStr , " Y411 " ) ;
else if ( type = = MEDIASUBTYPE_Y41P ) sprintf ( tmpStr , " Y41P " ) ;
else if ( type = = MEDIASUBTYPE_Y211 ) sprintf ( tmpStr , " Y211 " ) ;
else if ( type = = MEDIASUBTYPE_AYUV ) sprintf ( tmpStr , " AYUV " ) ;
else if ( type = = MEDIASUBTYPE_MJPG ) sprintf ( tmpStr , " MJPG " ) ;
else if ( type = = MEDIASUBTYPE_Y800 ) sprintf ( tmpStr , " Y800 " ) ;
else if ( type = = MEDIASUBTYPE_Y8 ) sprintf ( tmpStr , " Y8 " ) ;
else if ( type = = MEDIASUBTYPE_GREY ) sprintf ( tmpStr , " GREY " ) ;
else if ( type = = MEDIASUBTYPE_I420 ) sprintf ( tmpStr , " I420 " ) ;
else if ( type = = MEDIASUBTYPE_BY8 ) sprintf ( tmpStr , " BY8 " ) ;
else if ( type = = MEDIASUBTYPE_Y16 ) sprintf ( tmpStr , " Y16 " ) ;
else sprintf ( tmpStr , " OTHER " ) ;
if ( type = = MEDIASUBTYPE_RGB24 ) sn printf ( tmpStr , sizeof ( tmpStr ) , " RGB24 " ) ;
else if ( type = = MEDIASUBTYPE_RGB32 ) sn printf ( tmpStr , sizeof ( tmpStr ) , " RGB32 " ) ;
else if ( type = = MEDIASUBTYPE_RGB555 ) sn printf ( tmpStr , sizeof ( tmpStr ) , " RGB555 " ) ;
else if ( type = = MEDIASUBTYPE_RGB565 ) sn printf ( tmpStr , sizeof ( tmpStr ) , " RGB565 " ) ;
else if ( type = = MEDIASUBTYPE_YUY2 ) sn printf ( tmpStr , sizeof ( tmpStr ) , " YUY2 " ) ;
else if ( type = = MEDIASUBTYPE_YVYU ) sn printf ( tmpStr , sizeof ( tmpStr ) , " YVYU " ) ;
else if ( type = = MEDIASUBTYPE_YUYV ) sn printf ( tmpStr , sizeof ( tmpStr ) , " YUYV " ) ;
else if ( type = = MEDIASUBTYPE_IYUV ) sn printf ( tmpStr , sizeof ( tmpStr ) , " IYUV " ) ;
else if ( type = = MEDIASUBTYPE_UYVY ) sn printf ( tmpStr , sizeof ( tmpStr ) , " UYVY " ) ;
else if ( type = = MEDIASUBTYPE_YV12 ) sn printf ( tmpStr , sizeof ( tmpStr ) , " YV12 " ) ;
else if ( type = = MEDIASUBTYPE_YVU9 ) sn printf ( tmpStr , sizeof ( tmpStr ) , " YVU9 " ) ;
else if ( type = = MEDIASUBTYPE_Y411 ) sn printf ( tmpStr , sizeof ( tmpStr ) , " Y411 " ) ;
else if ( type = = MEDIASUBTYPE_Y41P ) sn printf ( tmpStr , sizeof ( tmpStr ) , " Y41P " ) ;
else if ( type = = MEDIASUBTYPE_Y211 ) sn printf ( tmpStr , sizeof ( tmpStr ) , " Y211 " ) ;
else if ( type = = MEDIASUBTYPE_AYUV ) sn printf ( tmpStr , sizeof ( tmpStr ) , " AYUV " ) ;
else if ( type = = MEDIASUBTYPE_MJPG ) sn printf ( tmpStr , sizeof ( tmpStr ) , " MJPG " ) ;
else if ( type = = MEDIASUBTYPE_Y800 ) sn printf ( tmpStr , sizeof ( tmpStr ) , " Y800 " ) ;
else if ( type = = MEDIASUBTYPE_Y8 ) sn printf ( tmpStr , sizeof ( tmpStr ) , " Y8 " ) ;
else if ( type = = MEDIASUBTYPE_GREY ) sn printf ( tmpStr , sizeof ( tmpStr ) , " GREY " ) ;
else if ( type = = MEDIASUBTYPE_I420 ) sn printf ( tmpStr , sizeof ( tmpStr ) , " I420 " ) ;
else if ( type = = MEDIASUBTYPE_BY8 ) sn printf ( tmpStr , sizeof ( tmpStr ) , " BY8 " ) ;
else if ( type = = MEDIASUBTYPE_Y16 ) sn printf ( tmpStr , sizeof ( tmpStr ) , " Y16 " ) ;
else sn printf ( tmpStr , sizeof ( tmpStr ) , " OTHER " ) ;
memcpy ( typeAsString , tmpStr , sizeof ( char ) * 8 ) ;
}
@ -2352,15 +2347,15 @@ void videoInput::getVideoPropertyAsString(int prop, char * propertyAsString){
char tmpStr [ 16 ] ;
if ( prop = = VideoProcAmp_Brightness ) sprintf ( tmpStr , " Brightness " ) ;
else if ( prop = = VideoProcAmp_Contrast ) sprintf ( tmpStr , " Contrast " ) ;
else if ( prop = = VideoProcAmp_Saturation ) sprintf ( tmpStr , " Saturation " ) ;
else if ( prop = = VideoProcAmp_Hue ) sprintf ( tmpStr , " Hue " ) ;
else if ( prop = = VideoProcAmp_Gain ) sprintf ( tmpStr , " Gain " ) ;
else if ( prop = = VideoProcAmp_Gamma ) sprintf ( tmpStr , " Gamma " ) ;
else if ( prop = = VideoProcAmp_ColorEnable ) sprintf ( tmpStr , " ColorEnable " ) ;
else if ( prop = = VideoProcAmp_Sharpness ) sprintf ( tmpStr , " Sharpness " ) ;
else sprintf ( tmpStr , " %u " , prop ) ;
if ( prop = = VideoProcAmp_Brightness ) sn printf ( tmpStr , sizeof ( tmpStr ) , " Brightness " ) ;
else if ( prop = = VideoProcAmp_Contrast ) sn printf ( tmpStr , sizeof ( tmpStr ) , " Contrast " ) ;
else if ( prop = = VideoProcAmp_Saturation ) sn printf ( tmpStr , sizeof ( tmpStr ) , " Saturation " ) ;
else if ( prop = = VideoProcAmp_Hue ) sn printf ( tmpStr , sizeof ( tmpStr ) , " Hue " ) ;
else if ( prop = = VideoProcAmp_Gain ) sn printf ( tmpStr , sizeof ( tmpStr ) , " Gain " ) ;
else if ( prop = = VideoProcAmp_Gamma ) sn printf ( tmpStr , sizeof ( tmpStr ) , " Gamma " ) ;
else if ( prop = = VideoProcAmp_ColorEnable ) sn printf ( tmpStr , sizeof ( tmpStr ) , " ColorEnable " ) ;
else if ( prop = = VideoProcAmp_Sharpness ) sn printf ( tmpStr , sizeof ( tmpStr ) , " Sharpness " ) ;
else sn printf ( tmpStr , sizeof ( tmpStr ) , " %u " , prop ) ;
memcpy ( propertyAsString , tmpStr , sizeof ( char ) * 16 ) ;
}
@ -2455,14 +2450,14 @@ void videoInput::getCameraPropertyAsString(int prop, char * propertyAsString){
char tmpStr [ 16 ] ;
if ( prop = = CameraControl_Pan ) sprintf ( tmpStr , " Pan " ) ;
else if ( prop = = CameraControl_Tilt ) sprintf ( tmpStr , " Tilt " ) ;
else if ( prop = = CameraControl_Roll ) sprintf ( tmpStr , " Roll " ) ;
else if ( prop = = CameraControl_Zoom ) sprintf ( tmpStr , " Zoom " ) ;
else if ( prop = = CameraControl_Exposure ) sprintf ( tmpStr , " Exposure " ) ;
else if ( prop = = CameraControl_Iris ) sprintf ( tmpStr , " Iris " ) ;
else if ( prop = = CameraControl_Focus ) sprintf ( tmpStr , " Focus " ) ;
else sprintf ( tmpStr , " %u " , prop ) ;
if ( prop = = CameraControl_Pan ) sn printf ( tmpStr , sizeof ( tmpStr ) , " Pan " ) ;
else if ( prop = = CameraControl_Tilt ) sn printf ( tmpStr , sizeof ( tmpStr ) , " Tilt " ) ;
else if ( prop = = CameraControl_Roll ) sn printf ( tmpStr , sizeof ( tmpStr ) , " Roll " ) ;
else if ( prop = = CameraControl_Zoom ) sn printf ( tmpStr , sizeof ( tmpStr ) , " Zoom " ) ;
else if ( prop = = CameraControl_Exposure ) sn printf ( tmpStr , sizeof ( tmpStr ) , " Exposure " ) ;
else if ( prop = = CameraControl_Iris ) sn printf ( tmpStr , sizeof ( tmpStr ) , " Iris " ) ;
else if ( prop = = CameraControl_Focus ) sn printf ( tmpStr , sizeof ( tmpStr ) , " Focus " ) ;
else sn printf ( tmpStr , sizeof ( tmpStr ) , " %u " , prop ) ;
memcpy ( propertyAsString , tmpStr , sizeof ( char ) * 16 ) ;
}