diff options
Diffstat (limited to 'src/video_decode.h')
-rw-r--r-- | src/video_decode.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/video_decode.h b/src/video_decode.h index 2505b8b..9da7f63 100644 --- a/src/video_decode.h +++ b/src/video_decode.h @@ -2,6 +2,11 @@ #define _VIDEO_DECODE_H_ #include <stdint.h> +#include <libavutil/avutil.h> +#include <libavutil/error.h> +#include <libavformat/avformat.h> +#include <libavcodec/avcodec.h> +#include <libswscale/swscale.h> struct video_decode; struct video_frame { @@ -9,6 +14,13 @@ struct video_frame { int width, height, stride; }; +struct video_decode { + AVFormatContext *fmt_ctx; + AVCodecContext *codec_ctx; + AVCodec *codec; + int stream; +}; + int video_decode_init(struct video_decode **vd, char *file, int64_t timestamp); |