[vlc-commits] opencv_wrapper: Fix RGB video passing to OpenCV

Edward Wang git at videolan.org
Sun Aug 12 00:57:21 CEST 2012


vlc | branch: master | Edward Wang <edward.c.wang at compdigitec.com> | Fri Aug 10 13:25:49 2012 -0400| [01fcf2a339b256b5daeb33490d339c70e747f0f7] | committer: Jean-Baptiste Kempf

opencv_wrapper: Fix RGB video passing to OpenCV

Otherwise video comes into OpenCV as virtual garbage.

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=01fcf2a339b256b5daeb33490d339c70e747f0f7
---

 modules/video_filter/opencv_wrapper.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/video_filter/opencv_wrapper.c b/modules/video_filter/opencv_wrapper.c
index dc992da..767a7c3 100644
--- a/modules/video_filter/opencv_wrapper.c
+++ b/modules/video_filter/opencv_wrapper.c
@@ -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
             //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)
         {



More information about the vlc-commits mailing list