changeset 28456:2402abd3a2d5

Replace int type with enum PixelFormat for the dstFormat/srcFormat params of the sws_getContext() and sws_getCachedContext() declarations, consistent with the implementation.
author stefano
date Sun, 08 Feb 2009 23:02:06 +0000
parents 7d187ae46977
children 7d49f24cc18f
files libswscale/swscale.h
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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 */