Re: [Image-SIG] How to pass the address of the buffer to Image.frombuffer()

2010-02-11 Thread Fredrik Lundh
2010/1/26 Веселин : > I want to display captured frames from a webcam. I am using > video4linux2, v4l2 bindings for python and ctypes. > > I am also using Tk. In the main loop of my v4l2 app, after Q_BUF, > STREAM_ON, DQ_BUF I call method that looks something like that: > > > window = Tkinter.Tk()

[Image-SIG] How to pass the address of the buffer to Image.frombuffer()

2010-01-26 Thread Веселин
I want to display captured frames from a webcam. I am using video4linux2, v4l2 bindings for python and ctypes. I am also using Tk. In the main loop of my v4l2 app, after Q_BUF, STREAM_ON, DQ_BUF I call method that looks something like that: window = Tkinter.Tk() image = ImageTk.PhotoImage(pixelf