[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] absolute beginner's question about "was not declared in this scope"
From:       Phil Thompson <phil () riverbankcomputing ! com>
Date:       2015-11-06 13:44:19
Message-ID: C2811341-419A-4624-8574-1D7827535FC6 () riverbankcomputing ! com
[Download RAW message or body]

On 6 Nov 2015, at 11:50 a.m., Sampsa Riikonen <sampsa.riikonen@iki.fi> wrote:
> 
> Hello,
> 
> An absolute beginners question in wrapping C libraries with SIP:
> 
> The library header file ("h264_stream.h") has the following:
> 
> -------------------
> 
> #ifndef _H264_STREAM_H
> #define _H264_STREAM_H        1
> 
> #include <stdint.h>
> #include <stdio.h>
> #include <assert.h>
> 
> ....
> ....
> ....
> 
> int find_nal_unit(uint8_t* buf, int size, int* nal_start, int* nal_end);
> 
> ...
> ...
> ...
> ----------------------
> 
> Here is my "h264_stream.sip":
> 
> ---------------------
> 
> %Module h264_stream
> 
> %UnitCode
> #include <stdint.h>
> #include <stdio.h>
> #include <assert.h>
> %End
> 
> // int find_nal_unit(uint8_t* buf, int size, int* nal_start, int* nal_end);
> 
> int find_nal_unit(char* buf, int size, int* nal_start, int* nal_end);
> 
> // int find_nal_unit(int* buf, int size, int* nal_start, int* nal_end);
> 
> -------------------------
> 
> .. those commented lines were things I tried, but as I want a byte buffer, so \
> "char*" makes the most sense, right?

unsigned char * would make more sense.

Phil
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/pyqt


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic