diff options
author | Jochen Dolze <vdr@dolze.de> | 2010-06-08 19:26:53 +0200 |
---|---|---|
committer | Jochen Dolze <vdr@dolze.de> | 2010-06-08 19:26:53 +0200 |
commit | 5623eda874dd036387c7a9a99da805825a669567 (patch) | |
tree | e413d4ae0099bdb974e0c778034375efb35bf62a /command | |
parent | b41ac6500b7e6c7c7da546be116ff2923fe7ee86 (diff) | |
download | vdr-plugin-markad-5623eda874dd036387c7a9a99da805825a669567.tar.gz vdr-plugin-markad-5623eda874dd036387c7a9a99da805825a669567.tar.bz2 |
Re-ordered includes
Diffstat (limited to 'command')
-rw-r--r-- | command/audio.cpp | 5 | ||||
-rw-r--r-- | command/audio.h | 10 | ||||
-rw-r--r-- | command/decoder.cpp | 16 | ||||
-rw-r--r-- | command/decoder.h | 16 | ||||
-rw-r--r-- | command/marks.cpp | 11 | ||||
-rw-r--r-- | command/marks.h | 9 | ||||
-rw-r--r-- | command/pes2es.cpp | 4 | ||||
-rw-r--r-- | command/pes2es.h | 4 | ||||
-rw-r--r-- | command/queue.cpp | 8 | ||||
-rw-r--r-- | command/queue.h | 7 | ||||
-rw-r--r-- | command/streaminfo.cpp | 3 | ||||
-rw-r--r-- | command/streaminfo.h | 4 | ||||
-rw-r--r-- | command/ts2pkt.cpp | 8 | ||||
-rw-r--r-- | command/ts2pkt.h | 8 | ||||
-rw-r--r-- | command/video.cpp | 11 | ||||
-rw-r--r-- | command/video.h | 13 |
16 files changed, 67 insertions, 70 deletions
diff --git a/command/audio.cpp b/command/audio.cpp index 3882de2..a5fc357 100644 --- a/command/audio.cpp +++ b/command/audio.cpp @@ -6,6 +6,11 @@ * $Id$ */ + +#include <stdio.h> +#include <stdlib.h> +#include <string.h> + #include "audio.h" cMarkAdAudio::cMarkAdAudio(MarkAdContext *maContext) diff --git a/command/audio.h b/command/audio.h index 5249a5a..bb751ae 100644 --- a/command/audio.h +++ b/command/audio.h @@ -8,18 +8,8 @@ #ifndef __audio_h_ #define __audio_h_ -#include <netinet/in.h> // for htonl -#include <stdio.h> -#include <stdlib.h> -#include <string.h> - #include "global.h" -extern "C" -{ -#include "debug.h" -} - #if 0 #include "audio_gain_analysis.h" #endif diff --git a/command/decoder.cpp b/command/decoder.cpp index 6b01404..4d94950 100644 --- a/command/decoder.cpp +++ b/command/decoder.cpp @@ -5,6 +5,22 @@ * */ +#define __STDC_CONSTANT_MACROS + +#include <stdint.h> +#include <sched.h> +#include <sys/types.h> +#include <string.h> +#include <cstdlib> + +#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 + #include "decoder.h" cMarkAdDecoder::cMarkAdDecoder(bool useH264, bool useMP2, bool hasAC3) diff --git a/command/decoder.h b/command/decoder.h index 8f05108..12b398e 100644 --- a/command/decoder.h +++ b/command/decoder.h @@ -8,22 +8,6 @@ #ifndef __decoder_h_ #define __decoder_h_ -#define __STDC_CONSTANT_MACROS - -#include <stdint.h> -#include <sched.h> -#include <sys/types.h> -#include <string.h> -#include <cstdlib> - -#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 diff --git a/command/marks.cpp b/command/marks.cpp index 929589b..5cf8530 100644 --- a/command/marks.cpp +++ b/command/marks.cpp @@ -5,8 +5,19 @@ * */ +#include <stdio.h> +#include <stdlib.h> +#include <unistd.h> +#include <sys/stat.h> +#include <sys/types.h> +#include <math.h> +#include <string.h> +#include <stdint.h> +#include <fcntl.h> + #include "marks.h" + clMark::clMark(int Type, int Position, const char *Comment) { type=Type; diff --git a/command/marks.h b/command/marks.h index a65df34..06c1235 100644 --- a/command/marks.h +++ b/command/marks.h @@ -8,15 +8,6 @@ #ifndef __marks_h_ #define __marks_h_ -#include <stdlib.h> -#include <string.h> -#include <stdio.h> -#include <math.h> -#include <unistd.h> -#include <sys/stat.h> -#include <stdint.h> -#include <fcntl.h> - class clMark { private: diff --git a/command/pes2es.cpp b/command/pes2es.cpp index 6adbc26..d0287d0 100644 --- a/command/pes2es.cpp +++ b/command/pes2es.cpp @@ -5,6 +5,10 @@ * */ +#include <inttypes.h> +#include <stdlib.h> +#include <string.h> + #include "pes2es.h" cMarkAdPES2ES::cMarkAdPES2ES(const char *QueueName, int QueueSize) diff --git a/command/pes2es.h b/command/pes2es.h index 5eb2614..c2c08e6 100644 --- a/command/pes2es.h +++ b/command/pes2es.h @@ -12,10 +12,6 @@ typedef unsigned char uchar; #endif -#include <inttypes.h> -#include <stdlib.h> -#include <string.h> - #include "global.h" #include "queue.h" diff --git a/command/queue.cpp b/command/queue.cpp index a50e925..3c9413c 100644 --- a/command/queue.cpp +++ b/command/queue.cpp @@ -5,6 +5,14 @@ * */ +#include <stdlib.h> +#include <string.h> + +extern "C" +{ +#include "debug.h" +} + #include "queue.h" cMarkAdPaketQueue::cMarkAdPaketQueue(const char *Name, int Size) diff --git a/command/queue.h b/command/queue.h index 20cac32..a24014d 100644 --- a/command/queue.h +++ b/command/queue.h @@ -8,19 +8,12 @@ #ifndef __queue_h_ #define __queue_h_ -#include <stdlib.h> #include <stdint.h> -#include <string.h> #ifndef uchar typedef unsigned char uchar; #endif -extern "C" -{ -#include "debug.h" -} - class cMarkAdPaketQueue { struct MP2HDR diff --git a/command/streaminfo.cpp b/command/streaminfo.cpp index 566bb45..877eddd 100644 --- a/command/streaminfo.cpp +++ b/command/streaminfo.cpp @@ -4,6 +4,9 @@ * See the README file for copyright information and how to reach the author. * */ +#include <stdint.h> +#include <string.h> +#include <stdlib.h> #include "streaminfo.h" diff --git a/command/streaminfo.h b/command/streaminfo.h index 762ac8f..7b5ba71 100644 --- a/command/streaminfo.h +++ b/command/streaminfo.h @@ -8,10 +8,6 @@ #ifndef __streaminfo_h_ #define __streaminfo_h_ -#include <stdint.h> -#include <string.h> -#include <stdlib.h> - #include "global.h" class cMarkAdStreamInfo diff --git a/command/ts2pkt.cpp b/command/ts2pkt.cpp index c286257..583cf1b 100644 --- a/command/ts2pkt.cpp +++ b/command/ts2pkt.cpp @@ -5,6 +5,14 @@ * */ +#include <stdlib.h> +#include <string.h> + +extern "C" +{ +#include "debug.h" +} + #include "ts2pkt.h" cMarkAdTS2Pkt::cMarkAdTS2Pkt(const char *QueueName, int QueueSize) diff --git a/command/ts2pkt.h b/command/ts2pkt.h index 122bc5c..6dbcd13 100644 --- a/command/ts2pkt.h +++ b/command/ts2pkt.h @@ -8,11 +8,6 @@ #ifndef __ts2pkt_h_ #define __ts2pkt_h_ -extern "C" -{ -#include "debug.h" -} - #ifndef TS_SIZE #define TS_SIZE 188 #endif @@ -21,9 +16,6 @@ extern "C" typedef unsigned char uchar; #endif -#include <stdlib.h> -#include <string.h> - #include "global.h" #include "queue.h" diff --git a/command/video.cpp b/command/video.cpp index 03ecba5..3072542 100644 --- a/command/video.cpp +++ b/command/video.cpp @@ -5,6 +5,17 @@ * */ +#include <time.h> +#include <math.h> +#include <string.h> +#include <stdio.h> +#include <stdlib.h> + +extern "C" +{ +#include "debug.h" +} + #include "video.h" cMarkAdLogo::cMarkAdLogo(MarkAdContext *maContext) diff --git a/command/video.h b/command/video.h index 446a61b..1a03d97 100644 --- a/command/video.h +++ b/command/video.h @@ -8,19 +8,8 @@ #ifndef __video_h_ #define __video_h_ -#include <time.h> -#include <math.h> -#include <string.h> -#include <stdio.h> -#include <stdlib.h> -#include <stdint.h> #include "global.h" -extern "C" -{ -#include "debug.h" -} - #define LOGO_MAXHEIGHT 170 #define LOGO_MAXWIDTH 480 @@ -28,7 +17,7 @@ extern "C" #define LOGO_DEFWIDTH 192 #define LOGO_DEFHDWIDTH 288 -#define LOGO_VMAXCOUNT 3 // count of IFrames for detection of "logo invisible" +#define LOGO_VMAXCOUNT 3 // count of IFrames for detection of "logo visible" #define LOGO_IMAXCOUNT 5 // count of IFrames for detection of "logo invisible" #define LOGO_VMARK 0.5 // percantage of pixels for visible #define LOGO_IMARK 0.15 // percentage of pixels for invisible |