[vlc-devel] [PATCH 2/3] Add VLC_CODEC_RGB32 supports

KO Myung-Hun komh78 at gmail.com
Thu Feb 2 06:03:08 CET 2012


---
 modules/video_output/kva.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/modules/video_output/kva.c b/modules/video_output/kva.c
index 1f6be5f..3aaaf05 100644
--- a/modules/video_output/kva.c
+++ b/modules/video_output/kva.c
@@ -573,6 +573,12 @@ static int OpenDisplay( vout_display_t *vd, video_format_t *fmt )
                     i_chroma_shift = 2;
                     break;
 
+                case VLC_CODEC_RGB32:
+                    b_hw_accel = sys->kvac.ulInputFormatFlags & KVAF_BGR32;
+                    i_kva_fourcc = FOURCC_BGR4;
+                    i_chroma_shift = 0;
+                    break;
+
                 case VLC_CODEC_RGB24:
                     b_hw_accel = sys->kvac.ulInputFormatFlags & KVAF_BGR24;
                     i_kva_fourcc = FOURCC_BGR3;
-- 
1.7.3.2




More information about the vlc-devel mailing list