MythTV  master
Functions
pgm.cpp File Reference
#include <climits>
#include "mythconfig.h"
#include "libavcodec/avcodec.h"
#include "libavutil/imgutils.h"
#include "mythframe.h"
#include "mythlogging.h"
#include "pgm.h"
Include dependency graph for pgm.cpp:

Go to the source code of this file.

Functions

int pgm_read (unsigned char *buf, int width, int height, const char *filename)
 
int pgm_write (const unsigned char *buf, int width, int height, const char *filename)
 
static int pgm_expand (AVFrame *dst, const AVFrame *src, int srcheight, int extratop, int extraright, int extrabottom, int extraleft)
 
static int pgm_expand_uniform (AVFrame *dst, const AVFrame *src, int srcheight, int extramargin)
 
int pgm_crop (AVFrame *dst, const AVFrame *src, int srcheight, int srcrow, int srccol, int cropwidth, int cropheight)
 
int pgm_overlay (AVFrame *dst, const AVFrame *s1, int s1height, int s1row, int s1col, const AVFrame *s2, int s2height)
 
int pgm_convolve_radial (AVFrame *dst, AVFrame *s1, AVFrame *s2, const AVFrame *src, int srcheight, const double *mask, int mask_radius)
 

Function Documentation

◆ pgm_read()

int pgm_read ( unsigned char *  buf,
int  width,
int  height,
const char *  filename 
)

Definition at line 32 of file pgm.cpp.

◆ pgm_write()

int pgm_write ( const unsigned char *  buf,
int  width,
int  height,
const char *  filename 
)

Definition at line 79 of file pgm.cpp.

◆ pgm_expand()

static int pgm_expand ( AVFrame dst,
const AVFrame src,
int  srcheight,
int  extratop,
int  extraright,
int  extrabottom,
int  extraleft 
)
static

Definition at line 112 of file pgm.cpp.

Referenced by pgm_expand_uniform().

◆ pgm_expand_uniform()

static int pgm_expand_uniform ( AVFrame dst,
const AVFrame src,
int  srcheight,
int  extramargin 
)
static

Definition at line 154 of file pgm.cpp.

Referenced by pgm_convolve_radial().

◆ pgm_crop()

int pgm_crop ( AVFrame dst,
const AVFrame src,
int  srcheight,
int  srcrow,
int  srccol,
int  cropwidth,
int  cropheight 
)

Definition at line 161 of file pgm.cpp.

Referenced by TemplateFinder::analyzeFrame(), and TemplateMatcher::analyzeFrame().

◆ pgm_overlay()

int pgm_overlay ( AVFrame dst,
const AVFrame s1,
int  s1height,
int  s1row,
int  s1col,
const AVFrame s2,
int  s2height 
)

Definition at line 183 of file pgm.cpp.

◆ pgm_convolve_radial()

int pgm_convolve_radial ( AVFrame dst,
AVFrame s1,
AVFrame s2,
const AVFrame src,
int  srcheight,
const double *  mask,
int  mask_radius 
)

Definition at line 215 of file pgm.cpp.

Referenced by CannyEdgeDetector::detectEdges().