summaryrefslogtreecommitdiffstats
path: root/client/mjpeg_decoder.h
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2010-07-20 11:45:37 +0200
committerAlexander Larsson <alexl@redhat.com>2010-07-20 11:45:37 +0200
commitccbb922d5ae5757343df64c4184ef3927e680bf9 (patch)
tree579dc4018c879ff9c9eb0ffff8d1bf43b472a6cf /client/mjpeg_decoder.h
parent2e9604d00d655f276f22b9ad1cce4fb631ac06a8 (diff)
downloadspice-ccbb922d5ae5757343df64c4184ef3927e680bf9.tar.gz
spice-ccbb922d5ae5757343df64c4184ef3927e680bf9.tar.xz
spice-ccbb922d5ae5757343df64c4184ef3927e680bf9.zip
Swap red and blue when decoding 0.4 mjpeg streams
There was an error in how this was encoded in 0.4, which we need to handle. There is still some issues with the old streams as the luminocity handling in 0.4 was not correct.
Diffstat (limited to 'client/mjpeg_decoder.h')
-rw-r--r--client/mjpeg_decoder.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/client/mjpeg_decoder.h b/client/mjpeg_decoder.h
index f435f3f3..ccafd379 100644
--- a/client/mjpeg_decoder.h
+++ b/client/mjpeg_decoder.h
@@ -37,7 +37,7 @@ extern "C" {
class MJpegDecoder {
public:
MJpegDecoder(int width, int height, int stride,
- uint8_t *frame);
+ uint8_t *frame, bool back_compat);
~MJpegDecoder();
bool decode_data(uint8_t *data, size_t length);
@@ -63,6 +63,7 @@ private:
int _height;
int _stride;
uint8_t *_frame;
+ bool _back_compat;
int _y;
uint8_t *_scanline;