mirror of
https://github.com/opencv/opencv.git
synced 2026-07-31 00:03:03 +04:00
Merge remote-tracking branch 'upstream/3.4' into merge-3.4
This commit is contained in:
@@ -186,13 +186,13 @@ PFMEncoder::~PFMEncoder()
|
||||
bool PFMEncoder::isFormatSupported(int depth) const
|
||||
{
|
||||
// any depth will be converted into 32-bit float.
|
||||
(void) depth;
|
||||
CV_UNUSED(depth);
|
||||
return true;
|
||||
}
|
||||
|
||||
bool PFMEncoder::write(const Mat& img, const std::vector<int>& params)
|
||||
{
|
||||
(void) params;
|
||||
CV_UNUSED(params);
|
||||
|
||||
WLByteStream strm;
|
||||
if (m_buf) {
|
||||
|
||||
@@ -207,9 +207,9 @@ bool WebPDecoder::readData(Mat &img)
|
||||
{
|
||||
cvtColor(read_img, img, COLOR_BGRA2BGR);
|
||||
}
|
||||
else if (img.type() == CV_8UC3 && m_type == CV_8UC4)
|
||||
else if (img.type() == CV_8UC4 && m_type == CV_8UC3)
|
||||
{
|
||||
cvtColor(read_img, img, COLOR_BGRA2BGR);
|
||||
cvtColor(read_img, img, COLOR_BGR2BGRA);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user