Browse code

Move sws_[gs]etColorspaceDetails() documentation from swscale.c to swscale.h.

Originally committed as revision 29186 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

Stefano Sabatini authored on 2009/04/18 20:45:31
Showing 2 changed files
... ...
@@ -2278,11 +2278,6 @@ static uint16_t roundToInt16(int64_t f){
2278 2278
     else                return r;
2279 2279
 }
2280 2280
 
2281
-/**
2282
- * @param inv_table the yuv2rgb coefficients, normally ff_yuv2rgb_coeffs[x]
2283
- * @param fullRange if 1 then the luma range is 0..255 if 0 it is 16..235
2284
- * @return -1 if not supported
2285
- */
2286 2281
 int sws_setColorspaceDetails(SwsContext *c, const int inv_table[4], int srcRange, const int table[4], int dstRange, int brightness, int contrast, int saturation){
2287 2282
     int64_t crv =  inv_table[0];
2288 2283
     int64_t cbu =  inv_table[1];
... ...
@@ -2346,9 +2341,6 @@ int sws_setColorspaceDetails(SwsContext *c, const int inv_table[4], int srcRange
2346 2346
     return 0;
2347 2347
 }
2348 2348
 
2349
-/**
2350
- * @return -1 if not supported
2351
- */
2352 2349
 int sws_getColorspaceDetails(SwsContext *c, int **inv_table, int *srcRange, int **table, int *dstRange, int *brightness, int *contrast, int *saturation){
2353 2350
     if (isYUV(c->dstFormat) || isGray(c->dstFormat)) return -1;
2354 2351
 
... ...
@@ -165,10 +165,18 @@ int sws_scale_ordered(struct SwsContext *context, uint8_t* src[],
165 165
                       uint8_t* dst[], int dstStride[]) attribute_deprecated;
166 166
 #endif
167 167
 
168
-
168
+/**
169
+ * @param inv_table the yuv2rgb coefficients, normally ff_yuv2rgb_coeffs[x]
170
+ * @param fullRange if 1 then the luma range is 0..255 if 0 it is 16..235
171
+ * @return -1 if not supported
172
+ */
169 173
 int sws_setColorspaceDetails(struct SwsContext *c, const int inv_table[4],
170 174
                              int srcRange, const int table[4], int dstRange,
171 175
                              int brightness, int contrast, int saturation);
176
+
177
+/**
178
+ * @return -1 if not supported
179
+ */
172 180
 int sws_getColorspaceDetails(struct SwsContext *c, int **inv_table,
173 181
                              int *srcRange, int **table, int *dstRange,
174 182
                              int *brightness, int *contrast, int *saturation);