ffconv/include/ffcpp/Stream.h

35 lines
545 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();
AVRational timeBase() const;
void setTimeBase(AVRational timeBase);
public:
Stream(Stream&& stream) noexcept;
Stream& operator=(Stream&& stream) noexcept;
};
}
#endif //FFCONV_STREAM_H