mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-26 23:12:44 +02:00
fix build raspi
Origin commit data
------------------
Branch: master
Commit: bb185c31b5
Author: max_10 <max_10@gmx.de>
Date: 2023-03-07 (Tue, 07 Mar 2023)
Origin message was:
------------------
- fix build raspi
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -38,7 +38,6 @@ class cRecord
|
|||||||
#define RECORD_WRITER_CHUNKS 16
|
#define RECORD_WRITER_CHUNKS 16
|
||||||
unsigned char *io_buf[RECORD_WRITER_CHUNKS];
|
unsigned char *io_buf[RECORD_WRITER_CHUNKS];
|
||||||
size_t io_len[RECORD_WRITER_CHUNKS];
|
size_t io_len[RECORD_WRITER_CHUNKS];
|
||||||
|
|
||||||
public:
|
public:
|
||||||
cRecord(int num = 0, int bs_dmx = 2048 * 1024, int bs = 4096 * 1024);
|
cRecord(int num = 0, int bs_dmx = 2048 * 1024, int bs = 4096 * 1024);
|
||||||
void setFailureCallback(void (*f)(void *), void *d) { failureCallback = f; failureData = d; }
|
void setFailureCallback(void (*f)(void *), void *d) { failureCallback = f; failureData = d; }
|
||||||
|
@@ -50,7 +50,7 @@ class cAudio
|
|||||||
int mixer_fd; /* if we are using the OSS mixer */
|
int mixer_fd; /* if we are using the OSS mixer */
|
||||||
int mixer_num; /* oss mixer to use, if any */
|
int mixer_num; /* oss mixer to use, if any */
|
||||||
|
|
||||||
AUDIO_FORMAT StreamType;
|
int StreamType;
|
||||||
AUDIO_SYNC_MODE SyncMode;
|
AUDIO_SYNC_MODE SyncMode;
|
||||||
bool started;
|
bool started;
|
||||||
bool thread_started;
|
bool thread_started;
|
||||||
@@ -84,7 +84,8 @@ class cAudio
|
|||||||
int Start(void);
|
int Start(void);
|
||||||
int Stop(void);
|
int Stop(void);
|
||||||
bool Pause(bool Pcm = true);
|
bool Pause(bool Pcm = true);
|
||||||
void SetStreamType(AUDIO_FORMAT type);
|
void SetStreamType(int bypass);
|
||||||
|
int GetStreamType(void) { return StreamType; }
|
||||||
void SetSyncMode(AVSYNC_TYPE Mode);
|
void SetSyncMode(AVSYNC_TYPE Mode);
|
||||||
|
|
||||||
/* select channels */
|
/* select channels */
|
||||||
|
@@ -78,6 +78,18 @@ int cVideo::setBlank(int)
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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 current_video_system;
|
||||||
|
}
|
||||||
|
|
||||||
int cVideo::SetVideoSystem(int system, bool)
|
int cVideo::SetVideoSystem(int system, bool)
|
||||||
{
|
{
|
||||||
int h;
|
int h;
|
||||||
|
@@ -180,6 +180,10 @@ class cVideo
|
|||||||
int getBlank(void);
|
int getBlank(void);
|
||||||
int setBlank(int enable);
|
int setBlank(int enable);
|
||||||
|
|
||||||
|
/* set video_system */
|
||||||
|
int SetVideoSystem(int video_system, bool remember = true);
|
||||||
|
int GetVideoSystem();
|
||||||
|
|
||||||
/* change video play state. Parameters are all unused. */
|
/* change video play state. Parameters are all unused. */
|
||||||
int Start(void *PcrChannel = NULL, unsigned short PcrPid = 0, unsigned short VideoPid = 0, void *x = NULL);
|
int Start(void *PcrChannel = NULL, unsigned short PcrPid = 0, unsigned short VideoPid = 0, void *x = NULL);
|
||||||
int Stop(bool blank = true);
|
int Stop(bool blank = true);
|
||||||
|
Reference in New Issue
Block a user