annotate flacenc.h @ 6428:f53a4103bec4 libavformat

simplify code by using the AV_NE() macro
author aurel
date Sun, 29 Aug 2010 18:33:39 +0000
parents e3fb53259d86
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4581
c52d40f0a955 Share the function to write a raw FLAC header and use it in the Matroska
jbr
parents:
diff changeset
1 /*
c52d40f0a955 Share the function to write a raw FLAC header and use it in the Matroska
jbr
parents:
diff changeset
2 * raw FLAC muxer
c52d40f0a955 Share the function to write a raw FLAC header and use it in the Matroska
jbr
parents:
diff changeset
3 * Copyright (C) 2009 Justin Ruggles
c52d40f0a955 Share the function to write a raw FLAC header and use it in the Matroska
jbr
parents:
diff changeset
4 *
c52d40f0a955 Share the function to write a raw FLAC header and use it in the Matroska
jbr
parents:
diff changeset
5 * This file is part of FFmpeg.
c52d40f0a955 Share the function to write a raw FLAC header and use it in the Matroska
jbr
parents:
diff changeset
6 *
c52d40f0a955 Share the function to write a raw FLAC header and use it in the Matroska
jbr
parents:
diff changeset
7 * FFmpeg is free software; you can redistribute it and/or
c52d40f0a955 Share the function to write a raw FLAC header and use it in the Matroska
jbr
parents:
diff changeset
8 * modify it under the terms of the GNU Lesser General Public
c52d40f0a955 Share the function to write a raw FLAC header and use it in the Matroska
jbr
parents:
diff changeset
9 * License as published by the Free Software Foundation; either
c52d40f0a955 Share the function to write a raw FLAC header and use it in the Matroska
jbr
parents:
diff changeset
10 * version 2.1 of the License, or (at your option) any later version.
c52d40f0a955 Share the function to write a raw FLAC header and use it in the Matroska
jbr
parents:
diff changeset
11 *
c52d40f0a955 Share the function to write a raw FLAC header and use it in the Matroska
jbr
parents:
diff changeset
12 * FFmpeg is distributed in the hope that it will be useful,
c52d40f0a955 Share the function to write a raw FLAC header and use it in the Matroska
jbr
parents:
diff changeset
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
c52d40f0a955 Share the function to write a raw FLAC header and use it in the Matroska
jbr
parents:
diff changeset
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
c52d40f0a955 Share the function to write a raw FLAC header and use it in the Matroska
jbr
parents:
diff changeset
15 * Lesser General Public License for more details.
c52d40f0a955 Share the function to write a raw FLAC header and use it in the Matroska
jbr
parents:
diff changeset
16 *
c52d40f0a955 Share the function to write a raw FLAC header and use it in the Matroska
jbr
parents:
diff changeset
17 * You should have received a copy of the GNU Lesser General Public
c52d40f0a955 Share the function to write a raw FLAC header and use it in the Matroska
jbr
parents:
diff changeset
18 * License along with FFmpeg; if not, write to the Free Software
c52d40f0a955 Share the function to write a raw FLAC header and use it in the Matroska
jbr
parents:
diff changeset
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
c52d40f0a955 Share the function to write a raw FLAC header and use it in the Matroska
jbr
parents:
diff changeset
20 */
c52d40f0a955 Share the function to write a raw FLAC header and use it in the Matroska
jbr
parents:
diff changeset
21
c52d40f0a955 Share the function to write a raw FLAC header and use it in the Matroska
jbr
parents:
diff changeset
22 #ifndef AVFORMAT_FLACENC_H
c52d40f0a955 Share the function to write a raw FLAC header and use it in the Matroska
jbr
parents:
diff changeset
23 #define AVFORMAT_FLACENC_H
c52d40f0a955 Share the function to write a raw FLAC header and use it in the Matroska
jbr
parents:
diff changeset
24
5868
92daebc423f4 Move ff_flac_write_header() to flacenc.h, which removes the Matroska muxer's
jbr
parents: 5857
diff changeset
25 #include "libavcodec/flac.h"
92daebc423f4 Move ff_flac_write_header() to flacenc.h, which removes the Matroska muxer's
jbr
parents: 5857
diff changeset
26 #include "libavcodec/bytestream.h"
4581
c52d40f0a955 Share the function to write a raw FLAC header and use it in the Matroska
jbr
parents:
diff changeset
27 #include "avformat.h"
c52d40f0a955 Share the function to write a raw FLAC header and use it in the Matroska
jbr
parents:
diff changeset
28
5873
e3fb53259d86 Put ff_flac_write_header() in a separate C file to allow it to be shared without
jbr
parents: 5868
diff changeset
29 int ff_flac_write_header(ByteIOContext *pb, AVCodecContext *codec,
e3fb53259d86 Put ff_flac_write_header() in a separate C file to allow it to be shared without
jbr
parents: 5868
diff changeset
30 int last_block);
4581
c52d40f0a955 Share the function to write a raw FLAC header and use it in the Matroska
jbr
parents:
diff changeset
31
c52d40f0a955 Share the function to write a raw FLAC header and use it in the Matroska
jbr
parents:
diff changeset
32 #endif /* AVFORMAT_FLACENC_H */