[Spice-commits] server/mjpeg_encoder.c
Alexander Larsson
alexl at kemper.freedesktop.org
Mon Apr 12 11:56:01 PDT 2010
server/mjpeg_encoder.c | 1 +
1 file changed, 1 insertion(+)
New commits:
commit 288a9ad03f52d1fee507c25cf09ebe8b6b4aca05
Author: Alexander Larsson <alexl at redhat.com>
Date: Mon Apr 12 20:51:38 2010 +0200
Use fast DCT method for better jpeg compression performance
diff --git a/server/mjpeg_encoder.c b/server/mjpeg_encoder.c
index b0ae49f..a25c348 100644
--- a/server/mjpeg_encoder.c
+++ b/server/mjpeg_encoder.c
@@ -105,6 +105,7 @@ int mjpeg_encoder_encode_frame(MJpegEncoder *encoder,
encoder->cinfo.in_color_space = JCS_RGB;
jpeg_set_defaults(&encoder->cinfo);
+ encoder->cinfo.dct_method = JDCT_IFAST;
jpeg_set_quality(&encoder->cinfo, encoder->quality, TRUE);
jpeg_start_compress(&encoder->cinfo, encoder->first_frame);
More information about the Spice-commits
mailing list