summaryrefslogtreecommitdiffstats
path: root/libavcodec/dvdata.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2014-03-26 04:41:29 -0700
committerDiego Biurrun <diego@biurrun.de>2014-04-04 19:08:05 +0200
commit5f9220437025a0d66abc68323b4ce9b50e72d51b (patch)
treead5169f00610fce0194a61287bced043e065ec5a /libavcodec/dvdata.c
parent57b5b84e208ad61ffdd74ad849bed212deb92bc5 (diff)
downloadffmpeg-streaming-5f9220437025a0d66abc68323b4ce9b50e72d51b.zip
ffmpeg-streaming-5f9220437025a0d66abc68323b4ce9b50e72d51b.tar.gz
dsputil: Move DV-specific ff_zigzag248_direct table to dvdata
Diffstat (limited to 'libavcodec/dvdata.c')
-rw-r--r--libavcodec/dvdata.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/libavcodec/dvdata.c b/libavcodec/dvdata.c
index f9c22ac..ad41a1b 100644
--- a/libavcodec/dvdata.c
+++ b/libavcodec/dvdata.c
@@ -28,6 +28,19 @@
#include "dvdata.h"
+/* Specific zigzag scan for 248 idct. NOTE that unlike the
+ * specification, we interleave the fields */
+const uint8_t ff_dv_zigzag248_direct[64] = {
+ 0, 8, 1, 9, 16, 24, 2, 10,
+ 17, 25, 32, 40, 48, 56, 33, 41,
+ 18, 26, 3, 11, 4, 12, 19, 27,
+ 34, 42, 49, 57, 50, 58, 35, 43,
+ 20, 28, 5, 13, 6, 14, 21, 29,
+ 36, 44, 51, 59, 52, 60, 37, 45,
+ 22, 30, 7, 15, 23, 31, 38, 46,
+ 53, 61, 54, 62, 39, 47, 55, 63,
+};
+
/* unquant tables (not used directly) */
const uint8_t ff_dv_quant_shifts[22][4] = {
{ 3,3,4,4 },
OpenPOWER on IntegriCloud