summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen de Groot <yngwin@gentoo.org>2008-04-10 12:14:51 +0000
committerBen de Groot <yngwin@gentoo.org>2008-04-10 12:14:51 +0000
commitee51c25524fe7a0a99a5fc6fa72406781a76b678 (patch)
treeb19389a1ca6fbecee84ef48c16fcd7c45d6e6808 /media-video/avidemux/files
parentVersion bump and mark it stable for amd64 wrt #216891. (diff)
downloadhistorical-ee51c25524fe7a0a99a5fc6fa72406781a76b678.tar.gz
historical-ee51c25524fe7a0a99a5fc6fa72406781a76b678.tar.bz2
historical-ee51c25524fe7a0a99a5fc6fa72406781a76b678.zip
media-video/avidemux: adding gcc-4.3 patches, fixes bug 213099
Package-Manager: portage-2.1.5_rc2
Diffstat (limited to 'media-video/avidemux/files')
-rw-r--r--media-video/avidemux/files/avidemux-2.4.1-gcc43-includes.patch92
-rw-r--r--media-video/avidemux/files/avidemux-2.4.1-gcc43-missing-asm-naming.patch133
2 files changed, 225 insertions, 0 deletions
diff --git a/media-video/avidemux/files/avidemux-2.4.1-gcc43-includes.patch b/media-video/avidemux/files/avidemux-2.4.1-gcc43-includes.patch
new file mode 100644
index 000000000000..82090c56fd05
--- /dev/null
+++ b/media-video/avidemux/files/avidemux-2.4.1-gcc43-includes.patch
@@ -0,0 +1,92 @@
+diff -urdH avidemux_2.4.1-orig/avidemux/ADM_libraries/ADM_mplex/inputstrm.cpp avidemux_2.4.1/avidemux/ADM_libraries/ADM_mplex/inputstrm.cpp
+--- avidemux_2.4.1-orig/avidemux/ADM_libraries/ADM_mplex/inputstrm.cpp 2008-03-11 20:55:19.000000000 +0300
++++ avidemux_2.4.1/avidemux/ADM_libraries/ADM_mplex/inputstrm.cpp 2008-03-12 07:15:32.000000000 +0300
+@@ -28,6 +28,8 @@
+ #include "inputstrm.hpp"
+ #include "multiplexor.hpp"
+
++#include <climits>
++
+ MuxStream::MuxStream() : init(false)
+ {
+ }
+diff -urdH avidemux_2.4.1-orig/avidemux/ADM_libraries/ADM_mplex/multiplexor.cpp avidemux_2.4.1/avidemux/ADM_libraries/ADM_mplex/multiplexor.cpp
+--- avidemux_2.4.1-orig/avidemux/ADM_libraries/ADM_mplex/multiplexor.cpp 2008-03-11 20:55:19.000000000 +0300
++++ avidemux_2.4.1/avidemux/ADM_libraries/ADM_mplex/multiplexor.cpp 2008-03-12 07:15:32.000000000 +0300
+@@ -35,7 +35,7 @@
+ #include "zalphastrm.hpp"
+ #endif
+ #include "multiplexor.hpp"
+-
++#include <cstring>
+
+ /****************
+ *
+diff -urdH avidemux_2.4.1-orig/avidemux/ADM_libraries/ADM_mplex/padstrm.cpp avidemux_2.4.1/avidemux/ADM_libraries/ADM_mplex/padstrm.cpp
+--- avidemux_2.4.1-orig/avidemux/ADM_libraries/ADM_mplex/padstrm.cpp 2008-03-11 20:55:19.000000000 +0300
++++ avidemux_2.4.1/avidemux/ADM_libraries/ADM_mplex/padstrm.cpp 2008-03-12 07:15:32.000000000 +0300
+@@ -26,6 +26,7 @@
+
+ #include "padstrm.hpp"
+
++#include <cstring>
+
+
+ //
+diff -urdH avidemux_2.4.1-orig/avidemux/ADM_script/DirectorySearch.h avidemux_2.4.1/avidemux/ADM_script/DirectorySearch.h
+--- avidemux_2.4.1-orig/avidemux/ADM_script/DirectorySearch.h 2008-03-11 20:55:19.000000000 +0300
++++ avidemux_2.4.1/avidemux/ADM_script/DirectorySearch.h 2008-03-12 07:15:32.000000000 +0300
+@@ -23,6 +23,7 @@
+ #include <dirent.h>
+ #endif
+ #include "StdFile.h"
++#include <cstring>
+
+ // create a non file bit for unix
+ #define _A_NONFILE 0x03
+diff -urdH avidemux_2.4.1-orig/avidemux/ADM_userInterfaces/ADM_GTK/ADM_toolkit_gtk/ADM_jogshuttle.cpp avidemux_2.4.1/avidemux/ADM_userInterfaces/ADM_GTK/ADM_toolkit_gtk/ADM_jogshuttle.cpp
+--- avidemux_2.4.1-orig/avidemux/ADM_userInterfaces/ADM_GTK/ADM_toolkit_gtk/ADM_jogshuttle.cpp 2008-03-11 20:55:19.000000000 +0300
++++ avidemux_2.4.1/avidemux/ADM_userInterfaces/ADM_GTK/ADM_toolkit_gtk/ADM_jogshuttle.cpp 2008-03-12 07:15:32.000000000 +0300
+@@ -41,6 +41,8 @@
+ #include "config.h"
+
+ #ifdef USE_JOG
++#include <cstdlib>
++#include <cstring>
+ #include <string>
+ using std::string;
+ #include <iostream>
+diff -urdH avidemux_2.4.1-orig/avidemux/ADM_userInterfaces/ADM_GTK/ADM_toolkit_gtk/mediactrl.h avidemux_2.4.1/avidemux/ADM_userInterfaces/ADM_GTK/ADM_toolkit_gtk/mediactrl.h
+--- avidemux_2.4.1-orig/avidemux/ADM_userInterfaces/ADM_GTK/ADM_toolkit_gtk/mediactrl.h 2008-03-11 20:55:19.000000000 +0300
++++ avidemux_2.4.1/avidemux/ADM_userInterfaces/ADM_GTK/ADM_toolkit_gtk/mediactrl.h 2008-03-12 07:15:32.000000000 +0300
+@@ -97,6 +97,8 @@
+ extern "C" {
+ #endif
+
++#include <time.h>
++
+ struct media_ctrl_device;
+
+ struct media_ctrl_key
+diff -urdH avidemux_2.4.1-orig/avidemux/ADM_videoFilter/ADM_guiResize.cpp avidemux_2.4.1/avidemux/ADM_videoFilter/ADM_guiResize.cpp
+--- avidemux_2.4.1-orig/avidemux/ADM_videoFilter/ADM_guiResize.cpp 2008-03-11 20:55:19.000000000 +0300
++++ avidemux_2.4.1/avidemux/ADM_videoFilter/ADM_guiResize.cpp 2008-03-12 07:15:32.000000000 +0300
+@@ -41,7 +41,7 @@
+ #include <ADM_assert.h>
+
+
+-static int getResizeParams(uint32_t * w, uint32_t * h, uint32_t * algo,uint32_t w,uint32_t h,uint32_t fps);
++static int getResizeParams(uint32_t * w, uint32_t * h, uint32_t * algo, uint32_t ow, uint32_t oh, uint32_t fps);
+
+
+ extern uint8_t DIA_resize(uint32_t *width,uint32_t *height,uint32_t *algo,uint32_t originalw, uint32_t originalh,uint32_t fps1000);
+diff -urdH avidemux_2.4.1-orig/avidemux/gui_action.cpp avidemux_2.4.1/avidemux/gui_action.cpp
+--- avidemux_2.4.1-orig/avidemux/gui_action.cpp 2008-03-11 20:55:19.000000000 +0300
++++ avidemux_2.4.1/avidemux/gui_action.cpp 2008-03-12 07:28:27.000000000 +0300
+@@ -1,4 +1,5 @@
+-#include <stdio.h>
++#include <cstdio>
++#include <cstring>
+ #include <vector>
+ using std::vector;
+ #include <utility>
diff --git a/media-video/avidemux/files/avidemux-2.4.1-gcc43-missing-asm-naming.patch b/media-video/avidemux/files/avidemux-2.4.1-gcc43-missing-asm-naming.patch
new file mode 100644
index 000000000000..6cb8bd742c3c
--- /dev/null
+++ b/media-video/avidemux/files/avidemux-2.4.1-gcc43-missing-asm-naming.patch
@@ -0,0 +1,133 @@
+diff -urdH avidemux_2.4.1-gcc43-inlines/avidemux/ADM_libraries/ADM_utilities/ADM_imageUtils.cpp avidemux_2.4.1/avidemux/ADM_libraries/ADM_utilities/ADM_imageUtils.cpp
+--- avidemux_2.4.1-gcc43-inlines/avidemux/ADM_libraries/ADM_utilities/ADM_imageUtils.cpp 2008-03-12 07:47:59.000000000 +0300
++++ avidemux_2.4.1/avidemux/ADM_libraries/ADM_utilities/ADM_imageUtils.cpp 2008-03-13 04:43:33.000000000 +0300
+@@ -150,7 +150,7 @@
+ return df;
+ }
+ #if defined( ARCH_X86 ) || defined (ARCH_X86_64)
+-static uint64_t noise64;
++static uint64_t noise64 asm("noise64");
+ static uint32_t computeDiffMMX(uint8_t *s1,uint8_t *s2,uint32_t noise,uint32_t l)
+ {
+ uint32_t df=0;
+diff -urdH avidemux_2.4.1-gcc43-inlines/avidemux/ADM_video/ADM_interlaced.cpp avidemux_2.4.1/avidemux/ADM_video/ADM_interlaced.cpp
+--- avidemux_2.4.1-gcc43-inlines/avidemux/ADM_video/ADM_interlaced.cpp 2008-03-12 07:48:00.000000000 +0300
++++ avidemux_2.4.1/avidemux/ADM_video/ADM_interlaced.cpp 2008-03-13 04:59:01.000000000 +0300
+@@ -73,13 +73,13 @@
+ #if (defined( ARCH_X86) || defined(ARCH_X86_64)) && defined(ASM_ILACING)
+
+ static uint32_t ADMVideo_interlaceCount_MMX( uint8_t *src ,uint32_t w, uint32_t h);
+-static uint8_t *_l_p=NULL;
+-static uint8_t *_l_c=NULL;
+-static uint8_t *_l_n=NULL;
++static uint8_t *_l_p asm("_l_p") =NULL;
++static uint8_t *_l_c asm("_l_c") =NULL;
++static uint8_t *_l_n asm("_l_n") =NULL;
+
+-static int64_t _l_h;
++static int64_t _l_h asm("_l_h");
+
+-static mmx_t _lthresh,_added,_total,_lwrd;
++static mmx_t _lthresh, _added, _total asm("_total"), _lwrd;
+ static mmx_t _l255;
+ static mmx_t _l0;
+
+diff -urdH avidemux_2.4.1-gcc43-inlines/avidemux/ADM_videoFilter/ADM_vidBlend.cpp avidemux_2.4.1/avidemux/ADM_videoFilter/ADM_vidBlend.cpp
+--- avidemux_2.4.1-gcc43-inlines/avidemux/ADM_videoFilter/ADM_vidBlend.cpp 2008-03-12 07:48:00.000000000 +0300
++++ avidemux_2.4.1/avidemux/ADM_videoFilter/ADM_vidBlend.cpp 2008-03-13 05:02:49.000000000 +0300
+@@ -40,15 +40,15 @@
+ #include "admmangle.h"
+
+ #ifdef ARCH_X86_64
+-static int64_t _l_w,_l_h;
++static int64_t _l_w asm("_l_w"), _l_h asm("_l_h");
+ #else
+- static int32_t _l_w,_l_h;
++ static int32_t _l_w asm("_l_w"), _l_h asm("_l_h");
+ #endif
+- static uint8_t *_l_p,*_l_c,*_l_n;
+- static uint8_t *_l_e,*_l_e2;
++ static uint8_t *_l_p asm("_l_p"), *_l_c asm("_l_c"), *_l_n asm("_l_n");
++ static uint8_t *_l_e asm("_l_e"), *_l_e2 asm("_l_e2");
+ #define EXPAND(x) (x)+((x)<<16)+((x)<<32) +((x)<<48)
+-static uint64_t __attribute__((used)) _mmTHRESH1=EXPAND((uint64_t )THRES1);
+-static uint64_t __attribute__((used)) full_ones=0xFFFFFFFFFFFFFFFFLL;
++static uint64_t __attribute__((used)) _mmTHRESH1 asm("_mmTHRESH1") =EXPAND((uint64_t )THRES1);
++static uint64_t __attribute__((used)) full_ones asm("full_ones") =0xFFFFFFFFFFFFFFFFLL;
+
+
+ static void myBlendASM(void);
+diff -urdH avidemux_2.4.1-gcc43-inlines/avidemux/ADM_videoFilter/ADM_vidDeintASM.cpp avidemux_2.4.1/avidemux/ADM_videoFilter/ADM_vidDeintASM.cpp
+--- avidemux_2.4.1-gcc43-inlines/avidemux/ADM_videoFilter/ADM_vidDeintASM.cpp 2008-03-12 07:48:00.000000000 +0300
++++ avidemux_2.4.1/avidemux/ADM_videoFilter/ADM_vidDeintASM.cpp 2008-03-13 04:38:50.000000000 +0300
+@@ -45,9 +45,9 @@
+
+ void myDeintASM(void);
+
+- static int32_t _l_w,_l_h,_l_all;
+- static uint8_t *_l_p,*_l_c,*_l_n;
+- static uint8_t *_l_e,*_l_e2;
++ static int32_t _l_w,_l_h, _l_all asm("_l_all");
++ static uint8_t *_l_p asm("_l_p"), *_l_c asm("_l_c"), *_l_n asm("_l_n");
++ static uint8_t *_l_e asm("_l_e"), *_l_e2 asm("_l_e2");
+ #define EXPAND(x) (x)+((x)<<16)+((x)<<32) +((x)<<48)
+ static mmx_t _mmTHRESH1;
+ static mmx_t _mmTHRESH2;
+diff -urdH avidemux_2.4.1-gcc43-inlines/avidemux/ADM_videoFilter/ADM_vidFlux.cpp avidemux_2.4.1/avidemux/ADM_videoFilter/ADM_vidFlux.cpp
+--- avidemux_2.4.1-gcc43-inlines/avidemux/ADM_videoFilter/ADM_vidFlux.cpp 2008-03-12 07:48:00.000000000 +0300
++++ avidemux_2.4.1/avidemux/ADM_videoFilter/ADM_vidFlux.cpp 2008-03-13 06:06:57.000000000 +0300
+@@ -44,8 +44,8 @@
+
+ #include "ADM_assert.h"
+
+-static int16_t scaletab[16];
+-static uint64_t scaletab_MMX[65536];
++static int16_t scaletab[16] asm("scaletab");
++static uint64_t scaletab_MMX[65536] asm("scaletab_MMX");
+
+ void initScaleTab( void )
+ {
+@@ -72,18 +72,20 @@
+ //#define ASM_FLUX
+ BUILD_CREATE(fluxsmooth_create,ADMVideoFlux);
+
+-static uint64_t spat_thresh ASM_CONST =0LL;
+-static uint64_t temp_thresh ASM_CONST =0LL;
+-static uint64_t ASM_CONST _l_counter_init,_l_indexer,_l_prev_pels,_l_next_pels;
+-static long int _l_src_pitch ASM_CONST =0;
+-static long int _l_dst_pitch ASM_CONST =0;
+-static int _l_xmax ASM_CONST=0;
++static uint64_t spat_thresh asm("spat_thresh") ASM_CONST =0LL;
++static uint64_t temp_thresh asm("temp_thresh") ASM_CONST =0LL;
++static uint64_t ASM_CONST _l_counter_init asm("_l_counter_init"),
++ _l_indexer asm("_l_indexer"), _l_prev_pels asm("_l_prev_pels"),
++ _l_next_pels asm("_l_next_pels");
++static long int _l_src_pitch asm("_l_src_pitch") ASM_CONST =0;
++static long int _l_dst_pitch asm("_l_dst_pitch") ASM_CONST =0;
++static int _l_xmax asm("_l_xmax") ASM_CONST=0;
+
+-static int ycnt;
+-static uint8_t * _l_currp;
+-static uint8_t * _l_prevp;
+-static uint8_t * _l_nextp;
+-static uint8_t * _l_destp;
++static int ycnt asm("ycnt");
++static uint8_t * _l_currp asm("_l_currp");
++static uint8_t * _l_prevp asm("_l_prevp");
++static uint8_t * _l_nextp asm("_l_nextp");
++static uint8_t * _l_destp asm("_l_destp");
+
+
+ static uint32_t size;
+diff -urdH avidemux_2.4.1-gcc43-inlines/avidemux/ADM_videoFilter/ADM_vidResampleFPS.cpp avidemux_2.4.1/avidemux/ADM_videoFilter/ADM_vidResampleFPS.cpp
+--- avidemux_2.4.1-gcc43-inlines/avidemux/ADM_videoFilter/ADM_vidResampleFPS.cpp 2008-03-12 07:48:00.000000000 +0300
++++ avidemux_2.4.1/avidemux/ADM_videoFilter/ADM_vidResampleFPS.cpp 2008-03-13 04:45:37.000000000 +0300
+@@ -174,7 +174,7 @@
+ return 1;
+ }
+ #if (defined( ARCH_X86) || defined(ARCH_X86_64))
+-static uint64_t low,high;
++static uint64_t low asm("low"), high asm("high");
+ static void blendMMX(uint8_t *src, uint8_t *src2, uint8_t *dst, uint8_t alpha, uint8_t beta,uint32_t count)
+ {
+ uint32_t left=count&3;