Files
recycled-ni-libstb-hal/libeplayer3/include/playback.h
vanhofen f54b0e7bec formatting code using astyle
Origin commit data
------------------
Branch: master
Commit: bc17c13de4
Author: vanhofen <vanhofen@gmx.de>
Date: 2021-05-17 (Mon, 17 May 2021)

Origin message was:
------------------
- formatting code using astyle

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2021-05-17 23:47:39 +02:00

72 lines
1.3 KiB
C

#ifndef PLAYBACK_H_
#define PLAYBACK_H_
#include <sys/types.h>
#include <stdint.h>
#include <stdbool.h>
typedef void(* PlaybackDieNowCallback)();
bool PlaybackDieNowRegisterCallback(PlaybackDieNowCallback callback);
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_METADATA
} PlaybackCmd_t;
struct Context_s;
typedef struct Context_s Context_t;
typedef struct PlaybackHandler_s
{
char *Name;
int32_t fd;
uint8_t isFile;
uint8_t isHttp;
uint8_t isPlaying;
uint8_t isPaused;
uint8_t isForwarding;
uint8_t isSeeking;
uint8_t isCreationPhase;
int32_t BackWard;
int32_t SlowMotion;
int32_t Speed;
uint64_t readCount;
int32_t AVSync;
uint8_t isVideo;
uint8_t isAudio;
uint8_t isSubtitle;
uint8_t abortRequested;
int32_t (* Command)(Context_t *, PlaybackCmd_t, void *);
char *uri;
off_t size;
uint8_t noprobe; /* hack: only minimal probing in av_find_stream_info */
uint8_t isLoopMode;
uint8_t isTSLiveMode;
} PlaybackHandler_t;
#endif