]> git.sesse.net Git - vlc/blob - extras/contrib/src/Patches/x264-20050624-win32.patch
Contribs: remove dead patches
[vlc] / extras / contrib / src / Patches / x264-20050624-win32.patch
1 Index: common/i386/dct-a.asm
2 ===================================================================
3 --- common/i386/dct-a.asm       (revision 270)
4 +++ common/i386/dct-a.asm       (working copy)
5 @@ -125,27 +125,6 @@
6  ;%endmacro
7  
8  ;=============================================================================
9 -; Local Data (Read Only)
10 -;=============================================================================
11 -
12 -%ifdef FORMAT_COFF
13 -SECTION .rodata data
14 -%else
15 -SECTION .rodata data align=16
16 -%endif
17 -
18 -;-----------------------------------------------------------------------------
19 -; Various memory constants (trigonometric values or rounding values)
20 -;-----------------------------------------------------------------------------
21 -
22 -ALIGN 16
23 -x264_mmx_1:
24 -  dw 1, 1, 1, 1
25 -
26 -x264_mmx_32:
27 -  dw 32, 32, 32, 32
28 -
29 -;=============================================================================
30  ; Code
31  ;=============================================================================
32  
33 @@ -311,3 +290,23 @@
34  
35      ret
36  
37 +;=============================================================================
38 +; Local Data (Read Only)
39 +;=============================================================================
40 +
41 +%ifdef FORMAT_COFF
42 +SECTION .rodata data
43 +%else
44 +SECTION .rodata data align=16
45 +%endif
46 +
47 +;-----------------------------------------------------------------------------
48 +; Various memory constants (trigonometric values or rounding values)
49 +;-----------------------------------------------------------------------------
50 +
51 +ALIGN 16
52 +x264_mmx_1:
53 +  dw 1, 1, 1, 1
54 +
55 +x264_mmx_32:
56 +  dw 32, 32, 32, 32
57 Index: common/i386/mc-a.asm
58 ===================================================================
59 --- common/i386/mc-a.asm        (revision 270)
60 +++ common/i386/mc-a.asm        (working copy)
61 @@ -46,22 +46,6 @@
62  %endmacro
63  
64  ;=============================================================================
65 -; Local Data (Read Only)
66 -;=============================================================================
67 -
68 -%ifdef FORMAT_COFF
69 -SECTION .rodata data
70 -%else
71 -SECTION .rodata data align=16
72 -%endif
73 -
74 -;-----------------------------------------------------------------------------
75 -; Various memory constants (trigonometric values or rounding values)
76 -;-----------------------------------------------------------------------------
77 -
78 -ALIGN 16
79 -
80 -;=============================================================================
81  ; Code
82  ;=============================================================================
83  
84 @@ -487,3 +471,20 @@
85  .finish
86      pop     edi
87      ret
88 +
89 +;=============================================================================
90 +; Local Data (Read Only)
91 +;=============================================================================
92 +
93 +%ifdef FORMAT_COFF
94 +SECTION .rodata data
95 +%else
96 +SECTION .rodata data align=16
97 +%endif
98 +
99 +;-----------------------------------------------------------------------------
100 +; Various memory constants (trigonometric values or rounding values)
101 +;-----------------------------------------------------------------------------
102 +
103 +ALIGN 16
104 +
105 Index: common/i386/mc-a2.asm
106 ===================================================================
107 --- common/i386/mc-a2.asm       (revision 270)
108 +++ common/i386/mc-a2.asm       (working copy)
109 @@ -33,22 +33,6 @@
110      %endif
111  %endmacro
112  
113 -;=============================================================================
114 -; Read only data
115 -;=============================================================================
116 -
117 -SECTION .rodata data align=16
118 -
119 -ALIGN 16
120 -mmx_dw_one:
121 -    times 4 dw 16
122 -mmx_dd_one:
123 -    times 2 dd 512
124 -mmx_dw_20:
125 -    times 4 dw 20
126 -mmx_dw_5:
127 -    times 4 dw -5
128 -
129  %assign twidth  0
130  %assign theight 4
131  %assign tdstp1  8
132 @@ -60,7 +44,6 @@
133  %assign toffset 32
134  %assign tbuffer 36
135  
136 -
137  ;=============================================================================
138  ; Macros
139  ;=============================================================================
140 @@ -375,3 +358,23 @@
141      pop         edi
142  
143      ret
144 +
145 +;=============================================================================
146 +; Read only data
147 +;=============================================================================
148 +
149 +%ifdef FORMAT_COFF
150 +SECTION .rodata data
151 +%else
152 +SECTION .rodata data align=16
153 +%endif
154 +
155 +ALIGN 16
156 +mmx_dw_one:
157 +    times 4 dw 16
158 +mmx_dd_one:
159 +    times 2 dd 512
160 +mmx_dw_20:
161 +    times 4 dw 20
162 +mmx_dw_5:
163 +    times 4 dw -5
164 Index: build/cygwin/Makefile
165 ===================================================================
166 --- build/cygwin/Makefile       (revision 270)
167 +++ build/cygwin/Makefile       (working copy)
168 @@ -7,6 +7,8 @@
169  # $Id: Makefile,v 1.4 2004/06/18 02:00:40 chenm001 Exp $
170  ##############################################################################
171  
172 +CC=i586-mingw32msvc-gcc
173 +
174  # Current dir
175  DIR_CUR=$(shell pwd)
176  
177 @@ -18,7 +20,7 @@
178  # Sources
179  SRC_C= common/mc.c common/predict.c common/pixel.c common/macroblock.c \
180         common/frame.c common/dct.c common/cpu.c common/cabac.c \
181 -       common/common.c common/mdate.c common/csp.c \
182 +       common/common.c common/mdate.c common/csp.c common/set.c \
183         encoder/analyse.c encoder/me.c encoder/ratecontrol.c \
184         encoder/set.c encoder/macroblock.c encoder/cabac.c encoder/cavlc.c \
185         encoder/encoder.c encoder/eval.c \
186 @@ -33,7 +35,7 @@
187  ##############################################################################
188  # PFLAGS
189  ##############################################################################
190 -PFLAGS=-DARCH_X86 -DHAVE_MMXEXT -UHAVE_SSE2
191 +PFLAGS=-DHAVE_PTHREAD -DARCH_X86 -DHAVE_MMXEXT -UHAVE_SSE2
192  
193  ##############################################################################
194  # CFLAGS
195 @@ -107,7 +109,7 @@
196  libx264.a: $(DIR_BUILD) $(OBJECTS)
197         @echo " L: $(@F)"
198         @cd $(DIR_BUILD) && \
199 -       ar rc libx264.a $(OBJECTS) && \
200 +       i586-mingw32msvc-ar rc libx264.a $(OBJECTS) && \
201         cp -f libx264.a $(DIR_SRC)
202  
203  x264.exe: $(DIR_BUILD) $(OBJECTS) x264.obj