diff options
author | S.N. Hemanth Meenakshisundaram <smeenaks@ucsd.edu> | 2010-07-17 18:55:56 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-07-17 18:55:56 +0000 |
commit | ff5f1be0fe7301f0090d22725b4c0e09e6546d25 (patch) | |
tree | 2d288c855623104dacfcb011b97c34b824f96bab /libavfilter/avfilter.h | |
parent | 32d7bcd4b123122736834c7554ce05a00045452a (diff) | |
download | ffmpeg-ff5f1be0fe7301f0090d22725b4c0e09e6546d25.tar.gz |
Move the AV_PERM_* flags definition outside the AVFilterPicRef
definition.
This way it is easier to reference them in other structures, for
example in the pending AVFilterSamplesRef struct.
Patch by S.N. Hemanth Meenakshisundaram smeenaks AT ucsd DOT edu.
Originally committed as revision 24294 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavfilter/avfilter.h')
-rw-r--r-- | libavfilter/avfilter.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/libavfilter/avfilter.h b/libavfilter/avfilter.h index ac30b496e3..3737d465af 100644 --- a/libavfilter/avfilter.h +++ b/libavfilter/avfilter.h @@ -83,6 +83,12 @@ typedef struct AVFilterBuffer void (*free)(struct AVFilterBuffer *buf); } AVFilterBuffer; +#define AV_PERM_READ 0x01 ///< can read from the buffer +#define AV_PERM_WRITE 0x02 ///< can write to the buffer +#define AV_PERM_PRESERVE 0x04 ///< nobody else can overwrite the buffer +#define AV_PERM_REUSE 0x08 ///< can output the buffer multiple times, with the same contents each time +#define AV_PERM_REUSE2 0x10 ///< can output the buffer multiple times, modified each time + /** * A reference to an AVFilterBuffer. Since filters can manipulate the origin of * a picture to, for example, crop image without any memcpy, the picture origin @@ -104,12 +110,7 @@ typedef struct AVFilterPicRef AVRational pixel_aspect; ///< pixel aspect ratio - int perms; ///< permissions -#define AV_PERM_READ 0x01 ///< can read from the buffer -#define AV_PERM_WRITE 0x02 ///< can write to the buffer -#define AV_PERM_PRESERVE 0x04 ///< nobody else can overwrite the buffer -#define AV_PERM_REUSE 0x08 ///< can output the buffer multiple times, with the same contents each time -#define AV_PERM_REUSE2 0x10 ///< can output the buffer multiple times, modified each time + int perms; ///< permissions, see the AV_PERM_* flags int interlaced; ///< is frame interlaced int top_field_first; |