mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-26 23:12:44 +02:00
includes: some manual code nicenings
Origin commit data
------------------
Branch: master
Commit: 59dd7a5268
Author: vanhofen <vanhofen@gmx.de>
Date: 2021-11-07 (Sun, 07 Nov 2021)
Origin message was:
------------------
- includes: some manual code nicenings
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
30
include/ca.h
30
include/ca.h
@@ -5,6 +5,7 @@
|
|||||||
#include "cs_types.h"
|
#include "cs_types.h"
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <set>
|
#include <set>
|
||||||
|
|
||||||
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;
|
||||||
@@ -105,16 +106,10 @@ class cCA
|
|||||||
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*/) { return true; };
|
// bool SendCAPMT(u64 /*Source*/, u8 /*DemuxSource*/, u8 /*DemuxMask*/, const unsigned char * /*CAPMT*/, u32 /*CAPMTLen*/, const unsigned char * /*RawPMT*/, u32 /*RawPMTLen*/) { 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
|
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*/, unsigned char /*scrambled = 0*/, ca_map_t /*camap = std::set<int>()*/, int /*mode = 0*/, bool /*enabled = false*/)
|
/*SlotType*/, unsigned char /*scrambled = 0*/, ca_map_t /*camap = std::set<int>()*/, int /*mode = 0*/, bool /*enabled = false*/) { return true; };
|
||||||
{
|
|
||||||
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*/)
|
int GetCAIDS(CaIdVector & /*Caids*/) { return 0; };
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
};
|
|
||||||
bool Start(void);
|
bool Start(void);
|
||||||
void Stop(void);
|
void Stop(void);
|
||||||
void Ready(bool Set);
|
void Ready(bool Set);
|
||||||
@@ -125,21 +120,12 @@ class cCA
|
|||||||
void MenuAnswer(enum CA_SLOT_TYPE, uint32_t Slot, uint32_t choice);
|
void MenuAnswer(enum CA_SLOT_TYPE, uint32_t Slot, uint32_t choice);
|
||||||
void InputAnswer(enum CA_SLOT_TYPE, uint32_t Slot, uint8_t *Data, int Len);
|
void InputAnswer(enum CA_SLOT_TYPE, uint32_t Slot, uint8_t *Data, int Len);
|
||||||
void MenuClose(enum CA_SLOT_TYPE, uint32_t Slot);
|
void MenuClose(enum CA_SLOT_TYPE, uint32_t Slot);
|
||||||
void SetTSClock(u32 /*Speed*/, int /*slot*/)
|
void SetTSClock(u32 /*Speed*/, int /*slot*/) { return; };
|
||||||
{
|
bool checkChannelID(u64 /*chanID*/) { return false; };
|
||||||
return;
|
void setCheckLiveSlot(int /*check*/) { return; };
|
||||||
};
|
|
||||||
bool checkChannelID(u64 /*chanID*/)
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
};
|
|
||||||
void setCheckLiveSlot(int /*check*/)
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
};
|
|
||||||
/// start pollthread after zapit is ready
|
/// start pollthread after zapit is ready
|
||||||
virtual void setZapitReady(){zapitReady = true;};
|
virtual void setZapitReady() { zapitReady = true; };
|
||||||
virtual bool getZapitReady(){return zapitReady;};
|
virtual bool getZapitReady() { return zapitReady; };
|
||||||
/// Virtual destructor
|
/// Virtual destructor
|
||||||
virtual ~cCA();
|
virtual ~cCA();
|
||||||
};
|
};
|
||||||
|
@@ -388,8 +388,8 @@ class cCA
|
|||||||
/// as the name says
|
/// as the name says
|
||||||
bool CheckCerts(void);
|
bool CheckCerts(void);
|
||||||
/// start pollthread after zapit is ready
|
/// start pollthread after zapit is ready
|
||||||
virtual void setZapitReady(){zapitReady = true;};
|
virtual void setZapitReady() { zapitReady = true; };
|
||||||
virtual bool getZapitReady(){return zapitReady;};
|
virtual bool getZapitReady() { return zapitReady; };
|
||||||
/// Virtual destructor
|
/// Virtual destructor
|
||||||
virtual ~cCA();
|
virtual ~cCA();
|
||||||
};
|
};
|
||||||
|
@@ -33,25 +33,13 @@ inline void cs_api_exit()
|
|||||||
)
|
)
|
||||||
void cs_register_messenger(cs_messenger messenger);
|
void cs_register_messenger(cs_messenger messenger);
|
||||||
#else
|
#else
|
||||||
static inline void cs_register_messenger(cs_messenger)
|
static inline void cs_register_messenger(cs_messenger) { return; };
|
||||||
{
|
|
||||||
return;
|
|
||||||
};
|
|
||||||
#endif
|
#endif
|
||||||
static inline void cs_deregister_messenger(void)
|
static inline void cs_deregister_messenger(void) { return; };
|
||||||
{
|
|
||||||
return;
|
|
||||||
};
|
|
||||||
|
|
||||||
/* compat... HD1 seems to be version 6. everything newer ist > 6... */
|
/* compat... HD1 seems to be version 6. everything newer ist > 6... */
|
||||||
static inline unsigned int cs_get_revision(void)
|
static inline unsigned int cs_get_revision(void) { return 1; };
|
||||||
{
|
static inline unsigned int cs_get_chip_type(void) { return 0; };
|
||||||
return 1;
|
|
||||||
};
|
|
||||||
static inline unsigned int cs_get_chip_type(void)
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
};
|
|
||||||
extern int cnxt_debug;
|
extern int cnxt_debug;
|
||||||
|
|
||||||
#endif // __CS_API_H__
|
#endif // __CS_API_H__
|
||||||
|
@@ -92,19 +92,13 @@ class cDemux
|
|||||||
void SetSyncMode(AVSYNC_TYPE mode);
|
void SetSyncMode(AVSYNC_TYPE mode);
|
||||||
void *getBuffer();
|
void *getBuffer();
|
||||||
void *getChannel();
|
void *getChannel();
|
||||||
DMX_CHANNEL_TYPE getChannelType(void)
|
DMX_CHANNEL_TYPE getChannelType(void) { return dmx_type; };
|
||||||
{
|
|
||||||
return dmx_type;
|
|
||||||
};
|
|
||||||
bool addPid(unsigned short pid);
|
bool addPid(unsigned short pid);
|
||||||
void getSTC(int64_t *STC);
|
void getSTC(int64_t *STC);
|
||||||
int getUnit(void);
|
int getUnit(void);
|
||||||
static bool SetSource(int unit, int source);
|
static bool SetSource(int unit, int source);
|
||||||
static int GetSource(int unit);
|
static int GetSource(int unit);
|
||||||
int getFD(void)
|
int getFD(void) { return fd; }; /* needed by cPlayback class */
|
||||||
{
|
|
||||||
return fd;
|
|
||||||
}; /* needed by cPlayback class */
|
|
||||||
cDemux(int num = 0);
|
cDemux(int num = 0);
|
||||||
~cDemux();
|
~cDemux();
|
||||||
private:
|
private:
|
||||||
|
@@ -28,15 +28,9 @@ class GLFramebuffer : public OpenThreads::Thread
|
|||||||
public:
|
public:
|
||||||
GLFramebuffer(int x, int y);
|
GLFramebuffer(int x, int y);
|
||||||
~GLFramebuffer();
|
~GLFramebuffer();
|
||||||
std::vector<unsigned char> *getOSDBuffer()
|
std::vector<unsigned char> *getOSDBuffer() { return &osd_buf; } /* pointer to OSD bounce buffer */
|
||||||
{
|
|
||||||
return &osd_buf; /* pointer to OSD bounce buffer */
|
|
||||||
}
|
|
||||||
void blit();
|
void blit();
|
||||||
fb_var_screeninfo getScreenInfo()
|
fb_var_screeninfo getScreenInfo() { return si; }
|
||||||
{
|
|
||||||
return si;
|
|
||||||
}
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
fb_var_screeninfo si;
|
fb_var_screeninfo si;
|
||||||
|
Reference in New Issue
Block a user