summaryrefslogtreecommitdiff
path: root/decoder.h
diff options
context:
space:
mode:
authorJochen Dolze <vdr@dolze.de>2010-03-30 18:49:58 +0200
committerJochen Dolze <vdr@dolze.de>2010-03-30 18:49:58 +0200
commit74cdd9ffa1d0e5f74942051e7e22e07542929c03 (patch)
treee59472547b1ed3543b8e2d1d0e2a7c52fcb24c04 /decoder.h
parent6446f24dce1b30fa341b7de078ca4385d1378457 (diff)
downloadvdr-plugin-markad-74cdd9ffa1d0e5f74942051e7e22e07542929c03.tar.gz
vdr-plugin-markad-74cdd9ffa1d0e5f74942051e7e22e07542929c03.tar.bz2
Changed directory structure, added Makefiles
Diffstat (limited to 'decoder.h')
-rw-r--r--decoder.h72
1 files changed, 0 insertions, 72 deletions
diff --git a/decoder.h b/decoder.h
deleted file mode 100644
index 46e9f74..0000000
--- a/decoder.h
+++ /dev/null
@@ -1,72 +0,0 @@
-/*
- * decoder.h: A program for the Video Disk Recorder
- *
- * See the README file for copyright information and how to reach the author.
- *
- */
-
-#ifndef __decoder_h_
-#define __decoder_h_
-
-#define __STDC_CONSTANT_MACROS
-
-#include <stdint.h>
-#include <sched.h>
-
-#ifndef DECLARE_ALIGNED
-#define DECLARE_ALIGNED(n,t,v) t v __attribute__ ((aligned (n)))
-#endif
-
-#ifndef CPU_COUNT
-#define CPU_COUNT(i) 1 // very crude ;)
-#endif
-
-#ifndef uchar
-typedef unsigned char uchar;
-#endif
-
-extern "C"
-{
-#include <libavcodec/avcodec.h>
-
-#if LIBAVCODEC_VERSION_INT < ((52<<16)+(0<<8)+0)
-#warning H264 parsing may be broken, better use libavcodec52
-#endif
-
-#if LIBAVCODEC_VERSION_INT < ((52<<16)+(23<<8)+0)
-#include <libavformat/avformat.h>
-#endif
-#include "debug.h"
-}
-
-#include "global.h"
-
-class cMarkAdDecoder
-{
-private:
- int16_t *audiobuf;
- int audiobufsize;
-
- AVCodecContext *ac3_context;
- AVCodecContext *mp2_context;
- AVCodecContext *video_context;
- AVFrame *video_frame;
-
- int8_t *last_qscale_table;
-
- bool SetAudioInfos(MarkAdContext *maContext, AVCodecContext *Audio_Context);
-
- void PAR2DAR(AVRational a, AVRational *erg);
- bool SetVideoInfos(MarkAdContext *maContext,AVCodecContext *Video_Context,
- AVFrame *Video_Frame);
-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);
- cMarkAdDecoder(bool useH264, bool useMP2, bool hasAC3);
- ~cMarkAdDecoder();
-};
-
-
-
-#endif