began custom pix fmt converter

This commit is contained in:
itsmattkc
2019-05-23 02:22:45 +10:00
parent a82e5ccbce
commit d76ac6ff38
22 changed files with 472 additions and 77 deletions
+18 -1
View File
@@ -1,11 +1,28 @@
#ifndef DECODER_H
#define DECODER_H
#include <stdint.h>
#include "global/rational.h"
class Decoder
{
public:
Decoder();
virtual ~Decoder();
virtual bool Open() = 0;
virtual void Request(const rational& timecode) = 0;
virtual void Retrieve(uint8_t** buffer, int* linesize) = 0;
virtual void Close() = 0;
// For video decoding
virtual int width() = 0;
virtual int height() = 0;
protected:
bool open_;
};
#endif // DECODER_H
#endif // DECODER_H