2008-11-09 12:43:27 +01:00
|
|
|
/*
|
2015-03-07 21:32:58 +01:00
|
|
|
* mpeg.h: Frontend Status Monitor plugin for the Video Disk Recorder
|
2008-11-09 12:43:27 +01:00
|
|
|
*
|
|
|
|
* See the README file for copyright information and how to reach the author.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2015-03-07 21:32:58 +01:00
|
|
|
#ifndef __FEMON_MPEG_H
|
|
|
|
#define __FEMON_MPEG_H
|
2008-11-09 12:43:27 +01:00
|
|
|
|
2015-03-07 21:32:58 +01:00
|
|
|
#include "video.h"
|
|
|
|
#include "audio.h"
|
2009-08-25 19:22:06 +02:00
|
|
|
|
|
|
|
class cFemonMPEG {
|
|
|
|
private:
|
2015-03-07 17:22:02 +01:00
|
|
|
cFemonVideoIf *videoHandlerM;
|
|
|
|
cFemonAudioIf *audioHandlerM;
|
2009-08-25 19:22:06 +02:00
|
|
|
|
2015-03-07 17:22:02 +01:00
|
|
|
static int bitrateS[2][3][16];
|
|
|
|
static int sampleRateS[2][4];
|
|
|
|
static eAudioCodec formatS[2][4];
|
2009-08-25 19:22:06 +02:00
|
|
|
|
|
|
|
public:
|
2015-03-07 17:22:02 +01:00
|
|
|
cFemonMPEG(cFemonVideoIf *videoHandlerP, cFemonAudioIf *audioHandlerP);
|
2009-08-25 19:22:06 +02:00
|
|
|
virtual ~cFemonMPEG();
|
2008-11-09 12:43:27 +01:00
|
|
|
|
2015-03-07 17:22:02 +01:00
|
|
|
bool processVideo(const uint8_t *bufP, int lenP);
|
|
|
|
bool processAudio(const uint8_t *bufP, int lenP);
|
2009-08-25 19:22:06 +02:00
|
|
|
};
|
2008-11-09 12:43:27 +01:00
|
|
|
|
2015-03-07 21:32:58 +01:00
|
|
|
#endif //__FEMON_MPEG_H
|