annotate libdirac.h @ 9449:0bc68f915e8e libavcodec

Support broken avc nal encapsulation. Fixes issue987.
author michael
date Thu, 16 Apr 2009 04:46:44 +0000
parents e9d9d946f213
children acbb86a779b8
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 /**
8718
e9d9d946f213 Use full internal pathname in doxygen @file directives.
diego
parents: 8590
diff changeset
22 * @file libavcodec/libdirac.h
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
6737
dcb3b40c7b71 10l: Unbreak libdirac compilation; CONFIG_LIBDIRAC is defined in config.h, so
diego
parents: 6736
diff changeset
29 #include "config.h"
dcb3b40c7b71 10l: Unbreak libdirac compilation; CONFIG_LIBDIRAC is defined in config.h, so
diego
parents: 6736
diff changeset
30
8590
7a463923ecd1 Change semantic of CONFIG_*, HAVE_* and ARCH_*.
aurel
parents: 7760
diff changeset
31 #if CONFIG_LIBDIRAC
6736
56a758caf05c fix checkheaders when libdirac not installed
mru
parents: 6734
diff changeset
32
6734
df467cebd0d3 Dirac decoding/encoding support via libdirac.
diego
parents:
diff changeset
33 #include "avcodec.h"
df467cebd0d3 Dirac decoding/encoding support via libdirac.
diego
parents:
diff changeset
34 #include <libdirac_common/dirac_types.h>
df467cebd0d3 Dirac decoding/encoding support via libdirac.
diego
parents:
diff changeset
35
df467cebd0d3 Dirac decoding/encoding support via libdirac.
diego
parents:
diff changeset
36 /**
df467cebd0d3 Dirac decoding/encoding support via libdirac.
diego
parents:
diff changeset
37 * Table providing a Dirac chroma format to FFmpeg pixel format mapping.
df467cebd0d3 Dirac decoding/encoding support via libdirac.
diego
parents:
diff changeset
38 */
df467cebd0d3 Dirac decoding/encoding support via libdirac.
diego
parents:
diff changeset
39 static const struct {
df467cebd0d3 Dirac decoding/encoding support via libdirac.
diego
parents:
diff changeset
40 enum PixelFormat ff_pix_fmt;
df467cebd0d3 Dirac decoding/encoding support via libdirac.
diego
parents:
diff changeset
41 dirac_chroma_t dirac_pix_fmt;
df467cebd0d3 Dirac decoding/encoding support via libdirac.
diego
parents:
diff changeset
42 } ffmpeg_dirac_pixel_format_map[] = {
df467cebd0d3 Dirac decoding/encoding support via libdirac.
diego
parents:
diff changeset
43 { PIX_FMT_YUV420P, format420 },
df467cebd0d3 Dirac decoding/encoding support via libdirac.
diego
parents:
diff changeset
44 { PIX_FMT_YUV422P, format422 },
df467cebd0d3 Dirac decoding/encoding support via libdirac.
diego
parents:
diff changeset
45 { PIX_FMT_YUV444P, format444 },
df467cebd0d3 Dirac decoding/encoding support via libdirac.
diego
parents:
diff changeset
46 };
df467cebd0d3 Dirac decoding/encoding support via libdirac.
diego
parents:
diff changeset
47
6736
56a758caf05c fix checkheaders when libdirac not installed
mru
parents: 6734
diff changeset
48 #endif /* CONFIG_LIBDIRAC */
7760
c4a4495715dd Globally rename the header inclusion guard names.
stefano
parents: 6737
diff changeset
49 #endif /* AVCODEC_LIBDIRAC_H */