3

I need a Pixbuf with mutable content. This means that it needs to be updated quite fast in order to display frames with a reasonable speed.

In the python binding there is the get_pixels method. Is it unclear to me if I can use it to update the data in the pixbuf or not and if it returns the original data stored in memory of a copy of them.

Any suggestion?

fstab
  • 4,801
  • 8
  • 34
  • 66
  • How often is often? – andlabs Nov 22 '16 at 14:26
  • @andlabs: your question is irrelevant, because the software I am working on does more to the frames than just displaying them, and my question is in the larger context of reducing the cost of every single phases of frame retrieval, manipulation and display. – fstab Nov 22 '16 at 15:07
  • @andlabs's question is quite valid. '...with a reasonable speed' is largely subjective without specification. If you're observing solar cycles, once a day could be reasonable. If you want to observe interactions of particles, your monitor will probably be to slow. – jcoppens Nov 27 '16 at 15:50
  • Well, working on a software that displays a video from a camera, I run on the same issue, GdkPixbuf seems impossible to modify and can only be built from bytes which is immutable. Thus, to display the image from the camera, I'm forced to make an extra copy of each image that could be avoided by working directly on the GdkPixbuf pixels. – Bigfoot Dec 01 '19 at 16:50

0 Answers0