annotate RTjpegN.h @ 4362:7ef67ffa9274

preinit usage
author nick
date Sat, 26 Jan 2002 19:12:49 +0000
parents bf37d5cd3e6e
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3802
bf37d5cd3e6e used by NuppelVideo decoder
alex
parents:
diff changeset
1 /*
bf37d5cd3e6e used by NuppelVideo decoder
alex
parents:
diff changeset
2 RTjpeg (C) Justin Schoeman 1998 (justin@suntiger.ee.up.ac.za)
bf37d5cd3e6e used by NuppelVideo decoder
alex
parents:
diff changeset
3
bf37d5cd3e6e used by NuppelVideo decoder
alex
parents:
diff changeset
4 With modifications by:
bf37d5cd3e6e used by NuppelVideo decoder
alex
parents:
diff changeset
5 (c) 1998, 1999 by Joerg Walter <trouble@moes.pmnet.uni-oldenburg.de>
bf37d5cd3e6e used by NuppelVideo decoder
alex
parents:
diff changeset
6 and
bf37d5cd3e6e used by NuppelVideo decoder
alex
parents:
diff changeset
7 (c) 1999 by Wim Taymans <wim.taymans@tvd.be>
bf37d5cd3e6e used by NuppelVideo decoder
alex
parents:
diff changeset
8
bf37d5cd3e6e used by NuppelVideo decoder
alex
parents:
diff changeset
9 This program is free software; you can redistribute it and/or modify
bf37d5cd3e6e used by NuppelVideo decoder
alex
parents:
diff changeset
10 it under the terms of the GNU General Public License as published by
bf37d5cd3e6e used by NuppelVideo decoder
alex
parents:
diff changeset
11 the Free Software Foundation; either version 2 of the License, or
bf37d5cd3e6e used by NuppelVideo decoder
alex
parents:
diff changeset
12 (at your option) any later version.
bf37d5cd3e6e used by NuppelVideo decoder
alex
parents:
diff changeset
13
bf37d5cd3e6e used by NuppelVideo decoder
alex
parents:
diff changeset
14 This program is distributed in the hope that it will be useful,
bf37d5cd3e6e used by NuppelVideo decoder
alex
parents:
diff changeset
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
bf37d5cd3e6e used by NuppelVideo decoder
alex
parents:
diff changeset
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
bf37d5cd3e6e used by NuppelVideo decoder
alex
parents:
diff changeset
17 GNU General Public License for more details.
bf37d5cd3e6e used by NuppelVideo decoder
alex
parents:
diff changeset
18
bf37d5cd3e6e used by NuppelVideo decoder
alex
parents:
diff changeset
19 You should have received a copy of the GNU General Public License
bf37d5cd3e6e used by NuppelVideo decoder
alex
parents:
diff changeset
20 along with this program; if not, write to the Free Software
bf37d5cd3e6e used by NuppelVideo decoder
alex
parents:
diff changeset
21 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
bf37d5cd3e6e used by NuppelVideo decoder
alex
parents:
diff changeset
22
bf37d5cd3e6e used by NuppelVideo decoder
alex
parents:
diff changeset
23 */
bf37d5cd3e6e used by NuppelVideo decoder
alex
parents:
diff changeset
24
bf37d5cd3e6e used by NuppelVideo decoder
alex
parents:
diff changeset
25 #ifndef _I386_TYPES_H
bf37d5cd3e6e used by NuppelVideo decoder
alex
parents:
diff changeset
26 typedef unsigned char __u8;
bf37d5cd3e6e used by NuppelVideo decoder
alex
parents:
diff changeset
27 typedef unsigned short __u16;
bf37d5cd3e6e used by NuppelVideo decoder
alex
parents:
diff changeset
28 typedef unsigned long __u32;
bf37d5cd3e6e used by NuppelVideo decoder
alex
parents:
diff changeset
29 typedef unsigned long long __u64;
bf37d5cd3e6e used by NuppelVideo decoder
alex
parents:
diff changeset
30 typedef signed char __s8;
bf37d5cd3e6e used by NuppelVideo decoder
alex
parents:
diff changeset
31 typedef signed short __s16;
bf37d5cd3e6e used by NuppelVideo decoder
alex
parents:
diff changeset
32 typedef signed long __s32;
bf37d5cd3e6e used by NuppelVideo decoder
alex
parents:
diff changeset
33 #endif
bf37d5cd3e6e used by NuppelVideo decoder
alex
parents:
diff changeset
34
bf37d5cd3e6e used by NuppelVideo decoder
alex
parents:
diff changeset
35 extern void RTjpeg_init_Q(__u8 Q);
bf37d5cd3e6e used by NuppelVideo decoder
alex
parents:
diff changeset
36 extern void RTjpeg_init_compress(long unsigned int *buf, int width, int height, __u8 Q);
bf37d5cd3e6e used by NuppelVideo decoder
alex
parents:
diff changeset
37 extern void RTjpeg_init_decompress(long unsigned int *buf, int width, int height);
bf37d5cd3e6e used by NuppelVideo decoder
alex
parents:
diff changeset
38 extern int RTjpeg_compressYUV420(__s8 *sp, unsigned char *bp);
bf37d5cd3e6e used by NuppelVideo decoder
alex
parents:
diff changeset
39 extern int RTjpeg_compressYUV422(__s8 *sp, unsigned char *bp);
bf37d5cd3e6e used by NuppelVideo decoder
alex
parents:
diff changeset
40 extern void RTjpeg_decompressYUV420(__s8 *sp, __u8 *bp);
bf37d5cd3e6e used by NuppelVideo decoder
alex
parents:
diff changeset
41 extern void RTjpeg_decompressYUV422(__s8 *sp, __u8 *bp);
bf37d5cd3e6e used by NuppelVideo decoder
alex
parents:
diff changeset
42 extern int RTjpeg_compress8(__s8 *sp, unsigned char *bp);
bf37d5cd3e6e used by NuppelVideo decoder
alex
parents:
diff changeset
43 extern void RTjpeg_decompress8(__s8 *sp, __u8 *bp);
bf37d5cd3e6e used by NuppelVideo decoder
alex
parents:
diff changeset
44
bf37d5cd3e6e used by NuppelVideo decoder
alex
parents:
diff changeset
45 extern void RTjpeg_init_mcompress(void);
bf37d5cd3e6e used by NuppelVideo decoder
alex
parents:
diff changeset
46 extern int RTjpeg_mcompressYUV420(__s8 *sp, unsigned char *bp, __u16 lmask, __u16 cmask);
bf37d5cd3e6e used by NuppelVideo decoder
alex
parents:
diff changeset
47 extern int RTjpeg_mcompressYUV422(__s8 *sp, unsigned char *bp, __u16 lmask, __u16 cmask);
bf37d5cd3e6e used by NuppelVideo decoder
alex
parents:
diff changeset
48 extern int RTjpeg_mcompress8(__s8 *sp, unsigned char *bp, __u16 lmask);
bf37d5cd3e6e used by NuppelVideo decoder
alex
parents:
diff changeset
49 extern void RTjpeg_set_test(int i);
bf37d5cd3e6e used by NuppelVideo decoder
alex
parents:
diff changeset
50
bf37d5cd3e6e used by NuppelVideo decoder
alex
parents:
diff changeset
51 extern void RTjpeg_yuv420rgb(__u8 *buf, __u8 *rgb, int stride);
bf37d5cd3e6e used by NuppelVideo decoder
alex
parents:
diff changeset
52 extern void RTjpeg_yuv422rgb(__u8 *buf, __u8 *rgb, int stride);
bf37d5cd3e6e used by NuppelVideo decoder
alex
parents:
diff changeset
53 extern void RTjpeg_yuvrgb8(__u8 *buf, __u8 *rgb, int stride);
bf37d5cd3e6e used by NuppelVideo decoder
alex
parents:
diff changeset
54 extern void RTjpeg_yuvrgb16(__u8 *buf, __u8 *rgb, int stride);
bf37d5cd3e6e used by NuppelVideo decoder
alex
parents:
diff changeset
55 extern void RTjpeg_yuvrgb24(__u8 *buf, __u8 *rgb, int stride);
bf37d5cd3e6e used by NuppelVideo decoder
alex
parents:
diff changeset
56 extern void RTjpeg_yuvrgb32(__u8 *buf, __u8 *rgb, int stride);
bf37d5cd3e6e used by NuppelVideo decoder
alex
parents:
diff changeset
57
bf37d5cd3e6e used by NuppelVideo decoder
alex
parents:
diff changeset
58