• Leo Izen's avatar
    avcodec/libjxlenc: support negative linesizes · c0de7ac5
    Leo Izen authored
    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: 's avatarLeo Izen <leo.izen@gmail.com>
    c0de7ac5
libjxlenc.c 18.5 KB