aboutsummaryrefslogtreecommitdiffstats
path: root/libswscale/swscale.h
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2009-02-11 23:42:29 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2009-02-11 23:42:29 +0000
commita15886540bef18c5271f0df1ab4ba3b797e0b5fa (patch)
treed9a7f5907f64c56a7f4d23e1d42074f6aa393f42 /libswscale/swscale.h
parentbf6c32fe50e3ccca5b0c97db09fa6bfe86c6bc62 (diff)
downloadffmpeg-a15886540bef18c5271f0df1ab4ba3b797e0b5fa.tar.gz
Document sws_getContext().
Originally committed as revision 28535 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Diffstat (limited to 'libswscale/swscale.h')
-rw-r--r--libswscale/swscale.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/libswscale/swscale.h b/libswscale/swscale.h
index cd86308a3e..8997f94a6e 100644
--- a/libswscale/swscale.h
+++ b/libswscale/swscale.h
@@ -114,6 +114,19 @@ struct SwsContext;
void sws_freeContext(struct SwsContext *swsContext);
+/**
+ * Allocates and returns a SwsContext. You need it to perform
+ * scaling/conversion operations using sws_scale().
+ *
+ * @param srcW the width of the source image
+ * @param srcH the height of the source image
+ * @param srcFormat the source image format
+ * @param dstW the width of the destination image
+ * @param dstH the height of the destination image
+ * @param dstFormat the destination image format
+ * @param flags specify which algorithm and options to use for rescaling
+ * @return a pointer to an allocated context, or NULL in case of error
+ */
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);
int sws_scale(struct SwsContext *context, uint8_t* src[], int srcStride[], int srcSliceY,