[Spice-devel] [PATCH spice-common] Define canvas_fix_alignment when is used

Christophe Fergeau cfergeau at redhat.com
Tue Apr 19 11:08:52 UTC 2016


Acked-by: Christophe Fergeau <cfergeau at redhat.com>

On Tue, Apr 19, 2016 at 12:35:22PM +0200, Pavel Grunt wrote:
> It is used in canvas_get_lz4() which is guarded by USE_LZ4, and
> in canvas_get_lz() which is guarded by SW_CANVAS_CACHE.
> ---
>  common/canvas_base.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/common/canvas_base.c b/common/canvas_base.c
> index 45dd75f..114c1b9 100644
> --- a/common/canvas_base.c
> +++ b/common/canvas_base.c
> @@ -515,6 +515,7 @@ static pixman_image_t *canvas_get_jpeg(CanvasBase *canvas, SpiceImage *image)
>      return surface;
>  }
>  
> +#if defined(USE_LZ4) || defined(SW_CANVAS_CACHE)
>  static void canvas_fix_alignment(uint8_t *bits,
>                                   int stride_encoded, int stride_pixman,
>                                   int height)
> @@ -531,6 +532,7 @@ static void canvas_fix_alignment(uint8_t *bits,
>          }
>      }
>  }
> +#endif
>  
>  #ifdef USE_LZ4
>  static pixman_image_t *canvas_get_lz4(CanvasBase *canvas, SpiceImage *image)
> -- 
> 2.8.1
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/spice-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20160419/5cfe1cb9/attachment-0001.sig>


More information about the Spice-devel mailing list