[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] progress on camera module



On Thu, Jul 2, 2009 at 2:47 PM, el lauwer<el.lauwer@xxxxxxxxx> wrote:
>
> On 28-jun-09, at 01:13, Tyler Laing wrote:
>
>> Hmm, the comment for gWorld says its a pointer, but thats a static
>> variable. Just an outdated comment?
>
> It is a pointer, I took this from the API:
> Defines a pointer to a structure that your application can use to refer to
> an offscreen graphics world.
>
> I have a segmentation fault in my code.
> When I initializes the camera I call SGSetDataProc() that sets
> mac_que_frame() as an recall function that is called everytime I need to get
> a frame out of the ImageSequence. In this mac_que_frame() function I call
> DecompressSequenceFrameS() and this produces an segmentation fault.
>
> I have lookt at it with gdb, and I think it is a problem with the data
> pointer.
>
> you can find the code with the error on github.com/ab3, and I have a test
> script named test_fast.py.
> to debug it just do
> gdb python
>> run test_fast.py
>
> I have been struggling with this for some time, so I would really appreciate
> if someone could help me out with this.
>
> Grtz
>

hi,

Have you had a look at the various examples from apple?  There's some
which use DecompressSequenceFrameS which you could look at.

Also google code search is useful for finding examples:
    http://www.google.com/codesearch?q=DecompressSequenceFrameS&hl=en&btnG=Search+Code


cheers,