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.

104 lines
3.0 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/rene/libmpeg3/gcc34.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2005 Clifford Wolf
  10. #
  11. # This patch file is dual-licensed. It is available under the license the
  12. # patched project is licensed under, as long as it is an OpenSource license
  13. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  14. # of the GNU General Public License as published by the Free Software
  15. # Foundation; either version 2 of the License, or (at your option) any later
  16. # version.
  17. #
  18. # --- ROCK-COPYRIGHT-NOTE-END ---
  19. diff -uNr libmpeg3-1.5.4/video/output.c
  20. libmpeg3-1.5.4.jbit/video/output.c
  21. --- libmpeg3-1.5.4/video/output.c 2003-11-07 13:32:32.000000000 -0800
  22. +++ libmpeg3-1.5.4.jbit/video/output.c 2004-04-13 12:54:53.756934515 -0700
  23. @@ -1062,3 +1062,39 @@
  24. /* Not used */
  25. return 0;
  26. }
  27. +
  28. +#ifdef HAVE_MMX
  29. +/*
  30. +Make sure that these vars get linked
  31. +For some reason gcc3.4 doesn't link them
  32. +There's gotta be a better way to do this, this is just a quick hack
  33. +*/
  34. +void ___jbit_hack()
  35. +{
  36. +void *foo;
  37. +foo = &mpeg3_MMX_0;
  38. +foo = mpeg3_MMX_10w;
  39. +foo = mpeg3_MMX_80w;
  40. +foo = mpeg3_MMX_00FFw;
  41. +foo = mpeg3_MMX_Ublucoeff;
  42. +foo = mpeg3_MMX_Vredcoeff;
  43. +foo = mpeg3_MMX_Ugrncoeff;
  44. +foo = mpeg3_MMX_Vgrncoeff;
  45. +foo = mpeg3_MMX_Ycoeff;
  46. +foo = mpeg3_MMX_redmask;
  47. +foo = mpeg3_MMX_grnmask;
  48. +foo = mpeg3_601_to_rgb;
  49. +
  50. +foo = &mpeg3_MMX_U_80;
  51. +foo = &mpeg3_MMX_V_80;
  52. +foo = &mpeg3_MMX_U_COEF;
  53. +foo = &mpeg3_MMX_V_COEF;
  54. +foo = &mpeg3_MMX_601_Y_COEF;
  55. +foo = &mpeg3_MMX_601_Y_DIFF;
  56. +
  57. +foo = &mpeg3_MMX_U_80_RGB;
  58. +foo = &mpeg3_MMX_V_80_RGB;
  59. +foo = &mpeg3_MMX_U_COEF_RGB;
  60. +foo = &mpeg3_MMX_V_COEF_RGB;
  61. +}
  62. +#endif
  63. diff -uNr libmpeg3-1.5.4/video/reconstruct.c libmpeg3-1.5.4.jbit/video/reconstruct.c
  64. --- libmpeg3-1.5.4/video/reconstruct.c 2003-10-14 00:54:14.000000000 -0700
  65. +++ libmpeg3-1.5.4.jbit/video/reconstruct.c 2004-04-13 12:57:23.280261795 -0700
  66. @@ -1286,4 +1286,16 @@
  67. return 0;
  68. }
  69. -
  70. +#ifdef HAVE_MMX
  71. +/*
  72. + Make sure that these vars get linked
  73. + For some reason gcc3.4 doesn't link them
  74. + There's gotta be a better way to do this, this is just a quick hack
  75. +*/
  76. +void ___jbit_hack_reconstruct()
  77. +{
  78. +void *foo;
  79. +foo = &MASK_AND;
  80. +foo = &ADD_1;
  81. +}
  82. +#endif
  83. diff -uNr libmpeg3-1.5.4/video/slice.c libmpeg3-1.5.4.jbit/video/slice.c
  84. --- libmpeg3-1.5.4/video/slice.c 2003-10-14 00:54:14.000000000 -0700
  85. +++ libmpeg3-1.5.4.jbit/video/slice.c 2004-04-13 12:55:54.710884733 -0700
  86. @@ -706,3 +706,16 @@
  87. pthread_mutex_destroy(&(slice->output_lock));
  88. return 0;
  89. }
  90. +
  91. +#ifdef HAVE_MMX
  92. +/*
  93. + Make sure that these vars get linked
  94. + For some reason gcc3.4 doesn't link them
  95. + There's gotta be a better way to do this, this is just a quick hack
  96. +*/
  97. +void ___jbit_hack_slice()
  98. +{
  99. +void *foo;
  100. +foo = &MMX_128;
  101. +}
  102. +#endif