annotate libdirac.h @ 7527:ebdac291453a libavcodec

Remove a few more lines of unneeded code in fill_caches() for MBAFF. Also document why the remaining related part is apparently needed.
author michael
date Sun, 10 Aug 2008 15:39:46 +0000
parents dcb3b40c7b71
children c4a4495715dd
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 /**
df467cebd0d3 Dirac decoding/encoding support via libdirac.
diego
parents:
diff changeset
22 * @file libdirac.h
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
df467cebd0d3 Dirac decoding/encoding support via libdirac.
diego
parents:
diff changeset
26 #ifndef FFMPEG_LIBDIRAC_H
df467cebd0d3 Dirac decoding/encoding support via libdirac.
diego
parents:
diff changeset
27 #define FFMPEG_LIBDIRAC_H
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
6736
56a758caf05c fix checkheaders when libdirac not installed
mru
parents: 6734
diff changeset
31 #ifdef CONFIG_LIBDIRAC
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 */
6734
df467cebd0d3 Dirac decoding/encoding support via libdirac.
diego
parents:
diff changeset
49 #endif /* FFMPEG_LIBDIRAC_H */