mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-26 23:13:16 +02:00
add libeplayer3 from tdt git
This imports libeplayer3 as of commit 9160371ccc6 (2012-02-02) git://gitorious.org/open-duckbox-project-sh4/tdt.git It would be better to use the original repo, but I need too many changes for now :-(
This commit is contained in:
77
libeplayer3/include/manager.h
Normal file
77
libeplayer3/include/manager.h
Normal file
@@ -0,0 +1,77 @@
|
||||
#ifndef MANAGER_H_
|
||||
#define MANAGER_H_
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdint.h>
|
||||
|
||||
typedef enum {
|
||||
MANAGER_ADD,
|
||||
MANAGER_LIST,
|
||||
MANAGER_GET,
|
||||
MANAGER_GETNAME,
|
||||
MANAGER_SET,
|
||||
MANAGER_GETENCODING,
|
||||
MANAGER_DEL,
|
||||
MANAGER_GET_TRACK,
|
||||
} ManagerCmd_t;
|
||||
|
||||
typedef enum {
|
||||
eTypeES,
|
||||
eTypePES
|
||||
} eTrackTypeEplayer;
|
||||
|
||||
typedef struct Track_s {
|
||||
char * Name;
|
||||
char * Encoding;
|
||||
int Id;
|
||||
|
||||
/* new field for ffmpeg - add at the end so no problem
|
||||
* can occur with not changed srt saa container
|
||||
*/
|
||||
char* language;
|
||||
|
||||
/* length of track */
|
||||
long long int duration;
|
||||
unsigned int frame_rate;
|
||||
unsigned int TimeScale;
|
||||
int version;
|
||||
long long int pts;
|
||||
|
||||
/* for later use: */
|
||||
eTrackTypeEplayer type;
|
||||
int width;
|
||||
int height;
|
||||
|
||||
/* stream from ffmpeg */
|
||||
void * stream;
|
||||
/* codec extra data (header or some other stuff) */
|
||||
void * extraData;
|
||||
int extraSize;
|
||||
|
||||
uint8_t* aacbuf;
|
||||
unsigned int aacbuflen;
|
||||
int have_aacheader;
|
||||
|
||||
/* If player2 or the elf do not support decoding of audio codec set this.
|
||||
* AVCodec is than used for softdecoding and stream will be injected as PCM */
|
||||
int inject_as_pcm;
|
||||
} Track_t;
|
||||
|
||||
typedef struct Manager_s {
|
||||
char * Name;
|
||||
int (* Command) (/*Context_t*/void *, ManagerCmd_t, void *);
|
||||
char ** Capabilities;
|
||||
|
||||
} Manager_t;
|
||||
|
||||
typedef struct ManagerHandler_s {
|
||||
char * Name;
|
||||
Manager_t * audio;
|
||||
Manager_t * video;
|
||||
Manager_t * subtitle;
|
||||
} ManagerHandler_t;
|
||||
|
||||
void freeTrack(Track_t* track);
|
||||
void copyTrack(Track_t* to, Track_t* from);
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user