xpra icon
Bug tracker and wiki

This bug tracker and wiki are being discontinued
please use https://github.com/Xpra-org/xpra instead.


Opened 8 years ago

Last modified 6 months ago

#465 closed enhancement

improve picture buffer handling — at Version 2

Reported by: Antoine Martin Owned by: Antoine Martin
Priority: major Milestone: 0.16
Component: core Version:
Keywords: Cc:

Description (last modified by Antoine Martin)

At the moment, some picture decoders return the pixel data as a read-only string buffer (PIL does). Others return a read-write buffer just because downstream requires it (ie: OpenCL does, despite only reading from the pixel buffer..)

Tasks:

  • Use the new buffer API
  • We should use something better and allow read-write access if the underlying buffer allows it (non reference frames), or use a copy-on-write mechanism
  • Try to fix OpenCL? (if possible..) see r4281 and r5255, question to the PyOpenCL mailing list here: read_only images
  • Carry a flag telling us if the buffer is read-only or not?
  • Carry a flag telling us if the buffer is thread safe or not? (so we know when to free the image from the UI thread - better than r4963)

Change History (2)

comment:1 Changed 8 years ago by Antoine Martin

Description: modified (diff)
Owner: changed from Antoine Martin to Antoine Martin
Status: newassigned

comment:2 Changed 8 years ago by Antoine Martin

Description: modified (diff)
Note: See TracTickets for help on using tickets.