]> git.wh0rd.org - ICEs.git/blame - 136309/ice.ii.5
initial import
[ICEs.git] / 136309 / ice.ii.5
CommitLineData
45516216 1 typedef unsigned uint;
2 struct __attribute__((visibility("default"))) QShared {
3 typedef struct __locale_struct {
4 }
5 *__locale_t;
6 };
7 class __attribute__((visibility("default"))) Qt {
8 };
9 class __attribute__((visibility("default"))) QPoint {
10 };
11 class __attribute__((visibility("default"))) QRegion {
12 struct QRegionData : public QShared {
13 }
14 *data;
15 };
16 extern "C" {
17 typedef unsigned char __u_char;
18 typedef unsigned short int __u_short;
19 typedef unsigned int __u_int;
20 typedef unsigned long int __u_long;
21 __extension__ typedef long long int __quad_t;
22 __extension__ typedef unsigned long long int __u_quad_t;
23 __extension__ typedef __u_quad_t __dev_t;
24 __extension__ typedef unsigned int __uid_t;
25 __extension__ typedef unsigned int __gid_t;
26 __extension__ typedef unsigned long int __ino_t;
27 __extension__ typedef __u_quad_t __ino64_t;
28 __extension__ typedef unsigned int __mode_t;
29 __extension__ typedef unsigned int __nlink_t;
30 __extension__ typedef long int __off_t;
31 __extension__ typedef __quad_t __off64_t;
32 __extension__ typedef int __pid_t;
33 __extension__ typedef struct {
34 }
35 __fsid_t;
36 __extension__ typedef long int __clock_t;
37 __extension__ typedef unsigned int __id_t;
38 __extension__ typedef long int __time_t;
39 __extension__ typedef unsigned int __useconds_t;
40 __extension__ typedef long int __suseconds_t;
41 __extension__ typedef int __daddr_t;
42 __extension__ typedef int __key_t;
43 __extension__ typedef int __clockid_t;
44 __extension__ typedef void * __timer_t;
45 __extension__ typedef long int __blksize_t;
46 __extension__ typedef long int __blkcnt_t;
47 __extension__ typedef __quad_t __blkcnt64_t;
48 __extension__ typedef unsigned long int __fsblkcnt_t;
49 __extension__ typedef __u_quad_t __fsblkcnt64_t;
50 __extension__ typedef unsigned long int __fsfilcnt_t;
51 __extension__ typedef __u_quad_t __fsfilcnt64_t;
52 __extension__ typedef int __ssize_t;
53 typedef __off64_t __loff_t;
54 typedef char *__caddr_t;
55 }
56 class __attribute__((visibility("default"))) QObject: public Qt {
57 };
58 class __attribute__((visibility("default"))) QPaintDevice {
59 };
60 class __attribute__((visibility("default"))) QColorGroup {
61 };
62 class __attribute__((visibility("default"))) QPalette {
63 struct QPalData : public QShared {
64 }
65 *data;
66 };
67 class __attribute__((visibility("default"))) QWidget : public QObject, public QPaintDevice {
68 };
69 class __attribute__((visibility("default"))) QThread : public Qt {
70 };
71 class __attribute__((visibility("default"))) QTime {
72 public: QTime() {
73 }
74 QTime addMSecs( int ms ) const;
75 uint ds;
76 };
77 extern "C" {
78 extern "C" {
79 extern "C" { typedef __u_char u_char; typedef __u_short u_short; typedef __u_int u_int; typedef __u_long u_long; typedef __quad_t quad_t; typedef __u_quad_t u_quad_t; typedef __fsid_t fsid_t; typedef __loff_t loff_t; typedef __ino_t ino_t; typedef __ino64_t ino64_t; typedef __dev_t dev_t; typedef __gid_t gid_t; typedef __mode_t mode_t; typedef __nlink_t nlink_t; typedef __uid_t uid_t; typedef __off_t off_t; typedef __off64_t off64_t; typedef __pid_t pid_t; typedef __id_t id_t; typedef __ssize_t ssize_t; typedef __daddr_t daddr_t; typedef __caddr_t caddr_t; typedef __key_t key_t; typedef __clock_t clock_t; typedef __time_t time_t; typedef __clockid_t clockid_t; typedef __timer_t timer_t; typedef __useconds_t useconds_t; typedef __suseconds_t suseconds_t; typedef unsigned long int ulong; typedef unsigned short int ushort; typedef unsigned int uint; typedef int int8_t __attribute__ ((__mode__ (__QI__))); typedef int int16_t __attribute__ ((__mode__ (__HI__))); typedef int int32_t __attribute__ ((__mode__ (__SI__))); typedef int int64_t __attribute__ ((__mode__ (__DI__))); typedef unsigned int u_int8_t __attribute__ ((__mode__ (__QI__))); typedef unsigned int u_int16_t __attribute__ ((__mode__ (__HI__))); typedef unsigned int u_int32_t __attribute__ ((__mode__ (__SI__))); typedef unsigned int u_int64_t __attribute__ ((__mode__ (__DI__))); typedef int register_t __attribute__ ((__mode__ (__word__))); typedef int __sig_atomic_t; typedef struct { unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))]; } __sigset_t; typedef __sigset_t sigset_t; struct timespec { __time_t tv_sec; long int tv_nsec; }; struct timeval { __time_t tv_sec; __suseconds_t tv_usec; }; typedef long int __fd_mask; typedef struct { __fd_mask fds_bits[1024 / (8 * sizeof (__fd_mask))]; } fd_set; typedef __fd_mask fd_mask; extern "C" { extern int select (int __nfds, fd_set *__restrict __readfds, fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, struct timeval *__restrict __timeout); extern int pselect (int __nfds, fd_set *__restrict __readfds, fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, const struct timespec *__restrict __timeout, const __sigset_t *__restrict __sigmask); } __extension__ extern __inline unsigned int gnu_dev_major (unsigned long long int __dev) throw (); __extension__ extern __inline unsigned int gnu_dev_minor (unsigned long long int __dev) throw (); __extension__ extern __inline unsigned long long int gnu_dev_makedev (unsigned int __major, unsigned int __minor) throw (); __extension__ extern __inline unsigned int gnu_dev_major (unsigned long long int __dev) throw () { return ((__dev >> 8) & 0xfff) | ((unsigned int) (__dev >> 32) & ~0xfff); } __extension__ extern __inline unsigned int gnu_dev_minor (unsigned long long int __dev) throw () { return (__dev & 0xff) | ((unsigned int) (__dev >> 12) & ~0xff); } __extension__ extern __inline unsigned long long int gnu_dev_makedev (unsigned int __major, unsigned int __minor) throw () { return ((__minor & 0xff) | ((__major & 0xfff) << 8) | (((unsigned long long int) (__minor & ~0xff)) << 12) | (((unsigned long long int) (__major & ~0xfff)) << 32)); } typedef __blksize_t blksize_t; typedef __blkcnt_t blkcnt_t; typedef __fsblkcnt_t fsblkcnt_t; typedef __fsfilcnt_t fsfilcnt_t; typedef __blkcnt64_t blkcnt64_t; typedef __fsblkcnt64_t fsblkcnt64_t; typedef __fsfilcnt64_t fsfilcnt64_t; typedef unsigned long int pthread_t; typedef union { char __size[36]; long int __align; } pthread_attr_t; typedef struct __pthread_internal_slist { struct __pthread_internal_slist *__next; } __pthread_slist_t; typedef union { struct __pthread_mutex_s { int __lock; unsigned int __count; int __owner; int __kind; unsigned int __nusers; __extension__ union { int __spins; __pthread_slist_t __list; }; } __data; char __size[24]; long int __align; } pthread_mutex_t; typedef union { char __size[4]; long int __align; } pthread_mutexattr_t; typedef union { struct { int __lock; unsigned int __futex; __extension__ unsigned long long int __total_seq; __extension__ unsigned long long int __wakeup_seq; __extension__ unsigned long long int __woken_seq; void *__mutex; unsigned int __nwaiters; unsigned int __broadcast_seq; } __data; char __size[48]; __extension__ long long int __align; } pthread_cond_t; typedef union { char __size[4]; long int __align; } pthread_condattr_t; typedef unsigned int pthread_key_t; typedef int pthread_once_t; typedef union { struct { int __lock; unsigned int __nr_readers; unsigned int __readers_wakeup; unsigned int __writer_wakeup; unsigned int __nr_readers_queued; unsigned int __nr_writers_queued; unsigned int __flags; int __writer; } __data; char __size[32]; long int __align; } pthread_rwlock_t; typedef union { char __size[8]; long int __align; } pthread_rwlockattr_t; typedef volatile int pthread_spinlock_t; typedef union { char __size[20]; long int __align; } pthread_barrier_t; typedef union { char __size[4]; int __align; } pthread_barrierattr_t; }
80 }
81 typedef unsigned char uint8_t;
82 typedef unsigned short int uint16_t;
83 typedef unsigned int uint32_t;
84 __extension__ typedef unsigned long long int uint64_t;
85 extern "C" {
86 extern "C" { typedef struct xine_s xine_t; typedef struct xine_stream_s xine_stream_t; typedef struct xine_audio_port_s xine_audio_port_t; typedef struct xine_video_port_s xine_video_port_t; typedef xine_audio_port_t xine_ao_driver_t; typedef xine_video_port_t xine_vo_driver_t; const char *xine_get_version_string (void); void xine_get_version (int *major, int *minor, int *sub); int xine_check_version (int major, int minor, int sub) ; xine_t *xine_new (void); void xine_init (xine_t *self); xine_audio_port_t *xine_open_audio_driver (xine_t *self, const char *id, void *data); xine_video_port_t *xine_open_video_driver (xine_t *self, const char *id, int visual, void *data); void xine_close_audio_driver (xine_t *self, xine_audio_port_t *driver); void xine_close_video_driver (xine_t *self, xine_video_port_t *driver); void xine_exit (xine_t *self); xine_stream_t *xine_stream_new (xine_t *self, xine_audio_port_t *ao, xine_video_port_t *vo); int xine_stream_master_slave(xine_stream_t *master, xine_stream_t *slave, int affection); int xine_open (xine_stream_t *stream, const char *mrl); int xine_play (xine_stream_t *stream, int start_pos, int start_time); int xine_trick_mode (xine_stream_t *stream, int mode, int value); void xine_stop (xine_stream_t *stream); void xine_close (xine_stream_t *stream); int xine_eject (xine_stream_t *stream); void xine_dispose (xine_stream_t *stream); void xine_engine_set_param(xine_t *self, int param, int value); int xine_engine_get_param(xine_t *self, int param); void xine_set_param (xine_stream_t *stream, int param, int value); int xine_get_param (xine_stream_t *stream, int param); int xine_get_current_frame (xine_stream_t *stream, int *width, int *height, int *ratio_code, int *format, uint8_t *img); int64_t xine_get_current_vpts(xine_stream_t *stream); typedef struct xine_post_s xine_post_t; struct xine_post_s { xine_audio_port_t **audio_input; xine_video_port_t **video_input; int type; }; xine_post_t *xine_post_init(xine_t *xine, const char *name, int inputs, xine_audio_port_t **audio_target, xine_video_port_t **video_target); const char *const *xine_list_post_plugins(xine_t *xine); const char *const *xine_list_post_plugins_typed(xine_t *xine, int type); typedef struct xine_post_in_s xine_post_in_t; typedef struct xine_post_out_s xine_post_out_t; struct xine_post_in_s { const char *name; int type; void *data; }; struct xine_post_out_s { const char *name; int type; void *data; int (*rewire) (xine_post_out_t *self, void *data); }; const char *const *xine_post_list_inputs(xine_post_t *self); const char *const *xine_post_list_outputs(xine_post_t *self); xine_post_in_t *xine_post_input(xine_post_t *self, const char *name); xine_post_out_t *xine_post_output(xine_post_t *self, const char *name); int xine_post_wire(xine_post_out_t *source, xine_post_in_t *target); int xine_post_wire_video_port(xine_post_out_t *source, xine_video_port_t *vo); int xine_post_wire_audio_port(xine_post_out_t *source, xine_audio_port_t *ao); xine_post_out_t * xine_get_video_source(xine_stream_t *stream); xine_post_out_t * xine_get_audio_source(xine_stream_t *stream); void xine_post_dispose(xine_t *xine, xine_post_t *self); typedef struct { int type; char *name; int size; int offset; char **enum_values; double range_min; double range_max; int readonly; char *description; } xine_post_api_parameter_t; typedef struct { int struct_size; xine_post_api_parameter_t *parameter; } xine_post_api_descr_t; typedef struct { int (*set_parameters) (xine_post_t *self, void *params); int (*get_parameters) (xine_post_t *self, void *params); xine_post_api_descr_t * (*get_param_descr) (void); char * (*get_help) (void); } xine_post_api_t; int xine_get_log_section_count(xine_t *self); const char *const *xine_get_log_names(xine_t *self); void xine_log (xine_t *self, int buf, const char *format, ...) __attribute__ ((__format__(printf, 3, 4))); const char *const *xine_get_log (xine_t *self, int buf); typedef void (*xine_log_cb_t) (void *user_data, int section); void xine_register_log_cb (xine_t *self, xine_log_cb_t cb, void *user_data); int xine_get_error (xine_stream_t *stream); int xine_get_status (xine_stream_t *stream); int xine_get_audio_lang (xine_stream_t *stream, int channel, char *lang); int xine_get_spu_lang (xine_stream_t *stream, int channel, char *lang); int xine_get_pos_length (xine_stream_t *stream, int *pos_stream, int *pos_time, int *length_time); uint32_t xine_get_stream_info (xine_stream_t *stream, int info); const char *xine_get_meta_info (xine_stream_t *stream, int info); typedef struct { char *origin; char *mrl; char *link; uint32_t type; off_t size; } xine_mrl_t; const char *const *xine_get_browsable_input_plugin_ids (xine_t *self) ; xine_mrl_t **xine_get_browse_mrls (xine_t *self, const char *plugin_id, const char *start_mrl, int *num_mrls); const char *const *xine_get_autoplay_input_plugin_ids (xine_t *self); char **xine_get_autoplay_mrls (xine_t *self, const char *plugin_id, int *num_mrls); char *xine_get_file_extensions (xine_t *self); char *xine_get_mime_types (xine_t *self); char *xine_get_demux_for_mime_type (xine_t *self, const char *mime_type); const char *xine_get_input_plugin_description (xine_t *self, const char *plugin_id); const char *xine_get_demux_plugin_description (xine_t *self, const char *plugin_id); const char *xine_get_spu_plugin_description (xine_t *self, const char *plugin_id); const char *xine_get_audio_plugin_description (xine_t *self, const char *plugin_id); const char *xine_get_video_plugin_description (xine_t *self, const char *plugin_id); const char *xine_get_audio_driver_plugin_description (xine_t *self, const char *plugin_id); const char *xine_get_video_driver_plugin_description (xine_t *self, const char *plugin_id); const char *xine_get_post_plugin_description (xine_t *self, const char *plugin_id); const char *const *xine_list_audio_output_plugins (xine_t *self) ; const char *const *xine_list_video_output_plugins (xine_t *self) ; const char *const *xine_list_demuxer_plugins(xine_t *self); const char *const *xine_list_input_plugins(xine_t *self); const char *const *xine_list_spu_plugins(xine_t *self); const char *const *xine_list_audio_decoder_plugins(xine_t *self); const char *const *xine_list_video_decoder_plugins(xine_t *self); void xine_plugins_garbage_collector(xine_t *self); int xine_gui_send_vo_data (xine_stream_t *self, int type, void *data); int xine_port_send_gui_data (xine_video_port_t *vo, int type, void *data); typedef struct { int x,y,w,h; } x11_rectangle_t; typedef struct { void *display; int screen; unsigned long d; void *user_data; void (*dest_size_cb) (void *user_data, int video_width, int video_height, double video_pixel_aspect, int *dest_width, int *dest_height, double *dest_pixel_aspect); void (*frame_output_cb) (void *user_data, int video_width, int video_height, double video_pixel_aspect, int *dest_x, int *dest_y, int *dest_width, int *dest_height, double *dest_pixel_aspect, int *win_x, int *win_y); } x11_visual_t; typedef struct { void (*frame_output_cb) (void *user_data, int video_width, int video_height, double video_pixel_aspect, int *dest_x, int *dest_y, int *dest_width, int *dest_height, double *dest_pixel_aspect, int *win_x, int *win_y); void *user_data; } fb_visual_t; struct xine_health_check_s { int status; const char* cdrom_dev; const char* dvd_dev; char* msg; char* title; char* explanation; }; typedef struct xine_health_check_s xine_health_check_t; xine_health_check_t* xine_health_check(xine_health_check_t*, int check_num); typedef struct xine_cfg_entry_s xine_cfg_entry_t; typedef void (*xine_config_cb_t) (void *user_data, xine_cfg_entry_t *entry); struct xine_cfg_entry_s { const char *key; int type; char *unknown_value; char *str_value; char *str_default; char *str_sticky; int num_value; int num_default; int range_min; int range_max; char **enum_values; const char *description; const char *help; int exp_level; xine_config_cb_t callback; void *callback_data; }; const char *xine_config_register_string (xine_t *self, const char *key, const char *def_value, const char *description, const char *help, int exp_level, xine_config_cb_t changed_cb, void *cb_data); int xine_config_register_range (xine_t *self, const char *key, int def_value, int min, int max, const char *description, const char *help, int exp_level, xine_config_cb_t changed_cb, void *cb_data); int xine_config_register_enum (xine_t *self, const char *key, int def_value, char **values, const char *description, const char *help, int exp_level, xine_config_cb_t changed_cb, void *cb_data); int xine_config_register_num (xine_t *self, const char *key, int def_value, const char *description, const char *help, int exp_level, xine_config_cb_t changed_cb, void *cb_data); int xine_config_register_bool (xine_t *self, const char *key, int def_value, const char *description, const char *help, int exp_level, xine_config_cb_t changed_cb, void *cb_data); int xine_config_get_first_entry (xine_t *self, xine_cfg_entry_t *entry); int xine_config_get_next_entry (xine_t *self, xine_cfg_entry_t *entry); int xine_config_lookup_entry (xine_t *self, const char *key, xine_cfg_entry_t *entry); void xine_config_update_entry (xine_t *self, const xine_cfg_entry_t *entry); void xine_config_load (xine_t *self, const char *cfg_filename); void xine_config_save (xine_t *self, const char *cfg_filename); void xine_config_reset (xine_t *self); typedef struct { int type; xine_stream_t *stream; void *data; int data_length; struct timeval tv; } xine_event_t; typedef struct { xine_event_t event; uint8_t button; uint16_t x,y; } xine_input_data_t; typedef struct { int num_buttons; int str_len; char str[256]; } xine_ui_data_t; typedef struct { xine_ui_data_t compatibility; int type; int explanation; int num_parameters; int parameters; char messages[1]; } xine_ui_message_data_t; typedef struct { int width; int height; int aspect; int pan_scan; } xine_format_change_data_t; typedef struct { int left; int right; int mute; } xine_audio_level_data_t; typedef struct { const char *description; int percent; } xine_progress_data_t; typedef struct { int alternative; char mrl[1]; } xine_mrl_reference_data_t; typedef struct { int alternative; uint32_t start_time, duration; uint32_t spare[20]; const char mrl[1]; } xine_mrl_reference_data_ext_t; typedef struct { int input; int channel; int radio; uint32_t frequency; uint32_t transmission; uint32_t framerate_numerator; uint32_t framerate_denominator; uint32_t framelines; uint64_t standard_id; uint32_t colorstandard; uint32_t colorsubcarrier; int frame_width; int frame_height; uint32_t spare[20]; int32_t session_id; } xine_set_v4l2_data_t; typedef struct { int bitrate_vbr; int bitrate_mean; int bitrate_peak; int gop_size; int gop_closure; int b_frames; int aspect_ratio; uint32_t spare[20]; } xine_set_mpeg_data_t; typedef struct { int direction; int32_t button; } xine_spu_button_t; typedef struct { int skipped_frames; int skipped_threshold; int discarded_frames; int discarded_threshold; } xine_dropped_frames_t; typedef struct xine_event_queue_s xine_event_queue_t; xine_event_queue_t *xine_event_new_queue (xine_stream_t *stream); void xine_event_dispose_queue (xine_event_queue_t *queue); xine_event_t *xine_event_get (xine_event_queue_t *queue); xine_event_t *xine_event_wait (xine_event_queue_t *queue); void xine_event_free (xine_event_t *event); typedef void (*xine_event_listener_cb_t) (void *user_data, const xine_event_t *event); void xine_event_create_listener_thread (xine_event_queue_t *queue, xine_event_listener_cb_t callback, void *user_data); void xine_event_send (xine_stream_t *stream, const xine_event_t *event); typedef struct xine_osd_s xine_osd_t; xine_osd_t *xine_osd_new (xine_stream_t *self, int x, int y, int width, int height); uint32_t xine_osd_get_capabilities (xine_osd_t *self); void xine_osd_draw_point (xine_osd_t *self, int x, int y, int color); void xine_osd_draw_line (xine_osd_t *self, int x1, int y1, int x2, int y2, int color); void xine_osd_draw_rect (xine_osd_t *self, int x1, int y1, int x2, int y2, int color, int filled ); void xine_osd_draw_text (xine_osd_t *self, int x1, int y1, const char *text, int color_base); void xine_osd_draw_bitmap (xine_osd_t *self, uint8_t *bitmap, int x1, int y1, int width, int height, uint8_t *palette_map); void xine_osd_get_text_size (xine_osd_t *self, const char *text, int *width, int *height); int xine_osd_set_font (xine_osd_t *self, const char *fontname, int size); void xine_osd_set_encoding(xine_osd_t *self, const char *encoding); void xine_osd_set_position (xine_osd_t *self, int x, int y); void xine_osd_show (xine_osd_t *self, int64_t vpts); void xine_osd_show_unscaled (xine_osd_t *self, int64_t vpts); void xine_osd_hide (xine_osd_t *self, int64_t vpts); void xine_osd_clear (xine_osd_t *self); void xine_osd_set_text_palette (xine_osd_t *self, int palette_number, int color_base ); void xine_osd_get_palette (xine_osd_t *self, uint32_t *color, uint8_t *trans); void xine_osd_set_palette (xine_osd_t *self, const uint32_t *const color, const uint8_t *const trans ); void xine_osd_free (xine_osd_t *self); typedef enum { XINE_TVSYSTEM_PAL = 0, XINE_TVSYSTEM_NTSC } xine_tvsystem; int xine_tvmode_init (xine_t *self); int xine_tvmode_use(xine_t *self, int use_tvmode); void xine_tvmode_set_tvsystem(xine_t *self, xine_tvsystem system); int xine_tvmode_switch (xine_t *self, int type, int width, int height, double fps); void xine_tvmode_size (xine_t *self, int *width, int *height, double *pixelratio, double *fps); void xine_tvmode_exit (xine_t *self); }
87 }
88 void xine_usec_sleep(unsigned usec);
89 }
90 class KXineWidget : public QWidget, private QThread {
91 QTime getLengthInfo();
92 static QTime msToTime(int msec);
93 xine_stream_t* m_xineStream;
94 };
95 QTime KXineWidget::getLengthInfo() {
96 int pos, time, length;
97 int t = 0, ret = 0;
98 while(((ret = xine_get_pos_length(m_xineStream, &pos, &time, &length)) == 0) && (++t < 5)) xine_usec_sleep(100000);
99 if ( (ret != 0) && (length > 0) ) {
100 return msToTime(length);
101 }
102 }
103 QTime KXineWidget::msToTime(int msec) {
104 QTime t;
105 t = t.addMSecs(msec);
106 return t;
107 }