Path: blob/master/dep/ffmpeg/include/libavcodec/ac3_parser.h
4216 views
/*1* AC-3 parser prototypes2* Copyright (c) 2003 Fabrice Bellard3* Copyright (c) 2003 Michael Niedermayer4*5* This file is part of FFmpeg.6*7* FFmpeg is free software; you can redistribute it and/or8* modify it under the terms of the GNU Lesser General Public9* License as published by the Free Software Foundation; either10* version 2.1 of the License, or (at your option) any later version.11*12* FFmpeg is distributed in the hope that it will be useful,13* but WITHOUT ANY WARRANTY; without even the implied warranty of14* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU15* Lesser General Public License for more details.16*17* You should have received a copy of the GNU Lesser General Public18* License along with FFmpeg; if not, write to the Free Software19* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA20*/2122#ifndef AVCODEC_AC3_PARSER_H23#define AVCODEC_AC3_PARSER_H2425#include <stddef.h>26#include <stdint.h>2728/**29* Extract the bitstream ID and the frame size from AC-3 data.30*/31int av_ac3_parse_header(const uint8_t *buf, size_t size,32uint8_t *bitstream_id, uint16_t *frame_size);333435#endif /* AVCODEC_AC3_PARSER_H */363738