Parent Directory | Revision Log
Revision 1.1 - (view) (download)
1 : | Isibaar | 1.1 | #include "../portab.h" |
2 : | #include "cbp.h" | ||
3 : | |||
4 : | cbpFuncPtr calc_cbp; | ||
5 : | |||
6 : | uint32_t calc_cbp_c(const int16_t codes[6][64]) | ||
7 : | { | ||
8 : | uint32_t i, j; | ||
9 : | uint32_t cbp = 0; | ||
10 : | |||
11 : | for (i = 0; i < 6; i++) { | ||
12 : | for (j = 1; j < 64/4; j+=4) { | ||
13 : | if (codes[i][j] |codes[i][j+1]| | ||
14 : | codes[i][j+2]|codes[i][j+3]) { | ||
15 : | cbp |= 1 << (5 - i); | ||
16 : | break; | ||
17 : | } | ||
18 : | } | ||
19 : | } | ||
20 : | return cbp; | ||
21 : | } |
No admin address has been configured | ViewVC Help |
Powered by ViewVC 1.0.4 |