]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
Document read_line().
authorstefano <stefano@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Tue, 31 Mar 2009 20:13:29 +0000 (20:13 +0000)
committerstefano <stefano@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Tue, 31 Mar 2009 20:13:29 +0000 (20:13 +0000)
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18286 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavcodec/pixdesc.h

index d27181a942b798926076bac55cc880b69023f3c5..fff4e3d27d003a764651ab56efebf581ed375e27 100644 (file)
@@ -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];