Skip to content

Commit

Permalink
#3457 we can't build against older versions easily enough
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Feb 15, 2022
1 parent 2b79f7e commit 9187c7f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 9 deletions.
4 changes: 1 addition & 3 deletions packaging/debian/xpra/control
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,9 @@ Build-Depends: debhelper (>= 8)
,libsystemd-dev
,libpam-dev
,pandoc
#hirsute: ,libavif-dev
#impish: ,libavif-dev
#jammy: ,libavif-dev
#bookworm: ,libavif-dev
#bullseye: ,libavif-dev
#sid: ,libavif-dev
Standards-Version: 3.9.3
Homepage: https://xpra.org/
Vcs-Git: https://github.com/Xpra-org/xpra
Expand Down
2 changes: 1 addition & 1 deletion packaging/rpm/rpms.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ libfakeXinerama
xorg-x11-drv-dummy
gstreamer1-plugin-timestamp
x264-xpra
ffmpeg-xpra
#ffmpeg-xpra
python3-pbr
python3-rencode
python3-pycuda
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def is_RH():
webp_ENABLED = DEFAULT and pkg_config_version("0.5", "libwebp")
jpeg_encoder_ENABLED = DEFAULT and pkg_config_version("1.2", "libturbojpeg")
jpeg_decoder_ENABLED = DEFAULT and pkg_config_version("1.4", "libturbojpeg")
avif_ENABLED = DEFAULT and pkg_config_version("0.8", "libavif")
avif_ENABLED = DEFAULT and pkg_config_version("0.9", "libavif")
vpx_ENABLED = DEFAULT and pkg_config_version("1.4", "vpx")
enc_ffmpeg_ENABLED = DEFAULT and BITS==64 and pkg_config_version("58.18", "libavcodec")
#opencv currently broken on 32-bit windows (crashes on load):
Expand Down
3 changes: 1 addition & 2 deletions xpra/codecs/avif/decoder.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,7 @@ def decompress(data, options=None, yuv=False):
pixels = getbuf(width*4*height)
rgb.pixels = <uint8_t *> pixels.get_mem()
rgb.rowBytes = stride
if AVIF_VERSION_MAJOR>0 or AVIF_VERSION_MINOR>8:
rgb.alphaPremultiplied = 1
rgb.alphaPremultiplied = 1
r = avifImageYUVToRGB(image, &rgb)
check(r, "Conversion from YUV failed")
if rgb.depth>8:
Expand Down
3 changes: 1 addition & 2 deletions xpra/codecs/avif/encoder.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,7 @@ def encode(coding, image, options=None):
rgb.format = INPUT_PIXEL_FORMATS.get(pixel_format)
rgb.chromaUpsampling = AVIF_CHROMA_UPSAMPLING_FASTEST
rgb.ignoreAlpha = not alpha
if AVIF_VERSION_MAJOR>0 or AVIF_VERSION_MINOR>8:
rgb.alphaPremultiplied = alpha
rgb.alphaPremultiplied = alpha
rgb.rowBytes = image.get_rowstride()

cdef avifResult r
Expand Down

0 comments on commit 9187c7f

Please sign in to comment.