FFmpeg
Loading...
Searching...
No Matches
decode_simple.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
19/* shared code for simple demux/decode tools */
20
21#ifndef DECODE_SIMPLE_H
22#define DECODE_SIMPLE_H
23
25
26#include "libavcodec/avcodec.h"
27#include "libavcodec/packet.h"
28
29#include "libavutil/dict.h"
30#include "libavutil/frame.h"
31
32
33typedef struct DecodeContext {
37
40
42 void *opaque;
43
47
48int ds_open(DecodeContext *dc, const char *url, int stream_idx);
49void ds_free(DecodeContext *dc);
50
51int ds_run(DecodeContext *dc);
52
53#endif /* DECODE_SIMPLE_H */
Libavcodec external API header.
Main libavformat public API header.
int ds_open(DecodeContext *dc, const char *url, int stream_idx)
void ds_free(DecodeContext *dc)
int ds_run(DecodeContext *dc)
Public dictionary API.
reference-counted frame API
main external API structure.
Definition avcodec.h:443
Format I/O context.
Definition avformat.h:1333
This structure describes decoded (raw) audio or video data.
Definition frame.h:472
This structure stores compressed data.
Definition packet.h:580
Stream structure.
Definition avformat.h:766
AVDictionary * decoder_opts
AVPacket * pkt
int(* process_frame)(struct DecodeContext *dc, AVFrame *frame)
AVCodecContext * decoder
AVFormatContext * demuxer
AVStream * stream
AVFrame * frame