Miam-Player  0.8.0
A nice music player
vorbis_parser.h
Go to the documentation of this file.
1 /*
2  * This file is part of FFmpeg.
3  *
4  * FFmpeg is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * FFmpeg is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with FFmpeg; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17  */
18 
26 #ifndef AVCODEC_VORBIS_PARSER_H
27 #define AVCODEC_VORBIS_PARSER_H
28 
29 #include <stdint.h>
30 
32 
39 AVVorbisParseContext *av_vorbis_parse_init(const uint8_t *extradata,
40  int extradata_size);
41 
46 
47 #define VORBIS_FLAG_HEADER 0x00000001
48 #define VORBIS_FLAG_COMMENT 0x00000002
49 #define VORBIS_FLAG_SETUP 0x00000004
50 
62 int av_vorbis_parse_frame_flags(AVVorbisParseContext *s, const uint8_t *buf,
63  int buf_size, int *flags);
64 
72 int av_vorbis_parse_frame(AVVorbisParseContext *s, const uint8_t *buf,
73  int buf_size);
74 
76 
77 #endif /* AVCODEC_VORBIS_PARSER_H */
AVVorbisParseContext * av_vorbis_parse_init(const uint8_t *extradata, int extradata_size)
int av_vorbis_parse_frame_flags(AVVorbisParseContext *s, const uint8_t *buf, int buf_size, int *flags)
void av_vorbis_parse_free(AVVorbisParseContext **s)
struct AVVorbisParseContext AVVorbisParseContext
Definition: vorbis_parser.h:31
void av_vorbis_parse_reset(AVVorbisParseContext *s)
int av_vorbis_parse_frame(AVVorbisParseContext *s, const uint8_t *buf, int buf_size)