ArDrone SDK 1.8 added
[mardrone] / mardrone / ARDrone_SDK_Version_1_8_20110726 / ARDroneLib / VLIB / P264 / p264_zigzag.c
1 #include <VLIB/P264/p264_zigzag.h>
2
3 int32_t video_zztable_t41[16] = {
4   0,  1,  4,  8,
5   5,  2,  3,  6,
6   9, 12, 13, 10,
7   7, 11, 14, 15
8 };
9
10 void zagzig_4x4 (int16_t * in, int16_t * out)
11 {
12   int32_t* zztable;
13   uint32_t i;
14
15   zztable = &video_zztable_t41[0];
16   i = 16;
17   while (i--)
18   {
19     out[*zztable++] = *in++;
20   }
21 }