On 1/30/23 11:53, Leo Izen wrote:
On 1/27/23 07:18, Leo Izen wrote:
libjxl only accepts 16-bit buffers with its API, but it can
accept 9-bit to 15-bit input via a 16-bit buffer, provided the flag
is set declaring the buffer to be of the respective significant depth.
Likewise, it can only provide pixel data on decode as a 16-bit buffer
(if higher than 8) but does provide the metadata tagging the actual bit
depth.
This commit causes libjxlenc.c and libjxldec.c to respect this metadata
and tag/read it accordingly from AVCodecContext->bits_per_raw_sample.
Signed-off-by: Leo Izen <leo.i...@gmail.com>
---
libavcodec/libjxldec.c | 17 +++++++++++++----
libavcodec/libjxlenc.c | 10 +++++++++-
2 files changed, 22 insertions(+), 5 deletions(-)
Will merge soon if there are no objections
- Leo Izen (thebombzen)
Pushed.
- Leo Izen (thebombzen)
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".