Mercurial > mplayer.hg
view divx4_vbr.h @ 17616:92431bc3d014
This patch removes mmap support because it doesn't have any benefit.
Directly accessing the sample buffer makes sense only when the samples
can be constructed in-place. When the samples are just copied from
another buffer (as is the case with libao2 drivers), the code to copy
those samples is just a reimplementation of snd_pcm_writei(), so we
could as well use that function.
Besides, the current mmap code does not work except in the most simple
cases: it claims to support non-interleaved and complex sample formats,
but treats them the same as interleaved formats and writes to the wrong
memory location.
author | cladisch |
---|---|
date | Mon, 13 Feb 2006 11:15:25 +0000 |
parents | f580a7755ac5 |
children |
line wrap: on
line source
// methods from class VbrControl void VbrControl_init_1pass_vbr(int quality, int crispness); int VbrControl_init_2pass_vbr_encoding(const char* filename, int bitrate, double framerate, int crispness, int quality); int VbrControl_init_2pass_vbr_analysis(const char* filename, int quality); void VbrControl_update_1pass_vbr(void); void VbrControl_update_2pass_vbr_encoding(int motion_bits, int texture_bits, int total_bits); void VbrControl_update_2pass_vbr_analysis(int is_key_frame, int motion_bits, int texture_bits, int total_bits, int quant); int VbrControl_get_quant(void); void VbrControl_set_quant(float q); int VbrControl_get_intra(void); short VbrControl_get_drop(void); void VbrControl_close(void);