[vlc-devel] [PATCH] arm_neon: Set fully opaque alpha in the output RGBA data
XilasZ
xilasz at gmail.com
Mon Sep 26 12:00:20 CEST 2011
Good catch, i was lazy on the alpha value :p
i'll update that when i have a moment, thanks !!
On Mon, Sep 26, 2011 at 11:35 AM, Martin Storsjö <martin at martin.st> wrote:
> 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
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> http://mailman.videolan.org/listinfo/vlc-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20110926/160da1e8/attachment.html>
More information about the vlc-devel
mailing list