Re: [PATCH spice-gtk v2] channel-display-mjpeg: Fix encoding for big endian machines

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



ping

> 
> Make sure components are ordered in the same way in memory.
> This was tested with a virtual MIPS machine.
> 
> Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx>
> ---
>  src/channel-display-mjpeg.c | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> Changes since v1:
> - fix typo in commit message title
> 
> diff --git a/src/channel-display-mjpeg.c b/src/channel-display-mjpeg.c
> index 83cd391b..94e56205 100644
> --- a/src/channel-display-mjpeg.c
> +++ b/src/channel-display-mjpeg.c
> @@ -108,7 +108,11 @@ static gboolean mjpeg_decoder_decode_frame(gpointer
> video_decoder)
>  
>  #ifdef JCS_EXTENSIONS
>      // requires jpeg-turbo
> +#  if SPICE_ENDIAN == SPICE_ENDIAN_LITTLE
>      decoder->mjpeg_cinfo.out_color_space = JCS_EXT_BGRX;
> +#  else
> +    decoder->mjpeg_cinfo.out_color_space = JCS_EXT_XRGB;
> +#  endif
>  #else
>  #warning "You should consider building with libjpeg-turbo"
>      decoder->mjpeg_cinfo.out_color_space = JCS_RGB;
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux Virtualization]     [Linux Virtualization]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]