mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-26 23:13:16 +02:00
libeplayer3: add support for teletext and dvbsubtitle streams
This commit is contained in:
@@ -17,6 +17,10 @@ CONTAINER_LENGTH,
|
||||
CONTAINER_DEL,
|
||||
CONTAINER_SWITCH_AUDIO,
|
||||
CONTAINER_SWITCH_SUBTITLE,
|
||||
#ifdef MARTII
|
||||
CONTAINER_SWITCH_DVBSUBTITLE,
|
||||
CONTAINER_SWITCH_TELETEXT,
|
||||
#endif
|
||||
CONTAINER_INFO,
|
||||
CONTAINER_STATUS,
|
||||
CONTAINER_LAST_PTS,
|
||||
|
@@ -69,6 +69,10 @@ typedef struct ManagerHandler_s {
|
||||
Manager_t * audio;
|
||||
Manager_t * video;
|
||||
Manager_t * subtitle;
|
||||
#ifdef MARTII
|
||||
Manager_t * dvbsubtitle;
|
||||
Manager_t * teletext;
|
||||
#endif
|
||||
} ManagerHandler_t;
|
||||
|
||||
void freeTrack(Track_t* track);
|
||||
|
@@ -61,10 +61,16 @@ typedef struct Output_s {
|
||||
|
||||
extern Output_t LinuxDvbOutput;
|
||||
extern Output_t SubtitleOutput;
|
||||
#ifdef MARTII
|
||||
extern Output_t PipeOutput;
|
||||
#endif
|
||||
|
||||
static Output_t * AvailableOutput[] = {
|
||||
&LinuxDvbOutput,
|
||||
&SubtitleOutput,
|
||||
#ifdef MARTII
|
||||
&PipeOutput,
|
||||
#endif
|
||||
NULL
|
||||
};
|
||||
|
||||
@@ -73,6 +79,10 @@ typedef struct OutputHandler_s {
|
||||
Output_t * audio;
|
||||
Output_t * video;
|
||||
Output_t * subtitle;
|
||||
#ifdef MARTII
|
||||
Output_t * dvbsubtitle;
|
||||
Output_t * teletext;
|
||||
#endif
|
||||
int (* Command) (/*Context_t*/void *, OutputCmd_t, void *);
|
||||
} OutputHandler_t;
|
||||
|
||||
|
@@ -3,7 +3,7 @@
|
||||
#include <sys/types.h>
|
||||
|
||||
#ifdef MARTII
|
||||
typedef enum {PLAYBACK_OPEN, PLAYBACK_CLOSE, PLAYBACK_PLAY, PLAYBACK_STOP, PLAYBACK_PAUSE, PLAYBACK_CONTINUE, PLAYBACK_FLUSH, PLAYBACK_TERM, PLAYBACK_FASTFORWARD, PLAYBACK_SEEK, PLAYBACK_SEEK_ABS, PLAYBACK_PTS, PLAYBACK_LENGTH, PLAYBACK_SWITCH_AUDIO, PLAYBACK_SWITCH_SUBTITLE, PLAYBACK_INFO, PLAYBACK_SLOWMOTION, PLAYBACK_FASTBACKWARD, PLAYBACK_GET_FRAME_COUNT} PlaybackCmd_t;
|
||||
typedef enum {PLAYBACK_OPEN, PLAYBACK_CLOSE, PLAYBACK_PLAY, PLAYBACK_STOP, PLAYBACK_PAUSE, PLAYBACK_CONTINUE, PLAYBACK_FLUSH, PLAYBACK_TERM, PLAYBACK_FASTFORWARD, PLAYBACK_SEEK, PLAYBACK_SEEK_ABS, PLAYBACK_PTS, PLAYBACK_LENGTH, PLAYBACK_SWITCH_AUDIO, PLAYBACK_SWITCH_SUBTITLE, PLAYBACK_INFO, PLAYBACK_SLOWMOTION, PLAYBACK_FASTBACKWARD, PLAYBACK_GET_FRAME_COUNT, PLAYBACK_SWITCH_TELETEXT, PLAYBACK_SWITCH_DVBSUBTITLE} PlaybackCmd_t;
|
||||
#else
|
||||
typedef enum {PLAYBACK_OPEN, PLAYBACK_CLOSE, PLAYBACK_PLAY, PLAYBACK_STOP, PLAYBACK_PAUSE, PLAYBACK_CONTINUE, PLAYBACK_FLUSH, PLAYBACK_TERM, PLAYBACK_FASTFORWARD, PLAYBACK_SEEK, PLAYBACK_PTS, PLAYBACK_LENGTH, PLAYBACK_SWITCH_AUDIO, PLAYBACK_SWITCH_SUBTITLE, PLAYBACK_INFO, PLAYBACK_SLOWMOTION, PLAYBACK_FASTBACKWARD, PLAYBACK_GET_FRAME_COUNT} PlaybackCmd_t;
|
||||
#endif
|
||||
@@ -31,6 +31,10 @@ typedef struct PlaybackHandler_s {
|
||||
unsigned char isVideo;
|
||||
unsigned char isAudio;
|
||||
unsigned char isSubtitle;
|
||||
#ifdef MARTII
|
||||
unsigned char isDvbSubtitle;
|
||||
unsigned char isTeletext;
|
||||
#endif
|
||||
|
||||
int (* Command) (/*Context_t*/void *, PlaybackCmd_t, void *);
|
||||
char * uri;
|
||||
|
@@ -73,6 +73,10 @@ extern Writer_t WriterVideoH263;
|
||||
extern Writer_t WriterVideoFLV;
|
||||
extern Writer_t WriterVideoVC1;
|
||||
extern Writer_t WriterFramebuffer;
|
||||
#ifdef MARTII
|
||||
extern Writer_t WriterPipe;
|
||||
extern Writer_t WriterDVBSubtitle;
|
||||
#endif
|
||||
|
||||
static Writer_t * AvailableWriter[] = {
|
||||
&WriterAudioIPCM,
|
||||
|
Reference in New Issue
Block a user