mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-26 23:13:16 +02:00
46 lines
1.2 KiB
C
46 lines
1.2 KiB
C
#ifndef PLAYBACK_H_
|
|
#define PLAYBACK_H_
|
|
#include <sys/types.h>
|
|
|
|
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_METADATA, PLAYBACK_SLOWMOTION,
|
|
PLAYBACK_FASTBACKWARD, PLAYBACK_GET_FRAME_COUNT,
|
|
PLAYBACK_SWITCH_TELETEXT
|
|
} PlaybackCmd_t;
|
|
|
|
struct Context_s;
|
|
typedef struct Context_s Context_t;
|
|
|
|
typedef struct PlaybackHandler_s {
|
|
char *Name;
|
|
|
|
int fd;
|
|
|
|
unsigned char isHttp;
|
|
|
|
unsigned char isPlaying;
|
|
unsigned char isPaused;
|
|
unsigned char isForwarding;
|
|
unsigned char isCreationPhase;
|
|
|
|
int BackWard;
|
|
int SlowMotion;
|
|
int Speed;
|
|
int AVSync;
|
|
|
|
unsigned char isVideo;
|
|
unsigned char isAudio;
|
|
unsigned char abortRequested;
|
|
unsigned char abortPlayback;
|
|
|
|
int (*Command) ( Context_t *, PlaybackCmd_t, void *);
|
|
char *uri;
|
|
unsigned char noprobe; /* hack: only minimal probing in av_find_stream_info */
|
|
unsigned long long readCount;
|
|
} PlaybackHandler_t;
|
|
|
|
#endif
|