Mercurial > mplayer.hg
comparison libmpcodecs/ve_libdv.c @ 9014:c671e9adbe22
Cleanup of the muxer API, func parameters muxer & muxer_f eliminated.
patch by Andriy N. Gritsenko <andrej@lucky.net>
author | arpi |
---|---|
date | Sun, 19 Jan 2003 01:48:52 +0000 |
parents | 27da710563c2 |
children | 835822ce4bb1 |
comparison
equal
deleted
inserted
replaced
9013:454ddf1e295f | 9014:c671e9adbe22 |
---|---|
20 #include "img_format.h" | 20 #include "img_format.h" |
21 #include "mp_image.h" | 21 #include "mp_image.h" |
22 #include "vf.h" | 22 #include "vf.h" |
23 | 23 |
24 #include <libdv/dv.h> | 24 #include <libdv/dv.h> |
25 | |
26 extern void mencoder_write_chunk(muxer_stream_t *s,int len,unsigned int flags); | |
27 | 25 |
28 #ifndef DV_WIDTH | 26 #ifndef DV_WIDTH |
29 #define DV_WIDTH 720 | 27 #define DV_WIDTH 720 |
30 #define DV_PAL_HEIGHT 576 | 28 #define DV_PAL_HEIGHT 576 |
31 #define DV_NTSC_HEIGHT 480 | 29 #define DV_NTSC_HEIGHT 480 |
76 | 74 |
77 dv_encode_full_frame(vf->priv->enc, mpi->planes, | 75 dv_encode_full_frame(vf->priv->enc, mpi->planes, |
78 (mpi->flags&MP_IMGFLAG_YUV) ? e_dv_color_yuv : e_dv_color_rgb, | 76 (mpi->flags&MP_IMGFLAG_YUV) ? e_dv_color_yuv : e_dv_color_rgb, |
79 mux_v->buffer); | 77 mux_v->buffer); |
80 | 78 |
81 mencoder_write_chunk(mux_v, 480 * (vf->priv->enc->isPAL ? 300 : 250) , 0x10); | 79 muxer_write_chunk(mux_v, 480 * (vf->priv->enc->isPAL ? 300 : 250) , 0x10); |
82 return 1; | 80 return 1; |
83 } | 81 } |
84 | 82 |
85 //===========================================================================// | 83 //===========================================================================// |
86 | 84 |