MythTV  master
Functions
anonymous_namespace{TemplateFinder.cpp} Namespace Reference

Functions

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

Function Documentation

◆ writeJPG()

bool anonymous_namespace{TemplateFinder.cpp}::writeJPG ( const QString &  prefix,
const AVFrame img,
int  imgheight 
)

Definition at line 37 of file TemplateFinder.cpp.

Referenced by analyzeFrameDebug(), and template_alloc().

◆ pgm_scorepixels()

int anonymous_namespace{TemplateFinder.cpp}::pgm_scorepixels ( unsigned int *  scores,
int  width,
int  row,
int  col,
const AVFrame src,
int  srcheight 
)

Definition at line 71 of file TemplateFinder.cpp.

Referenced by TemplateFinder::analyzeFrame().

◆ sort_ascending()

int anonymous_namespace{TemplateFinder.cpp}::sort_ascending ( const void *  aa,
const void *  bb 
)

Definition at line 90 of file TemplateFinder.cpp.

Referenced by template_alloc().

◆ bounding_score()

float anonymous_namespace{TemplateFinder.cpp}::bounding_score ( const AVFrame img,
int  row,
int  col,
int  width,
int  height 
)

Definition at line 96 of file TemplateFinder.cpp.

Referenced by bounding_box().

◆ rowisempty()

bool anonymous_namespace{TemplateFinder.cpp}::rowisempty ( const AVFrame img,
int  row,
int  col,
int  width 
)

Definition at line 116 of file TemplateFinder.cpp.

Referenced by bounding_box().

◆ colisempty()

bool anonymous_namespace{TemplateFinder.cpp}::colisempty ( const AVFrame img,
int  col,
int  row,
int  height 
)

Definition at line 126 of file TemplateFinder.cpp.

Referenced by bounding_box().

◆ bounding_box()

int anonymous_namespace{TemplateFinder.cpp}::bounding_box ( const AVFrame img,
int  imgheight,
int  minrow,
int  mincol,
int  maxrow1,
int  maxcol1,
int *  prow,
int *  pcol,
int *  pwidth,
int *  pheight 
)

Definition at line 136 of file TemplateFinder.cpp.

Referenced by template_alloc().

◆ template_alloc()

bool anonymous_namespace{TemplateFinder.cpp}::template_alloc ( const unsigned int *  scores,
int  width,
int  height,
int  minrow,
int  mincol,
int  maxrow1,
int  maxcol1,
AVFrame tmpl,
int *  ptmplrow,
int *  ptmplcol,
int *  ptmplwidth,
int *  ptmplheight,
bool  debug_edgecounts,
const QString &  debugdir 
)

Definition at line 443 of file TemplateFinder.cpp.

Referenced by TemplateFinder::finished().

◆ analyzeFrameDebug()

bool anonymous_namespace{TemplateFinder.cpp}::analyzeFrameDebug ( long long  frameno,
const AVFrame pgm,
int  pgmheight,
const AVFrame cropped,
const AVFrame edges,
int  cropheight,
int  croprow,
int  cropcol,
bool  debug_frames,
const QString &  debugdir 
)

Definition at line 575 of file TemplateFinder.cpp.

Referenced by TemplateFinder::analyzeFrame().

◆ readTemplate()

bool anonymous_namespace{TemplateFinder.cpp}::readTemplate ( const QString &  datafile,
int *  prow,
int *  pcol,
int *  pwidth,
int *  pheight,
const QString &  tmplfile,
AVFrame tmpl,
bool pvalid 
)

Definition at line 627 of file TemplateFinder.cpp.

Referenced by TemplateFinder::MythPlayerInited().

◆ writeDummyTemplate()

void anonymous_namespace{TemplateFinder.cpp}::writeDummyTemplate ( const QString &  datafile)

Definition at line 668 of file TemplateFinder.cpp.

Referenced by TemplateFinder::finished().

◆ writeTemplate()

bool anonymous_namespace{TemplateFinder.cpp}::writeTemplate ( const QString &  tmplfile,
const AVFrame tmpl,
const QString &  datafile,
int  row,
int  col,
int  width,
int  height 
)

Definition at line 679 of file TemplateFinder.cpp.

Referenced by TemplateFinder::finished().