[Spice-devel] [vdagent-win PATCH v6 2/5] Initial rewrite of image conversion code

Christophe Fergeau cfergeau at redhat.com
Tue Jul 18 15:28:06 UTC 2017


On Mon, Jul 17, 2017 at 11:01:22AM +0100, Frediano Ziglio wrote:
> Remove CxImage linking.
> Support Windows BMP format.

Too bad there is no small/maintained library which would do that for us
:-/ From a quick glance, looks ok.


> 
> +static inline size_t compute_dib_stride(unsigned width, unsigned bit_count)

Can you use full type names, unsigned int?

Christophe

> +{
> +    return ((width * bit_count + 31u) & ~31u) / 8u;
> +}
> +
>  /**
>   * Returns image to put in the clipboard.
>   *
> -- 
> 2.13.3
> 
> _______________________________________________
> 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: 801 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20170718/7a8069e6/attachment.sig>


More information about the Spice-devel mailing list