Commit Graph

9 Commits

Author SHA1 Message Date
Frediano Ziglio
5988f86a75 Revert 3 last patches
Revert "try to remove other bugs", commit
57266085b9.
Revert "try to fix previous", commit
8e40377068.
Revert "attempt to fix more warnings!", commit
66b6933a38.

I put by mistake on the MR due to some automatic scripts.
Their state are pretty experimental.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
2020-03-30 15:11:22 +01:00
Frediano Ziglio
8e40377068 try to fix previous 2020-03-23 13:57:06 +00:00
Frediano Ziglio
66b6933a38 attempt to fix more warnings! 2020-03-23 13:38:40 +00:00
Frediano Ziglio
1982d50375 Fix minor compiler compatibility
Ensure std::min is declared including directly algorithm header.
Undefine possible min and max macros, some Windows headers define them.
Currently happens using Visual Studio 2015.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Christophe Fergeau <cfergeau@redhat.com>
2018-05-28 14:45:03 +01:00
Frediano Ziglio
16aee83802 imagetest: Save BMP file using BitmapCoder
This allows to test BitmapCoder::from_bitmap.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Uri Lublin <uril@redhat.com>
2017-08-22 17:41:45 +01:00
Frediano Ziglio
aaeecf1294 Make BitmapCoder::from_bitmap return a BMP file format
The network expect the format of the data to match a file
format so prepending DIB data with BITMAPFILEHEADER change
the format from DIB to BMP file.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Uri Lublin <uril@redhat.com>
2017-08-22 17:41:36 +01:00
Frediano Ziglio
3dedcaa44e Write code to decode PNG format
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Christophe Fergeau <cfergeau@redhat.com>
2017-07-26 10:51:06 +01:00
Frediano Ziglio
95f603bdb0 Initial rewrite of image conversion code
Remove CxImage linking.
Support Windows BMP format.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Christophe Fergeau <cfergeau@redhat.com>
2017-07-26 08:52:15 +01:00
Frediano Ziglio
0fd4882477 Move image handling to a separate file
This will make easier to change code that handle images.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Christophe Fergeau <cfergeau@redhat.com>
2017-07-26 08:52:15 +01:00