MythTV  master
Functions
pgm.cpp File Reference
#include <climits>
#include "libmythbase/mythconfig.h"
#include "libmythbase/mythlogging.h"
#include "libmythtv/mythframe.h"
#include "pgm.h"
#include "libavcodec/avcodec.h"
#include "libavutil/imgutils.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, [[maybe_unused]] 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 35 of file pgm.cpp.

◆ pgm_write()

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

Definition at line 83 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 115 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 161 of file pgm.cpp.

Referenced by pgm_convolve_radial().

◆ pgm_crop()

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

Definition at line 168 of file pgm.cpp.

Referenced by TemplateMatcher::analyzeFrame(), and TemplateFinder::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 191 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 224 of file pgm.cpp.

Referenced by CannyEdgeDetector::detectEdges().