summaryrefslogtreecommitdiffstats
path: root/server/lz4_encoder.h
diff options
context:
space:
mode:
authorJavier Celaya <javier.celaya@flexvm.es>2015-01-26 17:59:39 +0100
committerChristophe Fergeau <cfergeau@redhat.com>2015-02-03 10:39:16 +0100
commit16412aa101fb681c5b6670cc6c0939ed010fbafd (patch)
treebc1908c20243873a464ce8384e16b31812d83d74 /server/lz4_encoder.h
parentd92ce3506e3f6a382b87af8ed9296beb229683df (diff)
downloadspice-16412aa101fb681c5b6670cc6c0939ed010fbafd.tar.gz
spice-16412aa101fb681c5b6670cc6c0939ed010fbafd.tar.xz
spice-16412aa101fb681c5b6670cc6c0939ed010fbafd.zip
LZ4: Do not reverse bottom-up images
Reversing the bottom-up images in the server is not needed since Pixman, in the client, is able to deal with them. As a result, the previous code was more complex and wrong. This commit fixes and cleans it.
Diffstat (limited to 'server/lz4_encoder.h')
-rw-r--r--server/lz4_encoder.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/server/lz4_encoder.h b/server/lz4_encoder.h
index f3359c09..97b8dc85 100644
--- a/server/lz4_encoder.h
+++ b/server/lz4_encoder.h
@@ -43,8 +43,7 @@ struct Lz4EncoderUsrContext {
Lz4EncoderContext* lz4_encoder_create(Lz4EncoderUsrContext *usr);
void lz4_encoder_destroy(Lz4EncoderContext *encoder);
-/* returns the total size of the encoded data. Images must be supplied from the
- top line to the bottom */
-int lz4_encode(Lz4EncoderContext *lz4, int height, int stride,
- uint8_t *io_ptr, unsigned int num_io_bytes);
+/* returns the total size of the encoded data. */
+int lz4_encode(Lz4EncoderContext *lz4, int height, int stride, uint8_t *io_ptr,
+ unsigned int num_io_bytes, int top_down);
#endif