summaryrefslogtreecommitdiff
path: root/libswscale
diff options
context:
space:
mode:
authorMarvin Scholz <epirat07@gmail.com>2022-09-24 19:46:45 +0200
committerAnton Khirnov <anton@khirnov.net>2022-10-17 09:55:19 +0200
commitaba8cf654f598f52b745cd00a39ee8cc7b328487 (patch)
tree85fe278ab763a76685085fb244749a8e69394830 /libswscale
parent88e78ec6a8cc03c63839c914d4f3a7a0d3fa5623 (diff)
downloadffmpeg-aba8cf654f598f52b745cd00a39ee8cc7b328487.tar.gz
swscale: Fix bogus doxy comment #ifdefs
The intention here was probably to document this as use of conditionals does not make sense in a comment. Fixes doxy warning: warning: explicit link request to 'if' could not be resolved
Diffstat (limited to 'libswscale')
-rw-r--r--libswscale/swscale.h15
1 files changed, 5 insertions, 10 deletions
diff --git a/libswscale/swscale.h b/libswscale/swscale.h
index 3ebf7c698d..9794f6a258 100644
--- a/libswscale/swscale.h
+++ b/libswscale/swscale.h
@@ -324,22 +324,17 @@ 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
+ *
+ * @return A negative error code on error, non negative otherwise.
+ * If `LIBSWSCALE_VERSION_MAJOR < 7`, returns -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);
/**
-#if LIBSWSCALE_VERSION_MAJOR > 6
- * @return negative error code on error, non negative otherwise
-#else
- * @return -1 if not supported
-#endif
+ * @return A negative error code on error, non negative otherwise.
+ * If `LIBSWSCALE_VERSION_MAJOR < 7`, returns -1 if not supported.
*/
int sws_getColorspaceDetails(struct SwsContext *c, int **inv_table,
int *srcRange, int **table, int *dstRange,