aboutsummaryrefslogtreecommitdiffstats
path: root/libswscale/swscale.h
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.dev>2024-10-14 15:16:26 +0200
committerNiklas Haas <git@haasn.dev>2024-10-23 23:06:55 +0200
commitb03c758600f0767d54ae663dadc8f698b79cd1c4 (patch)
treed6af910da7be33f57e5a9ad27ac87237ddd92bd4 /libswscale/swscale.h
parent5e50a56b9c4998838005ddaaed1422a9d717c50f (diff)
downloadffmpeg-b03c758600f0767d54ae663dadc8f698b79cd1c4.tar.gz
swscale: add sws_is_noop()
Exactly what it says on the tin. Sponsored-by: Sovereign Tech Fund Signed-off-by: Niklas Haas <git@haasn.dev>
Diffstat (limited to 'libswscale/swscale.h')
-rw-r--r--libswscale/swscale.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libswscale/swscale.h b/libswscale/swscale.h
index e3362d5328..50c705ae06 100644
--- a/libswscale/swscale.h
+++ b/libswscale/swscale.h
@@ -140,6 +140,12 @@ int sws_test_transfer(enum AVColorTransferCharacteristic trc, int output);
*/
int sws_test_frame(const AVFrame *frame, int output);
+/**
+ * Check if a given conversion is a noop. Returns a positive integer if
+ * no operation needs to be performed, 0 otherwise.
+ */
+int sws_is_noop(const AVFrame *dst, const AVFrame *src);
+
/* values for the flags, the stuff on the command line is different */
#define SWS_FAST_BILINEAR 1
#define SWS_BILINEAR 2