Closed Bug 1682662 Opened 4 years ago Closed 3 years ago

Do AVIF metadata decode without decoding the image data

Categories

(Core :: Graphics: ImageLib, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED

People

(Reporter: jbauman, Unassigned)

References

(Blocks 1 open bug)

Details

The Decoder interface that nsAVIFDecoder implements, calls DoDecode() twice: first with IsMetadataDecode() returning false, during which time the decoder must call PostSize() and (if appropriate PostHasTransparency()) and again with IsMetadataDecode() when the decoded image must be rendered to the surface. Currently this information is extracted from the decoded image metadata returned by dav1d or libaom. However, recent improvements to the the rust parser mean with a little additional work (basically just parsing the Image spatial extents (ispe) box and exposing it in the AvifImage struct), we can access the necessary information from the parser metadata without performing the decode at all for the IsMetadataDecode() case.

Severity: -- → S3

This was fixed as part of Bug 1696093

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.