Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 64808 Details for
Bug 59074
media-libs/libmovtar no use jpeg-mmx libs
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
te0 te1 te2 shiftmask fix
libmovtar-0.1.3-asm.diff (text/plain), 1.37 KB, created by
Michael Cramer
on 2005-07-31 12:39:30 UTC
(
hide
)
Description:
te0 te1 te2 shiftmask fix
Filename:
MIME Type:
Creator:
Michael Cramer
Created:
2005-07-31 12:39:30 UTC
Size:
1.37 KB
patch
obsolete
>--- libmovtar-0.1.3.orig/movtar_play.c 2001-07-13 21:38:03.000000000 +0000 >+++ libmovtar-0.1.3/movtar_play.c 2005-07-31 19:22:08.000000000 +0000 >@@ -141,9 +141,9 @@ > #if defined(__GNUC__) > #define int64 unsigned long long > #endif >-static const int64 te0 = 0x0080008000800080; // -128 << 2 >-static const int64 te1 = 0xe9fa7168e9fa7168; // for cb >-static const int64 te2 = 0x59bad24d59bad24d; // for cr >+static int64 te0 = 0x0080008000800080; // -128 << 2 >+static int64 te1 = 0xe9fa7168e9fa7168; // for cb >+static int64 te2 = 0x59bad24d59bad24d; // for cr > > METHODDEF(void) > ycc_rgb32_convert_mmx (j_decompress_ptr cinfo, >@@ -267,10 +267,15 @@ > static int64 rb16mult = 0x2000000820000008; // mult/Add factor (see intel appnote 553) > static int64 g16mask = 0x0000f8000000f800; // just green remains > static int64 rgb16offset = 6; // shift right after the whole stuff >-static const int64 shiftmask = 0xffff; // shift right after the whole stuff >+static int64 shiftmask = 0xffff; // shift right after the whole stuff > > void calc_rgb16_params(struct SDL_PixelFormat *format) > { >+ shiftmask = 0xffff; >+ te0 = 0x0080008000800080; >+ te1 = 0xe9fa7168e9fa7168; >+ te2 = 0x59bad24d59bad24d; >+ > rb16mask = ((0xff >> format->Rloss) << (16 + format->Rloss)) > | (0xff >> format->Bloss) << format->Bloss; > rb16mask = rb16mask | (rb16mask << 32); // two pixels at once (see default long above)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 59074
:
40198
| 64808 |
64809
|
66437
|
75171