Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
a91953b1
Commit
a91953b1
authored
Mar 15, 2018
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
imgcodecs: apply CV_OVERRIDE/CV_FINAL
parent
5d36ee2f
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
127 additions
and
129 deletions
+127
-129
grfmt_bmp.hpp
modules/imgcodecs/src/grfmt_bmp.hpp
+9
-9
grfmt_exr.hpp
modules/imgcodecs/src/grfmt_exr.hpp
+11
-11
grfmt_gdal.hpp
modules/imgcodecs/src/grfmt_gdal.hpp
+6
-6
grfmt_gdcm.hpp
modules/imgcodecs/src/grfmt_gdcm.hpp
+5
-5
grfmt_hdr.hpp
modules/imgcodecs/src/grfmt_hdr.hpp
+13
-14
grfmt_jpeg.hpp
modules/imgcodecs/src/grfmt_jpeg.hpp
+7
-7
grfmt_jpeg2000.hpp
modules/imgcodecs/src/grfmt_jpeg2000.hpp
+8
-8
grfmt_pam.hpp
modules/imgcodecs/src/grfmt_pam.hpp
+13
-14
grfmt_png.hpp
modules/imgcodecs/src/grfmt_png.hpp
+8
-8
grfmt_pxm.hpp
modules/imgcodecs/src/grfmt_pxm.hpp
+12
-12
grfmt_sunras.hpp
modules/imgcodecs/src/grfmt_sunras.hpp
+9
-9
grfmt_tiff.hpp
modules/imgcodecs/src/grfmt_tiff.hpp
+14
-14
grfmt_webp.hpp
modules/imgcodecs/src/grfmt_webp.hpp
+11
-11
loadsave.cpp
modules/imgcodecs/src/loadsave.cpp
+1
-1
No files found.
modules/imgcodecs/src/grfmt_bmp.hpp
View file @
a91953b1
...
@@ -58,18 +58,18 @@ enum BmpCompression
...
@@ -58,18 +58,18 @@ enum BmpCompression
// Windows Bitmap reader
// Windows Bitmap reader
class
BmpDecoder
:
public
BaseImageDecoder
class
BmpDecoder
CV_FINAL
:
public
BaseImageDecoder
{
{
public
:
public
:
BmpDecoder
();
BmpDecoder
();
~
BmpDecoder
();
~
BmpDecoder
()
CV_OVERRIDE
;
bool
readData
(
Mat
&
img
);
bool
readData
(
Mat
&
img
)
CV_OVERRIDE
;
bool
readHeader
();
bool
readHeader
()
CV_OVERRIDE
;
void
close
();
void
close
();
ImageDecoder
newDecoder
()
const
;
ImageDecoder
newDecoder
()
const
CV_OVERRIDE
;
protected
:
protected
:
...
@@ -83,15 +83,15 @@ protected:
...
@@ -83,15 +83,15 @@ protected:
// ... writer
// ... writer
class
BmpEncoder
:
public
BaseImageEncoder
class
BmpEncoder
CV_FINAL
:
public
BaseImageEncoder
{
{
public
:
public
:
BmpEncoder
();
BmpEncoder
();
~
BmpEncoder
();
~
BmpEncoder
()
CV_OVERRIDE
;
bool
write
(
const
Mat
&
img
,
const
std
::
vector
<
int
>&
params
);
bool
write
(
const
Mat
&
img
,
const
std
::
vector
<
int
>&
params
)
CV_OVERRIDE
;
ImageEncoder
newEncoder
()
const
;
ImageEncoder
newEncoder
()
const
CV_OVERRIDE
;
};
};
}
}
...
...
modules/imgcodecs/src/grfmt_exr.hpp
View file @
a91953b1
...
@@ -63,19 +63,19 @@ using namespace Imath;
...
@@ -63,19 +63,19 @@ using namespace Imath;
/* libpng version only */
/* libpng version only */
class
ExrDecoder
:
public
BaseImageDecoder
class
ExrDecoder
CV_FINAL
:
public
BaseImageDecoder
{
{
public
:
public
:
ExrDecoder
();
ExrDecoder
();
~
ExrDecoder
();
~
ExrDecoder
()
CV_OVERRIDE
;
int
type
()
const
;
int
type
()
const
CV_OVERRIDE
;
bool
readData
(
Mat
&
img
);
bool
readData
(
Mat
&
img
)
CV_OVERRIDE
;
bool
readHeader
();
bool
readHeader
()
CV_OVERRIDE
;
void
close
();
void
close
();
ImageDecoder
newDecoder
()
const
;
ImageDecoder
newDecoder
()
const
CV_OVERRIDE
;
protected
:
protected
:
void
UpSample
(
uchar
*
data
,
int
xstep
,
int
ystep
,
int
xsample
,
int
ysample
);
void
UpSample
(
uchar
*
data
,
int
xstep
,
int
ystep
,
int
xsample
,
int
ysample
);
...
@@ -103,15 +103,15 @@ private:
...
@@ -103,15 +103,15 @@ private:
};
};
class
ExrEncoder
:
public
BaseImageEncoder
class
ExrEncoder
CV_FINAL
:
public
BaseImageEncoder
{
{
public
:
public
:
ExrEncoder
();
ExrEncoder
();
~
ExrEncoder
();
~
ExrEncoder
()
CV_OVERRIDE
;
bool
isFormatSupported
(
int
depth
)
const
;
bool
isFormatSupported
(
int
depth
)
const
CV_OVERRIDE
;
bool
write
(
const
Mat
&
img
,
const
std
::
vector
<
int
>&
params
);
bool
write
(
const
Mat
&
img
,
const
std
::
vector
<
int
>&
params
)
CV_OVERRIDE
;
ImageEncoder
newEncoder
()
const
;
ImageEncoder
newEncoder
()
const
CV_OVERRIDE
;
};
};
}
}
...
...
modules/imgcodecs/src/grfmt_gdal.hpp
View file @
a91953b1
...
@@ -103,7 +103,7 @@ void write_ctable_pixel( const double& pixelValue,
...
@@ -103,7 +103,7 @@ void write_ctable_pixel( const double& pixelValue,
/**
/**
* Loader for GDAL
* Loader for GDAL
*/
*/
class
GdalDecoder
:
public
BaseImageDecoder
{
class
GdalDecoder
CV_FINAL
:
public
BaseImageDecoder
{
public
:
public
:
...
@@ -115,17 +115,17 @@ class GdalDecoder : public BaseImageDecoder{
...
@@ -115,17 +115,17 @@ class GdalDecoder : public BaseImageDecoder{
/**
/**
* Destructor
* Destructor
*/
*/
~
GdalDecoder
();
~
GdalDecoder
()
CV_OVERRIDE
;
/**
/**
* Read image data
* Read image data
*/
*/
bool
readData
(
Mat
&
img
);
bool
readData
(
Mat
&
img
)
CV_OVERRIDE
;
/**
/**
* Read the image header
* Read the image header
*/
*/
bool
readHeader
();
bool
readHeader
()
CV_OVERRIDE
;
/**
/**
* Close the module
* Close the module
...
@@ -135,7 +135,7 @@ class GdalDecoder : public BaseImageDecoder{
...
@@ -135,7 +135,7 @@ class GdalDecoder : public BaseImageDecoder{
/**
/**
* Create a new decoder
* Create a new decoder
*/
*/
ImageDecoder
newDecoder
()
const
;
ImageDecoder
newDecoder
()
const
CV_OVERRIDE
;
/**
/**
* Test the file signature
* Test the file signature
...
@@ -144,7 +144,7 @@ class GdalDecoder : public BaseImageDecoder{
...
@@ -144,7 +144,7 @@ class GdalDecoder : public BaseImageDecoder{
* The reason is that GDAL tends to overlap with other image formats and it is probably
* The reason is that GDAL tends to overlap with other image formats and it is probably
* safer to use other formats first.
* safer to use other formats first.
*/
*/
virtual
bool
checkSignature
(
const
String
&
signature
)
const
;
virtual
bool
checkSignature
(
const
String
&
signature
)
const
CV_OVERRIDE
;
protected
:
protected
:
...
...
modules/imgcodecs/src/grfmt_gdcm.hpp
View file @
a91953b1
...
@@ -53,14 +53,14 @@ namespace cv
...
@@ -53,14 +53,14 @@ namespace cv
{
{
// DICOM image reader using GDCM
// DICOM image reader using GDCM
class
DICOMDecoder
:
public
BaseImageDecoder
class
DICOMDecoder
CV_FINAL
:
public
BaseImageDecoder
{
{
public
:
public
:
DICOMDecoder
();
DICOMDecoder
();
bool
readData
(
Mat
&
img
);
bool
readData
(
Mat
&
img
)
CV_OVERRIDE
;
bool
readHeader
();
bool
readHeader
()
CV_OVERRIDE
;
ImageDecoder
newDecoder
()
const
;
ImageDecoder
newDecoder
()
const
CV_OVERRIDE
;
virtual
bool
checkSignature
(
const
String
&
signature
)
const
;
virtual
bool
checkSignature
(
const
String
&
signature
)
const
CV_OVERRIDE
;
};
};
}
}
...
...
modules/imgcodecs/src/grfmt_hdr.hpp
View file @
a91953b1
...
@@ -55,34 +55,34 @@ enum HdrCompression
...
@@ -55,34 +55,34 @@ enum HdrCompression
};
};
// Radiance rgbe (.hdr) reader
// Radiance rgbe (.hdr) reader
class
HdrDecoder
:
public
BaseImageDecoder
class
HdrDecoder
CV_FINAL
:
public
BaseImageDecoder
{
{
public
:
public
:
HdrDecoder
();
HdrDecoder
();
~
HdrDecoder
();
~
HdrDecoder
()
CV_OVERRIDE
;
bool
readHeader
();
bool
readHeader
()
CV_OVERRIDE
;
bool
readData
(
Mat
&
img
);
bool
readData
(
Mat
&
img
)
CV_OVERRIDE
;
bool
checkSignature
(
const
String
&
signature
)
const
;
bool
checkSignature
(
const
String
&
signature
)
const
CV_OVERRIDE
;
ImageDecoder
newDecoder
()
const
;
ImageDecoder
newDecoder
()
const
CV_OVERRIDE
;
size_t
signatureLength
()
const
;
size_t
signatureLength
()
const
CV_OVERRIDE
;
protected
:
protected
:
String
m_signature_alt
;
String
m_signature_alt
;
FILE
*
file
;
FILE
*
file
;
};
};
// ... writer
// ... writer
class
HdrEncoder
:
public
BaseImageEncoder
class
HdrEncoder
CV_FINAL
:
public
BaseImageEncoder
{
{
public
:
public
:
HdrEncoder
();
HdrEncoder
();
~
HdrEncoder
();
~
HdrEncoder
()
CV_OVERRIDE
;
bool
write
(
const
Mat
&
img
,
const
std
::
vector
<
int
>&
params
);
bool
write
(
const
Mat
&
img
,
const
std
::
vector
<
int
>&
params
)
CV_OVERRIDE
;
ImageEncoder
newEncoder
()
const
;
ImageEncoder
newEncoder
()
const
CV_OVERRIDE
;
bool
isFormatSupported
(
int
depth
)
const
;
bool
isFormatSupported
(
int
depth
)
const
CV_OVERRIDE
;
protected
:
protected
:
};
};
}
}
#endif
/*_GRFMT_HDR_H_*/
#endif
/*_GRFMT_HDR_H_*/
\ No newline at end of file
modules/imgcodecs/src/grfmt_jpeg.hpp
View file @
a91953b1
...
@@ -53,18 +53,18 @@
...
@@ -53,18 +53,18 @@
namespace
cv
namespace
cv
{
{
class
JpegDecoder
:
public
BaseImageDecoder
class
JpegDecoder
CV_FINAL
:
public
BaseImageDecoder
{
{
public
:
public
:
JpegDecoder
();
JpegDecoder
();
virtual
~
JpegDecoder
();
virtual
~
JpegDecoder
();
bool
readData
(
Mat
&
img
);
bool
readData
(
Mat
&
img
)
CV_OVERRIDE
;
bool
readHeader
();
bool
readHeader
()
CV_OVERRIDE
;
void
close
();
void
close
();
ImageDecoder
newDecoder
()
const
;
ImageDecoder
newDecoder
()
const
CV_OVERRIDE
;
protected
:
protected
:
...
@@ -77,14 +77,14 @@ private:
...
@@ -77,14 +77,14 @@ private:
};
};
class
JpegEncoder
:
public
BaseImageEncoder
class
JpegEncoder
CV_FINAL
:
public
BaseImageEncoder
{
{
public
:
public
:
JpegEncoder
();
JpegEncoder
();
virtual
~
JpegEncoder
();
virtual
~
JpegEncoder
();
bool
write
(
const
Mat
&
img
,
const
std
::
vector
<
int
>&
params
);
bool
write
(
const
Mat
&
img
,
const
std
::
vector
<
int
>&
params
)
CV_OVERRIDE
;
ImageEncoder
newEncoder
()
const
;
ImageEncoder
newEncoder
()
const
CV_OVERRIDE
;
};
};
}
}
...
...
modules/imgcodecs/src/grfmt_jpeg2000.hpp
View file @
a91953b1
...
@@ -50,17 +50,17 @@
...
@@ -50,17 +50,17 @@
namespace
cv
namespace
cv
{
{
class
Jpeg2KDecoder
:
public
BaseImageDecoder
class
Jpeg2KDecoder
CV_FINAL
:
public
BaseImageDecoder
{
{
public
:
public
:
Jpeg2KDecoder
();
Jpeg2KDecoder
();
virtual
~
Jpeg2KDecoder
();
virtual
~
Jpeg2KDecoder
();
bool
readData
(
Mat
&
img
);
bool
readData
(
Mat
&
img
)
CV_OVERRIDE
;
bool
readHeader
();
bool
readHeader
()
CV_OVERRIDE
;
void
close
();
void
close
();
ImageDecoder
newDecoder
()
const
;
ImageDecoder
newDecoder
()
const
CV_OVERRIDE
;
protected
:
protected
:
bool
readComponent8u
(
uchar
*
data
,
void
*
buffer
,
int
step
,
int
cmpt
,
bool
readComponent8u
(
uchar
*
data
,
void
*
buffer
,
int
step
,
int
cmpt
,
...
@@ -73,15 +73,15 @@ protected:
...
@@ -73,15 +73,15 @@ protected:
};
};
class
Jpeg2KEncoder
:
public
BaseImageEncoder
class
Jpeg2KEncoder
CV_FINAL
:
public
BaseImageEncoder
{
{
public
:
public
:
Jpeg2KEncoder
();
Jpeg2KEncoder
();
virtual
~
Jpeg2KEncoder
();
virtual
~
Jpeg2KEncoder
();
bool
isFormatSupported
(
int
depth
)
const
;
bool
isFormatSupported
(
int
depth
)
const
CV_OVERRIDE
;
bool
write
(
const
Mat
&
img
,
const
std
::
vector
<
int
>&
params
);
bool
write
(
const
Mat
&
img
,
const
std
::
vector
<
int
>&
params
)
CV_OVERRIDE
;
ImageEncoder
newEncoder
()
const
;
ImageEncoder
newEncoder
()
const
CV_OVERRIDE
;
protected
:
protected
:
bool
writeComponent8u
(
void
*
img
,
const
Mat
&
_img
);
bool
writeComponent8u
(
void
*
img
,
const
Mat
&
_img
);
...
...
modules/imgcodecs/src/grfmt_pam.hpp
View file @
a91953b1
...
@@ -59,19 +59,19 @@
...
@@ -59,19 +59,19 @@
namespace
cv
namespace
cv
{
{
class
PAMDecoder
:
public
BaseImageDecoder
class
PAMDecoder
CV_FINAL
:
public
BaseImageDecoder
{
{
public
:
public
:
PAMDecoder
();
PAMDecoder
();
virtual
~
PAMDecoder
();
virtual
~
PAMDecoder
()
CV_OVERRIDE
;
bool
readData
(
Mat
&
img
);
bool
readData
(
Mat
&
img
)
CV_OVERRIDE
;
bool
readHeader
();
bool
readHeader
()
CV_OVERRIDE
;
size_t
signatureLength
()
const
;
size_t
signatureLength
()
const
CV_OVERRIDE
;
bool
checkSignature
(
const
String
&
signature
)
const
;
bool
checkSignature
(
const
String
&
signature
)
const
CV_OVERRIDE
;
ImageDecoder
newDecoder
()
const
;
ImageDecoder
newDecoder
()
const
CV_OVERRIDE
;
protected
:
protected
:
...
@@ -82,18 +82,18 @@ protected:
...
@@ -82,18 +82,18 @@ protected:
};
};
class
PAMEncoder
:
public
BaseImageEncoder
class
PAMEncoder
CV_FINAL
:
public
BaseImageEncoder
{
{
public
:
public
:
PAMEncoder
();
PAMEncoder
();
virtual
~
PAMEncoder
();
virtual
~
PAMEncoder
()
CV_OVERRIDE
;
bool
isFormatSupported
(
int
depth
)
const
;
bool
isFormatSupported
(
int
depth
)
const
CV_OVERRIDE
;
bool
write
(
const
Mat
&
img
,
const
std
::
vector
<
int
>&
params
);
bool
write
(
const
Mat
&
img
,
const
std
::
vector
<
int
>&
params
)
CV_OVERRIDE
;
ImageEncoder
newEncoder
()
const
;
ImageEncoder
newEncoder
()
const
CV_OVERRIDE
;
};
};
}
}
#endif
/* _OPENCV_PAM_HPP_ */
#endif
/* _OPENCV_PAM_HPP_ */
\ No newline at end of file
modules/imgcodecs/src/grfmt_png.hpp
View file @
a91953b1
...
@@ -51,18 +51,18 @@
...
@@ -51,18 +51,18 @@
namespace
cv
namespace
cv
{
{
class
PngDecoder
:
public
BaseImageDecoder
class
PngDecoder
CV_FINAL
:
public
BaseImageDecoder
{
{
public
:
public
:
PngDecoder
();
PngDecoder
();
virtual
~
PngDecoder
();
virtual
~
PngDecoder
();
bool
readData
(
Mat
&
img
);
bool
readData
(
Mat
&
img
)
CV_OVERRIDE
;
bool
readHeader
();
bool
readHeader
()
CV_OVERRIDE
;
void
close
();
void
close
();
ImageDecoder
newDecoder
()
const
;
ImageDecoder
newDecoder
()
const
CV_OVERRIDE
;
protected
:
protected
:
...
@@ -78,16 +78,16 @@ protected:
...
@@ -78,16 +78,16 @@ protected:
};
};
class
PngEncoder
:
public
BaseImageEncoder
class
PngEncoder
CV_FINAL
:
public
BaseImageEncoder
{
{
public
:
public
:
PngEncoder
();
PngEncoder
();
virtual
~
PngEncoder
();
virtual
~
PngEncoder
();
bool
isFormatSupported
(
int
depth
)
const
;
bool
isFormatSupported
(
int
depth
)
const
CV_OVERRIDE
;
bool
write
(
const
Mat
&
img
,
const
std
::
vector
<
int
>&
params
);
bool
write
(
const
Mat
&
img
,
const
std
::
vector
<
int
>&
params
)
CV_OVERRIDE
;
ImageEncoder
newEncoder
()
const
;
ImageEncoder
newEncoder
()
const
CV_OVERRIDE
;
protected
:
protected
:
static
void
writeDataToBuf
(
void
*
png_ptr
,
uchar
*
src
,
size_t
size
);
static
void
writeDataToBuf
(
void
*
png_ptr
,
uchar
*
src
,
size_t
size
);
...
...
modules/imgcodecs/src/grfmt_pxm.hpp
View file @
a91953b1
...
@@ -57,20 +57,20 @@ enum PxMMode
...
@@ -57,20 +57,20 @@ enum PxMMode
PXM_TYPE_PPM
=
3
// color format
PXM_TYPE_PPM
=
3
// color format
};
};
class
PxMDecoder
:
public
BaseImageDecoder
class
PxMDecoder
CV_FINAL
:
public
BaseImageDecoder
{
{
public
:
public
:
PxMDecoder
();
PxMDecoder
();
virtual
~
PxMDecoder
();
virtual
~
PxMDecoder
()
CV_OVERRIDE
;
bool
readData
(
Mat
&
img
);
bool
readData
(
Mat
&
img
)
CV_OVERRIDE
;
bool
readHeader
();
bool
readHeader
()
CV_OVERRIDE
;
void
close
();
void
close
();
size_t
signatureLength
()
const
;
size_t
signatureLength
()
const
CV_OVERRIDE
;
bool
checkSignature
(
const
String
&
signature
)
const
;
bool
checkSignature
(
const
String
&
signature
)
const
CV_OVERRIDE
;
ImageDecoder
newDecoder
()
const
;
ImageDecoder
newDecoder
()
const
CV_OVERRIDE
;
protected
:
protected
:
...
@@ -82,16 +82,16 @@ protected:
...
@@ -82,16 +82,16 @@ protected:
int
m_maxval
;
int
m_maxval
;
};
};
class
PxMEncoder
:
public
BaseImageEncoder
class
PxMEncoder
CV_FINAL
:
public
BaseImageEncoder
{
{
public
:
public
:
PxMEncoder
(
PxMMode
mode
);
PxMEncoder
(
PxMMode
mode
);
virtual
~
PxMEncoder
();
virtual
~
PxMEncoder
()
CV_OVERRIDE
;
bool
isFormatSupported
(
int
depth
)
const
;
bool
isFormatSupported
(
int
depth
)
const
CV_OVERRIDE
;
bool
write
(
const
Mat
&
img
,
const
std
::
vector
<
int
>&
params
);
bool
write
(
const
Mat
&
img
,
const
std
::
vector
<
int
>&
params
)
CV_OVERRIDE
;
ImageEncoder
newEncoder
()
const
ImageEncoder
newEncoder
()
const
CV_OVERRIDE
{
{
return
makePtr
<
PxMEncoder
>
(
mode_
);
return
makePtr
<
PxMEncoder
>
(
mode_
);
}
}
...
...
modules/imgcodecs/src/grfmt_sunras.hpp
View file @
a91953b1
...
@@ -64,18 +64,18 @@ enum SunRasMapType
...
@@ -64,18 +64,18 @@ enum SunRasMapType
// Sun Raster Reader
// Sun Raster Reader
class
SunRasterDecoder
:
public
BaseImageDecoder
class
SunRasterDecoder
CV_FINAL
:
public
BaseImageDecoder
{
{
public
:
public
:
SunRasterDecoder
();
SunRasterDecoder
();
virtual
~
SunRasterDecoder
();
virtual
~
SunRasterDecoder
()
CV_OVERRIDE
;
bool
readData
(
Mat
&
img
);
bool
readData
(
Mat
&
img
)
CV_OVERRIDE
;
bool
readHeader
();
bool
readHeader
()
CV_OVERRIDE
;
void
close
();
void
close
();
ImageDecoder
newDecoder
()
const
;
ImageDecoder
newDecoder
()
const
CV_OVERRIDE
;
protected
:
protected
:
...
@@ -89,15 +89,15 @@ protected:
...
@@ -89,15 +89,15 @@ protected:
};
};
class
SunRasterEncoder
:
public
BaseImageEncoder
class
SunRasterEncoder
CV_FINAL
:
public
BaseImageEncoder
{
{
public
:
public
:
SunRasterEncoder
();
SunRasterEncoder
();
virtual
~
SunRasterEncoder
();
virtual
~
SunRasterEncoder
()
CV_OVERRIDE
;
bool
write
(
const
Mat
&
img
,
const
std
::
vector
<
int
>&
params
);
bool
write
(
const
Mat
&
img
,
const
std
::
vector
<
int
>&
params
)
CV_OVERRIDE
;
ImageEncoder
newEncoder
()
const
;
ImageEncoder
newEncoder
()
const
CV_OVERRIDE
;
};
};
}
}
...
...
modules/imgcodecs/src/grfmt_tiff.hpp
View file @
a91953b1
...
@@ -90,20 +90,20 @@ enum TiffFieldType
...
@@ -90,20 +90,20 @@ enum TiffFieldType
// libtiff based TIFF codec
// libtiff based TIFF codec
class
TiffDecoder
:
public
BaseImageDecoder
class
TiffDecoder
CV_FINAL
:
public
BaseImageDecoder
{
{
public
:
public
:
TiffDecoder
();
TiffDecoder
();
virtual
~
TiffDecoder
();
virtual
~
TiffDecoder
()
CV_OVERRIDE
;
bool
readHeader
();
bool
readHeader
()
CV_OVERRIDE
;
bool
readData
(
Mat
&
img
);
bool
readData
(
Mat
&
img
)
CV_OVERRIDE
;
void
close
();
void
close
();
bool
nextPage
();
bool
nextPage
()
CV_OVERRIDE
;
size_t
signatureLength
()
const
;
size_t
signatureLength
()
const
CV_OVERRIDE
;
bool
checkSignature
(
const
String
&
signature
)
const
;
bool
checkSignature
(
const
String
&
signature
)
const
CV_OVERRIDE
;
ImageDecoder
newDecoder
()
const
;
ImageDecoder
newDecoder
()
const
CV_OVERRIDE
;
protected
:
protected
:
void
*
m_tif
;
void
*
m_tif
;
...
@@ -119,19 +119,19 @@ private:
...
@@ -119,19 +119,19 @@ private:
};
};
// ... and writer
// ... and writer
class
TiffEncoder
:
public
BaseImageEncoder
class
TiffEncoder
CV_FINAL
:
public
BaseImageEncoder
{
{
public
:
public
:
TiffEncoder
();
TiffEncoder
();
virtual
~
TiffEncoder
();
virtual
~
TiffEncoder
()
CV_OVERRIDE
;
bool
isFormatSupported
(
int
depth
)
const
;
bool
isFormatSupported
(
int
depth
)
const
CV_OVERRIDE
;
bool
write
(
const
Mat
&
img
,
const
std
::
vector
<
int
>&
params
);
bool
write
(
const
Mat
&
img
,
const
std
::
vector
<
int
>&
params
)
CV_OVERRIDE
;
bool
writemulti
(
const
std
::
vector
<
Mat
>&
img_vec
,
const
std
::
vector
<
int
>&
params
);
bool
writemulti
(
const
std
::
vector
<
Mat
>&
img_vec
,
const
std
::
vector
<
int
>&
params
)
CV_OVERRIDE
;
ImageEncoder
newEncoder
()
const
;
ImageEncoder
newEncoder
()
const
CV_OVERRIDE
;
protected
:
protected
:
void
writeTag
(
WLByteStream
&
strm
,
TiffTag
tag
,
void
writeTag
(
WLByteStream
&
strm
,
TiffTag
tag
,
...
...
modules/imgcodecs/src/grfmt_webp.hpp
View file @
a91953b1
...
@@ -52,36 +52,36 @@
...
@@ -52,36 +52,36 @@
namespace
cv
namespace
cv
{
{
class
WebPDecoder
:
public
BaseImageDecoder
class
WebPDecoder
CV_FINAL
:
public
BaseImageDecoder
{
{
public
:
public
:
WebPDecoder
();
WebPDecoder
();
~
WebPDecoder
();
~
WebPDecoder
()
CV_OVERRIDE
;
bool
readData
(
Mat
&
img
);
bool
readData
(
Mat
&
img
)
CV_OVERRIDE
;
bool
readHeader
();
bool
readHeader
()
CV_OVERRIDE
;
void
close
();
void
close
();
size_t
signatureLength
()
const
;
size_t
signatureLength
()
const
CV_OVERRIDE
;
bool
checkSignature
(
const
String
&
signature
)
const
;
bool
checkSignature
(
const
String
&
signature
)
const
CV_OVERRIDE
;
ImageDecoder
newDecoder
()
const
;
ImageDecoder
newDecoder
()
const
CV_OVERRIDE
;
protected
:
protected
:
Mat
data
;
Mat
data
;
int
channels
;
int
channels
;
};
};
class
WebPEncoder
:
public
BaseImageEncoder
class
WebPEncoder
CV_FINAL
:
public
BaseImageEncoder
{
{
public
:
public
:
WebPEncoder
();
WebPEncoder
();
~
WebPEncoder
();
~
WebPEncoder
()
CV_OVERRIDE
;
bool
write
(
const
Mat
&
img
,
const
std
::
vector
<
int
>&
params
);
bool
write
(
const
Mat
&
img
,
const
std
::
vector
<
int
>&
params
)
CV_OVERRIDE
;
ImageEncoder
newEncoder
()
const
;
ImageEncoder
newEncoder
()
const
CV_OVERRIDE
;
};
};
}
}
...
...
modules/imgcodecs/src/loadsave.cpp
View file @
a91953b1
...
@@ -89,7 +89,7 @@ public:
...
@@ -89,7 +89,7 @@ public:
protected
:
protected
:
virtual
pos_type
seekoff
(
off_type
offset
,
virtual
pos_type
seekoff
(
off_type
offset
,
std
::
ios_base
::
seekdir
dir
,
std
::
ios_base
::
seekdir
dir
,
std
::
ios_base
::
openmode
)
std
::
ios_base
::
openmode
)
CV_OVERRIDE
{
{
char
*
whence
=
eback
();
char
*
whence
=
eback
();
if
(
dir
==
std
::
ios_base
::
cur
)
if
(
dir
==
std
::
ios_base
::
cur
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment