Replace various Q_* and QT_* defines with TQ_* and TQT_*

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/20/head
Michele Calgaro 1 year ago
parent aa905ebf02
commit b4a60205a6
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -400,7 +400,7 @@ void Paranoia::run()
fn.open( IO_ReadWrite | IO_Truncate );
do {
buf = paranoia_read_limited( p, paranoiaCallback, 3 );
if ( Q_BYTE_ORDER == Q_BIG_ENDIAN ) {
if ( TQ_BYTE_ORDER == TQ_BIG_ENDIAN ) {
for ( i=0; i<len/2; i++)
buf[i] = paraSwap16(buf[i]);
}
@ -458,7 +458,7 @@ void Paranoia::run()
len = CDIO_CD_FRAMESIZE_RAW;
do {
buf = paranoia_read_limited( p, paranoiaCallback, 3 );
if ( Q_BYTE_ORDER == Q_BIG_ENDIAN ) {
if ( TQ_BYTE_ORDER == TQ_BIG_ENDIAN ) {
for ( i=0; i<len/2; i++) {
buf[i] = paraSwap16(buf[i]);
}

@ -1513,15 +1513,15 @@ bool KXineWidget::playDvb()
return true;
}
#ifndef Q_BYTE_ORDER
#error Q_BYTE_ORDER is not defined!
#ifndef TQ_BYTE_ORDER
#error TQ_BYTE_ORDER is not defined!
#endif
#ifndef TQ_LITTLE_ENDIAN
#error TQ_LITTLE_ENDIAN is not defined!
#endif
#if Q_BYTE_ORDER == TQ_LITTLE_ENDIAN
#if TQ_BYTE_ORDER == TQ_LITTLE_ENDIAN
#define rgb2yuv(R,G,B) ((((((66*R+129*G+25*B+128)>>8)+16)<<8)|(((112*R-94*G-18*B+128)>>8)+128))<<8|(((-38*R-74*G+112*B+128)>>8)+128))
#else
#define rgb2yuv(R,G,B) (unsigned int)(((((((-38*R-74*G+112*B+128)>>8)+128)<<8)| (((112*R-94*G-18*B+128)>>8)+128))<<8|(((66*R+129*G+25*B+128)>>8)+16))<<8)
@ -4080,7 +4080,7 @@ uchar* KXineWidget::yv12ToRgb (uint8_t *src_y, uint8_t *src_u, uint8_t *src_v, i
clip_8_bit (g);
clip_8_bit (b);
#if Q_BYTE_ORDER == TQ_LITTLE_ENDIAN
#if TQ_BYTE_ORDER == TQ_LITTLE_ENDIAN
rgb[(i * width + j) * 4 + 0] = b;
rgb[(i * width + j) * 4 + 1] = g;
rgb[(i * width + j) * 4 + 2] = r;

Loading…
Cancel
Save