|
|
@ -1513,15 +1513,15 @@ bool KXineWidget::playDvb()
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef Q_BYTE_ORDER
|
|
|
|
#ifndef TQ_BYTE_ORDER
|
|
|
|
#error Q_BYTE_ORDER is not defined!
|
|
|
|
#error TQ_BYTE_ORDER is not defined!
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef TQ_LITTLE_ENDIAN
|
|
|
|
#ifndef TQ_LITTLE_ENDIAN
|
|
|
|
#error TQ_LITTLE_ENDIAN is not defined!
|
|
|
|
#error TQ_LITTLE_ENDIAN is not defined!
|
|
|
|
#endif
|
|
|
|
#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))
|
|
|
|
#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
|
|
|
|
#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)
|
|
|
|
#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 (g);
|
|
|
|
clip_8_bit (b);
|
|
|
|
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 + 0] = b;
|
|
|
|
rgb[(i * width + j) * 4 + 1] = g;
|
|
|
|
rgb[(i * width + j) * 4 + 1] = g;
|
|
|
|
rgb[(i * width + j) * 4 + 2] = r;
|
|
|
|
rgb[(i * width + j) * 4 + 2] = r;
|
|
|
|