diff options
Diffstat (limited to 'command/decoder.h')
-rw-r--r-- | command/decoder.h | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/command/decoder.h b/command/decoder.h index 0ea6e47..707ca56 100644 --- a/command/decoder.h +++ b/command/decoder.h @@ -40,34 +40,21 @@ class cMarkAdDecoder { private: bool skipframes; - int16_t *audiobuf; - int audiobufsize; AVCodec *video_codec; - AVCodecContext *ac3_context; - AVCodecContext *mp2_context; AVCodecContext *video_context; AVFrame *video_frame; int threadcount; int8_t *last_qscale_table; - static int our_get_buffer(struct AVCodecContext *c, AVFrame *pic); - static void our_release_buffer(struct AVCodecContext *c, AVFrame *pic); - - bool SetAudioInfos(MarkAdContext *maContext, AVCodecContext *Audio_Context); bool SetVideoInfos(MarkAdContext *maContext,AVCodecContext *Video_Context, AVFrame *Video_Frame); - bool noticeERRVID; - bool noticeERRMP2; - bool noticeERRAC3; public: bool DecodeVideo(MarkAdContext *maContext, uchar *pkt, int plen); - bool DecodeMP2(MarkAdContext *maContext, uchar *espkt, int eslen); - bool DecodeAC3(MarkAdContext *maContext, uchar *espkt, int eslen); bool Clear(); - cMarkAdDecoder(bool useH264, bool useMP2, bool hasAC3, int Threads); + cMarkAdDecoder(bool useH264, int Threads); ~cMarkAdDecoder(); }; |