2018-07-22 03:22:00 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "decoder.h"
|
|
|
|
|
|
|
|
#include <SLVideo.h>
|
|
|
|
|
|
|
|
class SLVideoDecoder : public IVideoDecoder
|
|
|
|
{
|
|
|
|
public:
|
2019-02-13 02:42:53 +00:00
|
|
|
SLVideoDecoder(bool testOnly);
|
2018-07-22 03:22:00 +00:00
|
|
|
virtual ~SLVideoDecoder();
|
2019-04-12 05:27:20 +00:00
|
|
|
virtual bool initialize(PDECODER_PARAMETERS params);
|
2018-07-22 03:22:00 +00:00
|
|
|
virtual bool isHardwareAccelerated();
|
2018-08-25 19:38:04 +00:00
|
|
|
virtual int getDecoderCapabilities();
|
2018-07-22 03:22:00 +00:00
|
|
|
virtual int submitDecodeUnit(PDECODE_UNIT du);
|
|
|
|
|
|
|
|
// Unused since rendering is done directly from the decode thread
|
2019-04-10 04:46:14 +00:00
|
|
|
virtual void renderFrameOnMainThread() {}
|
2018-07-22 03:22:00 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
CSLVideoContext* m_VideoContext;
|
|
|
|
CSLVideoStream* m_VideoStream;
|
|
|
|
};
|