[Confluence] align subtitle popup to the bottom
[vuplus_xbmc] / xbmc / cores / dvdplayer / DVDCodecs / Video / StageFrightVideo.h
1 #pragma once
2 /*
3  *      Copyright (C) 2010-2013 Team XBMC
4  *      http://xbmc.org
5  *
6  *  This Program is free software; you can redistribute it and/or modify
7  *  it under the terms of the GNU General Public License as published by
8  *  the Free Software Foundation; either version 2, or (at your option)
9  *  any later version.
10  *
11  *  This Program is distributed in the hope that it will be useful,
12  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  *  GNU General Public License for more details.
15  *
16  *  You should have received a copy of the GNU General Public License
17  *  along with XBMC; see the file COPYING.  If not, see
18  *  <http://www.gnu.org/licenses/>.
19  *
20  */
21
22 #if defined(HAS_LIBSTAGEFRIGHT)
23
24 #include "cores/dvdplayer/DVDStreamInfo.h"
25 #include "DVDVideoCodec.h"
26
27 class CStageFrightVideoPrivate;
28
29 namespace android { class MediaBuffer; }
30
31 class CStageFrightVideo
32 {
33 public:
34   CStageFrightVideo() {};
35   virtual ~CStageFrightVideo() {};
36
37   bool Open(CDVDStreamInfo &hints);
38   void Close(void);
39   int  Decode(uint8_t *pData, int iSize, double dts, double pts);
40   void Reset(void);
41   bool GetPicture(DVDVideoPicture *pDvdVideoPicture);
42   bool ClearPicture(DVDVideoPicture* pDvdVideoPicture);
43   void SetDropState(bool bDrop);
44   virtual void SetSpeed(int iSpeed);
45
46   void LockBuffer(EGLImageKHR eglimg);
47   void ReleaseBuffer(EGLImageKHR eglimg);
48
49 private:
50   CStageFrightVideoPrivate* p;
51 };
52
53 // defined(HAS_LIBSTAGEFRIGHT)
54 #endif