Rev 2427 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2427 | Rev 2693 | ||
---|---|---|---|
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 | { CLOSED=0,PLAY_INIT, |
- | 55 | STOP, PAUSE, PLAY, REWIND, |
|
- | 56 | PAUSE_2_PLAY, REWIND_2_PLAY |
|
Line 54... | Line 57... | ||
54 | { CLOSED=0, STOP, PLAY_RESTART, PLAY, PAUSE, REWIND }; |
57 | }; |
55 | - | ||
- | 58 | ||
56 | #define ID_PLAY 100 |
59 | #define ID_PLAY 100 |
57 | 60 | #define ID_PROGRESS 101 |
|
58 | typedef struct |
61 | typedef struct |
59 | { |
62 | { |
60 | volatile uint32_t lock; |
63 | volatile uint32_t lock; |
Line 154... | Line 157... | ||
154 | static inline void delay(uint32_t time) |
157 | static inline void delay(uint32_t time) |
155 | { |
158 | { |
156 | __asm__ __volatile__( |
159 | __asm__ __volatile__( |
157 | "int $0x40" |
160 | "int $0x40" |
158 | ::"a"(5), "b"(time)); |
161 | ::"a"(5), "b"(time) |
- | 162 | :"memory"); |
|
159 | }; |
163 | }; |