diff --git a/generic-pc/playback.cpp b/generic-pc/playback.cpp index 87dfbee..86b6b6f 100644 --- a/generic-pc/playback.cpp +++ b/generic-pc/playback.cpp @@ -145,3 +145,8 @@ cPlayback::~cPlayback() { printf("%s:%s\n", FILENAME, __func__); } + +uint64_t cPlayback::GetReadCount() +{ + return 0; +} diff --git a/libspark/video.cpp b/libspark/video.cpp index f40cbcd..cb734c1 100644 --- a/libspark/video.cpp +++ b/libspark/video.cpp @@ -348,6 +348,41 @@ int cVideo::setBlank(int) return Stop(1); } +int cVideo::GetVideoSystem() +{ + lt_debug("%s\n", __func__); + char current[32]; + static const char *modes[] = { + "pal", // VIDEO_STD_NTSC + "pal", // VIDEO_STD_SECAM + "pal", // VIDEO_STD_PAL + "480p", // VIDEO_STD_480P + "576p50", // VIDEO_STD_576P + "720p60", // VIDEO_STD_720P60 + "1080i60", // VIDEO_STD_1080I60 + "720p50", // VIDEO_STD_720P50 + "1080i50", // VIDEO_STD_1080I50 + "1080p30", // VIDEO_STD_1080P30 + "1080p24", // VIDEO_STD_1080P24 + "1080p25", // VIDEO_STD_1080P25 + "1080p50", // VIDEO_STD_1080P50 + "1080p60", // VIDEO_STD_1080P60 + "1080p2397", // VIDEO_STD_1080P2397 + "1080p2997", // VIDEO_STD_1080P2997 + "720p50" // VIDEO_STD_AUTO + }; + + int ret = proc_get("/proc/stb/video/videomode", current, 32); + for (int i=0; i not implemented - "1080p50" // VIDEO_STD_1080P50 -> SPARK only + "1080p50", // VIDEO_STD_1080P50 + "1080p60", // VIDEO_STD_1080P60 + "1080p2397", // VIDEO_STD_1080P2397 + "1080p2997", // VIDEO_STD_1080P2997 + "720p50" // VIDEO_STD_AUTO }; if (video_system > VIDEO_STD_MAX) diff --git a/libspark/video_lib.h b/libspark/video_lib.h index 139333d..e172cb9 100644 --- a/libspark/video_lib.h +++ b/libspark/video_lib.h @@ -101,9 +101,12 @@ typedef enum { VIDEO_STD_1080P30, VIDEO_STD_1080P24, VIDEO_STD_1080P25, + VIDEO_STD_1080P50, + VIDEO_STD_1080P60, + VIDEO_STD_1080P2397, + VIDEO_STD_1080P2997, VIDEO_STD_AUTO, - VIDEO_STD_1080P50, /* SPARK only */ - VIDEO_STD_MAX + VIDEO_STD_MAX = VIDEO_STD_AUTO } VIDEO_STD; /* not used, for dummy functions */ @@ -182,6 +185,9 @@ class cVideo int Stop(bool blank = true); bool Pause(void); + /* get video system infos */ + int GetVideoSystem(); + /* set video_system */ int SetVideoSystem(int video_system, bool remember = true); int SetStreamType(VIDEO_FORMAT type);