Closed
Bug 2035159
Opened 22 days ago
Closed 21 days ago
don't store an extra copy of compressed jpeg xl source data in the decoder
Categories
(Core :: Graphics: ImageLib, enhancement)
Core
Graphics: ImageLib
Tracking
()
RESOLVED
FIXED
152 Branch
| Tracking | Status | |
|---|---|---|
| firefox152 | --- | fixed |
People
(Reporter: tnikkel, Assigned: tnikkel)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
No description provided.
| Assignee | ||
Comment 1•22 days ago
|
||
SourceBufferIterator was designed for lexing image formats (ie "I want to parse a 4 byte height field"), whereas more modern codecs like jpegxl follow a model like "hand the binary blob to the libray and get back notifications".
With a little addition to SourceBufferIterator we are able to handle partially consuming the current chunk of data so that the decoder doesn't need to keep track of it and keep a copy of the data. Otherwise SourceBufferIterator would assume the whole chunk was complete and not send it to the decoder again. This might arise if say an animation frame was completed and the decoder yielded without consuming all of the available data.
Pushed by tnikkel@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/c40c511d4467
https://hg.mozilla.org/integration/autoland/rev/0236c1b11f29
Don't store an extra copy of compressed jpeg xl source data in the decoder. r=saschanaz
Comment 3•21 days ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 21 days ago
status-firefox152:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 152 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•