Skip to content

Commit

Permalink
Revert "webp does not use 'studio' range unless we compress with Pillow"
Browse files Browse the repository at this point in the history
This reverts commit d6d59a0.
  • Loading branch information
totaam committed Jun 19, 2024
1 parent d6d59a0 commit 28bc4c6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions xpra/codecs/webp/decoder.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,7 @@ def decompress_to_yuv(data: bytes, options: typedict, has_alpha=False) -> WebpIm
show_plane_range("YUV"[i], planes[i], w // xdiv, strides[i], h // ydiv)

img = WebpImageWrapper(0, 0, w, h, planes, "YUV420P", (3+alpha)*8, strides, 3+alpha, ImageWrapper.PLANAR_3+alpha)
img.set_full_range(False)
img.cython_buffer = <uintptr_t> buf
return img

Expand Down

0 comments on commit 28bc4c6

Please sign in to comment.