Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1696 | serge | 1 | |
2 | #define BLACK_MAGIC_VIDEO |
||
3 | |||
4 | |||
5 | { |
||
6 | volatile uint32_t lock; |
||
7 | char *buffer; |
||
8 | volatile uint32_t count; |
||
9 | }astream_t; |
||
10 | |||
11 | |||
12 | { |
||
13 | unsigned int code; |
||
14 | unsigned int sender; |
||
15 | unsigned int stream; |
||
16 | unsigned int offset; |
||
17 | unsigned int size; |
||
18 | unsigned int unused[2]; |
||
19 | }SND_EVENT; |
||
20 | |||
21 | |||
22 | extern AVRational video_time_base; |
||
23 | |||
24 | |||
25 | int init_video(AVCodecContext *ctx); |
||
26 | int decode_video(AVCodecContext *ctx, AVPacket *pkt); |
||
27 | double get_master_clock(); |
||
28 | |||
29 | |||
30 | |||
31 | |||
32 | |||
33 | |||
34 | |||
35 | { |
||
36 | *val = 0; |
||
37 | } |
||
38 | |||
39 | |||
40 | { |
||
41 | __asm__ __volatile__ ( |
||
42 | "int $0x40" |
||
43 | ::"a"(68),"b"(14),"c"(event)); |
||
44 | } |
||
45 | |||
46 | |||
47 | { |
||
48 | uint32_t val; |
||
49 | __asm__ __volatile__( |
||
50 | "int $0x40" |
||
51 | :"=a"(val) |
||
52 | :"a"(11)); |
||
53 | return val; |
||
54 | }; |
||
55 | |||
56 | |||
57 | { |
||
58 | uint32_t val; |
||
59 | __asm__ __volatile__( |
||
60 | "int $0x40" |
||
61 | :"=a"(val) |
||
62 | :"a"(17)); |
||
63 | return val>>8; |
||
64 | }; |
||
65 | |||
66 | |||
67 | { |
||
68 | __asm__ __volatile__( |
||
69 | "int $0x40" |
||
70 | ::"a"(68), "b"(1)); |
||
71 | }; |
||
72 | |||
73 | |||
74 | { |
||
75 | __asm__ __volatile__( |
||
76 | "int $0x40" |
||
77 | ::"a"(5), "b"(time)); |
||
78 | }; |
||
79 |