[Mplayer-cvslog] CVS: main/DOCS ChangeLog,1.14,1.15 mplayer.1,1.22,1.23 tech-eng.txt,1.8,1.9
Berczi Gabor
gabucino at users.sourceforge.net
Fri Apr 20 22:48:27 CEST 2001
- Previous message: [Mplayer-cvslog] CVS: main/libvo vo_fbdev.c,1.31,1.32
- Next message: [Mplayer-cvslog] CVS: main mplayer.c,1.82,1.83 cfg-mplayer.h,1.30,1.31 demux_mpg.c,1.13,1.14 demuxer.c,1.2,1.3
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/mplayer/main/DOCS
In directory usw-pr-cvs1:/tmp/cvs-serv19736/DOCS
Modified Files:
ChangeLog mplayer.1 tech-eng.txt
Log Message:
kommit, kommit
Index: ChangeLog
===================================================================
RCS file: /cvsroot/mplayer/main/DOCS/ChangeLog,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -r1.14 -r1.15
*** ChangeLog 2001/04/19 12:10:18 1.14
--- ChangeLog 2001/04/20 20:48:25 1.15
***************
*** 3,10 ****
~~~~~~~~~~
! v0.12 "IdegCounter" :
- TODO, A'rpi
! * v0.11 skipped, renamed to 0.12 *
v0.11-pre27-CVS:
--- 3,10 ----
~~~~~~~~~~
! v0.17 "IdegCounter" :
- TODO, A'rpi
! * jumped to 0.17 *
v0.11-pre27-CVS:
Index: mplayer.1
===================================================================
RCS file: /cvsroot/mplayer/main/DOCS/mplayer.1,v
retrieving revision 1.22
retrieving revision 1.23
diff -C2 -r1.22 -r1.23
*** mplayer.1 2001/04/19 21:06:58 1.22
--- mplayer.1 2001/04/20 20:48:25 1.23
***************
*** 2,6 ****
.\" This manpage was/is done by Gabucino
.\"
! .TH MPlayer-0.12 IdegCounter
.SH NAME
mplayer \- Movie Player for Linux
--- 2,6 ----
.\" This manpage was/is done by Gabucino
.\"
! .TH MPlayer-0.17 IdegCounter
.SH NAME
mplayer \- Movie Player for Linux
Index: tech-eng.txt
===================================================================
RCS file: /cvsroot/mplayer/main/DOCS/tech-eng.txt,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -r1.8 -r1.9
*** tech-eng.txt 2001/04/14 16:01:33 1.8
--- tech-eng.txt 2001/04/20 20:48:25 1.9
***************
*** 6,11 ****
The main modules:
! 1. streamer.c: this is the input, this reads the file or the VCD.
! what it has to know: appropriate buffering, seek, skip functions,
reading by bytes, or blocks with any size.
The stream_t structure describes the input stream, file/device.
--- 6,11 ----
The main modules:
! 1. streamer.c: this is the input, this reads the file or the VCD. what it has
! to know: appropriate buffering by sector, seek, skip functions,
reading by bytes, or blocks with any size.
The stream_t structure describes the input stream, file/device.
***************
*** 18,31 ****
The structure is the demuxer_t. There is only one demuxer.
! 2.a. demuxer stream, that is DS. Its struct is demux_stream_t
! Every channel (a/v) has one.
! For now, there can be 2 for each demuxer, one for the audio and one
! for the video.
!
! 2.b. demux_packet_t, that is DP.
! This contains one chunk (avi) or packet (asf,mpg).
! In the memory they are stored as chained lists, since they are of
! different sizes.
!
Now, how this reading works?
- demuxer.c/demux_read_data() is called, it gets how many bytes,
--- 18,54 ----
The structure is the demuxer_t. There is only one demuxer.
! 2.a. demux_packet_t, that is DP.
! Contains one chunk (avi) or packet (asf,mpg). They are stored in memory as
! in chained list, cause of their different size.
!
! 2.b. demuxer stream, that is DS. Struct: demux_stream_t
! Every channel (a/v) has one. This contains the packets for the stream (see
! 2.a). For now, there can be 2 for each demuxer, one for the audio and
! one for the video.
!
! 2.c. stream header. There are 2 types (for now): sh_audio_t and sh_video_t
! This contains every parameter essential for decoding, such as input/output
! buffers, chosen codec, fps, etc. There are each for every stream in
! the file. At least one for video, if sound is present then another,
! but if there are more, then there'll be one structure for each.
! These are filled according to the header (avi/asf), or demux_mpg.c
! does it (mpg) if it founds a new stream. If a new stream is found,
! the ====> Found audio/video stream: <id> messages is displayed.
!
! The chosen stream header and its demuxer are connected together
! (ds->sh and sh->ds) to simplify the usage. So it's enough to pass the
! ds or the sh, depending on the function.
!
! For example: we have an asf file, 6 streams inside it, 1 audio, 5
! video. During the reading of the header, 6 sh structs are created,
! 1 audio and 5 video. When it starts reading the packet, it chooses
! the first found audio & video stream, and sets the sh pointers of
! d_audio and d_video according to them. So later it reads only these
! streams. Of course the user can force choosing a specific stream with
! -vid and -aid switches.
! A good example for this is the DVD, where the english stream is not
! always the first, so every VOB has different language :)
! That's when we have to use for example the -aid 128 switch.
!
Now, how this reading works?
- demuxer.c/demux_read_data() is called, it gets how many bytes,
***************
*** 106,117 ****
And they call the appropriate demuxer, to get the compressed data.
(see 2.)
!
! 5. libvo: this displays the frame. There are 2 different output routines in it:
!
! 5.a draw_slice(): this displays YV12 pictures (3 frames, a full sized which
! contains brightness, and 2 with 1/4 sizes, which contain the colour
! info). MPEG codecs (libmpeg2, opendivx) use this. This doesn't have
to display the whole frame, only update small parts of it.
! 5.b draw_frame(): this is the older interface, this displays only complete
frames, and can do only packed format (YUY2, RGB/BGR).
Win32 codecs use this (DivX, Indeo, etc).
--- 129,193 ----
And they call the appropriate demuxer, to get the compressed data.
(see 2.)
! We have to pass the appropriate stream header as parameter (sh_audio/
! sh_video), this should contain all the needed info for decoding
! (the demuxer too: sh->ds).
! The codecs' seprating is underway, the audio is already done, the video is
! work-in-progress. The aim is that mplayer.c won't have to know
! which are the codecs and how to use 'em, instead it should call
! an init/decode audio/video function.
!
! 5. libvo: this displays the frame.
! The constants for different pixelformats are defined in img_format.h,
! their usage is mandatory.
!
! Each vo driver _has_ to implement these:
!
! query_format() - queries if a given pixelformat is supported.
! return value: flags:
! 0x1 - supported (by hardware or conversion)
! 0x2 - supported (by hardware, without conversion)
! 0x4 - sub/osd supported (has draw_alpha)
! IMPORTANT: it's mandatorial that every vo driver support the YV12 format,
! and one (or both) of BGR15 and BGR24, with conversion, if needed.
! If these aren't supported, not every codec will work! The mpeg codecs
! can output only YV12, and the older win32 DLLs only 15 and 24bpp.
! There is a fast MMX-using 15->16bpp converter, so it's not a
! significant speed-decrease!
!
! The BPP table, if the driver can't change bpp:
! current bpp has to accept these
! 15 15
! 16 15,16
! 24 24
! 24,32 24,32
!
! If it can change bpp (for example DGA 2, fbdev, svgalib), then if possible
! we have to change to the desired bpp. If the hardware doesn't support,
! we have to change to the one closest to it, and do conversion!
!
! init() - this is called before displaying of the first frame -
! initializing buffers, etc.
!
! draw_slice(): this displays YV12 pictures (3 planes, one full sized that
! contains brightness (Y), and 2 quarter-sized which the colour-info
! (U,V). MPEG codecs (libmpeg2, opendivx) use this. This doesn't have
to display the whole frame, only update small parts of it.
!
! draw_frame(): this is the older interface, this displays only complete
frames, and can do only packed format (YUY2, RGB/BGR).
Win32 codecs use this (DivX, Indeo, etc).
+
+ draw_alpha(): this displays subtitles and OSD.
+ It's a bit tricky to use it, since it's not a part of libvo API,
+ but a callback-style stuff. The flip_page() has to call
+ vo_draw_text(), so that it passes the size of the screen and the
+ corresponding draw_alpha() implementation for the pixelformat
+ (function pointer). The vo_draw_text() checks the characters to draw,
+ and calls draw_alpha() for each.
+ As a help, osd.c contains draw_alpha for each pixelformats, use this
+ if possible!
+
+ flip_page(): this is called after each frame, this diplays the buffer for
+ real. This is 'swapbuffers' when double-buffering.
+
+
_______________________________________________
Mplayer-cvslog mailing list
Mplayer-cvslog at lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/mplayer-cvslog
- Previous message: [Mplayer-cvslog] CVS: main/libvo vo_fbdev.c,1.31,1.32
- Next message: [Mplayer-cvslog] CVS: main mplayer.c,1.82,1.83 cfg-mplayer.h,1.30,1.31 demux_mpg.c,1.13,1.14 demuxer.c,1.2,1.3
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the MPlayer-cvslog
mailing list