diff imgutils.h @ 15:665cb0c97133 libavcore

Implement av_get_image_linesize() and use it in ff_get_plane_bytewidth(). The new implementation is more generic, more compact and more correct.
author stefano
date Thu, 12 Aug 2010 15:05:58 +0000
parents 97c3fe501477
children 1a1faa090ff1
line wrap: on
line diff
--- a/imgutils.h	Fri Aug 06 09:36:50 2010 +0000
+++ b/imgutils.h	Thu Aug 12 15:05:58 2010 +0000
@@ -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.
  *