37 lines
563 B
C++
37 lines
563 B
C++
#ifndef FFCONV_PACKET_H
|
|
#define FFCONV_PACKET_H
|
|
|
|
extern "C" {
|
|
#include <libavformat/avformat.h>
|
|
}
|
|
|
|
#include <memory>
|
|
|
|
namespace ffcpp {
|
|
|
|
typedef std::shared_ptr<class Packet> PacketPtr;
|
|
|
|
class Packet {
|
|
private:
|
|
AVPacket _packet;
|
|
|
|
public:
|
|
Packet();
|
|
Packet(AVPacket packet);
|
|
Packet(Packet&& packet);
|
|
Packet& operator=(Packet&& packet);
|
|
~Packet();
|
|
|
|
operator bool();
|
|
operator AVPacket*();
|
|
|
|
int streamIndex() const;
|
|
void setStreamIndex(int index);
|
|
|
|
void rescaleTimestamps(AVRational from, AVRational to);
|
|
};
|
|
|
|
}
|
|
|
|
#endif //FFCONV_PACKET_H
|