mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 08:21:12 +02:00
lib/libcoolstream2: headers update
This commit is contained in:
@@ -78,15 +78,12 @@ private:
|
|||||||
unsigned int unit;
|
unsigned int unit;
|
||||||
cDemux *demux;
|
cDemux *demux;
|
||||||
cVideo *video;
|
cVideo *video;
|
||||||
CS_AUDIO_PDATA *privateData;
|
CS_AUDIO_PDATA *privateData;
|
||||||
//unsigned int cEncodedDataOnSPDIF, cEncodedDataOnHDMI;
|
|
||||||
bool muted;
|
bool muted;
|
||||||
|
|
||||||
AUDIO_FORMAT streamType;
|
AUDIO_FORMAT streamType;
|
||||||
AUDIO_SYNC_MODE syncMode;
|
AUDIO_SYNC_MODE syncMode;
|
||||||
bool started;
|
unsigned int uCurrentPTSDelay;
|
||||||
unsigned int uAudioPTSDelay;
|
|
||||||
unsigned int uAudioDolbyPTSDelay, uAudioMpegPTSDelay;
|
|
||||||
bool receivedDelay;
|
bool receivedDelay;
|
||||||
|
|
||||||
/* internal methods */
|
/* internal methods */
|
||||||
@@ -100,6 +97,10 @@ private:
|
|||||||
bool spdifDD;
|
bool spdifDD;
|
||||||
bool hasMuteScheduled;
|
bool hasMuteScheduled;
|
||||||
bool analogOut;
|
bool analogOut;
|
||||||
|
#ifdef ISAPOLLO
|
||||||
|
bool containerMode;
|
||||||
|
bool hbrMode;
|
||||||
|
#endif
|
||||||
//
|
//
|
||||||
cAudio(unsigned int Unit);
|
cAudio(unsigned int Unit);
|
||||||
public:
|
public:
|
||||||
@@ -134,7 +135,7 @@ public:
|
|||||||
AUDIO_FORMAT GetStreamType(void) { return streamType; }
|
AUDIO_FORMAT GetStreamType(void) { return streamType; }
|
||||||
bool ReceivedAudioDelay(void) { return receivedDelay; }
|
bool ReceivedAudioDelay(void) { return receivedDelay; }
|
||||||
void SetReceivedAudioDelay(bool Set = false) { receivedDelay = Set; }
|
void SetReceivedAudioDelay(bool Set = false) { receivedDelay = Set; }
|
||||||
unsigned int GetAudioDelay(void) { return (streamType == AUDIO_FMT_DOLBY_DIGITAL) ? uAudioDolbyPTSDelay : uAudioMpegPTSDelay; }
|
unsigned int GetAudioDelay(void) { return uCurrentPTSDelay; }
|
||||||
void SetSyncMode(AVSYNC_TYPE SyncMode);
|
void SetSyncMode(AVSYNC_TYPE SyncMode);
|
||||||
|
|
||||||
/* stream source */
|
/* stream source */
|
||||||
@@ -162,6 +163,12 @@ public:
|
|||||||
void SetDemux(cDemux *Demux);
|
void SetDemux(cDemux *Demux);
|
||||||
void SetVideo(cVideo *Video);
|
void SetVideo(cVideo *Video);
|
||||||
static cAudio *GetDecoder(unsigned int Unit);
|
static cAudio *GetDecoder(unsigned int Unit);
|
||||||
|
bool Started(void);
|
||||||
|
bool Paused(void);
|
||||||
|
#ifdef ISAPOLLO
|
||||||
|
void SetHBRMode(bool Enable = false);
|
||||||
|
void SetContainerMode(bool Enable = false);
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif //__AUDIO_CS_H_
|
#endif //__AUDIO_CS_H_
|
||||||
|
@@ -76,10 +76,10 @@ typedef struct {
|
|||||||
typedef enum {
|
typedef enum {
|
||||||
FP_LED_1_ON = 0x81,
|
FP_LED_1_ON = 0x81,
|
||||||
FP_LED_2_ON = 0x82,
|
FP_LED_2_ON = 0x82,
|
||||||
FP_LED_3_ON = 0x83,
|
FP_LED_3_ON = 0x88,
|
||||||
FP_LED_1_OFF = 0x01,
|
FP_LED_1_OFF = 0x01,
|
||||||
FP_LED_2_OFF = 0x02,
|
FP_LED_2_OFF = 0x02,
|
||||||
FP_LED_3_OFF = 0x03,
|
FP_LED_3_OFF = 0x08,
|
||||||
} fp_led_ctrl_t;
|
} fp_led_ctrl_t;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
@@ -5,7 +5,6 @@
|
|||||||
/* */
|
/* */
|
||||||
/* (C) 2008 CoolStream International */
|
/* (C) 2008 CoolStream International */
|
||||||
/* */
|
/* */
|
||||||
/* $Id:: $ */
|
|
||||||
/*******************************************************************************/
|
/*******************************************************************************/
|
||||||
#ifndef __VIDEO_CS_H_
|
#ifndef __VIDEO_CS_H_
|
||||||
#define __VIDEO_CS_H_
|
#define __VIDEO_CS_H_
|
||||||
@@ -151,6 +150,12 @@ typedef enum
|
|||||||
VIDEO_CONTROL_MAX = VIDEO_CONTROL_SHARPNESS
|
VIDEO_CONTROL_MAX = VIDEO_CONTROL_SHARPNESS
|
||||||
} VIDEO_CONTROL;
|
} VIDEO_CONTROL;
|
||||||
|
|
||||||
|
typedef enum
|
||||||
|
{
|
||||||
|
VIDEO_STREAM_FEED_MODE_LIVE = 0,
|
||||||
|
VIDEO_STREAM_FEED_MODE_PLAYBACK,
|
||||||
|
} VIDEO_STREAM_FEED_MODE;
|
||||||
|
|
||||||
class cDemux;
|
class cDemux;
|
||||||
class cAudio;
|
class cAudio;
|
||||||
|
|
||||||
@@ -158,7 +163,7 @@ class cVideo {
|
|||||||
friend class cAudio;
|
friend class cAudio;
|
||||||
private:
|
private:
|
||||||
static cVideo *instance[CS_MAX_VIDEO_DECODERS];
|
static cVideo *instance[CS_MAX_VIDEO_DECODERS];
|
||||||
|
//
|
||||||
unsigned int unit;
|
unsigned int unit;
|
||||||
CS_VIDEO_PDATA *privateData;
|
CS_VIDEO_PDATA *privateData;
|
||||||
VIDEO_FORMAT streamType;
|
VIDEO_FORMAT streamType;
|
||||||
@@ -171,14 +176,15 @@ private:
|
|||||||
DISPLAY_AR PictureAR;
|
DISPLAY_AR PictureAR;
|
||||||
VIDEO_FRAME_RATE FrameRate;
|
VIDEO_FRAME_RATE FrameRate;
|
||||||
VIDEO_HDMI_CEC_MODE hdmiCECMode;
|
VIDEO_HDMI_CEC_MODE hdmiCECMode;
|
||||||
|
#ifdef ISAPOLLO
|
||||||
|
VIDEO_STREAM_FEED_MODE streamFeedMode;
|
||||||
|
#endif
|
||||||
bool Interlaced;
|
bool Interlaced;
|
||||||
unsigned int uVPPDisplayDelay;
|
unsigned int uCurrentVPPDisplayDelay;
|
||||||
unsigned int uVideoPTSDelay;
|
unsigned int uCurrentVideoPTSDelay;
|
||||||
int StcPts;
|
int StcPts;
|
||||||
bool started;
|
|
||||||
unsigned int bStandby;
|
unsigned int bStandby;
|
||||||
bool blank;
|
bool blank;
|
||||||
bool playing;
|
|
||||||
bool auto_format;
|
bool auto_format;
|
||||||
int uFormatIndex;
|
int uFormatIndex;
|
||||||
bool vbi_started;
|
bool vbi_started;
|
||||||
@@ -224,8 +230,8 @@ public:
|
|||||||
|
|
||||||
/* get play state */
|
/* get play state */
|
||||||
int getPlayState(void);
|
int getPlayState(void);
|
||||||
void SetVPPDelay(unsigned int delay) { uVPPDisplayDelay = delay;};
|
void SetVPPDelay(unsigned int delay) { uCurrentVPPDisplayDelay = delay; }
|
||||||
void SetVideoDelay(unsigned int delay) { uVideoPTSDelay = delay;};
|
void SetVideoDelay(unsigned int delay) { uCurrentVideoPTSDelay = delay; }
|
||||||
/* Notification handlers */
|
/* Notification handlers */
|
||||||
void HandleVPPMessage(int Event, void *pData);
|
void HandleVPPMessage(int Event, void *pData);
|
||||||
void HandleVideoMessage(void * hHandle, int Event, void *pData);
|
void HandleVideoMessage(void * hHandle, int Event, void *pData);
|
||||||
@@ -233,7 +239,9 @@ public:
|
|||||||
VIDEO_DEFINITION GetVideoDef(void) { return VideoDefinition; }
|
VIDEO_DEFINITION GetVideoDef(void) { return VideoDefinition; }
|
||||||
|
|
||||||
/* change video play state */
|
/* change video play state */
|
||||||
|
#ifndef ISAPOLLO
|
||||||
int Prepare(void * PcrChannel, unsigned short PcrPid, unsigned short VideoPid, void * hChannel = NULL);
|
int Prepare(void * PcrChannel, unsigned short PcrPid, unsigned short VideoPid, void * hChannel = NULL);
|
||||||
|
#endif
|
||||||
int Start(void * PcrChannel, unsigned short PcrPid, unsigned short VideoPid, void * hChannel = NULL);
|
int Start(void * PcrChannel, unsigned short PcrPid, unsigned short VideoPid, void * hChannel = NULL);
|
||||||
int Stop(bool Blank = true);
|
int Stop(bool Blank = true);
|
||||||
bool Pause(void);
|
bool Pause(void);
|
||||||
@@ -271,6 +279,13 @@ public:
|
|||||||
bool GetScreenImage(unsigned char * &data, int &xres, int &yres, bool get_video = true, bool get_osd = false, bool scale_to_video = false);
|
bool GetScreenImage(unsigned char * &data, int &xres, int &yres, bool get_video = true, bool get_osd = false, bool scale_to_video = false);
|
||||||
void SetDemux(cDemux *Demux);
|
void SetDemux(cDemux *Demux);
|
||||||
static cVideo *GetDecoder(unsigned int Unit);
|
static cVideo *GetDecoder(unsigned int Unit);
|
||||||
|
bool Started(void);
|
||||||
|
bool Playing(void);
|
||||||
|
bool Paused(void);
|
||||||
|
void SyncSTC(void);
|
||||||
|
#ifdef ISAPOLLO
|
||||||
|
void SetStreamFeedMode(VIDEO_STREAM_FEED_MODE Mode);
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // __VIDEO_CS_H_
|
#endif // __VIDEO_CS_H_
|
||||||
|
Reference in New Issue
Block a user