aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVitor Sessak <vitor1001@gmail.com>2008-02-15 22:11:29 +0000
committerVitor Sessak <vitor1001@gmail.com>2008-02-15 22:11:29 +0000
commitbbf42679c5757a81c5e9c077ecb8d5e7bac9dd87 (patch)
treebad044c0e15ae563152be64ce894fc1ef0fefb68
parenta5cbb2f4cb95b52cd1cbd8ade599c42f268330c5 (diff)
downloadffmpeg-bbf42679c5757a81c5e9c077ecb8d5e7bac9dd87.tar.gz
Make linesize a per-reference property
Commited in SoC by Bobby Bingham on 2007-06-30 16:15:14 Originally committed as revision 12078 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavfilter/avfilter.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavfilter/avfilter.h b/libavfilter/avfilter.h
index e021a6bb40..7956147032 100644
--- a/libavfilter/avfilter.h
+++ b/libavfilter/avfilter.h
@@ -50,7 +50,8 @@ typedef struct AVFilterPic
/**
* A reference to an AVFilterPic. Since filters can manipulate the origin of
* a picture to, for example, crop image without any memcpy, the picture origin
- * and dimensions are per-reference properties.
+ * and dimensions are per-reference properties. Linesize is also useful for
+ * image flipping, frame to field filters, etc, and so is also per-reference.
*
* TODO: add pts, and anything necessary for frame reordering
*/
@@ -58,6 +59,7 @@ typedef struct AVFilterPicRef
{
AVFilterPic *pic;
uint8_t *data[4];
+ int linesize[4];
int w, h;
int perms; ///< permissions