-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathcos.c
26 lines (22 loc) · 828 Bytes
/
cos.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#include "cos.h"
const UBYTE cos32_64[64] = {
0U, 0U, 0U, 1U, 1U, 2U, 3U, 4U, 5U, 6U, 7U, 8U, 10U, 11U, 13U, 14U, 16U,
18U, 19U, 21U, 22U, 24U, 25U, 26U, 27U, 28U, 29U, 30U, 31U, 31U, 32U, 32U,
32U, 32U, 32U, 31U, 31U, 30U, 29U, 28U, 27U, 26U, 25U, 24U, 22U, 21U, 19U,
18U, 16U, 14U, 13U, 11U, 10U, 8U, 7U, 6U, 5U, 4U, 3U, 2U, 1U, 1U, 0U, 0U
};
/*
const UBYTE cos16_32[32] = {
0U, 0U, 1U, 1U, 2U, 4U, 5U, 6U, 8U, 10U,
11U, 12U, 14U, 15U, 15U, 16U, 16U, 16U,
15U, 15U, 14U, 12U, 11U, 10U, 8U,
6U, 5U, 4U, 2U, 1U, 1U, 0U
};
*/
const UBYTE cos16_32_diff[32] = {
0U, 1U, 0U, 1U, 2U, 1U, 1U, 2U, 2U, 1U, 1U, 2U, 1U, 0U, 1U, 0U,
0U, 255U, 0U, 255U, 254U, 255U, 255U, 254U, 254U, 255U, 255U, 254U, 255U, 0U, 255U, 0U
};
const UBYTE cos4_16[16] = {
4U, 4U, 3U, 3U, 2U, 1U, 1U, 0U, 0U, 0U, 1U, 1U, 2U, 3U, 3U, 4U
};