using namespace std;
+#ifdef HAS_DVD_DRIVE
+using namespace MEDIA_DETECT;
+#endif
#define clamp(x) (x) > 255.f ? 255 : ((x) < 0 ? 0 : (BYTE)(x+0.5f)) // Valid ranges: brightness[-1 -> 1 (0 is default)] contrast[0 -> 2 (1 is default)] gamma[0.5 -> 3.5 (1 is default)] default[ramp is linear]
static const int64_t SECS_BETWEEN_EPOCHS = 11644473600LL;
#include "interfaces/AnnouncementManager.h"
#include "utils/XMLUtils.h"
-using namespace XFILE;
-
namespace ADDON
{
template<class TheDll, typename TheStruct, typename TheProps>
URIUtils::RemoveExtension(strFileName);
strFileName += "-" + ID() + extension;
- if (!CFile::Exists(strFileName))
- CFile::Copy(LibPath(), strFileName);
+ if (!XFILE::CFile::Exists(strFileName))
+ XFILE::CFile::Copy(LibPath(), strFileName);
CLog::Log(LOGNOTICE, "ADDON: Loaded virtual child addon %s", strFileName.c_str());
}
#if defined(TARGET_ANDROID)
// Android libs MUST live in this path, else multi-arch will break.
// The usual soname requirements apply. no subdirs, and filename is ^lib.*\.so$
- if (!CFile::Exists(strFileName))
+ if (!XFILE::CFile::Exists(strFileName))
{
CStdString tempbin = getenv("XBMC_ANDROID_LIBS");
strFileName = tempbin + "/" + m_strLibName;
}
#endif
- if (!CFile::Exists(strFileName))
+ if (!XFILE::CFile::Exists(strFileName))
{
CStdString temp = CSpecialProtocol::TranslatePath("special://xbmc/");
CStdString tempbin = CSpecialProtocol::TranslatePath("special://xbmcbin/");
strFileName.erase(0, temp.size());
strFileName = tempbin + strFileName;
- if (!CFile::Exists(strFileName))
+ if (!XFILE::CFile::Exists(strFileName))
{
CLog::Log(LOGERROR, "ADDON: Could not locate %s", m_strLibName.c_str());
return false;
using namespace std;
using namespace PVR;
+using namespace XFILE;
namespace ADDON
{
#include "DVDCodecs/DVDCodecUtils.h"
#include "cores/VideoRenderers/RenderFlags.h"
+using namespace Actor;
using namespace VDPAU;
#define NUM_RENDER_PICS 7
#define NUM_CROP_PIX 3
#include "libavcodec/vdpau.h"
}
-using namespace Actor;
-
-
#define FULLHD_WIDTH 1920
#define MAX_PIC_Q_LENGTH 20 //for non-interop_yuv this controls the max length of the decoded pic to render completion Q
// Mixer
//-----------------------------------------------------------------------------
-class CMixerControlProtocol : public Protocol
+class CMixerControlProtocol : public Actor::Protocol
{
public:
CMixerControlProtocol(std::string name, CEvent* inEvent, CEvent *outEvent) : Protocol(name, inEvent, outEvent) {};
};
};
-class CMixerDataProtocol : public Protocol
+class CMixerDataProtocol : public Actor::Protocol
{
public:
CMixerDataProtocol(std::string name, CEvent* inEvent, CEvent *outEvent) : Protocol(name, inEvent, outEvent) {};
void OnStartup();
void OnExit();
void Process();
- void StateMachine(int signal, Protocol *port, Message *msg);
+ void StateMachine(int signal, Actor::Protocol *port, Actor::Message *msg);
void Init();
void Uninit();
void Flush();
CCriticalSection renderPicSec;
};
-class COutputControlProtocol : public Protocol
+class COutputControlProtocol : public Actor::Protocol
{
public:
- COutputControlProtocol(std::string name, CEvent* inEvent, CEvent *outEvent) : Protocol(name, inEvent, outEvent) {};
+ COutputControlProtocol(std::string name, CEvent* inEvent, CEvent *outEvent) : Actor::Protocol(name, inEvent, outEvent) {};
enum OutSignal
{
INIT,
};
};
-class COutputDataProtocol : public Protocol
+class COutputDataProtocol : public Actor::Protocol
{
public:
- COutputDataProtocol(std::string name, CEvent* inEvent, CEvent *outEvent) : Protocol(name, inEvent, outEvent) {};
+ COutputDataProtocol(std::string name, CEvent* inEvent, CEvent *outEvent) : Actor::Protocol(name, inEvent, outEvent) {};
enum OutSignal
{
NEWFRAME = 0,
void OnStartup();
void OnExit();
void Process();
- void StateMachine(int signal, Protocol *port, Message *msg);
+ void StateMachine(int signal, Actor::Protocol *port, Actor::Message *msg);
bool HasWork();
CVdpauRenderPicture *ProcessMixerPicture();
void QueueReturnPicture(CVdpauRenderPicture *pic);
return ++x;
}
+using namespace android;
+
CStageFrightVideoPrivate::CStageFrightVideoPrivate()
: decode_thread(NULL), source(NULL)
, eglDisplay(EGL_NO_DISPLAY), eglSurface(EGL_NO_SURFACE), eglContext(EGL_NO_CONTEXT)
class CApplication;
class CApplicationMessenger;
-using namespace android;
-
struct stSlot
{
GLuint texid;
struct Frame
{
- status_t status;
+ android::status_t status;
int32_t width, height;
int64_t pts;
ERenderFormat format;
EGLImageKHR eglimg;
- MediaBuffer* medbuf;
+ android::MediaBuffer* medbuf;
};
enum StageFrightQuirks
QuirkSWRender = 0x01,
};
-class CStageFrightVideoPrivate : public MediaBufferObserver
+class CStageFrightVideoPrivate : public android::MediaBufferObserver
{
public:
CStageFrightVideoPrivate();
- virtual void signalBufferReturned(MediaBuffer *buffer);
+ virtual void signalBufferReturned(android::MediaBuffer *buffer);
- MediaBuffer* getBuffer(size_t size);
+ android::MediaBuffer* getBuffer(size_t size);
bool inputBufferAvailable();
stSlot* getSlot(EGLImageKHR eglimg);
public:
CStageFrightDecodeThread* decode_thread;
- sp<MediaSource> source;
+ android::sp<android::MediaSource> source;
- MediaBuffer* inbuf[INBUFCOUNT];
+ android::MediaBuffer* inbuf[INBUFCOUNT];
GLuint mPgm;
GLint mPositionHandle;
stSlot texslots[NUMFBOTEX];
- sp<MetaData> meta;
+ android::sp<android::MetaData> meta;
int64_t framecount;
std::list<Frame*> in_queue;
std::map<int64_t, Frame*> out_queue;
int width, height;
int texwidth, texheight;
- OMXClient *client;
- sp<MediaSource> decoder;
+ android::OMXClient *client;
+ android::sp<android::MediaSource> decoder;
const char *decoder_component;
int videoColorFormat;
int videoStride;
unsigned int mVideoTextureId;
CJNISurfaceTexture* mSurfTexture;
CJNISurface* mSurface;
- sp<ANativeWindow> mVideoNativeWindow;
+ android::sp<ANativeWindow> mVideoNativeWindow;
static void CallbackInitSurfaceTexture(void*);
bool InitSurfaceTexture();
#endif
#define CLASSNAME "COMXImage"
+using namespace std;
+using namespace XFILE;
+
COMXImage::COMXImage()
: CThread("CRBPWorker")
{
#include <EGL/eglext.h>
#include "threads/Thread.h"
-using namespace XFILE;
-using namespace std;
-
class COMXImageFile;
class COMXImage : public CThread
#include <iostream>
#include <sstream>
+using namespace std;
+
class COMXMsgAudioCodecChange : public CDVDMsg
{
public:
#include "utils/BitstreamStats.h"
#include "xbmc/linux/DllBCM.h"
-using namespace std;
-
class OMXPlayerAudio : public CThread
{
protected:
#include "linux/RBP.h"
using namespace RenderManager;
+using namespace std;
class COMXMsgVideoCodecChange : public CDVDMsg
{
#include "linux/DllBCM.h"
#include "cores/VideoRenderers/RenderManager.h"
-using namespace std;
-
class OMXPlayerVideo : public CThread
{
protected:
#include <cmath>
#include "FTPParse.h"
+using namespace std;
+
CFTPParse::CFTPParse()
{
m_name = "";
#include <ctime>
#include <stdint.h>
-using namespace std;
-
class CFTPParse
{
public:
CFTPParse();
- int FTPParse(string str);
- string getName();
+ int FTPParse(std::string str);
+ std::string getName();
int getFlagtrycwd();
int getFlagtryretr();
uint64_t getSize();
time_t getTime();
private:
- string m_name; // not necessarily 0-terminated
+ std::string m_name; // not necessarily 0-terminated
int m_flagtrycwd; // 0 if cwd is definitely pointless, 1 otherwise
int m_flagtryretr; // 0 if retr is definitely pointless, 1 otherwise
uint64_t m_size; // number of octets
time_t m_time; // modification time
- void setTime(string str); // Method used to set m_time from a string
+ void setTime(std::string str); // Method used to set m_time from a string
int getDayOfWeek(int month, int date, int year); // Method to get day of week
};
#include "MatrixGLES.h"
#include "utils/log.h"
+using namespace Shaders;
+
CGUIShader::CGUIShader( const char *shader ) : CGLSLShaderProgram("guishader_vert.glsl", shader)
{
// Initialise values
#include "Shader.h"
-using namespace Shaders;
-
-class CGUIShader : public CGLSLShaderProgram
+class CGUIShader : public Shaders::CGLSLShaderProgram
{
public:
CGUIShader( const char *shader = 0 );
#ifdef HAS_DVD_DRIVE
using namespace CDDB;
+using namespace MEDIA_DETECT;
#endif
static void AnnounceRemove(const std::string& content, int id)
#define CONTROL_BTNREC 10
#define CONTROL_BTNRIP 11
+#ifdef HAS_DVD_DRIVE
+using namespace MEDIA_DETECT;
+#endif
CGUIWindowMusicSongs::CGUIWindowMusicSongs(void)
: CGUIWindowMusicBase(WINDOW_MUSIC_FILES, "MyMusicSongs.xml")
bool CPVRChannel::IsIconExists() const
{
- return CFile::Exists(IconPath());
+ return XFILE::CFile::Exists(IconPath());
}
bool CPVRChannel::IsUserSetName() const
/* fetch files in icon path for fast lookup */
CFileItemList fileItemList;
- CDirectory::GetDirectory(iconPath, fileItemList, ".jpg|.png|.tbn");
+ XFILE::CDirectory::GetDirectory(iconPath, fileItemList, ".jpg|.png|.tbn");
if (fileItemList.IsEmpty())
return;
if (item->m_bIsFolder)
{
CStdString strPath = item->GetPath();
- CDirectory::GetDirectory(strPath, items);
+ XFILE::CDirectory::GetDirectory(strPath, items);
}
else
items.Add(item);
CStdString dir = stream.substr(0, found).c_str();
CFileItemList items;
- CDirectory::GetDirectory(dir, items);
+ XFILE::CDirectory::GetDirectory(dir, items);
items.Sort(SortByFile, SortOrderAscending);
vector<int> stack;
if (stack.size() > 0)
{
/* If we have a stack change the path of the item to it */
- CStackDirectory dir;
+ XFILE::CStackDirectory dir;
CStdString stackPath = dir.ConstructStackPath(items, stack);
item->SetPath(stackPath);
}
#include "XHandle.h"
#endif
+#ifdef HAS_DVD_DRIVE
+using namespace MEDIA_DETECT;
+#endif
PVOID CIoSupport::m_rawXferBuffer;
using namespace std;
using namespace XFILE;
+#ifdef HAS_DVD_DRIVE
+using namespace MEDIA_DETECT;
+#endif
+
const char MEDIA_SOURCES_XML[] = { "special://profile/mediasources.xml" };
class CMediaManager g_mediaManager;
#include "IStorageProvider.h"
#include "threads/CriticalSection.h"
-#ifdef HAS_DVD_DRIVE
-using namespace MEDIA_DETECT;
-#endif
-
#define TRAY_OPEN 16
#define TRAY_CLOSED_NO_MEDIA 64
#define TRAY_CLOSED_MEDIA_PRESENT 96
CStdString TranslateDevicePath(const CStdString& devicePath, bool bReturnAsDevice=false);
DWORD GetDriveStatus(const CStdString& devicePath="");
#ifdef HAS_DVD_DRIVE
- CCdInfo* GetCdInfo(const CStdString& devicePath="");
+ MEDIA_DETECT::CCdInfo* GetCdInfo(const CStdString& devicePath="");
bool RemoveCdInfo(const CStdString& devicePath="");
CStdString GetDiskLabel(const CStdString& devicePath="");
CStdString GetDiskUniqueId(const CStdString& devicePath="");
CCriticalSection m_muAutoSource, m_CritSecStorageProvider;
#ifdef HAS_DVD_DRIVE
- std::map<CStdString,CCdInfo*> m_mapCdInfo;
+ std::map<CStdString,MEDIA_DETECT::CCdInfo*> m_mapCdInfo;
#endif
bool m_bhasoptical;
CStdString m_strFirstAvailDrive;
#define VOLUME_LOCAL 1
#define VOLUME_NETWORK 2
+
+using namespace std;
+
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
*/
#include <string>
-using namespace std;
+
class CWindowsShortcut
{
public:
#include <new>
#include <stdio.h>
+using namespace std;
+
Mesh::Mesh()
{
m_iRefCount = 1;
#include "Renderer.h"
#include <string>
-using namespace std;
-
class Mesh
{
public:
Mesh();
- void CreateTextMesh( string& InString, bool bCentered = true );
+ void CreateTextMesh( std::string& InString, bool bCentered = true );
void AddRef();
void Release();
#include <new>
#include <stdio.h>
+using namespace std;
+
Texture::Texture()
{
m_iRefCount = 1;
#include "Renderer.h"
#include <string>
-using namespace std;
-
class Texture
{
public:
Texture();
void CreateTexture();
- void LoadTexture( string& filename );
+ void LoadTexture( std::string& filename );
void AddRef();
void Release();
#include "Shader.h"
#include "angelscript.h"
+using namespace std;
+
char ColourRemapPixelShaderSrc[] =
{
" sampler2D SpectrumTexture : tex0; \n"
#include "EffectBase.h"
#include <string>
-using namespace std;
-
class VoicePrint : public EffectBase
{
public:
~VoicePrint();
void Init();
void Render();
- void LoadColourMap( string& filename );
+ void LoadColourMap( std::string& filename );
void SetRect(float minX, float minY, float maxX, float maxY);
void SetSpeed(float speed);
name += extension;
name += " ";
- return m_eglext.find(name) != string::npos;
+ return m_eglext.find(name) != std::string::npos;
}
bool CWinSystemIOS::BeginRender()