Mercurial > mplayer.hg
annotate libmpdemux/muxer.c @ 13519:6bf63a7524d8
Sync with 1.759:
Documentation of x264 3-pass mode, and fixes on lavc's *_mask
options, pointed out by Jiri Heryan
author | gpoirier |
---|---|
date | Fri, 01 Oct 2004 15:53:09 +0000 |
parents | 0db4a3a5b01d |
children | 70c446099f40 |
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 | |
12341
0db4a3a5b01d
removed loader/ dependancy, imported some files from g2, also used patches from Dominik Mierzejewski
alex
parents:
12016
diff
changeset
|
11 #include "aviheader.h" |
0db4a3a5b01d
removed loader/ dependancy, imported some files from g2, also used patches from Dominik Mierzejewski
alex
parents:
12016
diff
changeset
|
12 #include "ms_hdr.h" |
8585 | 13 |
14 #include "muxer.h" | |
15 | |
9007
12fc55eb3373
Cleanup of the muxer API, func parameters muxer & muxer_f eliminated.
arpi
parents:
8591
diff
changeset
|
16 muxer_t *muxer_new_muxer(int type,FILE *f){ |
8585 | 17 muxer_t* muxer=malloc(sizeof(muxer_t)); |
18 memset(muxer,0,sizeof(muxer_t)); | |
9007
12fc55eb3373
Cleanup of the muxer API, func parameters muxer & muxer_f eliminated.
arpi
parents:
8591
diff
changeset
|
19 muxer->file = f; |
8585 | 20 switch (type) { |
21 case MUXER_TYPE_MPEG: | |
22 muxer_init_muxer_mpeg(muxer); | |
23 break; | |
12016 | 24 case MUXER_TYPE_RAWVIDEO: |
25 muxer_init_muxer_rawvideo(muxer); | |
26 break; | |
8585 | 27 case MUXER_TYPE_AVI: |
28 default: | |
29 muxer_init_muxer_avi(muxer); | |
30 } | |
31 return muxer; | |
32 } |