30 lines
407 B
C++
30 lines
407 B
C++
#ifndef FFCONV_FRAME_H
|
|
#define FFCONV_FRAME_H
|
|
|
|
extern "C" {
|
|
#include <libavformat/avformat.h>
|
|
}
|
|
|
|
namespace ffcpp {
|
|
|
|
class Frame {
|
|
private:
|
|
AVFrame* _frame;
|
|
|
|
public:
|
|
Frame();
|
|
Frame(Frame&& frame);
|
|
~Frame();
|
|
|
|
Frame& operator=(Frame&& frame);
|
|
operator AVFrame*();
|
|
operator const AVFrame*() const;
|
|
|
|
void guessPts();
|
|
void setPictureType(AVPictureType type);
|
|
};
|
|
|
|
}
|
|
|
|
#endif //FFCONV_FRAME_H
|