Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 49452
Collapse All | Expand All

(-)libmpeg3-1.5.2-orig/video/output.c (-19 / +19 lines)
Lines 6-26 Link Here
6
6
7
static long long mpeg3_MMX_0 = 0L;
7
static long long mpeg3_MMX_0 = 0L;
8
static unsigned long  mpeg3_MMX_10w[]         = {0x00100010, 0x00100010};                     /*dd    00010 0010h, 000100010h */
8
static unsigned long  mpeg3_MMX_10w[]         = {0x00100010, 0x00100010};                     /*dd    00010 0010h, 000100010h */
9
static unsigned long  mpeg3_MMX_80w[]         = {0x00800080, 0x00800080};                     /*dd    00080 0080h, 000800080h */
9
static unsigned long  __attribute__((used)) mpeg3_MMX_80w[]         = {0x00800080, 0x00800080};                     /*dd    00080 0080h, 000800080h */
10
10
11
static unsigned long  mpeg3_MMX_00FFw[]       = {0x00ff00ff, 0x00ff00ff};                     /*dd    000FF 00FFh, 000FF00FFh */
11
static unsigned long  __attribute__((used)) mpeg3_MMX_00FFw[]       = {0x00ff00ff, 0x00ff00ff};                     /*dd    000FF 00FFh, 000FF00FFh */
12
12
13
static unsigned short mpeg3_MMX_Ublucoeff[]   = {0x81, 0x81, 0x81, 0x81};                     /*dd    00081 0081h, 000810081h */
13
static unsigned short __attribute__((used)) mpeg3_MMX_Ublucoeff[]   = {0x81, 0x81, 0x81, 0x81};                     /*dd    00081 0081h, 000810081h */
14
static unsigned short mpeg3_MMX_Vredcoeff[]   = {0x66, 0x66, 0x66, 0x66};                     /*dd    00066 0066h, 000660066h */
14
static unsigned short __attribute__((used)) mpeg3_MMX_Vredcoeff[]   = {0x66, 0x66, 0x66, 0x66};                     /*dd    00066 0066h, 000660066h */
15
15
16
static unsigned short mpeg3_MMX_Ugrncoeff[]   = {0xffe8, 0xffe8, 0xffe8, 0xffe8};             /*dd    0FFE7 FFE7h, 0FFE7FFE7h */
16
static unsigned short __attribute__((used)) mpeg3_MMX_Ugrncoeff[]   = {0xffe8, 0xffe8, 0xffe8, 0xffe8};             /*dd    0FFE7 FFE7h, 0FFE7FFE7h */
17
static unsigned short mpeg3_MMX_Vgrncoeff[]   = {0xffcd, 0xffcd, 0xffcd, 0xffcd};             /*dd    0FFCC FFCCh, 0FFCCFFCCh */
17
static unsigned short __attribute__((used)) mpeg3_MMX_Vgrncoeff[]   = {0xffcd, 0xffcd, 0xffcd, 0xffcd};             /*dd    0FFCC FFCCh, 0FFCCFFCCh */
18
18
19
static unsigned short mpeg3_MMX_Ycoeff[]      = {0x4a, 0x4a, 0x4a, 0x4a};                     /*dd    0004A 004Ah, 0004A004Ah */
19
static unsigned short __attribute__((used)) mpeg3_MMX_Ycoeff[]      = {0x4a, 0x4a, 0x4a, 0x4a};                     /*dd    0004A 004Ah, 0004A004Ah */
20
20
21
static unsigned short mpeg3_MMX_redmask[]     = {0xf800, 0xf800, 0xf800, 0xf800};             /*dd    07c00 7c00h, 07c007c00h */
21
static unsigned short __attribute__((used)) mpeg3_MMX_redmask[]     = {0xf800, 0xf800, 0xf800, 0xf800};             /*dd    07c00 7c00h, 07c007c00h */
22
22
23
static unsigned short mpeg3_MMX_grnmask[]     = {0x7e0, 0x7e0, 0x7e0, 0x7e0};                 /*dd    003e0 03e0h, 003e003e0h */
23
static unsigned short __attribute__((used)) mpeg3_MMX_grnmask[]     = {0x7e0, 0x7e0, 0x7e0, 0x7e0};                 /*dd    003e0 03e0h, 003e003e0h */
24
24
25
static unsigned char mpeg3_601_to_rgb[256];
25
static unsigned char mpeg3_601_to_rgb[256];
26
26
Lines 207-218 Link Here
207
		);
