changeset 29145:af07ee7cae9c

Move sws_[gs]etColorspaceDetails() documentation from swscale.c to swscale.h.
author stefano
date Sat, 18 Apr 2009 11:45:31 +0000
parents d8c4cda25386
children d6d87abb137f
files libswscale/swscale.c libswscale/swscale.h
diffstat 2 files changed, 9 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/libswscale/swscale.c	Thu Apr 16 10:02:10 2009 +0000
+++ b/libswscale/swscale.c	Sat Apr 18 11:45:31 2009 +0000
@@ -2278,11 +2278,6 @@
     else                return r;
 }
 
-/**
- * @param inv_table the yuv2rgb coefficients, normally ff_yuv2rgb_coeffs[x]
- * @param fullRange if 1 then the luma range is 0..255 if 0 it is 16..235
- * @return -1 if not supported
- */
 int sws_setColorspaceDetails(SwsContext *c, const int inv_table[4], int srcRange, const int table[4], int dstRange, int brightness, int contrast, int saturation){
     int64_t crv =  inv_table[0];
     int64_t cbu =  inv_table[1];
@@ -2346,9 +2341,6 @@
     return 0;
 }
 
-/**
- * @return -1 if not supported
- */
 int sws_getColorspaceDetails(SwsContext *c, int **inv_table, int *srcRange, int **table, int *dstRange, int *brightness, int *contrast, int *saturation){
     if (isYUV(c->dstFormat) || isGray(c->dstFormat)) return -1;
 
--- a/libswscale/swscale.h	Thu Apr 16 10:02:10 2009 +0000
+++ b/libswscale/swscale.h	Sat Apr 18 11:45:31 2009 +0000
@@ -165,10 +165,18 @@
                       uint8_t* dst[], int dstStride[]) attribute_deprecated;
 #endif
 
-
+/**
+ * @param inv_table the yuv2rgb coefficients, normally ff_yuv2rgb_coeffs[x]
+ * @param fullRange if 1 then the luma range is 0..255 if 0 it is 16..235
+ * @return -1 if not supported
+ */
 int sws_setColorspaceDetails(struct SwsContext *c, const int inv_table[4],
                              int srcRange, const int table[4], int dstRange,
                              int brightness, int contrast, int saturation);
+
+/**
+ * @return -1 if not supported
+ */
 int sws_getColorspaceDetails(struct SwsContext *c, int **inv_table,
                              int *srcRange, int **table, int *dstRange,
                              int *brightness, int *contrast, int *saturation);