Skip to content

Commit

Permalink
add note explaining this is just a guess!
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@7404 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Aug 22, 2014
1 parent 39b2632 commit a38147c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/xpra/codecs/webp/decode.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,11 @@ def decompress(data, has_alpha):

cdef int stride = 4 * config.input.width
if has_alpha:
#this is just a guess, the actual rgb_format may actually be different... like RGBA
rgb_format = "BGRA"
config.output.colorspace = MODE_bgrA
else:
#this is just a guess, actual rgb_format may actually be different... like BGR
rgb_format = "RGB"
config.output.colorspace = MODE_RGB
cdef size_t size = stride * config.input.height
Expand Down

0 comments on commit a38147c

Please sign in to comment.