]> git.pld-linux.org Git - packages/NuppelVideo.git/blame - NuppelVideo-nonx86.patch
- tabs in preamble
[packages/NuppelVideo.git] / NuppelVideo-nonx86.patch
CommitLineData
a38d7c85
JB
1--- NuppelVideo-0.52a/yuv2rgb_mmx.c.orig Thu Mar 15 04:29:11 2001
2+++ NuppelVideo-0.52a/yuv2rgb_mmx.c Thu Oct 30 12:10:00 2003
3@@ -28,13 +28,15 @@
4 #include <stdio.h>
5 #include <stdlib.h>
6
7+#include "yuv2rgb.h"
8+
9+#ifdef MMX
10+
11 #include "mmx.h"
12 //#include "libmpeg2/mpeg2.h"
13 //#include "libmpeg2/mpeg2_internal.h"
14 #include <inttypes.h>
15
16-#include "yuv2rgb.h"
17-
18 /* hope these constant values are cache line aligned */
19 uint64_t mmx_80w = 0x0080008000800080;
20 uint64_t mmx_10w = 0x1010101010101010;
21@@ -399,6 +401,8 @@
22 __asm__ ("emms\n\t");
23 }
24
25+#endif
26+
27 yuv2rgb_fun yuv2rgb_init_mmx (int bpp, int mode)
28 {
29 // if (bpp == 15 || bpp == 16) {
30--- NuppelVideo-0.52a/areaDeinterlace.c.orig Thu Mar 15 04:29:11 2001
31+++ NuppelVideo-0.52a/areaDeinterlace.c Thu Oct 30 12:10:56 2003
32@@ -8,7 +8,7 @@
33 /* licensed under the GNU Public License (GPL) v2 */
34
35 #include <stdlib.h>
36-
37+#include <string.h>
38
39 typedef struct MyFilterData
40 {
41--- NuppelVideo-0.52a/resample.c.orig Sun Jul 1 21:05:53 2001
42+++ NuppelVideo-0.52a/resample.c Thu Oct 30 12:15:08 2003
43@@ -210,7 +210,6 @@
44 resample_t r = (resample_t) effp->priv;
45 LONG Xoff, gcdrate;
46 int i;
47- extern long st_gcd(P2(long a,long b));
48
49 r->Factor = (double)effp->outinfo.rate / (double)effp->ininfo.rate;
50
51--- NuppelVideo-0.52a/RTjpegN.h.orig Thu Mar 15 04:29:11 2001
52+++ NuppelVideo-0.52a/RTjpegN.h Thu Oct 30 12:27:05 2003
53@@ -22,7 +22,8 @@
54
55 */
56
57-#ifndef _I386_TYPES_H
58+#include <linux/types.h>
59+#if 0
60 typedef unsigned char __u8;
61 typedef unsigned short __u16;
62 typedef unsigned long __u32;
63@@ -33,8 +34,8 @@
64 #endif
65
66 extern void RTjpeg_init_Q(__u8 Q);
67-extern void RTjpeg_init_compress(long unsigned int *buf, int width, int height, __u8 Q);
68-extern void RTjpeg_init_decompress(long unsigned int *buf, int width, int height);
69+extern void RTjpeg_init_compress(__u32 *buf, int width, int height, __u8 Q);
70+extern void RTjpeg_init_decompress(__u32 *buf, int width, int height);
71 extern int RTjpeg_compressYUV420(__s8 *sp, unsigned char *bp);
72 extern int RTjpeg_compressYUV422(__s8 *sp, unsigned char *bp);
73 extern void RTjpeg_decompressYUV420(__s8 *sp, __u8 *bp);
74--- NuppelVideo-0.52a/nuvrec.c.orig Wed Jul 4 23:59:58 2001
75+++ NuppelVideo-0.52a/nuvrec.c Thu Oct 30 12:38:53 2003
76@@ -31,6 +31,7 @@
77 #include <linux/videodev.h>
78 #include <linux/wait.h>
79 #include <errno.h>
80+#include <malloc.h>
81 #include "minilzo.h"
82 #include "RTjpegN.h"
83 #include "nuppelvideo.h"
84@@ -675,8 +676,7 @@
85 audiobuffer[act].sample = act_audio_sample;
86 audiobuffer[act].timecode = tcres;
87
88- memcpy((unsigned char *)((unsigned int)sharedbuffer +
89- (unsigned int)audiobuffer[act].buffer_offset),
90+ memcpy((unsigned char *)sharedbuffer + (ptrdiff_t)audiobuffer[act].buffer_offset,
91 buffer, audio_buffer_size);
92
93 audiobuffer[act].freeToBuffer = 0;
94@@ -699,7 +699,7 @@
95 struct rtfileheader fileheader;
96 struct rtframeheader frameheader;
97 char realfname[255];
98- static unsigned long int tbls[128];
99+ static __u32 tbls[128];
100 static const char finfo[12] = "NuppelVideo";
101 static const char vers[5] = "0.05";
102
103@@ -830,8 +830,7 @@
104 if (videobuffer[act].freeToEncode) {
105 DP("before write frame");
106 // we have at least 1 frame --> encode and write it :-)
107- writeit((unsigned char *)((unsigned int)sharedbuffer +
108- (unsigned int)videobuffer[act].buffer_offset),
109+ writeit((unsigned char *)sharedbuffer + (ptrdiff_t)videobuffer[act].buffer_offset,
110 videobuffer[act].sample,
111 videobuffer[act].timecode);
112 DP("after write frame");
113@@ -850,8 +849,7 @@
114 if (audiobuffer[act_audio_encode].freeToEncode) {
115 DP("before write audio frame");
116 // we have at least 1 frame --> write it :-)
117- writeitaudio((unsigned char *)((unsigned int)sharedbuffer +
118- (unsigned int)audiobuffer[act_audio_encode].buffer_offset),
119+ writeitaudio((unsigned char *)sharedbuffer + (ptrdiff_t)audiobuffer[act_audio_encode].buffer_offset,
120 audiobuffer[act_audio_encode].sample,
121 audiobuffer[act_audio_encode].timecode);
122 DP("after write audio frame");
123@@ -950,8 +948,7 @@
124
125 DP("buffered frame");
126
127- memcpy((unsigned char *)((unsigned int)sharedbuffer +
128- (unsigned int)videobuffer[act].buffer_offset),
129+ memcpy((unsigned char *)sharedbuffer + (ptrdiff_t)videobuffer[act].buffer_offset,
130 buf, video_buffer_size);
131
132 videobuffer[act].freeToBuffer = 0;
133--- NuppelVideo-0.52a/rtjpeg_plugin.c.orig Tue Jul 3 15:34:02 2001
134+++ NuppelVideo-0.52a/rtjpeg_plugin.c Thu Oct 30 12:40:46 2003
135@@ -58,7 +58,7 @@
136
137 int rtjpeg_open(char *tplorg)
138 {
139- unsigned long int tbls[128];
140+ __u32 tbls[128];
141 struct rtframeheader frameheader;
142 struct stat fstatistics;
143 FILE *editfile;
This page took 0.094288 seconds and 4 git commands to generate.