[617118d] | 1 | Submitted By: Jeremy Utley (jeremy@linuxfromscratch.org)
|
---|
| 2 | Date: 2004-05-20
|
---|
| 3 | Initial Package Version: 1.5.4
|
---|
| 4 | Upstream Status: Not Submitted
|
---|
| 5 | Origin: Self Created
|
---|
| 6 | Description: Fixes syntax issues with GCC 3.4
|
---|
| 7 |
|
---|
| 8 | $LastChangedBy: randy $
|
---|
| 9 | $Date: 2004-08-22 09:47:08 -0600 (Sun, 22 Aug 2004) $
|
---|
| 10 |
|
---|
| 11 | diff -uNr libmpeg3-1.5.4/video/output.c
|
---|
| 12 | libmpeg3-1.5.4.jbit/video/output.c
|
---|
| 13 | --- libmpeg3-1.5.4/video/output.c 2003-11-07 13:32:32.000000000 -0800
|
---|
| 14 | +++ libmpeg3-1.5.4.jbit/video/output.c 2004-04-13 12:54:53.756934515 -0700
|
---|
| 15 | @@ -1062,3 +1062,39 @@
|
---|
| 16 | /* Not used */
|
---|
| 17 | return 0;
|
---|
| 18 | }
|
---|
| 19 | +
|
---|
| 20 | +#ifdef HAVE_MMX
|
---|
| 21 | +/*
|
---|
| 22 | + Make sure that these vars get linked
|
---|
| 23 | + For some reason gcc3.4 doesn't link them
|
---|
| 24 | + There's gotta be a better way to do this, this is just a quick hack
|
---|
| 25 | +*/
|
---|
| 26 | +void ___jbit_hack()
|
---|
| 27 | +{
|
---|
| 28 | + void *foo;
|
---|
| 29 | + foo = &mpeg3_MMX_0;
|
---|
| 30 | + foo = mpeg3_MMX_10w;
|
---|
| 31 | + foo = mpeg3_MMX_80w;
|
---|
| 32 | + foo = mpeg3_MMX_00FFw;
|
---|
| 33 | + foo = mpeg3_MMX_Ublucoeff;
|
---|
| 34 | + foo = mpeg3_MMX_Vredcoeff;
|
---|
| 35 | + foo = mpeg3_MMX_Ugrncoeff;
|
---|
| 36 | + foo = mpeg3_MMX_Vgrncoeff;
|
---|
| 37 | + foo = mpeg3_MMX_Ycoeff;
|
---|
| 38 | + foo = mpeg3_MMX_redmask;
|
---|
| 39 | + foo = mpeg3_MMX_grnmask;
|
---|
| 40 | + foo = mpeg3_601_to_rgb;
|
---|
| 41 | +
|
---|
| 42 | + foo = &mpeg3_MMX_U_80;
|
---|
| 43 | + foo = &mpeg3_MMX_V_80;
|
---|
| 44 | + foo = &mpeg3_MMX_U_COEF;
|
---|
| 45 | + foo = &mpeg3_MMX_V_COEF;
|
---|
| 46 | + foo = &mpeg3_MMX_601_Y_COEF;
|
---|
| 47 | + foo = &mpeg3_MMX_601_Y_DIFF;
|
---|
| 48 | +
|
---|
| 49 | + foo = &mpeg3_MMX_U_80_RGB;
|
---|
| 50 | + foo = &mpeg3_MMX_V_80_RGB;
|
---|
| 51 | + foo = &mpeg3_MMX_U_COEF_RGB;
|
---|
| 52 | + foo = &mpeg3_MMX_V_COEF_RGB;
|
---|
| 53 | +}
|
---|
| 54 | +#endif
|
---|
| 55 | diff -uNr libmpeg3-1.5.4/video/reconstruct.c libmpeg3-1.5.4.jbit/video/reconstruct.c
|
---|
| 56 | --- libmpeg3-1.5.4/video/reconstruct.c 2003-10-14 00:54:14.000000000 -0700
|
---|
| 57 | +++ libmpeg3-1.5.4.jbit/video/reconstruct.c 2004-04-13 12:57:23.280261795 -0700
|
---|
| 58 | @@ -1286,4 +1286,16 @@
|
---|
| 59 | return 0;
|
---|
| 60 | }
|
---|
| 61 |
|
---|
| 62 | -
|
---|
| 63 | +#ifdef HAVE_MMX
|
---|
| 64 | +/*
|
---|
| 65 | + Make sure that these vars get linked
|
---|
| 66 | + For some reason gcc3.4 doesn't link them
|
---|
| 67 | + There's gotta be a better way to do this, this is just a quick hack
|
---|
| 68 | +*/
|
---|
| 69 | +void ___jbit_hack_reconstruct()
|
---|
| 70 | +{
|
---|
| 71 | + void *foo;
|
---|
| 72 | + foo = &MASK_AND;
|
---|
| 73 | + foo = &ADD_1;
|
---|
| 74 | +}
|
---|
| 75 | +#endif
|
---|
| 76 | diff -uNr libmpeg3-1.5.4/video/slice.c libmpeg3-1.5.4.jbit/video/slice.c
|
---|
| 77 | --- libmpeg3-1.5.4/video/slice.c 2003-10-14 00:54:14.000000000 -0700
|
---|
| 78 | +++ libmpeg3-1.5.4.jbit/video/slice.c 2004-04-13 12:55:54.710884733 -0700
|
---|
| 79 | @@ -706,3 +706,16 @@
|
---|
| 80 | pthread_mutex_destroy(&(slice->output_lock));
|
---|
| 81 | return 0;
|
---|
| 82 | }
|
---|
| 83 | +
|
---|
| 84 | +#ifdef HAVE_MMX
|
---|
| 85 | +/*
|
---|
| 86 | + Make sure that these vars get linked
|
---|
| 87 | + For some reason gcc3.4 doesn't link them
|
---|
| 88 | + There's gotta be a better way to do this, this is just a quick hack
|
---|
| 89 | +*/
|
---|
| 90 | +void ___jbit_hack_slice()
|
---|
| 91 | +{
|
---|
| 92 | + void *foo;
|
---|
| 93 | + foo = &MMX_128;
|
---|
| 94 | +}
|
---|
| 95 | +#endif
|
---|