libeplayer3: implement Playback and Input classes

This commit is contained in:
martii
2014-04-07 21:01:02 +02:00
parent 1112111e2d
commit ca5effe1bc
12 changed files with 707 additions and 1191 deletions

View File

@@ -1,9 +1,10 @@
#ifndef OUTPUT_H_
#define OUTPUT_H_
#ifndef __OUTPUT_H__
#define __OUTPUT_H__
#include <stdio.h>
#include <stdint.h>
#include <string>
#include <vector>
#include <map>
#include <OpenThreads/ScopedLock>
#include <OpenThreads/Thread>
@@ -19,14 +20,19 @@ extern "C" {
#include "writer.h"
class Player;
class Output
{
friend class Player;
private:
int videofd;
int audiofd;
Writer *videoWriter, *audioWriter;
OpenThreads::Mutex audioMutex, videoMutex;
AVStream *audioStream, *videoStream;
Player *context;
public:
Output();
~Output();