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
10struct VideoFrame_;
11struct AVFrame;
12
13int pgm_read(unsigned char *buf, int width, int height, const char *filename);
14int pgm_write(const unsigned char *buf, int width, int height,
15 const char *filename);
16int pgm_crop(struct AVFrame *dst, const struct AVFrame *src, int srcheight,
17 int srcrow, int srccol, int cropwidth, int cropheight);
18int pgm_overlay(struct AVFrame *dst,
19 const struct AVFrame *s1, int s1height, int s1row, int s1col,
20 const struct AVFrame *s2, int s2height);
21int 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: */
AVFrame AVFrame
int pgm_write(const unsigned char *buf, int width, int height, const char *filename)
Definition: pgm.cpp:80
int pgm_read(unsigned char *buf, int width, int height, const char *filename)
Definition: pgm.cpp:35
int pgm_crop(struct AVFrame *dst, const struct AVFrame *src, int srcheight, int srcrow, int srccol, int cropwidth, int cropheight)
int pgm_overlay(struct AVFrame *dst, const struct AVFrame *s1, int s1height, int s1row, int s1col, const struct AVFrame *s2, int s2height)
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)