blob: c6e0db135fe6337239e9f7e5963607cbd63a39e4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#ifndef FFMPEG_DECODER_H
#define FFMPEG_DECODER_H
#include "decoder.h"
// needed for UINT64_C in libavutil
#include <boost/cstdint.hpp>
extern "C" {
#include <libavformat/avformat.h>
#include <libavcodec/avcodec.h>
}
class DecoderFFmpeg : public Decoder {
private:
AVFormatContext* lavf_ctx;
AVCodecContext* lavc_ctx;
AVCodec* codec;
public:
DecoderFFmpeg(const std::string& filename);
~DecoderFFmpeg();
virtual std::size_t read(char* buf, std::size_t buf_size);
};
#endif
|