summaryrefslogtreecommitdiff
path: root/libswscale/swscale.h
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2009-04-18 11:45:31 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2009-04-18 11:45:31 +0000
commit2d26fa2822264de4e13f7d259eff9adb13bad3cd (patch)
treebdc98d85e487e0b0d59d84f7d7ecfd93a26dd12e /libswscale/swscale.h
parenta00f440f378715e527d34aa844cc509252a10f34 (diff)
Move sws_[gs]etColorspaceDetails() documentation from swscale.c to
swscale.h. Originally committed as revision 29186 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Diffstat (limited to 'libswscale/swscale.h')
-rw-r--r--libswscale/swscale.h10
1 files changed, 9 insertions, 1 deletions
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);