annotate libmpcodecs/native/rtjpegn.h @ 36532:2398517e5bda

film: Fix memory leaks in error cases.
author reimar
date Sun, 19 Jan 2014 11:30:05 +0000
parents 0f1b5b68af32
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
29263
0f1b5b68af32 whitespace cosmetics: Remove all trailing whitespace.
diego
parents: 28853
diff changeset
1 /*
3802
bf37d5cd3e6e used by NuppelVideo decoder
alex
parents:
diff changeset
2 RTjpeg (C) Justin Schoeman 1998 (justin@suntiger.ee.up.ac.za)
29263
0f1b5b68af32 whitespace cosmetics: Remove all trailing whitespace.
diego
parents: 28853
diff changeset
3
3802
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
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
bf37d5cd3e6e used by NuppelVideo decoder
alex
parents:
diff changeset
22 */
bf37d5cd3e6e used by NuppelVideo decoder
alex
parents:
diff changeset
23
26761
af8f8254a990 Add missing MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 26304
diff changeset
24 #ifndef MPLAYER_RTJPEGN_H
af8f8254a990 Add missing MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 26304
diff changeset
25 #define MPLAYER_RTJPEGN_H
25867
58ff364dc851 Add multiple inclusion guards.
diego
parents: 21977
diff changeset
26
26147
41652035483c Add necessary header #includes to fix 'make checkheaders'.
diego
parents: 25867
diff changeset
27 #include <stdint.h>
41652035483c Add necessary header #includes to fix 'make checkheaders'.
diego
parents: 25867
diff changeset
28
16653
27b0d49988b2 Fix 100l bugs that break playback on 64 bit systems (like typedefing __u32
reimar
parents: 12687
diff changeset
29 #define __u8 uint8_t
27b0d49988b2 Fix 100l bugs that break playback on 64 bit systems (like typedefing __u32
reimar
parents: 12687
diff changeset
30 #define __u16 uint16_t
27b0d49988b2 Fix 100l bugs that break playback on 64 bit systems (like typedefing __u32
reimar
parents: 12687
diff changeset
31 #define __u32 uint32_t
27b0d49988b2 Fix 100l bugs that break playback on 64 bit systems (like typedefing __u32
reimar
parents: 12687
diff changeset
32 #define __u64 uint64_t
27b0d49988b2 Fix 100l bugs that break playback on 64 bit systems (like typedefing __u32
reimar
parents: 12687
diff changeset
33 #define __s8 int8_t
27b0d49988b2 Fix 100l bugs that break playback on 64 bit systems (like typedefing __u32
reimar
parents: 12687
diff changeset
34 #define __s16 int16_t
27b0d49988b2 Fix 100l bugs that break playback on 64 bit systems (like typedefing __u32
reimar
parents: 12687
diff changeset
35 #define __s32 int32_t
27b0d49988b2 Fix 100l bugs that break playback on 64 bit systems (like typedefing __u32
reimar
parents: 12687
diff changeset
36 #define __s64 int64_t
3802
bf37d5cd3e6e used by NuppelVideo decoder
alex
parents:
diff changeset
37
28847
ebb5a377e3cd Remove useless "extern" in function declarations.
reimar
parents: 26761
diff changeset
38 void RTjpeg_init_compress(__u32 *buf, int width, int height, __u8 Q);
ebb5a377e3cd Remove useless "extern" in function declarations.
reimar
parents: 26761
diff changeset
39 int RTjpeg_compressYUV420(__s8 *sp, unsigned char *bp);
3802
bf37d5cd3e6e used by NuppelVideo decoder
alex
parents:
diff changeset
40
28847
ebb5a377e3cd Remove useless "extern" in function declarations.
reimar
parents: 26761
diff changeset
41 void RTjpeg_init_mcompress(void);
ebb5a377e3cd Remove useless "extern" in function declarations.
reimar
parents: 26761
diff changeset
42 int RTjpeg_mcompressYUV420(__s8 *sp, unsigned char *bp, __u16 lmask, __u16 cmask);
3802
bf37d5cd3e6e used by NuppelVideo decoder
alex
parents:
diff changeset
43
26761
af8f8254a990 Add missing MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 26304
diff changeset
44 #endif /* MPLAYER_RTJPEGN_H */