35 lines
527 B
C++
35 lines
527 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);
|
|
Stream& operator=(Stream&& stream);
|
|
};
|
|
|
|
}
|
|
|
|
#endif //FFCONV_STREAM_H
|