summaryrefslogtreecommitdiff
path: root/libswscale/swscale.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2021-10-23 10:06:09 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2021-10-24 16:54:36 +0200
commit8316b2a15f5e3c0f8da43fa1e43bb5717b56b48a (patch)
treea3468c09179b9dcec8677a41cd9482da65a97ac0 /libswscale/swscale.h
parent5f3a160b422e87e17d8fcd3aea51d478d0f05ba5 (diff)
downloadffmpeg-8316b2a15f5e3c0f8da43fa1e43bb5717b56b48a.tar.gz
swscale/swscale: Improve *ColorspaceDetails() doxy
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libswscale/swscale.h')
-rw-r--r--libswscale/swscale.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libswscale/swscale.h b/libswscale/swscale.h
index 59610d0342..daa53dc01e 100644
--- a/libswscale/swscale.h
+++ b/libswscale/swscale.h
@@ -318,14 +318,22 @@ unsigned int sws_receive_slice_alignment(const struct SwsContext *c);
* @param brightness 16.16 fixed point brightness correction
* @param contrast 16.16 fixed point contrast correction
* @param saturation 16.16 fixed point saturation correction
+#if LIBSWSCALE_VERSION_MAJOR > 6
+ * @return negative error code on error, non negative otherwise
+#else
* @return -1 if not supported
+#endif
*/
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);
/**
+#if LIBSWSCALE_VERSION_MAJOR > 6
+ * @return negative error code on error, non negative otherwise
+#else
* @return -1 if not supported
+#endif
*/
int sws_getColorspaceDetails(struct SwsContext *c, int **inv_table,
int *srcRange, int **table, int *dstRange,