annotate libdirac.h @ 12201:c4b53914f286 libavcodec

vp8: add do { } while(0) around XCHG() macro to avoid confusing if/else This is the correct solution to the warning "fixed" in the previous commit.
author mru
date Tue, 20 Jul 2010 17:54:25 +0000
parents 7dd2a45249a9
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6734
df467cebd0d3 Dirac decoding/encoding support via libdirac.
diego
parents:
diff changeset
1 /*
df467cebd0d3 Dirac decoding/encoding support via libdirac.
diego
parents:
diff changeset
2 * Copyright (c) 2008 BBC, Anuradha Suraparaju <asuraparaju at gmail dot com >
df467cebd0d3 Dirac decoding/encoding support via libdirac.
diego
parents:
diff changeset
3 *
df467cebd0d3 Dirac decoding/encoding support via libdirac.
diego
parents:
diff changeset
4 * This file is part of FFmpeg.
df467cebd0d3 Dirac decoding/encoding support via libdirac.
diego
parents:
diff changeset
5 *
df467cebd0d3 Dirac decoding/encoding support via libdirac.
diego
parents:
diff changeset
6 * FFmpeg is free software; you can redistribute it and/or
df467cebd0d3 Dirac decoding/encoding support via libdirac.
diego
parents:
diff changeset
7 * modify it under the terms of the GNU Lesser General Public
df467cebd0d3 Dirac decoding/encoding support via libdirac.
diego
parents:
diff changeset
8 * License as published by the Free Software Foundation; either
df467cebd0d3 Dirac decoding/encoding support via libdirac.
diego
parents:
diff changeset
9 * version 2.1 of the License, or (at your option) any later version.
df467cebd0d3 Dirac decoding/encoding support via libdirac.
diego
parents:
diff changeset
10 *
df467cebd0d3 Dirac decoding/encoding support via libdirac.
diego
parents:
diff changeset
11 * FFmpeg is distributed in the hope that it will be useful,
df467cebd0d3 Dirac decoding/encoding support via libdirac.
diego
parents:
diff changeset
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
df467cebd0d3 Dirac decoding/encoding support via libdirac.
diego
parents:
diff changeset
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
df467cebd0d3 Dirac decoding/encoding support via libdirac.
diego
parents:
diff changeset
14 * Lesser General Public License for more details.
df467cebd0d3 Dirac decoding/encoding support via libdirac.
diego
parents:
diff changeset
15 *
df467cebd0d3 Dirac decoding/encoding support via libdirac.
diego
parents:
diff changeset
16 * You should have received a copy of the GNU Lesser General Public
df467cebd0d3 Dirac decoding/encoding support via libdirac.
diego
parents:
diff changeset
17 * License along with FFmpeg; if not, write to the Free Software
df467cebd0d3 Dirac decoding/encoding support via libdirac.
diego
parents:
diff changeset
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
df467cebd0d3 Dirac decoding/encoding support via libdirac.
diego
parents:
diff changeset
19 */
df467cebd0d3 Dirac decoding/encoding support via libdirac.
diego
parents:
diff changeset
20
df467cebd0d3 Dirac decoding/encoding support via libdirac.
diego
parents:
diff changeset
21 /**
11644
7dd2a45249a9 Remove explicit filename from Doxygen @file commands.
diego
parents: 10041
diff changeset
22 * @file
6734
df467cebd0d3 Dirac decoding/encoding support via libdirac.
diego
parents:
diff changeset
23 * data structures common to libdiracenc.c and libdiracdec.c
df467cebd0d3 Dirac decoding/encoding support via libdirac.
diego
parents:
diff changeset
24 */
df467cebd0d3 Dirac decoding/encoding support via libdirac.
diego
parents:
diff changeset
25
7760
c4a4495715dd Globally rename the header inclusion guard names.
stefano
parents: 6737
diff changeset
26 #ifndef AVCODEC_LIBDIRAC_H
c4a4495715dd Globally rename the header inclusion guard names.
stefano
parents: 6737
diff changeset
27 #define AVCODEC_LIBDIRAC_H
6734
df467cebd0d3 Dirac decoding/encoding support via libdirac.
diego
parents:
diff changeset
28
df467cebd0d3 Dirac decoding/encoding support via libdirac.
diego
parents:
diff changeset
29 #include "avcodec.h"
df467cebd0d3 Dirac decoding/encoding support via libdirac.
diego
parents:
diff changeset
30 #include <libdirac_common/dirac_types.h>
df467cebd0d3 Dirac decoding/encoding support via libdirac.
diego
parents:
diff changeset
31
df467cebd0d3 Dirac decoding/encoding support via libdirac.
diego
parents:
diff changeset
32 /**
df467cebd0d3 Dirac decoding/encoding support via libdirac.
diego
parents:
diff changeset
33 * Table providing a Dirac chroma format to FFmpeg pixel format mapping.
df467cebd0d3 Dirac decoding/encoding support via libdirac.
diego
parents:
diff changeset
34 */
df467cebd0d3 Dirac decoding/encoding support via libdirac.
diego
parents:
diff changeset
35 static const struct {
df467cebd0d3 Dirac decoding/encoding support via libdirac.
diego
parents:
diff changeset
36 enum PixelFormat ff_pix_fmt;
df467cebd0d3 Dirac decoding/encoding support via libdirac.
diego
parents:
diff changeset
37 dirac_chroma_t dirac_pix_fmt;
df467cebd0d3 Dirac decoding/encoding support via libdirac.
diego
parents:
diff changeset
38 } ffmpeg_dirac_pixel_format_map[] = {
df467cebd0d3 Dirac decoding/encoding support via libdirac.
diego
parents:
diff changeset
39 { PIX_FMT_YUV420P, format420 },
df467cebd0d3 Dirac decoding/encoding support via libdirac.
diego
parents:
diff changeset
40 { PIX_FMT_YUV422P, format422 },
df467cebd0d3 Dirac decoding/encoding support via libdirac.
diego
parents:
diff changeset
41 { PIX_FMT_YUV444P, format444 },
df467cebd0d3 Dirac decoding/encoding support via libdirac.
diego
parents:
diff changeset
42 };
df467cebd0d3 Dirac decoding/encoding support via libdirac.
diego
parents:
diff changeset
43
7760
c4a4495715dd Globally rename the header inclusion guard names.
stefano
parents: 6737
diff changeset
44 #endif /* AVCODEC_LIBDIRAC_H */