[PyQt] absolute beginner's question about "was not declared in this scope"

Phil Thompson phil at riverbankcomputing.com
Fri Nov 6 13:44:19 GMT 2015


On 6 Nov 2015, at 11:50 a.m., Sampsa Riikonen <sampsa.riikonen at 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


More information about the PyQt mailing list