summaryrefslogtreecommitdiffstats
path: root/libavcodec/mathtables.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-04-08 12:54:18 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-04-08 12:54:18 +0200
commit0138fe56563bc7aa59fb69fe81bcf3f5718b17a5 (patch)
treeb7eda67afbea295f9637603012333e6173603548 /libavcodec/mathtables.c
parent024a5f72eec54b9a3fcaa6fc568ae1e21ac0a6a6 (diff)
parentd2ec6ea6c6c0276aaf0063c5a7290f8e11fcdb06 (diff)
downloadffmpeg-streaming-0138fe56563bc7aa59fb69fe81bcf3f5718b17a5.zip
ffmpeg-streaming-0138fe56563bc7aa59fb69fe81bcf3f5718b17a5.tar.gz
Merge remote-tracking branch 'qatar/master'
* qatar/master: lavc: Move ff_cropTbl and ff_zigzag_direct from dsputil to mathtables Conflicts: libavcodec/mathtables.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/mathtables.c')
-rw-r--r--libavcodec/mathtables.c22
1 files changed, 12 insertions, 10 deletions
diff --git a/libavcodec/mathtables.c b/libavcodec/mathtables.c
index 126b05f..ec5ba79 100644
--- a/libavcodec/mathtables.c
+++ b/libavcodec/mathtables.c
@@ -89,9 +89,10 @@ 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_cropTbl[256 + 2 * 1024] = {
-times4(times4(times4(times4(times4(0x00))))),
+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,
0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27,0x28,0x29,0x2A,0x2B,0x2C,0x2D,0x2E,0x2F,
@@ -108,15 +109,16 @@ times4(times4(times4(times4(times4(0x00))))),
0xD0,0xD1,0xD2,0xD3,0xD4,0xD5,0xD6,0xD7,0xD8,0xD9,0xDA,0xDB,0xDC,0xDD,0xDE,0xDF,
0xE0,0xE1,0xE2,0xE3,0xE4,0xE5,0xE6,0xE7,0xE8,0xE9,0xEA,0xEB,0xEC,0xED,0xEE,0xEF,
0xF0,0xF1,0xF2,0xF3,0xF4,0xF5,0xF6,0xF7,0xF8,0xF9,0xFA,0xFB,0xFC,0xFD,0xFE,0xFF,
-times4(times4(times4(times4(times4(0xFF)))))};
+times256(0xFF)
+};
const uint8_t ff_zigzag_direct[64] = {
- 0, 1, 8, 16, 9, 2, 3, 10,
- 17, 24, 32, 25, 18, 11, 4, 5,
- 12, 19, 26, 33, 40, 48, 41, 34,
- 27, 20, 13, 6, 7, 14, 21, 28,
- 35, 42, 49, 56, 57, 50, 43, 36,
- 29, 22, 15, 23, 30, 37, 44, 51,
- 58, 59, 52, 45, 38, 31, 39, 46,
- 53, 60, 61, 54, 47, 55, 62, 63
+ 0, 1, 8, 16, 9, 2, 3, 10,
+ 17, 24, 32, 25, 18, 11, 4, 5,
+ 12, 19, 26, 33, 40, 48, 41, 34,
+ 27, 20, 13, 6, 7, 14, 21, 28,
+ 35, 42, 49, 56, 57, 50, 43, 36,
+ 29, 22, 15, 23, 30, 37, 44, 51,
+ 58, 59, 52, 45, 38, 31, 39, 46,
+ 53, 60, 61, 54, 47, 55, 62, 63
};
OpenPOWER on IntegriCloud