annotate mpegaudiodecheader.h @ 5226:65bffcc5571a libavcodec

Precompute a chroma_qp table with index offset for each pps, this saves speed for the upcoming secondqp fix. Patch by Andreas ªÓman % andreas A olebyn P nu % Original thread: Date: Jun 26, 2007 8:48 PM subject: [FFmpeg-devel] Color corruption and seeking errors with H264 disc sources
author gpoirier
date Fri, 06 Jul 2007 07:58:08 +0000
parents b908c67063c8
children 1d83e9c34641
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5050
a5f6fbc9fa66 loosen dependencies over mpegaudiodec
aurel
parents:
diff changeset
1 /*
a5f6fbc9fa66 loosen dependencies over mpegaudiodec
aurel
parents:
diff changeset
2 * MPEG Audio header decoder
a5f6fbc9fa66 loosen dependencies over mpegaudiodec
aurel
parents:
diff changeset
3 * Copyright (c) 2001, 2002 Fabrice Bellard.
a5f6fbc9fa66 loosen dependencies over mpegaudiodec
aurel
parents:
diff changeset
4 *
a5f6fbc9fa66 loosen dependencies over mpegaudiodec
aurel
parents:
diff changeset
5 * This file is part of FFmpeg.
a5f6fbc9fa66 loosen dependencies over mpegaudiodec
aurel
parents:
diff changeset
6 *
a5f6fbc9fa66 loosen dependencies over mpegaudiodec
aurel
parents:
diff changeset
7 * FFmpeg is free software; you can redistribute it and/or
a5f6fbc9fa66 loosen dependencies over mpegaudiodec
aurel
parents:
diff changeset
8 * modify it under the terms of the GNU Lesser General Public
a5f6fbc9fa66 loosen dependencies over mpegaudiodec
aurel
parents:
diff changeset
9 * License as published by the Free Software Foundation; either
a5f6fbc9fa66 loosen dependencies over mpegaudiodec
aurel
parents:
diff changeset
10 * version 2.1 of the License, or (at your option) any later version.
a5f6fbc9fa66 loosen dependencies over mpegaudiodec
aurel
parents:
diff changeset
11 *
a5f6fbc9fa66 loosen dependencies over mpegaudiodec
aurel
parents:
diff changeset
12 * FFmpeg is distributed in the hope that it will be useful,
a5f6fbc9fa66 loosen dependencies over mpegaudiodec
aurel
parents:
diff changeset
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
a5f6fbc9fa66 loosen dependencies over mpegaudiodec
aurel
parents:
diff changeset
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
a5f6fbc9fa66 loosen dependencies over mpegaudiodec
aurel
parents:
diff changeset
15 * Lesser General Public License for more details.
a5f6fbc9fa66 loosen dependencies over mpegaudiodec
aurel
parents:
diff changeset
16 *
a5f6fbc9fa66 loosen dependencies over mpegaudiodec
aurel
parents:
diff changeset
17 * You should have received a copy of the GNU Lesser General Public
a5f6fbc9fa66 loosen dependencies over mpegaudiodec
aurel
parents:
diff changeset
18 * License along with FFmpeg; if not, write to the Free Software
a5f6fbc9fa66 loosen dependencies over mpegaudiodec
aurel
parents:
diff changeset
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
a5f6fbc9fa66 loosen dependencies over mpegaudiodec
aurel
parents:
diff changeset
20 */
a5f6fbc9fa66 loosen dependencies over mpegaudiodec
aurel
parents:
diff changeset
21
a5f6fbc9fa66 loosen dependencies over mpegaudiodec
aurel
parents:
diff changeset
22 /**
a5f6fbc9fa66 loosen dependencies over mpegaudiodec
aurel
parents:
diff changeset
23 * @file mpegaudiodecheader.c
a5f6fbc9fa66 loosen dependencies over mpegaudiodec
aurel
parents:
diff changeset
24 * MPEG Audio header decoder.
a5f6fbc9fa66 loosen dependencies over mpegaudiodec
aurel
parents:
diff changeset
25 */
a5f6fbc9fa66 loosen dependencies over mpegaudiodec
aurel
parents:
diff changeset
26
a5f6fbc9fa66 loosen dependencies over mpegaudiodec
aurel
parents:
diff changeset
27 #ifndef MPEGAUDIODECHEADER_H
a5f6fbc9fa66 loosen dependencies over mpegaudiodec
aurel
parents:
diff changeset
28 #define MPEGAUDIODECHEADER_H
a5f6fbc9fa66 loosen dependencies over mpegaudiodec
aurel
parents:
diff changeset
29
a5f6fbc9fa66 loosen dependencies over mpegaudiodec
aurel
parents:
diff changeset
30 #include "common.h"
a5f6fbc9fa66 loosen dependencies over mpegaudiodec
aurel
parents:
diff changeset
31 #include "mpegaudio.h"
a5f6fbc9fa66 loosen dependencies over mpegaudiodec
aurel
parents:
diff changeset
32
a5f6fbc9fa66 loosen dependencies over mpegaudiodec
aurel
parents:
diff changeset
33
a5f6fbc9fa66 loosen dependencies over mpegaudiodec
aurel
parents:
diff changeset
34 /* header decoding. MUST check the header before because no
a5f6fbc9fa66 loosen dependencies over mpegaudiodec
aurel
parents:
diff changeset
35 consistency check is done there. Return 1 if free format found and
a5f6fbc9fa66 loosen dependencies over mpegaudiodec
aurel
parents:
diff changeset
36 that the frame size must be computed externally */
5051
b908c67063c8 add a ff_ prefix to some mpegaudio funcs
aurel
parents: 5050
diff changeset
37 int ff_mpegaudio_decode_header(MPADecodeContext *s, uint32_t header);
5050
a5f6fbc9fa66 loosen dependencies over mpegaudiodec
aurel
parents:
diff changeset
38
a5f6fbc9fa66 loosen dependencies over mpegaudiodec
aurel
parents:
diff changeset
39 #endif /* MPEGAUDIODECHEADER_H */