mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 07:23:09 +02:00
Merge branch 'master' into pu/fb-setmode
This commit is contained in:
@@ -17,6 +17,13 @@
|
|||||||
|
|
||||||
typedef void (*cs_messenger) (unsigned int msg, unsigned int data);
|
typedef void (*cs_messenger) (unsigned int msg, unsigned int data);
|
||||||
|
|
||||||
|
#define CS_CHIP_APOLLO 0x8490
|
||||||
|
#define CS_CHIP_SHINER 0x8470
|
||||||
|
#define CS_CHIP_KRONOS_S 0x7540
|
||||||
|
#define CS_CHIP_KRONOS_C 0x7550
|
||||||
|
#define CS_CHIP_KRONOS_IP 0x7530
|
||||||
|
#define CS_CHIP_NEVIS 0x0000 /* workaround for nonexistant nevis chiptype */
|
||||||
|
|
||||||
enum CS_LOG_MODULE {
|
enum CS_LOG_MODULE {
|
||||||
CS_LOG_CI = 0,
|
CS_LOG_CI = 0,
|
||||||
CS_LOG_HDMI_CEC,
|
CS_LOG_HDMI_CEC,
|
||||||
@@ -71,6 +78,29 @@ int cs_get_tsp_config(unsigned int port, tsrouter_tsp_config_t *tsp_config);
|
|||||||
// Serial nr and revision accessors
|
// Serial nr and revision accessors
|
||||||
unsigned long long cs_get_serial(void);
|
unsigned long long cs_get_serial(void);
|
||||||
unsigned int cs_get_revision(void);
|
unsigned int cs_get_revision(void);
|
||||||
|
/* Dummy function for compatibility with hd2 */
|
||||||
|
unsigned int cs_get_chip_type(void);
|
||||||
|
|
||||||
|
|
||||||
|
// library version functions
|
||||||
|
typedef struct cs_libversion_t
|
||||||
|
{
|
||||||
|
int vMajor;
|
||||||
|
int vMinor;
|
||||||
|
int vPatch;
|
||||||
|
char vStr[16];
|
||||||
|
char vGit[41];
|
||||||
|
char vGitDescribe[64];
|
||||||
|
time_t vGitTime;
|
||||||
|
} cs_libversion_struct_t;
|
||||||
|
|
||||||
|
void cs_get_lib_version(cs_libversion_t *ver);
|
||||||
|
|
||||||
|
/* return value:
|
||||||
|
-------------
|
||||||
|
1 Library version newer than given version
|
||||||
|
0 library version equals given version
|
||||||
|
-1 Library version older than given version */
|
||||||
|
int cs_compare_lib_versions(int Major, int Minor, int Patch);
|
||||||
|
|
||||||
#endif //__CS_API_H_
|
#endif //__CS_API_H_
|
||||||
|
@@ -26,6 +26,7 @@ typedef void (*cs_messenger) (unsigned int msg, unsigned int data);
|
|||||||
#define CS_CHIP_KRONOS_S 0x7540
|
#define CS_CHIP_KRONOS_S 0x7540
|
||||||
#define CS_CHIP_KRONOS_C 0x7550
|
#define CS_CHIP_KRONOS_C 0x7550
|
||||||
#define CS_CHIP_KRONOS_IP 0x7530
|
#define CS_CHIP_KRONOS_IP 0x7530
|
||||||
|
#define CS_CHIP_NEVIS 0x0000 /* workaround for nonexistant nevis chiptype */
|
||||||
|
|
||||||
enum CS_LOG_MODULE {
|
enum CS_LOG_MODULE {
|
||||||
CS_LOG_CI = 0,
|
CS_LOG_CI = 0,
|
||||||
@@ -49,6 +50,7 @@ enum CS_LOG_MODULE {
|
|||||||
// Initialization
|
// Initialization
|
||||||
void cs_api_init(void);
|
void cs_api_init(void);
|
||||||
void cs_api_exit(void);
|
void cs_api_exit(void);
|
||||||
|
/* Preliminary function (for compatibility with older neutrino sources) */
|
||||||
void cs_new_auto_videosystem();
|
void cs_new_auto_videosystem();
|
||||||
|
|
||||||
// Memory helpers
|
// Memory helpers
|
||||||
@@ -90,4 +92,25 @@ bool cs_box_has_ci(void);
|
|||||||
unsigned int cs_get_chip_id(void);
|
unsigned int cs_get_chip_id(void);
|
||||||
unsigned int cs_get_chip_rev_id(void);
|
unsigned int cs_get_chip_rev_id(void);
|
||||||
|
|
||||||
|
// library version functions
|
||||||
|
typedef struct cs_libversion_t
|
||||||
|
{
|
||||||
|
int vMajor;
|
||||||
|
int vMinor;
|
||||||
|
int vPatch;
|
||||||
|
char vStr[16];
|
||||||
|
char vGit[41];
|
||||||
|
char vGitDescribe[64];
|
||||||
|
time_t vGitTime;
|
||||||
|
} cs_libversion_struct_t;
|
||||||
|
|
||||||
|
void cs_get_lib_version(cs_libversion_t *ver);
|
||||||
|
|
||||||
|
/* return value:
|
||||||
|
-------------
|
||||||
|
1 Library version newer than given version
|
||||||
|
0 library version equals given version
|
||||||
|
-1 Library version older than given version */
|
||||||
|
int cs_compare_lib_versions(int Major, int Minor, int Patch);
|
||||||
|
|
||||||
#endif //__CS_API_H_
|
#endif //__CS_API_H_
|
||||||
|
@@ -152,6 +152,12 @@ typedef enum
|
|||||||
VIDEO_CONTROL_MAX = VIDEO_CONTROL_SHARPNESS
|
VIDEO_CONTROL_MAX = VIDEO_CONTROL_SHARPNESS
|
||||||
} VIDEO_CONTROL;
|
} VIDEO_CONTROL;
|
||||||
|
|
||||||
|
typedef struct cs_vs_format_t
|
||||||
|
{
|
||||||
|
char formatHD[16];
|
||||||
|
char formatSD[16];
|
||||||
|
} cs_vs_format_struct_t;
|
||||||
|
|
||||||
class cDemux;
|
class cDemux;
|
||||||
class cAudio;
|
class cAudio;
|
||||||
|
|
||||||
@@ -244,8 +250,12 @@ public:
|
|||||||
int64_t GetPTS(void);
|
int64_t GetPTS(void);
|
||||||
int Flush(void);
|
int Flush(void);
|
||||||
|
|
||||||
/* set video_system */
|
/* get video system infos */
|
||||||
int GetVideoSystem();
|
int GetVideoSystem();
|
||||||
|
/* when system = -1 then use current video system */
|
||||||
|
void GetVideoSystemFormatName(cs_vs_format_t* format, int system = -1);
|
||||||
|
|
||||||
|
/* 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);
|
||||||
void SetSyncMode(AVSYNC_TYPE mode);
|
void SetSyncMode(AVSYNC_TYPE mode);
|
||||||
|
Reference in New Issue
Block a user