fix: build errors

This commit is contained in:
jfmcarreira committed 2024-10-03 01:31:38 +01:00
1 parent 303d15cbc2
commit 944bc0116b
12 files changed
+60 -85

No files matched your search

+3 -3
View File
@@ -451,7 +451,7 @@ std::uint64_t CalypFrame::getChromaLength() const
return getWidth( 1 ) * getHeight( 1 );
}
unsigned int CalypFrame::getBitsPel() const
auto CalypFrame::getBitsPel() const -> unsigned int
{
return m_d->m_uiBitsPel;
}
@@ -1232,7 +1232,7 @@ bool CalypFrame::toMat( cv::Mat& cvMat, bool convertToGray, bool scale, unsigned
{
return bRet;
}
auto numBytes = getBitsPel() > kNumBitsInByte ? 2 : 1;
unsigned numBytes = getBitsPel() > kNumBitsInByte ? 2 : 1;
auto numChannels = getNumberChannels();
double scaleFactor = 1UL << ( numBytes * kNumBitsInByte - getBitsPel() );
if( scale == 0 ) scaleFactor = 1;
@@ -1303,7 +1303,7 @@ auto CalypFrame::fromMat( cv::Mat& cvMat, int channel ) -> bool
{
bool bRet = false;
#ifdef USE_OPENCV
auto numBytes = getBitsPel() > kNumBitsInByte ? 2 : 1;
unsigned numBytes = getBitsPel() > kNumBitsInByte ? 2 : 1;
auto numChannels = getNumberChannels();
auto cvPrecision = getBitsPel() > kNumBitsInByte ? CV_16U : CV_8U;
if( !m_d->m_bInit )