mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 23:42:51 +02:00
neutrino-apollo: changes for apollo uclibc.
Origin commit data
------------------
Commit: cf878686ba
Author: [CST] Bas <bas@coolstreamtech.com>
Date: 2012-07-09 (Mon, 09 Jul 2012)
This commit is contained in:
@@ -71,7 +71,7 @@ typedef struct cs_audio_caps {
|
||||
class cAudio {
|
||||
private:
|
||||
CS_AUDIO_PDATA *privateData;
|
||||
unsigned int cEncodedDataOnSPDIF, cEncodedDataOnHDMI;
|
||||
//unsigned int cEncodedDataOnSPDIF, cEncodedDataOnHDMI;
|
||||
bool muted;
|
||||
|
||||
AUDIO_FORMAT streamType;
|
||||
@@ -148,6 +148,7 @@ public:
|
||||
bool GetHdmiAudioCaps(cs_audio_caps_t &caps);
|
||||
bool IsHdmiAudioFormatSupported(HDMI_AUDIO_FORMAT format);
|
||||
void SetHdmiDD(HDMI_ENCODED_MODE type);
|
||||
bool IsHdmiDTSSupported(void);
|
||||
};
|
||||
|
||||
#endif //__AUDIO_CS_H_
|
||||
|
@@ -5,6 +5,7 @@
|
||||
/* */
|
||||
/* (C) 2010 CoolStream International */
|
||||
/* */
|
||||
/* $Id:: $ */
|
||||
/*******************************************************************************/
|
||||
#ifndef __CS_API_H_
|
||||
#define __CS_API_H_
|
||||
@@ -30,7 +31,7 @@ enum CS_LOG_MODULE {
|
||||
CS_LOG_POWER_CLK,
|
||||
CS_LOG_MEM,
|
||||
CS_LOG_API,
|
||||
CS_LOG_CA
|
||||
CS_LOG_CA,
|
||||
};
|
||||
|
||||
// Initialization
|
||||
@@ -58,6 +59,8 @@ void cs_log_module_message(enum CS_LOG_MODULE module, const char *fmt, ...);
|
||||
// TS Routing
|
||||
unsigned int cs_get_ts_output(void);
|
||||
int cs_set_ts_output(unsigned int port);
|
||||
int cs_set_ts_ci_clock(unsigned int speed);
|
||||
int cs_get_ts_ci_clock(unsigned int *speed);
|
||||
int cs_set_ts_config(unsigned int port, tsrouter_hsdp_config_t *hsdp_config);
|
||||
int cs_get_ts_config(unsigned int port, tsrouter_hsdp_config_t *hsdp_config);
|
||||
|
||||
|
@@ -11,6 +11,8 @@
|
||||
#define __DEMUX_CS_H_
|
||||
|
||||
#include <string>
|
||||
|
||||
#include <video_cs.h>
|
||||
#include "cs_types.h"
|
||||
|
||||
#define DEMUX_POLL_TIMEOUT 0 // timeout in ms
|
||||
@@ -54,6 +56,8 @@ public:
|
||||
bool Start(bool record = false);
|
||||
bool Stop(void);
|
||||
int Read(unsigned char *buff, int len, int Timeout = 0);
|
||||
|
||||
bool SetVideoFormat(VIDEO_FORMAT VideoFormat);
|
||||
bool SetSource(int source);
|
||||
|
||||
bool sectionFilter(unsigned short Pid, const unsigned char * const Tid, const unsigned char * const Mask, int len, int Timeout = DEMUX_POLL_TIMEOUT, const unsigned char * const nMask = NULL);
|
||||
@@ -64,7 +68,7 @@ public:
|
||||
void SetSyncMode(AVSYNC_TYPE SyncMode);
|
||||
void *getBuffer(void);
|
||||
void *getChannel(void);
|
||||
void getSTC(int64_t *STC);
|
||||
void getSTC(s64 *STC);
|
||||
|
||||
DMX_CHANNEL_TYPE getChannelType(void) { return type; };
|
||||
int getUnit(void) { return unit; };
|
||||
|
@@ -5,6 +5,7 @@
|
||||
/* */
|
||||
/* (C) 2008 CoolStream International */
|
||||
/* */
|
||||
/* $Id:: $ */
|
||||
/*******************************************************************************/
|
||||
#ifndef __VIDEO_CS_H_
|
||||
#define __VIDEO_CS_H_
|
||||
@@ -30,13 +31,28 @@ typedef enum {
|
||||
ANALOG_SCART_MASK = 0x10
|
||||
} analog_mode_t;
|
||||
|
||||
typedef enum {
|
||||
VIDEO_FORMAT_MPEG2 = 0,
|
||||
VIDEO_FORMAT_MPEG4,
|
||||
VIDEO_FORMAT_VC1,
|
||||
VIDEO_FORMAT_JPEG,
|
||||
VIDEO_FORMAT_GIF,
|
||||
VIDEO_FORMAT_PNG
|
||||
typedef enum
|
||||
{
|
||||
VIDEO_FORMAT_MPEG2 = 0,
|
||||
VIDEO_FORMAT_MPEG4, /* H264 */
|
||||
VIDEO_FORMAT_VC1,
|
||||
VIDEO_FORMAT_JPEG,
|
||||
VIDEO_FORMAT_GIF,
|
||||
VIDEO_FORMAT_PNG,
|
||||
VIDEO_FORMAT_DIVX,/* DIVX 3.11 */
|
||||
VIDEO_FORMAT_MPEG4PART2,/* MPEG4 SVH, MPEG4 SP, MPEG4 ASP, DIVX4,5,6 */
|
||||
VIDEO_FORMAT_REALVIDEO8,
|
||||
VIDEO_FORMAT_REALVIDEO9,
|
||||
VIDEO_FORMAT_ON2_VP6,
|
||||
VIDEO_FORMAT_ON2_VP8,
|
||||
VIDEO_FORMAT_SORENSON_SPARK,
|
||||
VIDEO_FORMAT_H263,
|
||||
VIDEO_FORMAT_H263_ENCODER,
|
||||
VIDEO_FORMAT_H264_ENCODER,
|
||||
VIDEO_FORMAT_MPEG4PART2_ENCODER,
|
||||
VIDEO_FORMAT_AVS,
|
||||
VIDEO_FORMAT_VIP656,
|
||||
VIDEO_FORMAT_UNSUPPORTED
|
||||
} VIDEO_FORMAT;
|
||||
|
||||
typedef enum {
|
||||
@@ -125,7 +141,7 @@ typedef enum
|
||||
class cVideo {
|
||||
private:
|
||||
CS_VIDEO_PDATA *privateData;
|
||||
VIDEO_FORMAT StreamType;
|
||||
u32 streamType;
|
||||
VIDEO_DEFINITION VideoDefinition;
|
||||
DISPLAY_AR DisplayAR;
|
||||
VIDEO_PLAY_MODE playMode;
|
||||
@@ -136,7 +152,7 @@ private:
|
||||
VIDEO_FRAME_RATE FrameRate;
|
||||
VIDEO_HDMI_CEC_MODE hdmiCECMode;
|
||||
bool Interlaced;
|
||||
unsigned int uDRMDisplayDelay;
|
||||
unsigned int uVPPDisplayDelay;
|
||||
unsigned int uVideoPTSDelay;
|
||||
int StcPts;
|
||||
bool started;
|
||||
@@ -146,7 +162,7 @@ private:
|
||||
bool auto_format;
|
||||
int uFormatIndex;
|
||||
bool vbi_started;
|
||||
bool receivedDRMDelay;
|
||||
bool receivedVPPDelay;
|
||||
bool receivedVideoDelay;
|
||||
int cfd; // control driver fd
|
||||
analog_mode_t analog_mode_cinch;
|
||||
@@ -160,7 +176,7 @@ public:
|
||||
cVideo(int mode, void * hChannel, void * hBuffer);
|
||||
~cVideo(void);
|
||||
|
||||
void * GetDRM(void);
|
||||
void * GetVPP(void);
|
||||
void * GetTVEnc();
|
||||
void * GetTVEncSD();
|
||||
void * GetHandle();
|
||||
@@ -178,7 +194,7 @@ public:
|
||||
/* stream source */
|
||||
int getSource(void);
|
||||
int setSource(void);
|
||||
int GetStreamType(void) { return StreamType; };
|
||||
int GetStreamType(void);
|
||||
|
||||
/* blank on freeze */
|
||||
int getBlank(void);
|
||||
@@ -186,10 +202,10 @@ public:
|
||||
|
||||
/* get play state */
|
||||
int getPlayState(void);
|
||||
void SetDRMDelay(unsigned int delay) { uDRMDisplayDelay = delay;};
|
||||
void SetVPPDelay(unsigned int delay) { uVPPDisplayDelay = delay;};
|
||||
void SetVideoDelay(unsigned int delay) { uVideoPTSDelay = delay;};
|
||||
/* Notification handlers */
|
||||
void HandleDRMMessage(int Event, void *pData);
|
||||
void HandleVPPMessage(int Event, void *pData);
|
||||
void HandleVideoMessage(void * hHandle, int Event, void *pData);
|
||||
void HandleEncoderMessage(void *hHandle, int Event, void *pData);
|
||||
VIDEO_DEFINITION GetVideoDef(void) { return VideoDefinition; }
|
||||
@@ -216,9 +232,9 @@ public:
|
||||
void Standby(bool bOn);
|
||||
void Pig(int x, int y, int w, int h, int osd_w = 1064, int osd_h = 600);
|
||||
void SetControl(int num, int val);
|
||||
bool ReceivedDRMDelay(void) { return receivedDRMDelay; }
|
||||
bool ReceivedVPPDelay(void) { return receivedVPPDelay; }
|
||||
bool ReceivedVideoDelay(void) { return receivedVideoDelay; }
|
||||
void SetReceivedDRMDelay(bool Received) { receivedDRMDelay = Received; }
|
||||
void SetReceivedVPPDelay(bool Received) { receivedVPPDelay = Received; }
|
||||
void SetReceivedVideoDelay(bool Received) { receivedVideoDelay = Received; }
|
||||
void SetFastBlank(bool onoff);
|
||||
void SetTVAV(bool onoff);
|
||||
|
@@ -997,7 +997,7 @@ static void commandDumpStatusInformation(int /*connfd*/, char* /*data*/, const u
|
||||
// resourceUsage.ru_maxrss, resourceUsage.ru_ixrss, resourceUsage.ru_idrss, resourceUsage.ru_isrss,
|
||||
);
|
||||
printf("%s\n", stati);
|
||||
malloc_stats();
|
||||
malloc_stats(NULL);
|
||||
return ;
|
||||
}
|
||||
|
||||
@@ -1123,7 +1123,7 @@ static void FreeMemory()
|
||||
|
||||
unlockEvents();
|
||||
|
||||
malloc_stats();
|
||||
malloc_stats(NULL);
|
||||
xprintf("[sectionsd] free memory done\n");
|
||||
//wakeupAll(); //FIXME should we re-start eit here ?
|
||||
}
|
||||
@@ -1907,7 +1907,7 @@ static void print_meminfo(void)
|
||||
if (!sections_debug)
|
||||
return;
|
||||
|
||||
malloc_stats();
|
||||
malloc_stats(NULL);
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user