Merge pull request #9806 from mshabunin:fix-static-7

pull/9810/head
Vadim Pisarevsky 7 years ago
commit 593329401a
  1. 2
      3rdparty/libjpeg/CMakeLists.txt
  2. 7
      modules/dnn/src/ocl4dnn/include/ocl4dnn.hpp
  3. 6
      modules/videoio/src/cap_dc1394_v2.cpp

@ -38,7 +38,7 @@ if(CMAKE_COMPILER_IS_GNUCXX)
set_source_files_properties(jcdctmgr.c PROPERTIES COMPILE_FLAGS "-O1") set_source_files_properties(jcdctmgr.c PROPERTIES COMPILE_FLAGS "-O1")
endif() endif()
ocv_warnings_disable(CMAKE_C_FLAGS -Wcast-align -Wshadow -Wunused) ocv_warnings_disable(CMAKE_C_FLAGS -Wcast-align -Wshadow -Wunused -Wshift-negative-value)
ocv_warnings_disable(CMAKE_C_FLAGS -Wunused-parameter) # clang ocv_warnings_disable(CMAKE_C_FLAGS -Wunused-parameter) # clang
ocv_warnings_disable(CMAKE_C_FLAGS /wd4013 /wd4244 /wd4267) # vs2005 ocv_warnings_disable(CMAKE_C_FLAGS /wd4013 /wd4244 /wd4267) # vs2005

@ -402,7 +402,10 @@ typedef enum {
struct OCL4DNNLRNConfig struct OCL4DNNLRNConfig
{ {
OCL4DNNLRNConfig() : OCL4DNNLRNConfig() :
phase_test(true) lrn_type(LRNParameter_NormRegion_ACROSS_CHANNELS),
phase_test(true),
local_size(0), alpha(0.f), beta(0.f), k(0.f), norm_by_size(false),
batch_size(0), channels(0), height(0), width(0)
{} {}
MatShape in_shape; MatShape in_shape;
LRNParameter_NormRegion_WITHIN_CHANNEL_t lrn_type; LRNParameter_NormRegion_WITHIN_CHANNEL_t lrn_type;
@ -442,7 +445,7 @@ class OCL4DNNLRN
struct OCL4DNNSoftmaxConfig struct OCL4DNNSoftmaxConfig
{ {
OCL4DNNSoftmaxConfig() OCL4DNNSoftmaxConfig() : axis(0), channels(0)
{} {}
MatShape in_shape; MatShape in_shape;
int axis; int axis;

@ -603,9 +603,9 @@ bool CvCaptureCAM_DC1394_v2_CPP::grabFrame()
cvInitImageHeader(&fhdr, cvSize(fc->size[0], fc->size[1]), 8, nch); cvInitImageHeader(&fhdr, cvSize(fc->size[0], fc->size[1]), 8, nch);
cvSetData(&fhdr, fc->image, fc->size[0]*nch); cvSetData(&fhdr, fc->image, fc->size[0]*nch);
// Swap R&B channels: // Swap R&B channels:
if (nch==3) if (nch==3)
cvConvertImage(&fhdr,&fhdr,CV_CVTIMG_SWAP_RB); cvConvertImage(&fhdr,&fhdr,CV_CVTIMG_SWAP_RB);
if( rectify && cameraId == VIDERE && nimages == 2 ) if( rectify && cameraId == VIDERE && nimages == 2 )
{ {

Loading…
Cancel
Save