Rev 2693 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2693 | Rev 3068 | ||
---|---|---|---|
Line 50... | Line 50... | ||
50 | void (*draw)(render_t *render, AVPicture *picture); |
50 | void (*draw)(render_t *render, AVPicture *picture); |
51 | }; |
51 | }; |
Line 52... | Line 52... | ||
52 | 52 | ||
- | 53 | enum player_state |
|
53 | enum player_state |
54 | { |
- | 55 | CLOSED = 0, |
|
- | 56 | PREPARE, |
|
- | 57 | STOP, |
|
- | 58 | PAUSE, |
|
- | 59 | PLAY, |
|
- | 60 | REWIND, |
|
- | 61 | PLAY_2_STOP, |
|
54 | { CLOSED=0,PLAY_INIT, |
62 | PLAY_2_PAUSE, |
55 | STOP, PAUSE, PLAY, REWIND, |
63 | PAUSE_2_PLAY, |
56 | PAUSE_2_PLAY, REWIND_2_PLAY |
64 | REWIND_2_PLAY, |
Line 57... | Line 65... | ||
57 | }; |
65 | }; |
- | 66 | ||
58 | 67 | #define ID_PLAY 100 |
|
- | 68 | #define ID_STOP 101 |
|
- | 69 | #define ID_PROGRESS 102 |
|
- | 70 | #define ID_VOL_LEVEL 103 |
|
59 | #define ID_PLAY 100 |
71 | #define ID_VOL_CTRL 104 |
60 | #define ID_PROGRESS 101 |
72 | |
61 | typedef struct |
73 | typedef struct |
62 | { |
74 | { |
63 | volatile uint32_t lock; |
75 | volatile uint32_t lock; |
Line 110... | Line 122... | ||
110 | 122 | ||
Line 111... | Line 123... | ||
111 | 123 | ||
112 | int init_audio(int format); |
124 | int init_audio(int format); |
- | 125 | int audio_thread(void *param); |
|
Line 113... | Line 126... | ||
113 | int audio_thread(void *param); |
126 | void set_audio_volume(int left, int right); |
114 | 127 | ||
Line 115... | Line 128... | ||
115 | int init_video(AVCodecContext *ctx); |
128 | int init_video(AVCodecContext *ctx); |
Line 176... | Line 189... | ||
176 | int resize_bitmap(bitmap_t *bitmap); |
189 | int resize_bitmap(bitmap_t *bitmap); |
177 | int blit_bitmap(bitmap_t *bitmap, int dst_x, int dst_y, |
190 | int blit_bitmap(bitmap_t *bitmap, int dst_x, int dst_y, |
178 | int w, int h);2)><2)>1)><1)>0)><0)>3) |
191 | int w, int h); |
179 | 192 | ||
Line 180... | Line -... | ||
180 | struct><3) |
- | |
- | 193 | int init_fontlib();2)><2)>1)><1)>0)><0)>3) |