summaryrefslogtreecommitdiffstats
path: root/libswscale
diff options
context:
space:
mode:
authorstefano <stefano@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-10-30 14:13:25 +0000
committerstefano <stefano@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-10-30 14:13:25 +0000
commit9e259c79bd078bea84346e8a22979f81d8b971b8 (patch)
tree483e2b24d33c9e80f998cc89d82ab2b6f276a385 /libswscale
parent88397d63f1463e2f01c8b64f5c01aca61bce8e27 (diff)
downloadmpv-9e259c79bd078bea84346e8a22979f81d8b971b8.tar.bz2
mpv-9e259c79bd078bea84346e8a22979f81d8b971b8.tar.xz
Document slice ordering assumption done by sws_scale().
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29804 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libswscale')
-rw-r--r--libswscale/swscale.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/libswscale/swscale.h b/libswscale/swscale.h
index 87e64e2885..abc23fcf40 100644
--- a/libswscale/swscale.h
+++ b/libswscale/swscale.h
@@ -135,7 +135,11 @@ struct SwsContext *sws_getContext(int srcW, int srcH, enum PixelFormat srcFormat
/**
* Scales the image slice in srcSlice and puts the resulting scaled
* slice in the image in dst. A slice is a sequence of consecutive
- * rows in an image. Slices can be bottom to top or top to bottom.
+ * rows in an image.
+ *
+ * Slices have to be provided in sequential order, either in
+ * top-bottom or bottom-top order. If slices are provided in
+ * non-sequential order the behavior of the function is undefined.
*
* @param context the scaling context previously created with
* sws_getContext()