Skip to content
Snippets Groups Projects
Commit a1588654 authored by Stefano Sabatini's avatar Stefano Sabatini
Browse files

Document sws_getContext().

Originally committed as revision 28535 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
parent bf6c32fe
No related branches found
No related tags found
No related merge requests found
...@@ -114,6 +114,19 @@ struct SwsContext; ...@@ -114,6 +114,19 @@ struct SwsContext;
void sws_freeContext(struct SwsContext *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, 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); SwsFilter *srcFilter, SwsFilter *dstFilter, double *param);
int sws_scale(struct SwsContext *context, uint8_t* src[], int srcStride[], int srcSliceY, int sws_scale(struct SwsContext *context, uint8_t* src[], int srcStride[], int srcSliceY,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment