Skip to content

Commit

Permalink
VideoPlayer: adapt decoder API to ffmpeg 3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
FernetMenta authored and popcornmix committed Dec 16, 2016
1 parent fcafb77 commit 73f2b19
Show file tree
Hide file tree
Showing 12 changed files with 337 additions and 277 deletions.
10 changes: 5 additions & 5 deletions xbmc/cores/VideoPlayer/DVDCodecs/Video/DVDVideoCodec.h
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ class CDVDCodecOptions;
#define VC_DROPPED 0x00000020 //< needed to identify if a picture was dropped
#define VC_NOBUFFER 0x00000040 //< last FFmpeg GetBuffer failed
#define VC_REOPEN 0x00000080 //< decoder request to re-open
#define VC_EOF 0x00000100 //< EOF

class CDVDVideoCodec
{
Expand All @@ -182,9 +183,8 @@ class CDVDVideoCodec

/**
* returns one or a combination of VC_ messages
* pData and iSize can be NULL, this means we should flush the rest of the data.
*/
virtual int Decode(uint8_t* pData, int iSize, double dts, double pts) = 0;
virtual int AddData(uint8_t* pData, int iSize, double dts, double pts) = 0;

/**
* Reset the decoder.
Expand All @@ -193,10 +193,10 @@ class CDVDVideoCodec
virtual void Reset() = 0;

/**
* returns true if successfull
* the data is valid until the next Decode call
* returns one or a combination of VC_ messages
* the data is valid until the next GetPicture call
*/
virtual bool GetPicture(DVDVideoPicture* pDvdVideoPicture) = 0;
virtual int GetPicture(DVDVideoPicture* pDvdVideoPicture) = 0;

/**
* returns true if successfull
Expand Down
Loading

0 comments on commit 73f2b19

Please sign in to comment.