mirror of
https://github.com/opencv/opencv.git
synced 2025-08-06 14:36:36 +08:00
imgcodecs: fix 4 reading channel bmp images
This commit is contained in:
parent
a9effeeb35
commit
089aac61f3
@ -481,8 +481,10 @@ decode_rle8_bad: ;
|
||||
|
||||
if( !color )
|
||||
icvCvt_BGRA2Gray_8u_C4C1R( src, 0, data, 0, cvSize(m_width,1) );
|
||||
else
|
||||
icvCvt_BGRA2BGR_8u_C4C3R( src, 0, data, 0, cvSize(m_width,1) );
|
||||
else if( img.channels() == 3 )
|
||||
icvCvt_BGRA2BGR_8u_C4C3R(src, 0, data, 0, cvSize(m_width, 1));
|
||||
else if( img.channels() == 4 )
|
||||
memcpy(data, src, m_width * 4);
|
||||
}
|
||||
result = true;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user