ffconv/ffcpp/Stream.h

31 lines
457 B
C++

#ifndef FFCONV_STREAM_H
#define FFCONV_STREAM_H
#include "Codec.h"
extern "C" {
#include <libavformat/avformat.h>
}
namespace ffcpp {
class Stream {
private:
AVStream* _stream;
Codec _codec;
public:
Stream();
Stream(AVStream* stream);
Stream(AVStream* stream, AVCodec* encoder);
operator AVStream*() const;
Codec codec() const;
AVRational timeBase() const;
void setTimeBase(AVRational timeBase);
};
}
#endif //FFCONV_STREAM_H