# HG changeset patch # User stefano # Date 1234134126 0 # Node ID 2402abd3a2d57f4f6d16caa06948452c62ab7597 # Parent 7d187ae4697763991ab84a8ec9dec3d96b458ffd Replace int type with enum PixelFormat for the dstFormat/srcFormat params of the sws_getContext() and sws_getCachedContext() declarations, consistent with the implementation. diff -r 7d187ae46977 -r 2402abd3a2d5 libswscale/swscale.h --- a/libswscale/swscale.h Sun Feb 08 22:50:57 2009 +0000 +++ b/libswscale/swscale.h Sun Feb 08 23:02:06 2009 +0000 @@ -114,7 +114,7 @@ void sws_freeContext(struct SwsContext *swsContext); -struct SwsContext *sws_getContext(int srcW, int srcH, int srcFormat, int dstW, int dstH, int 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); int sws_scale(struct SwsContext *context, uint8_t* src[], int srcStride[], int srcSliceY, int srcSliceH, uint8_t* dst[], int dstStride[]); @@ -145,8 +145,8 @@ void sws_freeFilter(SwsFilter *filter); struct SwsContext *sws_getCachedContext(struct SwsContext *context, - int srcW, int srcH, int srcFormat, - int dstW, int dstH, int dstFormat, int flags, + int srcW, int srcH, enum PixelFormat srcFormat, + int dstW, int dstH, enum PixelFormat dstFormat, int flags, SwsFilter *srcFilter, SwsFilter *dstFilter, double *param); #endif /* SWSCALE_SWSCALE_H */