Permalink
Browse files

[aml] specify amlplayer's capabilities

  • Loading branch information...
1 parent ee56597 commit 33f0ab5347a44b2135bd7cb319bfc85108c12026 theuni committed with Cory Fields Mar 16, 2012
Showing with 47 additions and 0 deletions.
  1. +40 −0 xbmc/cores/amlplayer/AMLPlayer.cpp
  2. +7 −0 xbmc/cores/amlplayer/AMLPlayer.h
@@ -52,6 +52,7 @@
#include "xbmc/cores/dvdplayer/DVDClock.h"
#include "xbmc/cores/dvdplayer/DVDPlayerSubtitle.h"
#include "xbmc/cores/dvdplayer/DVDDemuxers/DVDDemuxVobsub.h"
+#include "settings/VideoSettings.h"
// amlogic libplayer
#include "DllLibamplayer.h"
@@ -2313,3 +2314,42 @@ void CAMLPlayer::RenderUpdateCallBack(const void *ctx, const CRect &SrcRect, con
CAMLPlayer *player = (CAMLPlayer*)ctx;
player->SetVideoRect(SrcRect, DestRect);
}
+
+void CAMLPlayer::GetRenderFeatures(std::vector<int> &renderFeatures)
+{
+ renderFeatures.push_back(RENDERFEATURE_ZOOM);
+ renderFeatures.push_back(RENDERFEATURE_CONTRAST);
+ renderFeatures.push_back(RENDERFEATURE_BRIGHTNESS);
+ renderFeatures.push_back(RENDERFEATURE_STRETCH);
+}
+
+void CAMLPlayer::GetDeinterlaceMethods(std::vector<int> &deinterlaceMethods)
+{
+ deinterlaceMethods.push_back(VS_INTERLACEMETHOD_DEINTERLACE);
+}
+
+void CAMLPlayer::GetDeinterlaceModes(std::vector<int> &deinterlaceModes)
+{
+ deinterlaceModes.push_back(VS_DEINTERLACEMODE_AUTO);
+}
+
+void CAMLPlayer::GetScalingMethods(std::vector<int> &scalingMethods)
+{
+}
+
+void CAMLPlayer::GetAudioCapabilities(std::vector<int> &audioCaps)
+{
+ audioCaps.push_back(IPC_AUD_SELECT_STREAM);
+ audioCaps.push_back(IPC_AUD_SELECT_OUTPUT);
+#if !defined(TARGET_ANDROID)
+ audioCaps.push_back(IPC_AUD_OFFSET);
+#endif
+}
+
+void CAMLPlayer::GetSubtitleCapabilities(std::vector<int> &subCaps)
+{
+ subCaps.push_back(IPC_SUBS_EXTERNAL);
+ subCaps.push_back(IPC_SUBS_SELECT);
+ subCaps.push_back(IPC_SUBS_OFFSET);
+}
+
@@ -165,6 +165,13 @@ class CAMLPlayer : public IPlayer, public CThread
virtual void GetSubtitleCapabilities(Features* subCaps);
*/
+ virtual void GetRenderFeatures(std::vector<int> &renderFeatures);
+ virtual void GetDeinterlaceMethods(std::vector<int> &deinterlaceMethods);
+ virtual void GetDeinterlaceModes(std::vector<int> &deinterlaceModes);
+ virtual void GetScalingMethods(std::vector<int> &scalingMethods);
+ virtual void GetAudioCapabilities(std::vector<int> &audioCaps);
+ virtual void GetSubtitleCapabilities(std::vector<int> &subCaps);
+
protected:
virtual void OnStartup();
virtual void OnExit();

0 comments on commit 33f0ab5

Please sign in to comment.