1
/***************************************************************************
3
copyright : (C) 2006 by mean
4
email : fixounet@free.fr
5
***************************************************************************/
7
/***************************************************************************
9
* This program is free software; you can redistribute it and/or modify *
10
* it under the terms of the GNU General Public License as published by *
11
* the Free Software Foundation; either version 2 of the License, or *
12
* (at your option) any later version. *
14
***************************************************************************/
15
#ifndef ENC_MPEG2ENC_H
16
#define ENC_MPEG2ENC_H
17
#include "mpeg2enc/ADM_mpeg2Param.h"
18
#include "mpeg2enc/ADM_mpeg2enc.h"
19
typedef enum MPEG2ENC_ID
27
class EncoderMpeg2enc:public Encoder
30
uint8_t setMatrix (void);
32
uint32_t _lastBitrate;
34
Mpeg2encParam _settings;
38
uint32_t _availableFrames;
46
EncoderMpeg2enc (MPEG2ENC_ID id, COMPRES_PARAMS * config);
47
virtual ~ EncoderMpeg2enc (); // can be called twice if needed ..
48
virtual uint8_t isDualPass (void);
49
virtual uint8_t configure (AVDMGenericVideoStream * instream);
50
virtual uint8_t encode (uint32_t frame, ADMBitstream *out);
51
virtual uint8_t setLogFile (const char *p, uint32_t fr);
52
virtual uint8_t stop (void);
53
virtual uint8_t startPass2 (void);
54
virtual uint8_t startPass1 (void);
55
virtual const char *getCodecName (void) {return "MPEG";};
56
virtual const char *getFCCHandler (void) {return "MPEG";};
57
virtual const char *getDisplayName (void) {return "MPEG";}; // FIXME