2 ** CDXLPlay (C) 2009 Fredrik Wikstrom
24 #define PROGNAME "CDXLPlay"
27 #define NULL ((void *)0)
28 #define MAX(a,b) ((a)>(b)?(a):(b))
29 #define MIN(a,b) ((a)<(b)?(a):(b))
66 uint32_t sdl_video_flags
;
69 struct cdxl_file
*cdxl
;
70 struct cdxl_frame
*frame
;
72 struct cdxl_frame
*aframe
;
73 struct list audio_list
;
74 SDL_mutex
*audio_mutex
;
93 int main (int argc
, char *argv
[]);
96 int get_options (int argc
, char *argv
[], struct player_data
*pd
);
97 void free_options (void);
100 struct cdxl_file
*open_cdxl(const char *filename
);
101 void close_cdxl(struct cdxl_file
*cdxl
);
102 int read_cdxl_frame(struct cdxl_file
*cdxl
, struct cdxl_frame
*frame
);
103 void free_cdxl_frame(struct cdxl_file
*cdxl
, struct cdxl_frame
*frame
);
104 int decode_cdxl_frame(struct cdxl_file
*cdxl
, struct cdxl_frame
*frame
, SDL_Surface
*surf
);
107 void ScaleSurface(SDL_Surface
*source
, SDL_Surface
*dest
, uint32_t pix_ratio
);
110 void GLInit(int w
, int h
);
112 void GLScaleSurface(SDL_Surface
*source
, SDL_Surface
*dest
, uint32_t pix_ratio
);