Bug 49331

Summary: RFE: MJPEG compression should be optimized to compress multiple images (by using abbreviated images)
Product: Spice Reporter: Yaniv Kaul <ykaul>
Component: serverAssignee: Spice Bug List <spice-bugs>
Status: RESOLVED MOVED QA Contact:
Severity: enhancement    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Yaniv Kaul 2012-05-01 01:21:27 UTC
See http://www.jpegcameras.com/libjpeg/libjpeg-3.html#ss3.9 for exact details:
"A JPEG compression or decompression object can be reused to process multiple images. This saves a small amount of time per image by eliminating the "create" and "destroy" operations, but that isn't the real purpose of the feature. Rather, reuse of an object provides support for abbreviated JPEG datastreams. Object reuse can also simplify processing a series of images in a single input or output file."

This is also interesting, perhaps we can use it: 
"In some cases you might want to compress an image using tables which are not stored in the application, but are defined in an interchange or tables-only file readable by the application. This can be done by setting up a JPEG decompression object to read the specification file, then copying the tables into your compression object. See jpeg_copy_critical_parameters() for an example of copying quantization tables."
Comment 1 Frediano Ziglio 2016-10-11 17:15:02 UTC
Does it still make sense this after having introduced more useful codecs?
Comment 2 GitLab Migration User 2018-06-03 10:15:23 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/spice/spice-server/issues/17.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.