summaryrefslogtreecommitdiffstats
path: root/libavcore/imgutils.h
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2010-08-12 15:05:58 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2010-08-12 15:05:58 +0000
commit7906e2b974566c897526a8a7561b380687af8323 (patch)
tree77823797971eafea23a1473c944b78bcb86c5942 /libavcore/imgutils.h
parent27014bf5a3151f1e340d7ac170f3fdd3e0bcf395 (diff)
downloadffmpeg-streaming-7906e2b974566c897526a8a7561b380687af8323.zip
ffmpeg-streaming-7906e2b974566c897526a8a7561b380687af8323.tar.gz
Implement av_get_image_linesize() and use it in
ff_get_plane_bytewidth(). The new implementation is more generic, more compact and more correct. Originally committed as revision 24786 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcore/imgutils.h')
-rw-r--r--libavcore/imgutils.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libavcore/imgutils.h b/libavcore/imgutils.h
index be6886c..c2cf6eb 100644
--- a/libavcore/imgutils.h
+++ b/libavcore/imgutils.h
@@ -28,6 +28,14 @@
#include "avcore.h"
/**
+ * Compute the size of an image line with format pix_fmt and width
+ * width for the plane plane.
+ *
+ * @return the computed size in bytes
+ */
+int av_get_image_linesize(enum PixelFormat pix_fmt, int width, int plane);
+
+/**
* Fill plane linesizes for an image with pixel format pix_fmt and
* width width.
*
OpenPOWER on IntegriCloud