/* * Audio and Video frame extraction * Copyright (c) 2003 Fabrice Bellard * Copyright (c) 2003 Michael Niedermayer * * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * FFmpeg is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with FFmpeg; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #include <inttypes.h> #include <stdint.h> #include <string.h> #include "libavutil/avassert.h" #include "libavutil/mem.h" #include "parser.h" AVCodecParserContext *av_parser_init(int codec_id) { … } void ff_fetch_timestamp(AVCodecParserContext *s, int off, int remove, int fuzzy) { … } int av_parser_parse2(AVCodecParserContext *s, AVCodecContext *avctx, uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size, int64_t pts, int64_t dts, int64_t pos) { … } void av_parser_close(AVCodecParserContext *s) { … } int ff_combine_frame(ParseContext *pc, int next, const uint8_t **buf, int *buf_size) { … } void ff_parse_close(AVCodecParserContext *s) { … }