On 1/30/24 09:46, Leo Izen wrote: > libjxl doesn't support negative strides, but JPEG XL has an orientation > flag inside the codestream. We can use this to work around the library > limitation, by taking the absolute value of the negative row stride, > sending the image up-side-down, and telling the library that the image > has a vertical-flip orientation. > > Signed-off-by: Leo Izen > --- Changes from v1: - constify uint8_t *data, per Andreas's request