summaryrefslogtreecommitdiffstats
path: root/libavcodec/mathops.h
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2010-01-20 06:01:54 +0000
committerMåns Rullgård <mans@mansr.com>2010-01-20 06:01:54 +0000
commit5e7dfb7de11dab3cbf8663d4fcb682935bd3a80b (patch)
tree13de579124ef323ace42fec078a1f6b9c611be57 /libavcodec/mathops.h
parentbec358d683954738488a7ea529a340e9b11931ef (diff)
downloadffmpeg-streaming-5e7dfb7de11dab3cbf8663d4fcb682935bd3a80b.zip
ffmpeg-streaming-5e7dfb7de11dab3cbf8663d4fcb682935bd3a80b.tar.gz
Move COPY3_IF_LT to lavc/mathops.h
This obscure macro is only used in motion_est.c so having it in lavc makes more sense. See discussion here: http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/2008-November/056561.html Originally committed as revision 21346 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mathops.h')
-rw-r--r--libavcodec/mathops.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/libavcodec/mathops.h b/libavcodec/mathops.h
index 4e24350..5782459 100644
--- a/libavcodec/mathops.h
+++ b/libavcodec/mathops.h
@@ -116,5 +116,14 @@ static inline av_const int sign_extend(int val, unsigned bits)
}
#endif
+#ifndef COPY3_IF_LT
+#define COPY3_IF_LT(x, y, a, b, c, d)\
+if ((y) < (x)) {\
+ (x) = (y);\
+ (a) = (b);\
+ (c) = (d);\
+}
+#endif
+
#endif /* AVCODEC_MATHOPS_H */
OpenPOWER on IntegriCloud