comparison libmpcodecs/ve_rawrgb.c @ 8585:27da710563c2

the long-waited MUXER layer, and new MPEG-PS muxer patch by Andriy N. Gritsenko <andrej@lucky.net>
author arpi
date Fri, 27 Dec 2002 22:43:20 +0000
parents a894e99c1e51
children c671e9adbe22
comparison
equal deleted inserted replaced
8584:2d4328af7ea9 8585:27da710563c2
8 #include "codec-cfg.h" 8 #include "codec-cfg.h"
9 #include "stream.h" 9 #include "stream.h"
10 #include "demuxer.h" 10 #include "demuxer.h"
11 #include "stheader.h" 11 #include "stheader.h"
12 12
13 #include "aviwrite.h" 13 #include "muxer.h"
14 14
15 #include "img_format.h" 15 #include "img_format.h"
16 #include "mp_image.h" 16 #include "mp_image.h"
17 #include "vf.h" 17 #include "vf.h"
18 18
19 extern void mencoder_write_chunk(aviwrite_stream_t *s,int len,unsigned int flags); 19 extern void mencoder_write_chunk(muxer_stream_t *s,int len,unsigned int flags);
20 20
21 //===========================================================================// 21 //===========================================================================//
22 22
23 struct vf_priv_s { 23 struct vf_priv_s {
24 aviwrite_stream_t* mux; 24 muxer_stream_t* mux;
25 }; 25 };
26 #define mux_v (vf->priv->mux) 26 #define mux_v (vf->priv->mux)
27 27
28 static int config(struct vf_instance_s* vf, 28 static int config(struct vf_instance_s* vf,
29 int width, int height, int d_width, int d_height, 29 int width, int height, int d_width, int d_height,
59 vf->control=control; 59 vf->control=control;
60 vf->query_format=query_format; 60 vf->query_format=query_format;
61 vf->put_image=put_image; 61 vf->put_image=put_image;
62 vf->priv=malloc(sizeof(struct vf_priv_s)); 62 vf->priv=malloc(sizeof(struct vf_priv_s));
63 memset(vf->priv,0,sizeof(struct vf_priv_s)); 63 memset(vf->priv,0,sizeof(struct vf_priv_s));
64 vf->priv->mux=(aviwrite_stream_t*)args; 64 vf->priv->mux=(muxer_stream_t*)args;
65 65
66 mux_v->bih=malloc(sizeof(BITMAPINFOHEADER)); 66 mux_v->bih=malloc(sizeof(BITMAPINFOHEADER));
67 mux_v->bih->biSize=sizeof(BITMAPINFOHEADER); 67 mux_v->bih->biSize=sizeof(BITMAPINFOHEADER);
68 mux_v->bih->biWidth=0; 68 mux_v->bih->biWidth=0;
69 mux_v->bih->biHeight=0; 69 mux_v->bih->biHeight=0;