mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-27 07:23:11 +02:00
add GetVideoSystem()
This commit is contained in:
@@ -211,6 +211,23 @@ int cVideo::setBlank(int)
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int cVideo::GetVideoSystem()
|
||||||
|
{
|
||||||
|
return vdec->GetVideoSystem();
|
||||||
|
}
|
||||||
|
|
||||||
|
int VDec::GetVideoSystem()
|
||||||
|
{
|
||||||
|
int current_video_system = VIDEO_STD_1080I50;
|
||||||
|
|
||||||
|
if(dec_w < 720)
|
||||||
|
current_video_system = VIDEO_STD_PAL;
|
||||||
|
else if(dec_w > 720 && dec_w <= 1280)
|
||||||
|
current_video_system = VIDEO_STD_720P50;
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
int cVideo::SetVideoSystem(int system, bool)
|
int cVideo::SetVideoSystem(int system, bool)
|
||||||
{
|
{
|
||||||
return vdec->SetVideoSystem(system);
|
return vdec->SetVideoSystem(system);
|
||||||
|
@@ -72,6 +72,7 @@ class VDec : public OpenThreads::Thread
|
|||||||
int getBlank(void);
|
int getBlank(void);
|
||||||
int setBlank(int enable);
|
int setBlank(int enable);
|
||||||
#endif
|
#endif
|
||||||
|
int GetVideoSystem();
|
||||||
int SetVideoSystem(int system);
|
int SetVideoSystem(int system);
|
||||||
|
|
||||||
/* change video play state. Parameters are all unused. */
|
/* change video play state. Parameters are all unused. */
|
||||||
|
@@ -180,6 +180,8 @@ class cVideo
|
|||||||
int Stop(bool blank = true);
|
int Stop(bool blank = true);
|
||||||
bool Pause(void);
|
bool Pause(void);
|
||||||
|
|
||||||
|
int GetVideoSystem();
|
||||||
|
|
||||||
/* set video_system */
|
/* set video_system */
|
||||||
int SetVideoSystem(int video_system, bool remember = true);
|
int SetVideoSystem(int video_system, bool remember = true);
|
||||||
int SetStreamType(VIDEO_FORMAT type);
|
int SetStreamType(VIDEO_FORMAT type);
|
||||||
|
Reference in New Issue
Block a user