mbox series

[FFmpeg-devel,v2,0/1] avcodec/libjxlenc: Add libjxl_animated encoder

Message ID -Md3l6HVUK-z6aVYgOU06PBX06n-xrpzKEyp-F2VVAgHcjz02ush7w6xPwiMTVH5gfngH9MR1N7sO6GTEcpXMpfdtRMJtDsKEcXsIY8UYF0=@protonmail.com
Headers show
Series avcodec/libjxlenc: Add libjxl_animated encoder | expand

Message

Zsolt Vadász Dec. 13, 2023, 8:53 p.m. UTC
This patchset adds support for encoding animated JPEG XL images via a
new encoder (libjxl_animated). When using the encoder, the output format
needs to be set to raw video, as shown below:
`ffmpeg -i sample.gif -c:v libjxl_animated -f rawvideo out.jxl`

V2 changes:
- This version doesn't move the JxlBasicInfo struct into
LibJxlEncodeContext (the JxlPixelFormat struct is still in the encoder context because
it's used in multiple functions, while the encode callbacks only use
the `ysize` from the JxlBasicInfo, which is just `frame-height`)
- It also doesn't overwrite `avctx->time_base`
- Builds that disable libjxl now succeed

Zsolt Vadasz (1):
  avcodec/libjxlenc: Add libjxl_animated encoder

 configure              |   1 +
 libavcodec/allcodecs.c |   1 +
 libavcodec/libjxlenc.c | 214 +++++++++++++++++++++++++++++++++--------
 3 files changed, 177 insertions(+), 39 deletions(-)