1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 07:43:03 +04:00

Improved error handling in image codecs.

This commit is contained in:
Alexander Smorkalov
2024-07-31 18:05:33 +03:00
parent 2a333a6c86
commit 93745245a3
8 changed files with 99 additions and 87 deletions
-10
View File
@@ -1100,16 +1100,6 @@ bool TiffEncoder::isFormatSupported( int depth ) const
return depth == CV_8U || depth == CV_8S || depth == CV_16U || depth == CV_16S || depth == CV_32S || depth == CV_32F || depth == CV_64F;
}
void TiffEncoder::writeTag( WLByteStream& strm, TiffTag tag,
TiffFieldType fieldType,
int count, int value )
{
strm.putWord( tag );
strm.putWord( fieldType );
strm.putDWord( count );
strm.putDWord( value );
}
class TiffEncoderBufHelper
{
public: