Mercurial > mplayer.hg
comparison DOCS/tech/general.txt @ 1649:5b52297e559c
typos, small fixes
author | arpi |
---|---|
date | Thu, 23 Aug 2001 11:33:41 +0000 |
parents | 526047bdda07 |
children | 315f5d5355fa |
comparison
equal
deleted
inserted
replaced
1648:6185549842e7 | 1649:5b52297e559c |
---|---|
71 So everything is ok 'till now, I want to move them to a separate lib. | 71 So everything is ok 'till now, I want to move them to a separate lib. |
72 | 72 |
73 Now, go on: | 73 Now, go on: |
74 | 74 |
75 3. mplayer.c - ooh, he's the boss :) | 75 3. mplayer.c - ooh, he's the boss :) |
76 It's main purpose is connecting the other modules, and maintaining A/V | 76 Its main purpose is connecting the other modules, and maintaining A/V |
77 sync. | 77 sync. |
78 | 78 |
79 The given stream's actual position is in the corresponding stream header | 79 The given stream's actual position is in the 'timer' field of the |
80 timer field (sh_audio / sh_video). | 80 corresponding stream header (sh_audio / sh_video). |
81 | 81 |
82 The structure of the playing loop : | 82 The structure of the playing loop : |
83 while(not EOF) { | 83 while(not EOF) { |
84 fill audio buffer (read & decode audio) + increase a_frame | 84 fill audio buffer (read & decode audio) + increase a_frame |
85 read & decode a single video frame + increase v_frame | 85 read & decode a single video frame + increase v_frame |
193 0x4 - sub/osd supported (has draw_alpha) | 193 0x4 - sub/osd supported (has draw_alpha) |
194 IMPORTANT: it's mandatorial that every vo driver support the YV12 format, | 194 IMPORTANT: it's mandatorial that every vo driver support the YV12 format, |
195 and one (or both) of BGR15 and BGR24, with conversion, if needed. | 195 and one (or both) of BGR15 and BGR24, with conversion, if needed. |
196 If these aren't supported, not every codec will work! The mpeg codecs | 196 If these aren't supported, not every codec will work! The mpeg codecs |
197 can output only YV12, and the older win32 DLLs only 15 and 24bpp. | 197 can output only YV12, and the older win32 DLLs only 15 and 24bpp. |
198 There is a fast MMX-using 15->16bpp converter, so it's not a | 198 There is a fast MMX-optimized 15->16bpp converter, so it's not a |
199 significant speed-decrease! | 199 significant speed-decrease! |
200 | 200 |
201 The BPP table, if the driver can't change bpp: | 201 The BPP table, if the driver can't change bpp: |
202 current bpp has to accept these | 202 current bpp has to accept these |
203 15 15 | 203 15 15 |
274 Has to return how many bytes are in the audio buffer. Be exact, if possible, | 274 Has to return how many bytes are in the audio buffer. Be exact, if possible, |
275 since the whole timing depends on this! In the worst case, return the size | 275 since the whole timing depends on this! In the worst case, return the size |
276 of the buffer. | 276 of the buffer. |
277 | 277 |
278 !!! Because the video is synchronized to the audio (card), it's very important | 278 !!! Because the video is synchronized to the audio (card), it's very important |
279 !!! that the get_space and get_delay are working! | 279 !!! that the get_space and get_delay functions be correctly implemented! |
280 | 280 |