Mercurial > mplayer.hg
annotate libaf/equalizer.h @ 9046:13b7ad16f278
This patch should fix the display problem with 4bpp and 8bpp modes.
The problem was that the new drawing method assumes a linear
framebuffer, which is not available in those modes. This can be worked
around by using the old drawing method, which is what this patch does.
The old method can be forced, by using the "old" driver option.
This patch also enables linear addressing, since it improves write speed
to video memory considerably. The mentioned problem:
"it is not compatable with vga_draw* for some cards"
Is a bug in svgalib, which I think should be fixed in recent svgalib
versions. If someone sees this problem, please report to svgalib
maintainer (that's me).
patch by Matan Ziv-Av. matan@svgalib.org
author | arpi |
---|---|
date | Mon, 20 Jan 2003 21:33:11 +0000 |
parents | d1afa3b8a773 |
children | 14090f7300a8 |
rev | line source |
---|---|
8077 | 1 /*============================================================================= |
2 // | |
3 // This software has been released under the terms of the GNU Public | |
4 // license. See http://www.gnu.org/copyleft/gpl.html for details. | |
5 // | |
6 // Copyright 2002 Anders Johansson ajh@atri.curtin.edu.au | |
7 // | |
8 //============================================================================= | |
9 */ | |
10 | |
11 /* Equalizer plugin header file defines struct used for setting or | |
12 getting the gain of a specific channel and frequency */ | |
13 | |
14 typedef struct equalizer_s | |
15 { | |
16 float gain; // Gain in dB -15 - 15 | |
17 int channel; // Channel number 0 - 5 | |
18 int band; // Frequency band 0 - 9 | |
19 }equalizer_t; | |
20 | |
21 /* The different frequency bands are: | |
22 nr. center frequency | |
23 0 31.25 Hz | |
24 1 62.50 Hz | |
25 2 125.0 Hz | |
26 3 250.0 Hz | |
27 4 500.0 Hz | |
28 5 1.000 kHz | |
29 6 2.000 kHz | |
30 7 4.000 kHz | |
31 8 8.000 kHz | |
32 9 16.00 kHz | |
33 */ |