[FFmpeg-devel] [PATCH] Document sws_scale()

Michael Niedermayer michaelni
Tue Feb 17 01:37:43 CET 2009


On Tue, Feb 17, 2009 at 01:15:53AM +0100, Stefano Sabatini wrote:
> On date Tuesday 2009-02-17 00:49:12 +0100, Michael Niedermayer encoded:
> > On Mon, Feb 16, 2009 at 11:12:34PM +0100, Stefano Sabatini wrote:
> > > Hi all,
> > > as in subject.
> > > 
> > > Regards.
> > > -- 
> > > FFmpeg = Fantastic Fierce Magic Puritan Exxagerate Gargoyle
> > 
> > > Index: libswscale/swscale.h
> > > ===================================================================
> > > --- libswscale/swscale.h	(revision 28617)
> > > +++ libswscale/swscale.h	(working copy)
> > > @@ -129,6 +129,32 @@
> > >   */
> > >  struct SwsContext *sws_getContext(int srcW, int srcH, enum PixelFormat srcFormat, int dstW, int dstH, enum PixelFormat dstFormat, int flags,
> > >                                    SwsFilter *srcFilter, SwsFilter *dstFilter, double *param);
> > > +
> > > +/**
> > > + * Scales the image slice in \p src and puts the resulting scaled
> > > + * slice in the image in \p dst. A slice is a sequence of consecutive
> > > + * rows in an image.
> > > + *
> > > + * @param context the scaling context previously created with
> > > + *                sws_getContext()
> > 
> > > + * @param src     the pointer to the array of pointers to the planes
> > > + *                of the source slice (just one pointer in case of
> > > + *                packed image formats)
> > > + * @param srcStride the pointer to the array containing the strides or
> > > + *                linesizes of the source image for each plane (just
> > > + *                one linesize in case of packed image formats).
> > 
> > remove "(just one linesize in case of packed image formats)."
> > it serves no purpose
> > 
> > 
> > > + * @param srcSliceY the position of the source slice to process, that
> > > + *                is the number of the first row of the slice
> > > + * @param srcSliceH the height of the slice, that is the number of rows
> > > + *                of the slice
> > 
> > > + * @param dst     the pointer to the array containing the pointers to
> > > + *                the planes of the destination image (just one
> > > + *                pointer in case of packed image formats).
> > > + * @param dstStride the pointer to the array containing the strides or
> > > + *                linesizes of the destination image for each plane
> > > + *                (just one linesize in case of packed image formats)
> > 
> > same
> 
> Fixed.
[...]
> +/**
> + * Scales the image slice in \p src and puts the resulting scaled
> + * slice in the image in \p dst. A slice is a sequence of consecutive
> + * rows in an image.
> + *
> + * @param context the scaling context previously created with
> + *                sws_getContext()
> + * @param src     the pointer to the array of pointers to the planes
> + *                of the source slice (just one pointer in case of
> + *                packed image formats)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[....]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Good people do not need laws to tell them to act responsibly, while bad
people will find a way around the laws. -- Plato
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090217/af280744/attachment.pgp>



More information about the ffmpeg-devel mailing list