mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 15:23:05 +04:00
core: fix printf warnings by using c++11 format
This commit is contained in:
committed by
Maksim Shabunin
parent
4d23a5d92d
commit
d1c842cf29
@@ -1123,7 +1123,7 @@ static bool ocl_calcHist1(InputArray _src, OutputArray _hist, int ddepth = CV_32
|
||||
int kercn = dev.isAMD() && use16 ? 16 : std::min(4, ocl::predictOptimalVectorWidth(_src));
|
||||
|
||||
ocl::Kernel k1("calculate_histogram", ocl::imgproc::histogram_oclsrc,
|
||||
format("-D BINS=%d -D HISTS_COUNT=%d -D WGS=%d -D kercn=%d -D T=%s%s",
|
||||
format("-D BINS=%d -D HISTS_COUNT=%d -D WGS=%zu -D kercn=%d -D T=%s%s",
|
||||
BINS, compunits, wgs, kercn,
|
||||
kercn == 4 ? "int" : ocl::typeToStr(CV_8UC(kercn)),
|
||||
_src.isContinuous() ? " -D HAVE_SRC_CONT" : ""));
|
||||
@@ -3253,7 +3253,7 @@ static bool ocl_equalizeHist(InputArray _src, OutputArray _dst)
|
||||
int kercn = dev.isAMD() && use16 ? 16 : std::min(4, ocl::predictOptimalVectorWidth(_src));
|
||||
|
||||
ocl::Kernel k1("calculate_histogram", ocl::imgproc::histogram_oclsrc,
|
||||
format("-D BINS=%d -D HISTS_COUNT=%d -D WGS=%d -D kercn=%d -D T=%s%s",
|
||||
format("-D BINS=%d -D HISTS_COUNT=%d -D WGS=%zu -D kercn=%d -D T=%s%s",
|
||||
BINS, compunits, wgs, kercn,
|
||||
kercn == 4 ? "int" : ocl::typeToStr(CV_8UC(kercn)),
|
||||
_src.isContinuous() ? " -D HAVE_SRC_CONT" : ""));
|
||||
|
||||
Reference in New Issue
Block a user