mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-25 15:36:42 +00:00
fixed rest of warning for gcc 3 in /gst.
Original commit message from CVS: fixed rest of warning for gcc 3 in /gst. fixed some Makefiles: s/-m486/-mcpu=i486/ disabled mpegaudioparse plugin. What good is this rotten code for anyway?
This commit is contained in:
parent
0e102b69f9
commit
e7ac0652b0
1 changed files with 6 additions and 4 deletions
|
@ -147,10 +147,11 @@ static void synaescope_coreGo(void) {
|
||||||
do {
|
do {
|
||||||
/*Bytewize version was: *(ptr++) -= *ptr+(*ptr>>1)>>4; */
|
/*Bytewize version was: *(ptr++) -= *ptr+(*ptr>>1)>>4; */
|
||||||
if (*ptr)
|
if (*ptr)
|
||||||
|
{
|
||||||
if (*ptr & 0xf0f0f0f0)
|
if (*ptr & 0xf0f0f0f0)
|
||||||
|
{
|
||||||
*ptr = *ptr - ((*ptr & 0xf0f0f0f0) >> 4) - ((*ptr & 0xe0e0e0e0) >> 5);
|
*ptr = *ptr - ((*ptr & 0xf0f0f0f0) >> 4) - ((*ptr & 0xe0e0e0e0) >> 5);
|
||||||
else {
|
} else {
|
||||||
*ptr = (*ptr * 14 >> 4) & 0x0f0f0f0f;
|
*ptr = (*ptr * 14 >> 4) & 0x0f0f0f0f;
|
||||||
/*Should be 29/32 to be consistent. Who cares. This is totally */
|
/*Should be 29/32 to be consistent. Who cares. This is totally */
|
||||||
/* hacked anyway. */
|
/* hacked anyway. */
|
||||||
|
@ -160,12 +161,13 @@ static void synaescope_coreGo(void) {
|
||||||
/*subptr[2] = (int)subptr[0] * 29 / 32; */
|
/*subptr[2] = (int)subptr[0] * 29 / 32; */
|
||||||
/*subptr[3] = (int)subptr[0] * 29 / 32; */
|
/*subptr[3] = (int)subptr[0] * 29 / 32; */
|
||||||
}
|
}
|
||||||
|
}
|
||||||
ptr++;
|
ptr++;
|
||||||
} while(ptr < end);
|
} while(ptr < end);
|
||||||
|
|
||||||
heightFactor = FFT_BUFFER_SIZE/2 / syn_height + 1;
|
heightFactor = FFT_BUFFER_SIZE/2 / syn_height + 1;
|
||||||
actualHeight = FFT_BUFFER_SIZE/2 / heightFactor;
|
actualHeight = FFT_BUFFER_SIZE/2 / heightFactor;
|
||||||
heightAdd = syn_height + actualHeight >> 1;
|
heightAdd = (syn_height + actualHeight) >> 1;
|
||||||
|
|
||||||
/* Correct for window size */
|
/* Correct for window size */
|
||||||
brightFactor2 = (brightFactor/65536.0/FFT_BUFFER_SIZE)*
|
brightFactor2 = (brightFactor/65536.0/FFT_BUFFER_SIZE)*
|
||||||
|
|
Loading…
Reference in a new issue