Commit 01fcf2a3 authored by Edward Wang's avatar Edward Wang Committed by Jean-Baptiste Kempf

opencv_wrapper: Fix RGB video passing to OpenCV

Otherwise video comes into OpenCV as virtual garbage.
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent b33f08a0
...@@ -342,7 +342,7 @@ static void VlcPictureToIplImage( filter_t* p_filter, picture_t* p_in ) ...@@ -342,7 +342,7 @@ static void VlcPictureToIplImage( filter_t* p_filter, picture_t* p_in )
//rgb2 gives 3 separate planes, this gives 1 interleaved plane //rgb2 gives 3 separate planes, this gives 1 interleaved plane
//rv24 gives is about 20% faster but gives r&b the wrong way round //rv24 gives is about 20% faster but gives r&b the wrong way round
//and I can't think of an easy way to fix this //and I can't think of an easy way to fix this
fmt_out.i_chroma = VLC_CODEC_RGB32; fmt_out.i_chroma = VLC_CODEC_RGB24;
} }
else if (p_sys->i_internal_chroma == GREY) else if (p_sys->i_internal_chroma == GREY)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment