TemplateFinder.cpp File Reference

Go to the source code of this file.

Functions

int writeJPG (QString prefix, const AVPicture *img, int imgheight)
int pgm_scorepixels (unsigned int *scores, int width, int row, int col, const AVPicture *src, int srcheight)
int sort_ascending (const void *aa, const void *bb)
float bounding_score (const AVPicture *img, int row, int col, int width, int height)
bool rowisempty (const AVPicture *img, int row, int col, int width)
bool colisempty (const AVPicture *img, int col, int row, int height)
int bounding_box (const AVPicture *img, int imgheight, int minrow, int mincol, int maxrow1, int maxcol1, int *prow, int *pcol, int *pwidth, int *pheight)
int template_alloc (const unsigned int *scores, int width, int height, int minrow, int mincol, int maxrow1, int maxcol1, AVPicture *tmpl, int *ptmplrow, int *ptmplcol, int *ptmplwidth, int *ptmplheight, bool debug_edgecounts, QString debugdir)
int analyzeFrameDebug (long long frameno, const AVPicture *pgm, int pgmheight, const AVPicture *cropped, const AVPicture *edges, int cropheight, int croprow, int cropcol, bool debug_frames, QString debugdir)
bool readTemplate (QString datafile, int *prow, int *pcol, int *pwidth, int *pheight, QString tmplfile, AVPicture *tmpl, bool *pvalid)
void writeDummyTemplate (QString datafile)
bool writeTemplate (QString tmplfile, const AVPicture *tmpl, QString datafile, int row, int col, int width, int height)


Function Documentation

int @1735::writeJPG ( QString  prefix,
const AVPicture img,
int  imgheight 
) [static]

Definition at line 22 of file TemplateFinder.cpp.

Referenced by analyzeFrameDebug(), and template_alloc().

int @1735::pgm_scorepixels ( unsigned int *  scores,
int  width,
int  row,
int  col,
const AVPicture src,
int  srcheight 
) [static]

Definition at line 49 of file TemplateFinder.cpp.

Referenced by TemplateFinder::analyzeFrame().

int @1735::sort_ascending ( const void *  aa,
const void *  bb 
) [static]

Definition at line 69 of file TemplateFinder.cpp.

Referenced by pick_mintmpledges(), and template_alloc().

float @1735::bounding_score ( const AVPicture img,
int  row,
int  col,
int  width,
int  height 
) [static]

Definition at line 75 of file TemplateFinder.cpp.

Referenced by bounding_box().

bool @1735::rowisempty ( const AVPicture img,
int  row,
int  col,
int  width 
) [static]

Definition at line 97 of file TemplateFinder.cpp.

Referenced by bounding_box().

bool @1735::colisempty ( const AVPicture img,
int  col,
int  row,
int  height 
) [static]

Definition at line 107 of file TemplateFinder.cpp.

Referenced by bounding_box().

int @1735::bounding_box ( const AVPicture img,
int  imgheight,
int  minrow,
int  mincol,
int  maxrow1,
int  maxcol1,
int *  prow,
int *  pcol,
int *  pwidth,
int *  pheight 
) [static]

Definition at line 117 of file TemplateFinder.cpp.

Referenced by template_alloc().

int @1735::template_alloc ( const unsigned int *  scores,
int  width,
int  height,
int  minrow,
int  mincol,
int  maxrow1,
int  maxcol1,
AVPicture tmpl,
int *  ptmplrow,
int *  ptmplcol,
int *  ptmplwidth,
int *  ptmplheight,
bool  debug_edgecounts,
QString  debugdir 
) [static]

Definition at line 424 of file TemplateFinder.cpp.

Referenced by TemplateFinder::finished().

int @1735::analyzeFrameDebug ( long long  frameno,
const AVPicture pgm,
int  pgmheight,
const AVPicture cropped,
const AVPicture edges,
int  cropheight,
int  croprow,
int  cropcol,
bool  debug_frames,
QString  debugdir 
) [static]

Definition at line 550 of file TemplateFinder.cpp.

Referenced by TemplateFinder::analyzeFrame().

bool @1735::readTemplate ( QString  datafile,
int *  prow,
int *  pcol,
int *  pwidth,
int *  pheight,
QString  tmplfile,
AVPicture tmpl,
bool pvalid 
) [static]

Definition at line 602 of file TemplateFinder.cpp.

Referenced by TemplateFinder::nuppelVideoPlayerInited().

void @1735::writeDummyTemplate ( QString  datafile  )  [static]

Definition at line 641 of file TemplateFinder.cpp.

Referenced by TemplateFinder::finished().

bool @1735::writeTemplate ( QString  tmplfile,
const AVPicture tmpl,
QString  datafile,
int  row,
int  col,
int  width,
int  height 
) [static]

Definition at line 651 of file TemplateFinder.cpp.

Referenced by TemplateFinder::finished().


Generated on Sat Dec 18 05:15:56 2010 for MythTV by  doxygen 1.5.5