libarmbox: move hdmi_cec to own class, add basic cec-remote support

cec-remote will print received commands in log for now


Origin commit data
------------------
Branch: master
Commit: b244b6a6a4
Author: TangoCash <eric@loxat.de>
Date: 2018-10-07 (Sun, 07 Oct 2018)



------------------
This commit was generated by Migit
This commit is contained in:
TangoCash
2018-10-07 12:00:41 +02:00
committed by max_10
parent 5c9f4b34e7
commit 85de1049ca
5 changed files with 570 additions and 238 deletions

View File

@@ -144,20 +144,6 @@ typedef enum
VIDEO_CONTROL_MAX = VIDEO_CONTROL_SHARPNESS
} VIDEO_CONTROL;
struct cec_message
{
unsigned char address;
unsigned char length;
unsigned char data[256];
}__attribute__((packed));
#define cec_rx_message cec_message
struct addressinfo
{
unsigned char logical;
unsigned char physical[2];
unsigned char type;
};
class cDemux;
class cPlayback;
@@ -201,11 +187,6 @@ class cVideo
/* used internally by dmx */
int64_t GetPTS(void);
unsigned char physicalAddress[2];
bool standby_cec_activ,autoview_cec_activ;
unsigned char deviceType, logicalAddress;
int hdmiFd;
public:
/* constructor & destructor */
cVideo(int mode, void *, void *, unsigned int unit = 0);
@@ -250,10 +231,6 @@ class cVideo
bool SetCECMode(VIDEO_HDMI_CEC_MODE);
void SetCECAutoView(bool);
void SetCECAutoStandby(bool);
void GetCECAddressInfo();
void SendCECMessage(struct cec_message &message);
void SetCECState(bool state);
void ReportPhysicalAddress();
void ShowPicture(const char * fname);
void StopPicture();
void Standby(unsigned int bOn);