3 * Copyright (C) 2010-2013 Team XBMC
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)
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.
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/>.
22 #if defined(HAS_LIBSTAGEFRIGHT)
24 #include "cores/dvdplayer/DVDStreamInfo.h"
25 #include "DVDVideoCodec.h"
27 class CStageFrightVideoPrivate;
29 namespace android { class MediaBuffer; }
31 class CStageFrightVideo
34 CStageFrightVideo() {};
35 virtual ~CStageFrightVideo() {};
37 bool Open(CDVDStreamInfo &hints);
39 int Decode(uint8_t *pData, int iSize, double dts, double pts);
41 bool GetPicture(DVDVideoPicture *pDvdVideoPicture);
42 bool ClearPicture(DVDVideoPicture* pDvdVideoPicture);
43 void SetDropState(bool bDrop);
44 virtual void SetSpeed(int iSpeed);
46 void LockBuffer(EGLImageKHR eglimg);
47 void ReleaseBuffer(EGLImageKHR eglimg);
50 CStageFrightVideoPrivate* p;
53 // defined(HAS_LIBSTAGEFRIGHT)