annotate pnm.h @ 12235:e08d65897115 libavcodec

VP8: clear DCT blocks in iDCT instead of using clear_blocks. ~0.3% faster overall.
author darkshikari
date Fri, 23 Jul 2010 00:07:16 +0000
parents d6860312274c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4978
95934eef9589 move pnm parser in its own file
aurel
parents:
diff changeset
1 /*
95934eef9589 move pnm parser in its own file
aurel
parents:
diff changeset
2 * PNM image format
8629
04423b2f6e0b cosmetics: Remove pointless period after copyright statement non-sentences.
diego
parents: 7760
diff changeset
3 * Copyright (c) 2002, 2003 Fabrice Bellard
4978
95934eef9589 move pnm parser in its own file
aurel
parents:
diff changeset
4 *
95934eef9589 move pnm parser in its own file
aurel
parents:
diff changeset
5 * This file is part of FFmpeg.
95934eef9589 move pnm parser in its own file
aurel
parents:
diff changeset
6 *
95934eef9589 move pnm parser in its own file
aurel
parents:
diff changeset
7 * FFmpeg is free software; you can redistribute it and/or
95934eef9589 move pnm parser in its own file
aurel
parents:
diff changeset
8 * modify it under the terms of the GNU Lesser General Public
95934eef9589 move pnm parser in its own file
aurel
parents:
diff changeset
9 * License as published by the Free Software Foundation; either
95934eef9589 move pnm parser in its own file
aurel
parents:
diff changeset
10 * version 2.1 of the License, or (at your option) any later version.
95934eef9589 move pnm parser in its own file
aurel
parents:
diff changeset
11 *
95934eef9589 move pnm parser in its own file
aurel
parents:
diff changeset
12 * FFmpeg is distributed in the hope that it will be useful,
95934eef9589 move pnm parser in its own file
aurel
parents:
diff changeset
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
95934eef9589 move pnm parser in its own file
aurel
parents:
diff changeset
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
95934eef9589 move pnm parser in its own file
aurel
parents:
diff changeset
15 * Lesser General Public License for more details.
95934eef9589 move pnm parser in its own file
aurel
parents:
diff changeset
16 *
95934eef9589 move pnm parser in its own file
aurel
parents:
diff changeset
17 * You should have received a copy of the GNU Lesser General Public
95934eef9589 move pnm parser in its own file
aurel
parents:
diff changeset
18 * License along with FFmpeg; if not, write to the Free Software
95934eef9589 move pnm parser in its own file
aurel
parents:
diff changeset
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
95934eef9589 move pnm parser in its own file
aurel
parents:
diff changeset
20 */
95934eef9589 move pnm parser in its own file
aurel
parents:
diff changeset
21
7760
c4a4495715dd Globally rename the header inclusion guard names.
stefano
parents: 5830
diff changeset
22 #ifndef AVCODEC_PNM_H
c4a4495715dd Globally rename the header inclusion guard names.
stefano
parents: 5830
diff changeset
23 #define AVCODEC_PNM_H
4978
95934eef9589 move pnm parser in its own file
aurel
parents:
diff changeset
24
95934eef9589 move pnm parser in its own file
aurel
parents:
diff changeset
25 #include "avcodec.h"
95934eef9589 move pnm parser in its own file
aurel
parents:
diff changeset
26
95934eef9589 move pnm parser in its own file
aurel
parents:
diff changeset
27 typedef struct PNMContext {
95934eef9589 move pnm parser in its own file
aurel
parents:
diff changeset
28 uint8_t *bytestream;
95934eef9589 move pnm parser in its own file
aurel
parents:
diff changeset
29 uint8_t *bytestream_start;
95934eef9589 move pnm parser in its own file
aurel
parents:
diff changeset
30 uint8_t *bytestream_end;
95934eef9589 move pnm parser in its own file
aurel
parents:
diff changeset
31 AVFrame picture;
95934eef9589 move pnm parser in its own file
aurel
parents:
diff changeset
32 int maxval; ///< maximum value of a pixel
10612
d6860312274c Support ASCII pnms.
michael
parents: 10460
diff changeset
33 int type;
4978
95934eef9589 move pnm parser in its own file
aurel
parents:
diff changeset
34 } PNMContext;
95934eef9589 move pnm parser in its own file
aurel
parents:
diff changeset
35
95934eef9589 move pnm parser in its own file
aurel
parents:
diff changeset
36 int ff_pnm_decode_header(AVCodecContext *avctx, PNMContext * const s);
10460
059265d3cc65 Move PNM init/end functions to the PNM common code.
diego
parents: 8629
diff changeset
37 av_cold int ff_pnm_end(AVCodecContext *avctx);
059265d3cc65 Move PNM init/end functions to the PNM common code.
diego
parents: 8629
diff changeset
38 av_cold int ff_pnm_init(AVCodecContext *avctx);
4978
95934eef9589 move pnm parser in its own file
aurel
parents:
diff changeset
39
7760
c4a4495715dd Globally rename the header inclusion guard names.
stefano
parents: 5830
diff changeset
40 #endif /* AVCODEC_PNM_H */