[vlc-devel] [PATCH] arm_neon: Set fully opaque alpha in the output RGBA data

Martin Storsjö martin at martin.st
Mon Sep 26 11:35:19 CEST 2011


This fixes displaying the RGBA data on HTC Sensation.
---
The code this patches is only in the vlc android port repo as a
patch, and thus not intended for the main repo.

This only fixes the reference (commented out) C implementation,
the arm neon version needs to be updated accordingly, too.

 modules/arm_neon/i420_rgb.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/arm_neon/i420_rgb.c b/modules/arm_neon/i420_rgb.c
index 3524022..96b3fa8 100644
--- a/modules/arm_neon/i420_rgb.c
+++ b/modules/arm_neon/i420_rgb.c
@@ -84,7 +84,7 @@ static void I420_RGBA_C (filter_t *filter, picture_t *src, picture_t *dst)
             if (unlikely(G > 255)) G = 255;
             if (unlikely(B > 255)) B = 255;
 
-            ((uint32_t*)out)[d + i] = R | (G<<8) | (B<<16);
+            ((uint32_t*)out)[d + i] = R | (G<<8) | (B<<16) | (0xff<<24);
         }
     }
 }
-- 
1.7.2.5




More information about the vlc-devel mailing list