MythTV  master
pgm.h
Go to the documentation of this file.
1 /*
2  * pgm.h
3  *
4  * Routines for querying and manipulating PGM (greyscale) images.
5  */
6 
7 #ifndef __PGM_H__
8 #define __PGM_H__
9 
10 struct VideoFrame_;
11 struct AVFrame;
12 
13 int pgm_read(unsigned char *buf, int width, int height, const char *filename);
14 int pgm_write(const unsigned char *buf, int width, int height,
15  const char *filename);
16 int pgm_crop(struct AVFrame *dst, const struct AVFrame *src, int srcheight,
17  int srcrow, int srccol, int cropwidth, int cropheight);
18 int pgm_overlay(struct AVFrame *dst,
19  const struct AVFrame *s1, int s1height, int s1row, int s1col,
20  const struct AVFrame *s2, int s2height);
21 int pgm_convolve_radial(struct AVFrame *dst, struct AVFrame *s1,
22  struct AVFrame *s2, const struct AVFrame *src, int srcheight,
23  const double *mask, int mask_radius);
24 
25 #endif /* !__PGM_H__ */
26 
27 /* vim: set expandtab tabstop=4 shiftwidth=4: */
int pgm_write(const unsigned char *buf, int width, int height, const char *filename)
Definition: pgm.cpp:80
int pgm_crop(struct AVFrame *dst, const struct AVFrame *src, int srcheight, int srcrow, int srccol, int cropwidth, int cropheight)
struct AVFrame AVFrame
int pgm_overlay(struct AVFrame *dst, const struct AVFrame *s1, int s1height, int s1row, int s1col, const struct AVFrame *s2, int s2height)
int pgm_read(unsigned char *buf, int width, int height, const char *filename)
Definition: pgm.cpp:32
int pgm_convolve_radial(struct AVFrame *dst, struct AVFrame *s1, struct AVFrame *s2, const struct AVFrame *src, int srcheight, const double *mask, int mask_radius)