11 #include "cores/VideoPlayer/Buffers/VideoBuffer.h" 12 #include "cores/VideoPlayer/DVDCodecs/Video/DVDVideoCodec.h" 13 #include "cores/VideoPlayer/DVDStreamInfo.h" 23 static std::unique_ptr<CDVDVideoCodec> Create(
CProcessInfo& processInfo);
24 static void Register();
28 void Reset()
override;
30 const char*
GetName()
override {
return m_name.c_str(); }
37 void UpdateProcessInfo(
struct AVCodecContext* avctx,
const enum AVPixelFormat
fmt);
38 static enum AVPixelFormat GetFormat(
struct AVCodecContext* avctx,
const enum AVPixelFormat* fmt);
39 static int GetBuffer(
struct AVCodecContext* avctx, AVFrame* frame,
int flags);
42 int m_codecControlFlags = 0;
45 AVCodecContext* m_pCodecContext =
nullptr;
46 AVFrame* m_pFrame =
nullptr;
47 std::shared_ptr<IVideoBufferPool> m_videoBufferPool;
Definition: DVDStreamInfo.h:25
unsigned GetAllowedReferences() override
Number of references to old pictures that are allowed to be retained when calling decode on the next ...
Definition: DVDVideoCodecDRMPRIME.h:31
Definition: DVDCodecs.h:23
void Reset() override
Reset the decoder.
Definition: DVDVideoCodecDRMPRIME.cpp:451
bool AddData(const DemuxPacket &packet) override
add data, decoder has to consume the entire packet returns true if the packet was consumed or if resu...
Definition: DVDVideoCodecDRMPRIME.cpp:401
CDVDVideoCodec::VCReturn GetPicture(VideoPicture *pVideoPicture) override
GetPicture controls decoding.
Definition: DVDVideoCodecDRMPRIME.cpp:601
bool Open(CDVDStreamInfo &hints, CDVDCodecOptions &options) override
Open the decoder, returns true on success Decoders not capable of running multiple instances should r...
Definition: DVDVideoCodecDRMPRIME.cpp:282
Definition: DVDVideoCodecDRMPRIME.h:17
Definition: ProcessInfo.h:26
Definition: DVDVideoCodec.h:36
Definition: DemuxPacket.h:22
const char * GetName() override
should return codecs name
Definition: DVDVideoCodecDRMPRIME.h:30
void SetCodecControl(int flags) override
Codec can be informed by player with the following flags:
Definition: DVDVideoCodecDRMPRIME.cpp:667
Definition: DVDVideoCodec.h:110