Subversion Repositories Kolibri OS

Rev

Rev 6118 | Rev 6133 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6118 Rev 6121
Line 14... Line 14...
14
#define HAS_TOP         (1<<1)
14
#define HAS_TOP         (1<<1)
15
#define HAS_RIGHT       (1<<2)
15
#define HAS_RIGHT       (1<<2)
16
#define HAS_BOTTOM      (1<<3)
16
#define HAS_BOTTOM      (1<<3)
17
 
17
 
Line -... Line 18...
-
 
18
typedef struct
-
 
19
{
-
 
20
    enum AVPixelFormat format;
-
 
21
    AVPicture     picture;
-
 
22
    int           planar;
-
 
23
    double        pts;
-
 
24
    volatile int  ready;
-
 
25
}vframe_t;
-
 
26
 
18
struct render
27
struct render
19
{
28
{
20
    vst_t     *vst;
29
    vst_t     *vst;
21
    uint32_t   caps;
30
    uint32_t   caps;
22
    uint32_t   ctx_width;
31
    uint32_t   ctx_width;
Line 109... Line 118...
109
    queue_t         q_audio;    /* audio packets queue */
118
    queue_t         q_audio;    /* audio packets queue      */
110
 
119
 
Line 111... Line 120...
111
    mutex_t         gpu_lock;   /* gpu access lock. libdrm not yet thread safe :( */
120
    mutex_t         gpu_lock;   /* gpu access lock. libdrm not yet thread safe :( */
Line -... Line 121...
-
 
121
 
112
 
122
    vframe_t        vframe[4];  /* decoder workset          */
113
    int             vfx;        /* index of decoded frame */
123
    int             vfx;        /* index of decoded frame   */
114
    int             dfx;        /* index of renderd frame */
-
 
-
 
124
    int             dfx;        /* index of renderd frame   */
-
 
125
    void           *hwCtx;      /* hardware context         */
115
 
126
    int             hwdec;      /* hardware decoder         */
Line 116... Line -...
116
};
-
 
117
 
127
};
118
 
128
 
119
 
129
 
Line 120... Line 130...
120
#define DECODER_THREAD  1
130
#define DECODER_THREAD  1
Line 153... Line 163...
153
    "int $0x40"
163
    "int $0x40"
154
    ::"a"(68),"b"(14),"c"(event));
164
    ::"a"(68),"b"(14),"c"(event));
155
}
165
}
156
 
166
 
Line 157... Line -...
157
int fplay_vaapi_init(void);
-
 
158
void va_convert_picture(vst_t *vst, int width, int height, AVPicture *pic);
167
void va_convert_picture(vst_t *vst, int width, int height, AVPicture *pic);
Line 159... Line 168...
159
 
168
 
160
int init_fontlib();
169
int init_fontlib();