00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef __BORDERDETECTOR_H__
00013 #define __BORDERDETECTOR_H__
00014
00015 typedef struct AVPicture AVPicture;
00016 class MythPlayer;
00017 class TemplateFinder;
00018
00019 class BorderDetector
00020 {
00021 public:
00022
00023 BorderDetector(void);
00024
00025 int MythPlayerInited(const MythPlayer *player);
00026 void setLogoState(TemplateFinder *finder);
00027
00028 static const long long UNCACHED = -1;
00029 int getDimensions(const AVPicture *pgm, int pgmheight, long long frameno,
00030 int *prow, int *pcol, int *pwidth, int *pheight);
00031
00032 int reportTime(void);
00033
00034 private:
00035 TemplateFinder *logoFinder;
00036 const struct AVPicture *logo;
00037 int logorow, logocol;
00038 int logowidth, logoheight;
00039
00040 long long frameno;
00041 int row, col;
00042 int width, height;
00043 bool ismonochromatic;
00044
00045
00046 int debugLevel;
00047 struct timeval analyze_time;
00048 bool time_reported;
00049 };
00050
00051 #endif
00052
00053