libeplayer3: make ffmpeg data available to manager, output and writer

This commit is contained in:
martii
2014-04-05 10:16:30 +02:00
parent e5237866c4
commit 6328d3746e
5 changed files with 39 additions and 3 deletions

View File

@@ -49,6 +49,8 @@ typedef struct Track_s {
int width;
int height;
/* context from ffmpeg */
AVFormatContext *avfc;
/* stream from ffmpeg */
AVStream *stream;
/* codec extra data (header or some other stuff) */

View File

@@ -4,6 +4,12 @@
#include <stdio.h>
#include <stdint.h>
#include <libavutil/avutil.h>
#include <libavutil/time.h>
#include <libavformat/avformat.h>
#include <libswresample/swresample.h>
#include <libavutil/opt.h>
typedef enum {
OUTPUT_INIT,
OUTPUT_ADD,
@@ -44,6 +50,11 @@ typedef struct {
unsigned int height;
char *type;
/* context from ffmpeg */
AVFormatContext *avfc;
/* stream from ffmpeg */
AVStream *stream;
} AudioVideoOut_t;
struct Context_s;

View File

@@ -4,6 +4,12 @@
#include <stdio.h>
#include <stdint.h>
#include <libavutil/avutil.h>
#include <libavutil/time.h>
#include <libavformat/avformat.h>
#include <libswresample/swresample.h>
#include <libavutil/opt.h>
typedef enum { eNone, eAudio, eVideo, eGfx } eWriterType_t;
typedef struct {
@@ -18,6 +24,10 @@ typedef struct {
unsigned int Width;
unsigned int Height;
unsigned char Version;
/* context from ffmpeg */
AVFormatContext *avfc;
/* stream from ffmpeg */
AVStream *stream;
} WriterAVCallData_t;
typedef struct WriterCaps_s {