add GetVideoSystem()

This commit is contained in:
Jacek Jendrzej
2017-06-18 13:15:35 +02:00
parent d1569e6114
commit 41212e3c1a
3 changed files with 20 additions and 0 deletions

View File

@@ -211,6 +211,23 @@ int cVideo::setBlank(int)
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)
{
return vdec->SetVideoSystem(system);

View File

@@ -72,6 +72,7 @@ class VDec : public OpenThreads::Thread
int getBlank(void);
int setBlank(int enable);
#endif
int GetVideoSystem();
int SetVideoSystem(int system);
/* change video play state. Parameters are all unused. */

View File

@@ -180,6 +180,8 @@ class cVideo
int Stop(bool blank = true);
bool Pause(void);
int GetVideoSystem();
/* set video_system */
int SetVideoSystem(int video_system, bool remember = true);
int SetStreamType(VIDEO_FORMAT type);