mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-26 23:12:44 +02:00
Origin commit data
------------------
Branch: master
Commit: dd527fdfba
Author: martii <m4rtii@gmx.de>
Date: 2014-04-06 (Sun, 06 Apr 2014)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
81 lines
1.6 KiB
C++
81 lines
1.6 KiB
C++
#ifndef MANAGER_H_
|
|
#define MANAGER_H_
|
|
|
|
#include <stdio.h>
|
|
#include <stdint.h>
|
|
#include <string>
|
|
|
|
extern "C" {
|
|
#include <libavutil/avutil.h>
|
|
#include <libavutil/time.h>
|
|
#include <libavformat/avformat.h>
|
|
#include <libswresample/swresample.h>
|
|
#include <libavutil/opt.h>
|
|
}
|
|
|
|
typedef enum {
|
|
MANAGER_ADD,
|
|
MANAGER_LIST,
|
|
MANAGER_GET,
|
|
MANAGER_GETNAME,
|
|
MANAGER_SET,
|
|
MANAGER_DEL,
|
|
MANAGER_GET_TRACK,
|
|
MANAGER_INIT_UPDATE
|
|
} ManagerCmd_t;
|
|
|
|
typedef enum {
|
|
eTypeES,
|
|
eTypePES
|
|
} eTrackTypeEplayer;
|
|
|
|
typedef struct Track_s {
|
|
std::string Name;
|
|
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 */
|
|
int64_t duration;
|
|
|
|
/* context from ffmpeg */
|
|
AVFormatContext *avfc;
|
|
/* stream from ffmpeg */
|
|
AVStream *stream;
|
|
|
|
int pending;
|
|
int is_static;
|
|
long long int chapter_start;
|
|
long long int chapter_end;
|
|
|
|
int ac3flags;
|
|
|
|
Track_s() : Id(-1), language(NULL), duration(-1), avfc(NULL), stream(NULL), pending(0), is_static(0), chapter_start(0), chapter_end(0), ac3flags(-1) {}
|
|
} Track_t;
|
|
|
|
struct Player;
|
|
|
|
typedef struct Manager_s {
|
|
const char *Name;
|
|
int (*Command) (Player *, ManagerCmd_t, void *);
|
|
const char **Capabilities;
|
|
|
|
} Manager_t;
|
|
|
|
typedef struct ManagerHandler_s {
|
|
const char *Name;
|
|
Manager_t *audio;
|
|
Manager_t *video;
|
|
Manager_t *subtitle;
|
|
Manager_t *teletext;
|
|
Manager_t *chapter;
|
|
} ManagerHandler_t;
|
|
|
|
void freeTrack(Track_t * track);
|
|
void copyTrack(Track_t * to, Track_t * from);
|
|
|
|
#endif
|