Code: Select all
joris@joris-desktop:~/pspprojects/libmpeg3-1.5.4$ make
psp-gcc -I./include -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall -DHAVE_CSS -D_PSP_FW_VERSION=150 -c -o audio/ac3.o audio/ac3.c
In file included from audio/ac3.c:5:
./mpeg3private.h:651: fout: expected specifier-qualifier-list before ‘pthread_mutex_t’
./mpeg3private.h:671: fout: expected specifier-qualifier-list before ‘pthread_t’
./mpeg3private.h:705: fout: expected specifier-qualifier-list before ‘pthread_mutex_t’
Code: Select all
typedef struct
{
unsigned char *data; /* Buffer for holding the slice data */
int buffer_size; /* Size of buffer */
int buffer_allocation; /* Space allocated for buffer */
int current_position; /* Position in buffer */
uint32_t bits;
int bits_size;
pthread_mutex_t completion_lock; /* Lock slice until completion */
int done; /* Signal for slice decoder to skip */
} mpeg3_slice_buffer_t;
/* Each slice decoder */
typedef struct
{
void *video; /* mpeg3video_t */
mpeg3_slice_buffer_t *slice_buffer;
int thread_number; /* Number of this thread */
int current_buffer; /* Buffer this slice decoder is on */
int buffer_step; /* Number of buffers to skip */
int last_buffer; /* Last buffer this decoder should process */
int fault;
int done;
int quant_scale;
int pri_brk; /* slice/macroblock */
short block[12][64];
int sparse[12];
pthread_t tid; /* ID of thread */
pthread_mutex_t input_lock, output_lock, completion_lock;
} mpeg3_slice_t;