On Tue, Jul 18, 2017 at 01:29:24PM -0400, Frediano Ziglio wrote:
> > On Mon, Jul 17, 2017 at 09:54:04AM +0100, Frediano Ziglio wrote:
> > > +}
> > > +break;
> > > +case PNG_COLOR_TYPE_PALETTE:
> > > +// should return 1, 2, 4 and 8, BMP does not support 2
> >
> > Is the
>
> > On 18 Jul 2017, at 17:54, Christophe Fergeau wrote:
> >
> > On Mon, Jul 17, 2017 at 09:54:04AM +0100, Frediano Ziglio wrote:
> >> Signed-off-by: Frediano Ziglio
> >> ---
> >> Makefile.am | 6 +-
> >> configure.ac | 3 +
> >> vdagent/image.cpp| 8 +-
> >> vdagent/im
> On 18 Jul 2017, at 17:54, Christophe Fergeau wrote:
>
> On Mon, Jul 17, 2017 at 09:54:04AM +0100, Frediano Ziglio wrote:
>> Signed-off-by: Frediano Ziglio
>> ---
>> Makefile.am | 6 +-
>> configure.ac | 3 +
>> vdagent/image.cpp| 8 +-
>> vdagent/imagepng.cpp | 244
>>
>
> On Mon, Jul 17, 2017 at 09:54:04AM +0100, Frediano Ziglio wrote:
> > Signed-off-by: Frediano Ziglio
> > ---
> > Makefile.am | 6 +-
> > configure.ac | 3 +
> > vdagent/image.cpp| 8 +-
> > vdagent/imagepng.cpp | 244
> >
Sorry, forgot one comment,
On Mon, Jul 17, 2017 at 09:54:04AM +0100, Frediano Ziglio wrote:
> +static void line_fixup_rgb2bgr(uint8_t *line, unsigned width)
> +{
> +for (; width; --width) {
> +std::swap(line[0], line[2]);
> +line += 3;
> +}
> +}
> +
> +size_t PngCoder::conv
On Mon, Jul 17, 2017 at 09:54:04AM +0100, Frediano Ziglio wrote:
> Signed-off-by: Frediano Ziglio
> ---
> Makefile.am | 6 +-
> configure.ac | 3 +
> vdagent/image.cpp| 8 +-
> vdagent/imagepng.cpp | 244
> +++
> vdagent/
Signed-off-by: Frediano Ziglio
---
Makefile.am | 6 +-
configure.ac | 3 +
vdagent/image.cpp| 8 +-
vdagent/imagepng.cpp | 244 +++
vdagent/imagepng.h | 25 ++
5 files changed, 277 insertions(+), 9 deletions(-)
cre