]> git.wh0rd.org Git - ICEs.git/blob - 136309/ice.ii.7
initial import
[ICEs.git] / 136309 / ice.ii.7
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        extern "C" {
10      __extension__ typedef struct {
11    }
12      __fsid_t;
13      }
14        class __attribute__((visibility("default"))) QObject: public Qt {
15      };
16        class __attribute__((visibility("default"))) QPaintDevice {
17      };
18        class __attribute__((visibility("default"))) QWidget : public QObject, public QPaintDevice {
19      };
20        class __attribute__((visibility("default"))) QThread : public Qt {
21      };
22        class __attribute__((visibility("default"))) QTime {
23      public: QTime() {
24    }
25      QTime addMSecs( int ms ) const;
26      uint ds;
27      };
28        extern "C" {
29      extern "C" {
30    extern "C" {
31   typedef union {
32   }
33   pthread_attr_t;
34   typedef struct __pthread_internal_slist {
35   }
36   __pthread_slist_t;
37   typedef union {
38   struct __pthread_mutex_s {
39   __extension__ union {
40   };
41   }
42   __data;
43   }
44   pthread_mutexattr_t;
45   typedef union {
46   }
47   pthread_rwlockattr_t;
48   typedef union {
49   }
50   pthread_barrierattr_t;
51   }
52    }
53      extern "C" {
54    extern "C" {
55   typedef struct xine_stream_s xine_stream_t;
56   struct xine_post_s {
57   }
58   xine_post_api_t;
59   int xine_get_pos_length (xine_stream_t *stream, int *pos_stream, int *pos_time, int *length_time);
60   typedef struct {
61   }
62   xine_mrl_t;
63   typedef struct {
64   }
65   xine_dropped_frames_t;
66   typedef enum {
67   XINE_TVSYSTEM_PAL = 0, XINE_TVSYSTEM_NTSC }
68   xine_tvsystem;
69   }
70    }
71      void xine_usec_sleep(unsigned usec);
72      }
73        class KXineWidget : public QWidget, private QThread {
74      QTime getLengthInfo();
75      static QTime msToTime(int msec);
76      xine_stream_t* m_xineStream;
77      };
78        QTime KXineWidget::getLengthInfo() {
79      int pos, time, length;
80      int t = 0, ret = 0;
81      while(((ret = xine_get_pos_length(m_xineStream, &pos, &time, &length)) == 0) && (++t < 5)) xine_usec_sleep(100000);
82      if ( (ret != 0) && (length > 0) ) {
83    return msToTime(length);
84    }
85      }
86        QTime KXineWidget::msToTime(int msec) {
87      QTime t;
88      t = t.addMSecs(msec);
89      return t;
90      }