Mercurial > mplayer.hg
annotate divx4_vbr.h @ 9278:caea8ed36b48
The reason why mplayer crashes (in some cases) when using x11
output and -wid (>0) parameter is this:
Mplayer by default creates a colormap using DirectColor visual. If the
window given to mplayer uses TrueColor visual there will be an error
when mplayer sets the colormap for the window. This patch
modifies mplayer to use TrueColor visual if the window given to mplayer
uses TrueColor. Another solution is to make sure that the window given to
mplayer is created using DirectColor visual if it is supported by the
display.
Jouni Tulkki <jitulkki@cc.hut.fi>
author | arpi |
---|---|
date | Tue, 04 Feb 2003 18:31:44 +0000 |
parents | 0e6e13261d79 |
children | f580a7755ac5 |
rev | line source |
---|---|
2642 | 1 |
2 // methods from class VbrControl | |
3 | |
4 void VbrControl_init_1pass_vbr(int quality, int crispness); | |
5 int VbrControl_init_2pass_vbr_encoding(const char* filename, int bitrate, double framerate, int crispness, int quality); | |
6 int VbrControl_init_2pass_vbr_analysis(const char* filename, int quality); | |
7 | |
8 void VbrControl_update_1pass_vbr(); | |
9 void VbrControl_update_2pass_vbr_encoding(int motion_bits, int texture_bits, int total_bits); | |
10 void VbrControl_update_2pass_vbr_analysis(int is_key_frame, int motion_bits, int texture_bits, int total_bits, int quant); | |
11 | |
12 int VbrControl_get_quant(); | |
13 void VbrControl_set_quant(float q); | |
14 int VbrControl_get_intra(); | |
15 short VbrControl_get_drop(); | |
16 void VbrControl_close(); | |
17 |