mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-27 07:23:11 +02:00
Merge branch 'master' of github.com:Duckbox-Developers/libstb-hal-cst-next
This commit is contained in:
@@ -49,7 +49,7 @@ static uint8_t NullPMT[50]={0x9F,0x80,0x32,0x2E,0x03,0x6E,0xA7,0x37,0x00,0x00,0x
|
|||||||
/* die Feinheiten werden ja in CA_MESSAGE verpackt */
|
/* die Feinheiten werden ja in CA_MESSAGE verpackt */
|
||||||
uint32_t EVT_CA_MESSAGE = 0x80000000 + 60;
|
uint32_t EVT_CA_MESSAGE = 0x80000000 + 60;
|
||||||
|
|
||||||
static cs_messenger cam_messenger;
|
static cs_messenger cam_messenger = NULL;
|
||||||
|
|
||||||
void cs_register_messenger(cs_messenger messenger)
|
void cs_register_messenger(cs_messenger messenger)
|
||||||
{
|
{
|
||||||
@@ -416,6 +416,7 @@ void cCA::process_tpdu(tSlot* slot, unsigned char tpdu_tag, __u8* data, int asn_
|
|||||||
bool cCA::SendMessage(const CA_MESSAGE *msg)
|
bool cCA::SendMessage(const CA_MESSAGE *msg)
|
||||||
{
|
{
|
||||||
lt_debug("%s\n", __func__);
|
lt_debug("%s\n", __func__);
|
||||||
|
if(cam_messenger)
|
||||||
cam_messenger(EVT_CA_MESSAGE, (uint32_t) msg);
|
cam_messenger(EVT_CA_MESSAGE, (uint32_t) msg);
|
||||||
#if y_debug
|
#if y_debug
|
||||||
printf("*******Message\n");
|
printf("*******Message\n");
|
||||||
|
@@ -82,6 +82,7 @@ cVideo::cVideo(int, void *, void *, unsigned int)
|
|||||||
display_aspect = DISPLAY_AR_16_9;
|
display_aspect = DISPLAY_AR_16_9;
|
||||||
display_crop = DISPLAY_AR_MODE_LETTERBOX;
|
display_crop = DISPLAY_AR_MODE_LETTERBOX;
|
||||||
v_format = VIDEO_FORMAT_MPEG2;
|
v_format = VIDEO_FORMAT_MPEG2;
|
||||||
|
output_h = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
cVideo::~cVideo(void)
|
cVideo::~cVideo(void)
|
||||||
@@ -98,7 +99,7 @@ int cVideo::setAspectRatio(int vformat, int cropping)
|
|||||||
display_aspect = (DISPLAY_AR) vformat;
|
display_aspect = (DISPLAY_AR) vformat;
|
||||||
if (cropping >= 0)
|
if (cropping >= 0)
|
||||||
display_crop = (DISPLAY_AR_MODE) cropping;
|
display_crop = (DISPLAY_AR_MODE) cropping;
|
||||||
if (display_aspect < DISPLAY_AR_RAW) /* don't know what to do with this */
|
if (display_aspect < DISPLAY_AR_RAW && output_h > 0) /* don't know what to do with this */
|
||||||
glfb->setOutputFormat(aspect_ratios[display_aspect], output_h, display_crop);
|
glfb->setOutputFormat(aspect_ratios[display_aspect], output_h, display_crop);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@@ -197,11 +198,23 @@ int cVideo::SetVideoSystem(int system, bool)
|
|||||||
}
|
}
|
||||||
v_std = (VIDEO_STD) system;
|
v_std = (VIDEO_STD) system;
|
||||||
output_h = h;
|
output_h = h;
|
||||||
if (display_aspect < DISPLAY_AR_RAW) /* don't know what to do with this */
|
if (display_aspect < DISPLAY_AR_RAW && output_h > 0) /* don't know what to do with this */
|
||||||
glfb->setOutputFormat(aspect_ratios[display_aspect], output_h, display_crop);
|
glfb->setOutputFormat(aspect_ratios[display_aspect], output_h, display_crop);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int cVideo::GetVideoSystem()
|
||||||
|
{
|
||||||
|
int current_video_system = VIDEO_STD_1080I50;
|
||||||
|
|
||||||
|
if(dec_w < 720)
|
||||||
|
current_video_system = VIDEO_STD_PAL;
|
||||||
|
else if(dec_w > 720 && dec_w <= 1280)
|
||||||
|
current_video_system = VIDEO_STD_720P50;
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
int cVideo::getPlayState(void)
|
int cVideo::getPlayState(void)
|
||||||
{
|
{
|
||||||
return VIDEO_PLAYING;
|
return VIDEO_PLAYING;
|
||||||
|
@@ -177,6 +177,7 @@ class cVideo : public Thread
|
|||||||
|
|
||||||
/* set video_system */
|
/* set video_system */
|
||||||
int SetVideoSystem(int video_system, bool remember = true);
|
int SetVideoSystem(int video_system, bool remember = true);
|
||||||
|
int GetVideoSystem();
|
||||||
int SetStreamType(VIDEO_FORMAT type);
|
int SetStreamType(VIDEO_FORMAT type);
|
||||||
void SetSyncMode(AVSYNC_TYPE mode);
|
void SetSyncMode(AVSYNC_TYPE mode);
|
||||||
bool SetCECMode(VIDEO_HDMI_CEC_MODE) { return true; };
|
bool SetCECMode(VIDEO_HDMI_CEC_MODE) { return true; };
|
||||||
|
Reference in New Issue
Block a user