Remix.run Logo
MrSqueezles 4 hours ago

AVIF's support for non-photographic images is covered in the article. It supports lossless.

Daiz 4 hours ago | parent | next [-]

Yes, I know the format supports it. The question is, will hardware decoders built primarily around video use cases? And if those kind of hardware decoders end up forming the majority of hardware decoders for AVIF, will we end up in a future where using the full range of the format is heavily discouraged because it won't be supported by hardware decoders?

For comparison, it was possible to do 10-bit video with H.264, but 10-bit video didn't see any mainstream adoption with it because hardware decoders generally didn't support 10-bit H.264 video. Only when newer formats came around and specced 10-bit support as a baseline necessity did we start to see wider adoption for it. And well, the baseline specs (main profile) for AV1, which AVIF is based on, are limited to 4:2:0...

edflsafoiewq 4 hours ago | parent [-]

AFAIK WebP has never used hardware decoding and no browser uses it for AVIF now.

account42 2 hours ago | parent | prev [-]

It's not lossless if you have to convert to YUV first.

jaffathecake an hour ago | parent [-]

You are correct. However, AVIF does not require this conversion. For lossless it supports an "identity" matrix coefficient, which means no conversion.

It isn't particularly efficient in terms of file size, but as others have said, lossless images within a web page is extremely niche.

edflsafoiewq 41 minutes ago | parent [-]

It has YCgCo too, which should have the efficiency of YCbCr while being lossless.