diff options
author | stefano <stefano@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-04-18 11:45:31 +0000 |
---|---|---|
committer | stefano <stefano@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-04-18 11:45:31 +0000 |
commit | 685890259fb26662a1a5e52bbce9e5067c07a281 (patch) | |
tree | 9034cd145c36b5582ea7c3fce165c764ee13f2ff | |
parent | 4e1b85c726d0c305193305c37d6b365f2d042ee7 (diff) |
Move sws_[gs]etColorspaceDetails() documentation from swscale.c to
swscale.h.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29186 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libswscale/swscale.c | 8 | ||||
-rw-r--r-- | libswscale/swscale.h | 10 |
2 files changed, 9 insertions, 9 deletions
diff --git a/libswscale/swscale.c b/libswscale/swscale.c index ca5e2d986f..132f35f5f3 100644 --- a/libswscale/swscale.c +++ b/libswscale/swscale.c @@ -2278,11 +2278,6 @@ static uint16_t roundToInt16(int64_t f){ 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 @@ int sws_setColorspaceDetails(SwsContext *c, const int inv_table[4], int srcRange 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; diff --git a/libswscale/swscale.h b/libswscale/swscale.h index 522824831b..4990ebf134 100644 --- a/libswscale/swscale.h +++ b/libswscale/swscale.h @@ -165,10 +165,18 @@ int sws_scale_ordered(struct SwsContext *context, uint8_t* src[], 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); |