[vlc-devel] [PATCH 7/7] opencv_wrapper: Fix RGB video passing to OpenCV

Edward Wang edward.c.wang at compdigitec.com
Fri Aug 10 04:06:48 CEST 2012


Otherwise video comes into OpenCV as virtual garbage.
---
 modules/video_filter/opencv_wrapper.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/video_filter/opencv_wrapper.c b/modules/video_filter/opencv_wrapper.c
index e0a8251..0ed2222 100644
--- a/modules/video_filter/opencv_wrapper.c
+++ b/modules/video_filter/opencv_wrapper.c
@@ -349,7 +349,7 @@ static void VlcPictureToIplImage( filter_t* p_filter, picture_t* p_in )
             //rgb2 gives 3 separate planes, this gives 1 interleaved plane
             //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
-            fmt_out.i_chroma = VLC_CODEC_RGB32;
+            fmt_out.i_chroma = VLC_CODEC_RGB24;
         }
         else if (p_sys->i_internal_chroma == GREY)
         {
-- 
1.7.5.4




More information about the vlc-devel mailing list