#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"
Go to the source code of this file.
|
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) |
|
◆ pgm_read()
int pgm_read |
( |
unsigned char * |
buf, |
|
|
int |
width, |
|
|
int |
height, |
|
|
const char * |
filename |
|
) |
| |
◆ pgm_write()
int pgm_write |
( |
const unsigned char * |
buf, |
|
|
int |
width, |
|
|
int |
height, |
|
|
const char * |
filename |
|
) |
| |
◆ pgm_expand()
static int pgm_expand |
( |
AVFrame * |
dst, |
|
|
const AVFrame * |
src, |
|
|
int |
srcheight, |
|
|
int |
extratop, |
|
|
int |
extraright, |
|
|
int |
extrabottom, |
|
|
int |
extraleft |
|
) |
| |
|
static |
◆ pgm_expand_uniform()
static int pgm_expand_uniform |
( |
AVFrame * |
dst, |
|
|
const AVFrame * |
src, |
|
|
int |
srcheight, |
|
|
int |
extramargin |
|
) |
| |
|
static |
◆ pgm_crop()
int pgm_crop |
( |
AVFrame * |
dst, |
|
|
const AVFrame * |
src, |
|
|
int |
srcheight, |
|
|
int |
srcrow, |
|
|
int |
srccol, |
|
|
int |
cropwidth, |
|
|
int |
cropheight |
|
) |
| |
◆ pgm_overlay()
int pgm_overlay |
( |
AVFrame * |
dst, |
|
|
const AVFrame * |
s1, |
|
|
int |
s1height, |
|
|
int |
s1row, |
|
|
int |
s1col, |
|
|
const AVFrame * |
s2, |
|
|
int |
s2height |
|
) |
| |
◆ pgm_convolve_radial()
int pgm_convolve_radial |
( |
AVFrame * |
dst, |
|
|
AVFrame * |
s1, |
|
|
AVFrame * |
s2, |
|
|
const AVFrame * |
src, |
|
|
int |
srcheight, |
|
|
const double * |
mask, |
|
|
int |
mask_radius |
|
) |
| |