Mercurial > libavcodec.hg
comparison mathops.h @ 10951:38b3b209b4bc libavcodec
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
| author | mru |
|---|---|
| date | Wed, 20 Jan 2010 06:01:54 +0000 |
| parents | 42a126c78744 |
| children | 5f2c4bcf6e6e |
comparison
equal
deleted
inserted
replaced
| 10950:4776a56132e1 | 10951:38b3b209b4bc |
|---|---|
| 114 { | 114 { |
| 115 return (val << (INT_BIT - bits)) >> (INT_BIT - bits); | 115 return (val << (INT_BIT - bits)) >> (INT_BIT - bits); |
| 116 } | 116 } |
| 117 #endif | 117 #endif |
| 118 | 118 |
| 119 #ifndef COPY3_IF_LT | |
| 120 #define COPY3_IF_LT(x, y, a, b, c, d)\ | |
| 121 if ((y) < (x)) {\ | |
| 122 (x) = (y);\ | |
| 123 (a) = (b);\ | |
| 124 (c) = (d);\ | |
| 125 } | |
| 126 #endif | |
| 127 | |
| 119 #endif /* AVCODEC_MATHOPS_H */ | 128 #endif /* AVCODEC_MATHOPS_H */ |
| 120 | 129 |
