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
12 //#include "libmpeg2/mpeg2.h"
13 //#include "libmpeg2/mpeg2_internal.h"
18 /* hope these constant values are cache line aligned */
19 uint64_t mmx_80w = 0x0080008000800080;
20 uint64_t mmx_10w = 0x1010101010101010;
27 yuv2rgb_fun yuv2rgb_init_mmx (int bpp, int mode)
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
33 /* licensed under the GNU Public License (GPL) v2 */
39 typedef struct MyFilterData
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
44 resample_t r = (resample_t) effp->priv;
47 - extern long st_gcd(P2(long a,long b));
49 r->Factor = (double)effp->outinfo.rate / (double)effp->ininfo.rate;
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
57 -#ifndef _I386_TYPES_H
58 +#include <linux/types.h>
60 typedef unsigned char __u8;
61 typedef unsigned short __u16;
62 typedef unsigned long __u32;
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
77 #include <linux/videodev.h>
78 #include <linux/wait.h>
83 #include "nuppelvideo.h"
85 audiobuffer[act].sample = act_audio_sample;
86 audiobuffer[act].timecode = tcres;
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);
93 audiobuffer[act].freeToBuffer = 0;
95 struct rtfileheader fileheader;
96 struct rtframeheader frameheader;
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";
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");
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");
125 DP("buffered frame");
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);
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
137 int rtjpeg_open(char *tplorg)
139 - unsigned long int tbls[128];
141 struct rtframeheader frameheader;
142 struct stat fstatistics;