Mercurial > mplayer.hg
annotate libmpdemux/muxer.c @ 11118:344052fdfc4a
Fix colorkey for xvidix, tested on Riva128 4MB X@15/16/24bpp (aka 15/15/32 in nvidia_vid)
This is very cool, using mplayer -vo xvidix -ao oss -framedrop -dr movie.avi I can play
640x272 DivX 1MBps on PII 233, 64MB, i440LX, Riva128 4MB AGP, FreeBSD 5.0, XFree 4.2.0,
with little framedrop,
author | atmos4 |
---|---|
date | Tue, 14 Oct 2003 21:29:25 +0000 |
parents | 12fc55eb3373 |
children | b962aaad2940 |
rev | line source |
---|---|
8585 | 1 |
2 #include <stdio.h> | |
3 #include <stdlib.h> | |
4 #include <string.h> | |
5 #include <inttypes.h> | |
8591 | 6 #include <unistd.h> |
8585 | 7 |
8 #include "config.h" | |
9 #include "../version.h" | |
10 | |
11 #include "wine/mmreg.h" | |
12 #include "wine/avifmt.h" | |
13 #include "wine/vfw.h" | |
14 | |
15 #include "muxer.h" | |
16 | |
9007
12fc55eb3373
Cleanup of the muxer API, func parameters muxer & muxer_f eliminated.
arpi
parents:
8591
diff
changeset
|
17 muxer_t *muxer_new_muxer(int type,FILE *f){ |
8585 | 18 muxer_t* muxer=malloc(sizeof(muxer_t)); |
19 memset(muxer,0,sizeof(muxer_t)); | |
9007
12fc55eb3373
Cleanup of the muxer API, func parameters muxer & muxer_f eliminated.
arpi
parents:
8591
diff
changeset
|
20 muxer->file = f; |
8585 | 21 switch (type) { |
22 case MUXER_TYPE_MPEG: | |
23 muxer_init_muxer_mpeg(muxer); | |
24 break; | |
25 case MUXER_TYPE_AVI: | |
26 default: | |
27 muxer_init_muxer_avi(muxer); | |
28 } | |
29 return muxer; | |
30 } |