Skip to content

Commit

Permalink
argb encoder error with more unusual bit depths
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Nov 29, 2024
1 parent 8166eee commit 2b0539d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions xpra/codecs/argb/encoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ def encode(coding : str, image, options : Dict) -> Tuple[str,Compressed,Dict[str
rgb_formats = options.get("rgb_formats", ("BGRX", "BGRA", "RGBA"))
elif pixel_format in ("RGB", "BGR"):
rgb_formats = options.get("rgb_formats", ("RGB", "BGR"))
elif pixel_format in ("r210", "BGR565"):
rgb_formats = options.get("rgb_formats", (pixel_format, ))
else:
raise ValueError(f"unsupported pixel format {pixel_format!r}")
supports_transparency = options.get("alpha", True)
Expand Down

0 comments on commit 2b0539d

Please sign in to comment.