207
		);
208
}
208
}
209
209
210
static unsigned long long  mpeg3_MMX_U_80 = 0x0000008000800000;
210
static unsigned long long  __attribute__((used)) mpeg3_MMX_U_80 = 0x0000008000800000;
211
static unsigned long long  mpeg3_MMX_V_80 = 0x0000000000800080;
211
static unsigned long long  __attribute__((used)) mpeg3_MMX_V_80 = 0x0000000000800080;
212
static long long  mpeg3_MMX_U_COEF        = 0x00000058ffd30000;
212
static long long  __attribute__((used)) mpeg3_MMX_U_COEF        = 0x00000058ffd30000;
213
static long long  mpeg3_MMX_V_COEF        = 0x00000000ffea006f;
213
static long long  __attribute__((used)) mpeg3_MMX_V_COEF        = 0x00000000ffea006f;
214
static long long  mpeg3_MMX_601_Y_COEF    = 0x0000004800480048;
214
static long long  __attribute__((used)) mpeg3_MMX_601_Y_COEF    = 0x0000004800480048;
215
static long long  mpeg3_MMX_601_Y_DIFF    = 0x0000000000000010;
215
static long long  __attribute__((used)) mpeg3_MMX_601_Y_DIFF    = 0x0000000000000010;
216
216
217
inline void mpeg3_bgra32_mmx(unsigned long y, 
217
inline void mpeg3_bgra32_mmx(unsigned long y, 
218
		unsigned long u, 
218
		unsigned long u, 
Lines 297-306 Link Here
297
: "r" (&y), "r" (&u), "r" (&v), "r" (output));
297
: "r" (&y), "r" (&u), "r" (&v), "r" (output));
298
}
298
}
299
299
300
static unsigned long long  mpeg3_MMX_U_80_RGB    = 0x0000000000800080;
300
static unsigned long long  __attribute__((used)) mpeg3_MMX_U_80_RGB    = 0x0000000000800080;
301
static unsigned long long  mpeg3_MMX_V_80_RGB    = 0x0000008000800000;
301
static unsigned long long  __attribute__((used)) mpeg3_MMX_V_80_RGB    = 0x0000008000800000;
302
static long long  mpeg3_MMX_U_COEF_RGB    = 0x00000000ffd30058;
302
static long long  __attribute__((used)) mpeg3_MMX_U_COEF_RGB    = 0x00000000ffd30058;
303
static long long  mpeg3_MMX_V_COEF_RGB    = 0x0000006fffea0000;
303
static long long  __attribute__((used)) mpeg3_MMX_V_COEF_RGB    = 0x0000006fffea0000;
304
304
305
inline void mpeg3_rgba32_mmx(unsigned long y, 
305
inline void mpeg3_rgba32_mmx(unsigned long y, 
306
		unsigned long u, 
306
		unsigned long u, 
(-)libmpeg3-1.5.2-orig/video/reconstruct.c (-2 / +2 lines)
Lines 271-278 Link Here
271
}
271
}
272
272
273
#else  // HAVE_3DNOW
273
#else  // HAVE_3DNOW
274
	static long long ADD_1	=	0x0101010101010101LL;
274
	static long long __attribute__((used)) ADD_1	= 0x0101010101010101LL;
275
	static long long MASK_AND = 0x7f7f7f7f7f7f7f7fLL;
275
	static long long __attribute__((used)) MASK_AND = 0x7f7f7f7f7f7f7f7fLL;
276
#endif
276
#endif
277
277
278
static inline void rec_mmx(unsigned char *s, unsigned char *d, int lx2, int h)
278
static inline void rec_mmx(unsigned char *s, unsigned char *d, int lx2, int h)
(-)libmpeg3-1.5.2-orig/video/slice.c (-1 / +1 lines)
Lines 6-12 Link Here
6
6
7
#define CLIP(x)  ((x) >= 0 ? ((x) < 255 ? (x) : 255) : 0)
7
#define CLIP(x)  ((x) >= 0 ? ((x) < 255 ? (x) : 255) : 0)
8
8
9
static unsigned long long MMX_128 = 0x80008000800080LL;
9
static unsigned long long __attribute__((used)) MMX_128 = 0x80008000800080LL;
10
10
11
int mpeg3_new_slice_buffer(mpeg3_slice_buffer_t *slice_buffer)
11
int mpeg3_new_slice_buffer(mpeg3_slice_buffer_t *slice_buffer)
12
{
12
{

Return to bug 49452