Mercurial > mplayer.hg
annotate libmpcodecs/native/RTjpegN.h @ 25414:5c03a9bdf220
Record screen size and display size in vo_ variables.
author | ulion |
---|---|
date | Mon, 17 Dec 2007 15:49:54 +0000 |
parents | cea0eb833758 |
children | 58ff364dc851 |
rev | line source |
---|---|
3802 | 1 /* |
2 RTjpeg (C) Justin Schoeman 1998 (justin@suntiger.ee.up.ac.za) | |
3 | |
4 With modifications by: | |
5 (c) 1998, 1999 by Joerg Walter <trouble@moes.pmnet.uni-oldenburg.de> | |
6 and | |
7 (c) 1999 by Wim Taymans <wim.taymans@tvd.be> | |
8 | |
9 This program is free software; you can redistribute it and/or modify | |
10 it under the terms of the GNU General Public License as published by | |
11 the Free Software Foundation; either version 2 of the License, or | |
12 (at your option) any later version. | |
13 | |
14 This program is distributed in the hope that it will be useful, | |
15 but WITHOUT ANY WARRANTY; without even the implied warranty of | |
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
17 GNU General Public License for more details. | |
18 | |
19 You should have received a copy of the GNU General Public License | |
20 along with this program; if not, write to the Free Software | |
21977
cea0eb833758
Fix FSF address and otherwise broken license headers.
diego
parents:
16653
diff
changeset
|
21 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
3802 | 22 */ |
23 | |
16653
27b0d49988b2
Fix 100l bugs that break playback on 64 bit systems (like typedefing __u32
reimar
parents:
12687
diff
changeset
|
24 #define __u8 uint8_t |
27b0d49988b2
Fix 100l bugs that break playback on 64 bit systems (like typedefing __u32
reimar
parents:
12687
diff
changeset
|
25 #define __u16 uint16_t |
27b0d49988b2
Fix 100l bugs that break playback on 64 bit systems (like typedefing __u32
reimar
parents:
12687
diff
changeset
|
26 #define __u32 uint32_t |
27b0d49988b2
Fix 100l bugs that break playback on 64 bit systems (like typedefing __u32
reimar
parents:
12687
diff
changeset
|
27 #define __u64 uint64_t |
27b0d49988b2
Fix 100l bugs that break playback on 64 bit systems (like typedefing __u32
reimar
parents:
12687
diff
changeset
|
28 #define __s8 int8_t |
27b0d49988b2
Fix 100l bugs that break playback on 64 bit systems (like typedefing __u32
reimar
parents:
12687
diff
changeset
|
29 #define __s16 int16_t |
27b0d49988b2
Fix 100l bugs that break playback on 64 bit systems (like typedefing __u32
reimar
parents:
12687
diff
changeset
|
30 #define __s32 int32_t |
27b0d49988b2
Fix 100l bugs that break playback on 64 bit systems (like typedefing __u32
reimar
parents:
12687
diff
changeset
|
31 #define __s64 int64_t |
3802 | 32 |
33 extern void RTjpeg_init_Q(__u8 Q); | |
16653
27b0d49988b2
Fix 100l bugs that break playback on 64 bit systems (like typedefing __u32
reimar
parents:
12687
diff
changeset
|
34 extern void RTjpeg_init_compress(__u32 *buf, int width, int height, __u8 Q); |
27b0d49988b2
Fix 100l bugs that break playback on 64 bit systems (like typedefing __u32
reimar
parents:
12687
diff
changeset
|
35 extern void RTjpeg_init_decompress(__u32 *buf, int width, int height); |
3802 | 36 extern int RTjpeg_compressYUV420(__s8 *sp, unsigned char *bp); |
37 extern int RTjpeg_compressYUV422(__s8 *sp, unsigned char *bp); | |
38 extern void RTjpeg_decompressYUV420(__s8 *sp, __u8 *bp); | |
39 extern void RTjpeg_decompressYUV422(__s8 *sp, __u8 *bp); | |
40 extern int RTjpeg_compress8(__s8 *sp, unsigned char *bp); | |
41 extern void RTjpeg_decompress8(__s8 *sp, __u8 *bp); | |
42 | |
43 extern void RTjpeg_init_mcompress(void); | |
44 extern int RTjpeg_mcompressYUV420(__s8 *sp, unsigned char *bp, __u16 lmask, __u16 cmask); | |
45 extern int RTjpeg_mcompressYUV422(__s8 *sp, unsigned char *bp, __u16 lmask, __u16 cmask); | |
46 extern int RTjpeg_mcompress8(__s8 *sp, unsigned char *bp, __u16 lmask); | |
47 extern void RTjpeg_set_test(int i); | |
48 | |
49 extern void RTjpeg_yuv420rgb(__u8 *buf, __u8 *rgb, int stride); | |
50 extern void RTjpeg_yuv422rgb(__u8 *buf, __u8 *rgb, int stride); | |
51 extern void RTjpeg_yuvrgb8(__u8 *buf, __u8 *rgb, int stride); | |
52 extern void RTjpeg_yuvrgb16(__u8 *buf, __u8 *rgb, int stride); | |
53 extern void RTjpeg_yuvrgb24(__u8 *buf, __u8 *rgb, int stride); | |
54 extern void RTjpeg_yuvrgb32(__u8 *buf, __u8 *rgb, int stride); | |
55 | |
56 |