mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

85 lines
2.2 KiB

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