[FFmpeg-devel] [PATCH] Document sws_scale()
Michael Niedermayer
michaelni
Tue Feb 17 00:49:12 CET 2009
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
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
No human being will ever know the Truth, for even if they happen to say it
by chance, they would not even known they had done so. -- Xenophanes
-------------- 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/291decd3/attachment.pgp>
More information about the ffmpeg-devel
mailing list