summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2009-03-31 20:13:29 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2009-03-31 20:13:29 +0000
commit9b34899ecf56e695de08852874d452b147523fb8 (patch)
tree1344cffc4d76ec86a4c6a358a89f8a00bc76255b
parentf9f74ab97bccfae80f146390f5c50fc385a3f3db (diff)
Document read_line().
Originally committed as revision 18286 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/pixdesc.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/libavcodec/pixdesc.h b/libavcodec/pixdesc.h
index d27181a942..fff4e3d27d 100644
--- a/libavcodec/pixdesc.h
+++ b/libavcodec/pixdesc.h
@@ -72,6 +72,18 @@ typedef struct AVPixFmtDescriptor{
*/
extern const AVPixFmtDescriptor av_pix_fmt_descriptors[];
+/**
+ * Reads a line from an image, and writes to \p dst the values of the
+ * pixel format component \p c.
+ *
+ * @param data the array containing the pointers to the planes of the image
+ * @param linesizes the array containing the linesizes of the image
+ * @param desc the pixel format descriptor for the image
+ * @param x the horizontal coordinate of the first pixel to read
+ * @param y the vertical coordinate of the first pixel to read
+ * @param w the width of the line to read, that is the number of
+ * values to write to \p dst
+ */
static inline void read_line(uint16_t *dst, const uint8_t *data[4], const int linesize[4], const AVPixFmtDescriptor *desc, int x, int y, int c, int w)
{
AVComponentDescriptor comp= desc->comp[c];