view divx4_vbr.h @ 10621:9f4af7d95d87

this small patch allows to compile the file libmpdemux/tvi_v4l.c properly, when the Linux is patched with the V4L2 patch, which automatically includes <linux/videodev2.h> when you include <linux/videodev.h>. It is necessary then to prevent <linux/time.h> from including (by defining the _LINUX_TIME_H macro) in order to resolve some collisions and it is also necessary to prevent the defining of "struct v4l2_capability" and "VIDIOC_QUERYCAP" in libmpdemux/tvi_v4l.c, when they are allready defined in the <linux/videodev2.h>. Patch by Martin Drab <drab@kepler.fjfi.cvut.cz>, checked by Arpi.
author diego
date Fri, 15 Aug 2003 15:25:55 +0000
parents 0e6e13261d79
children f580a7755ac5
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 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 VbrControl_set_quant(float q);
	int VbrControl_get_intra();
	short VbrControl_get_drop();
	void VbrControl_close();