# HG changeset patch # User stefano # Date 1234998707 0 # Node ID d4d2d83ba82c86a5a6f4ceabe982d1e71f646779 # Parent 9c6c8973fa59bce0ac861565718abd02f9c34618 Document sws_scale(). diff -r 9c6c8973fa59 -r d4d2d83ba82c libswscale/swscale.h --- a/libswscale/swscale.h Wed Feb 18 21:07:11 2009 +0000 +++ b/libswscale/swscale.h Wed Feb 18 23:11:47 2009 +0000 @@ -129,6 +129,29 @@ */ 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 array containing the pointers to the planes of + * the source slice + * @param srcStride the array containing the strides for each plane of + * the source image + * @param srcSliceY the position in the source image of the slice to + * process, that is the number (counted starting from + * zero) in the image of the first row of the slice + * @param srcSliceH the height of the source slice, that is the number + * of rows in the slice + * @param dst the array containing the pointers to the planes of + * the destination image + * @param dstStride the array containing the strides for each plane of + * the destination image + * @return the height of the output slice + */ int sws_scale(struct SwsContext *context, uint8_t* src[], int srcStride[], int srcSliceY, int srcSliceH, uint8_t* dst[], int dstStride[]); #if LIBSWSCALE_VERSION_MAJOR < 1