summaryrefslogtreecommitdiff
path: root/libavcodec/mathtables.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-03-22 22:23:04 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-03-22 22:23:04 +0100
commit672c610d8439ec7e83ba1e1d0c5ca2388cfccfc3 (patch)
tree17a5bca7fe47fa6729fc3ec48cf9dee3ba37faa8 /libavcodec/mathtables.c
parentd6d3cfb0aa23c1f6111f71889256874d86c2cf77 (diff)
parentf9279ee74936b4990fc46287c27816ef828cc06c (diff)
downloadffmpeg-672c610d8439ec7e83ba1e1d0c5ca2388cfccfc3.tar.gz
Merge commit 'f9279ee74936b4990fc46287c27816ef828cc06c'
* commit 'f9279ee74936b4990fc46287c27816ef828cc06c': dsputil: Move ff_zigzag_direct and ff_crop_tab declarations to mathops.h Conflicts: libavcodec/imgconvert.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/mathtables.c')
-rw-r--r--libavcodec/mathtables.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/mathtables.c b/libavcodec/mathtables.c
index 28ab6a6466..a07ac50c08 100644
--- a/libavcodec/mathtables.c
+++ b/libavcodec/mathtables.c
@@ -20,6 +20,8 @@
#include <stdint.h>
+#include "mathops.h"
+
/* a*inverse[b]>>32 == a/b for all 0<=a<=16909558 && 2<=b<=256
* for a>16909558, is an overestimate by less than 1 part in 1<<24 */
const uint32_t ff_inverse[257]={
@@ -91,7 +93,7 @@ const uint8_t ff_reverse[256] = {
#define times4(x) x, x, x, x
#define times256(x) times4(times4(times4(times4(times4(x)))))
-const uint8_t ff_crop_tab[256 + 2 * 1024] = {
+const uint8_t ff_crop_tab[256 + 2 * MAX_NEG_CROP] = {
times256(0x00),
0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0A,0x0B,0x0C,0x0D,0x0E,0x0F,
0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17,0x18,0x19,0x1A,0x1B,0x1C,0x1D,0x1E,0x1F,