mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-27 07:23:11 +02:00
fix generic build
This commit is contained in:
@@ -3,7 +3,7 @@ ACLOCAL_AMFLAGS = -I m4
|
|||||||
lib_LTLIBRARIES = libstb-hal.la
|
lib_LTLIBRARIES = libstb-hal.la
|
||||||
libstb_hal_la_SOURCES =
|
libstb_hal_la_SOURCES =
|
||||||
SUBDIRS = common tools
|
SUBDIRS = common tools
|
||||||
bin_PROGRAMS = libstb-hal-test
|
#bin_PROGRAMS = libstb-hal-test
|
||||||
|
|
||||||
libstb_hal_la_LIBADD = \
|
libstb_hal_la_LIBADD = \
|
||||||
common/libcommon.la
|
common/libcommon.la
|
||||||
|
@@ -31,6 +31,8 @@ hw_caps_t *get_hwcaps(void)
|
|||||||
caps.has_HDMI = 1;
|
caps.has_HDMI = 1;
|
||||||
caps.display_xres = 8;
|
caps.display_xres = 8;
|
||||||
caps.can_set_display_brightness = 0;
|
caps.can_set_display_brightness = 0;
|
||||||
|
caps.display_can_deepstandby = 0;
|
||||||
|
caps.display_can_set_brightness = 0;
|
||||||
strcpy(caps.boxvendor, "AZBox");
|
strcpy(caps.boxvendor, "AZBox");
|
||||||
const char *tmp;
|
const char *tmp;
|
||||||
char buf[64];
|
char buf[64];
|
||||||
|
@@ -28,6 +28,8 @@ hw_caps_t *get_hwcaps(void)
|
|||||||
caps.display_type = HW_DISPLAY_LINE_TEXT;
|
caps.display_type = HW_DISPLAY_LINE_TEXT;
|
||||||
caps.has_HDMI = 1;
|
caps.has_HDMI = 1;
|
||||||
caps.display_xres = 8;
|
caps.display_xres = 8;
|
||||||
|
caps.display_can_deepstandby = 0;
|
||||||
|
caps.display_can_set_brightness = 0;
|
||||||
caps.can_set_display_brightness = 0;
|
caps.can_set_display_brightness = 0;
|
||||||
strcpy(caps.boxvendor, "Generic");
|
strcpy(caps.boxvendor, "Generic");
|
||||||
strcpy(caps.boxname, "PC");
|
strcpy(caps.boxname, "PC");
|
||||||
|
@@ -7,6 +7,10 @@
|
|||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include "cs_types.h"
|
#include "cs_types.h"
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
#include <set>
|
||||||
|
typedef std::set<int> ca_map_t;
|
||||||
|
typedef ca_map_t::iterator ca_map_iterator_t;
|
||||||
|
|
||||||
typedef std::vector<u16> CaIdVector;
|
typedef std::vector<u16> CaIdVector;
|
||||||
typedef std::vector<u16>::iterator CaIdVectorIterator;
|
typedef std::vector<u16>::iterator CaIdVectorIterator;
|
||||||
typedef std::vector<u16>::const_iterator CaIdVectorConstIterator;
|
typedef std::vector<u16>::const_iterator CaIdVectorConstIterator;
|
||||||
@@ -92,6 +96,8 @@ public:
|
|||||||
static cCA *GetInstance(void);
|
static cCA *GetInstance(void);
|
||||||
bool SendPMT(int Unit, unsigned char *Data, int Len, CA_SLOT_TYPE SlotType = CA_SLOT_TYPE_ALL);
|
bool SendPMT(int Unit, unsigned char *Data, int Len, CA_SLOT_TYPE SlotType = CA_SLOT_TYPE_ALL);
|
||||||
bool SendCAPMT(u64 /*Source*/, u8 /*DemuxSource*/, u8 /*DemuxMask*/, const unsigned char * /*CAPMT*/, u32 /*CAPMTLen*/, const unsigned char * /*RawPMT*/, u32 /*RawPMTLen*/, enum CA_SLOT_TYPE SlotType = CA_SLOT_TYPE_ALL) { (void)SlotType; return true; };
|
bool SendCAPMT(u64 /*Source*/, u8 /*DemuxSource*/, u8 /*DemuxMask*/, const unsigned char * /*CAPMT*/, u32 /*CAPMTLen*/, const unsigned char * /*RawPMT*/, u32 /*RawPMTLen*/, enum CA_SLOT_TYPE SlotType = CA_SLOT_TYPE_ALL) { (void)SlotType; return true; };
|
||||||
|
bool SendCAPMT(u64 /*Source*/, u8 /*DemuxSource*/, u8 /*DemuxMask*/, const unsigned char * /*CAPMT*/, u32 /*CAPMTLen*/, const unsigned char * /*RawPMT*/, u32 /*RawPMTLen*/, enum CA_SLOT_TYPE SlotType = CA_SLOT_TYPE_ALL, unsigned char scrambled = 0, ca_map_t camap ={0}, int mode = 0, bool enable = false) { (void)SlotType;(void)scrambled;(void)camap;(void)mode;(void)enable; return true; };
|
||||||
|
|
||||||
bool SendMessage(const CA_MESSAGE *Msg);
|
bool SendMessage(const CA_MESSAGE *Msg);
|
||||||
void SetInitMask(enum CA_INIT_MASK InitMask);
|
void SetInitMask(enum CA_INIT_MASK InitMask);
|
||||||
int GetCAIDS(CaIdVector & /*Caids*/) { return 0; };
|
int GetCAIDS(CaIdVector & /*Caids*/) { return 0; };
|
||||||
|
@@ -36,6 +36,8 @@ typedef struct hw_caps
|
|||||||
display_type_t display_type;
|
display_type_t display_type;
|
||||||
int display_xres; /* x resolution or chars per line */
|
int display_xres; /* x resolution or chars per line */
|
||||||
int display_yres;
|
int display_yres;
|
||||||
|
int display_can_deepstandby;
|
||||||
|
int display_can_set_brightness;
|
||||||
int can_set_display_brightness;
|
int can_set_display_brightness;
|
||||||
char boxvendor[64];
|
char boxvendor[64];
|
||||||
char boxname[64];
|
char boxname[64];
|
||||||
|
@@ -49,6 +49,7 @@ public:
|
|||||||
bool GetPosition(int &position, int &duration);
|
bool GetPosition(int &position, int &duration);
|
||||||
bool SetPosition(int position, bool absolute = false);
|
bool SetPosition(int position, bool absolute = false);
|
||||||
void FindAllPids(uint16_t *pids, unsigned short *aud_flags, uint16_t *num, std::string *language);
|
void FindAllPids(uint16_t *pids, unsigned short *aud_flags, uint16_t *num, std::string *language);
|
||||||
|
void FindAllPids(int *apids, unsigned int *ac3flags, uint32_t *numpida, std::string *language){FindAllPids((uint16_t*)apids, (unsigned short*)ac3flags, (uint16_t*) numpida, language);}
|
||||||
void FindAllSubs(uint16_t *pids, unsigned short *supported, uint16_t *num, std::string *language);
|
void FindAllSubs(uint16_t *pids, unsigned short *supported, uint16_t *num, std::string *language);
|
||||||
bool SelectSubtitles(int pid, std::string charset = "");
|
bool SelectSubtitles(int pid, std::string charset = "");
|
||||||
void GetChapters(std::vector<int> &positions, std::vector<std::string> &titles);
|
void GetChapters(std::vector<int> &positions, std::vector<std::string> &titles);
|
||||||
@@ -56,6 +57,14 @@ public:
|
|||||||
void GetTitles(std::vector<int> &playlists, std::vector<std::string> &titles, int ¤t);
|
void GetTitles(std::vector<int> &playlists, std::vector<std::string> &titles, int ¤t);
|
||||||
void SetTitle(int title);
|
void SetTitle(int title);
|
||||||
uint64_t GetReadCount(void);
|
uint64_t GetReadCount(void);
|
||||||
|
void FindAllTeletextsubtitlePids(int *, unsigned int *numpids, std::string *, int *, int *){*numpids = 0;}
|
||||||
|
void FindAllSubtitlePids(int * /*pids*/, unsigned int *numpids, std::string * /*language*/){*numpids = 0;}
|
||||||
|
int GetSubtitlePid(void){return 0;}
|
||||||
|
bool SetTeletextPid(int /*pid*/){return true;}
|
||||||
|
int GetAPid(){return 0;}
|
||||||
|
void GetMetadata(std::vector<std::string> /*&keys*/, std::vector<std::string> /*&values*/){}
|
||||||
|
void GetPts(uint64_t &/*pts*/){}
|
||||||
|
bool SetSubtitlePid(int /*pid*/){return false;}
|
||||||
//
|
//
|
||||||
cPlayback(int num = 0);
|
cPlayback(int num = 0);
|
||||||
~cPlayback();
|
~cPlayback();
|
||||||
|
@@ -38,6 +38,8 @@ hw_caps_t *get_hwcaps(void)
|
|||||||
caps.has_SCART = 1;
|
caps.has_SCART = 1;
|
||||||
caps.display_xres = 4;
|
caps.display_xres = 4;
|
||||||
caps.can_set_display_brightness = 0;
|
caps.can_set_display_brightness = 0;
|
||||||
|
caps.display_can_deepstandby = 0;
|
||||||
|
caps.display_can_set_brightness = 0;
|
||||||
caps.force_tuner_2G = 1; /* I have patched the drivers to fix this, but not everyone has */
|
caps.force_tuner_2G = 1; /* I have patched the drivers to fix this, but not everyone has */
|
||||||
strcpy(caps.boxvendor, "SPARK");
|
strcpy(caps.boxvendor, "SPARK");
|
||||||
const char *tmp;
|
const char *tmp;
|
||||||
|
@@ -24,6 +24,8 @@ static hw_caps_t caps = {
|
|||||||
.display_xres = 128,
|
.display_xres = 128,
|
||||||
.display_yres = 64,
|
.display_yres = 64,
|
||||||
.can_set_display_brightness = 0,
|
.can_set_display_brightness = 0,
|
||||||
|
.display_can_deepstandby = 0;
|
||||||
|
.display_can_set_brightness = 0;
|
||||||
.boxvendor = "Armas",
|
.boxvendor = "Armas",
|
||||||
.boxname = "TripleDragon",
|
.boxname = "TripleDragon",
|
||||||
.boxarch = "ppc405"
|
.boxarch = "ppc405"
|
||||||
|
@@ -30,6 +30,8 @@ hw_caps_t *get_hwcaps(void)
|
|||||||
caps.has_HDMI = 1;
|
caps.has_HDMI = 1;
|
||||||
caps.display_xres = 8;
|
caps.display_xres = 8;
|
||||||
caps.can_set_display_brightness = 0;
|
caps.can_set_display_brightness = 0;
|
||||||
|
caps.display_can_deepstandby = 0;
|
||||||
|
caps.display_can_set_brightness = 0;
|
||||||
strcpy(caps.boxvendor, "Raspberry");
|
strcpy(caps.boxvendor, "Raspberry");
|
||||||
strcpy(caps.boxname, "Pi");
|
strcpy(caps.boxname, "Pi");
|
||||||
if (! uname(&u))
|
if (! uname(&u))
|
||||||
|
Reference in New Issue
Block a user