Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
aom-rav1e
Commits
28a82263
Commit
28a82263
authored
Apr 20, 2015
by
James Zern
Browse files
vp9_common_data: right-size tables
Change-Id: I2206ee148a46b234df58f2b623e9f32f26033e04
parent
1c7b1f9a
Changes
2
Hide whitespace changes
Inline
Side-by-side
vp9/common/vp9_common_data.c
View file @
28a82263
...
...
@@ -11,27 +11,27 @@
#include "vp9/common/vp9_common_data.h"
// Log 2 conversion lookup tables for block width and height
const
int
b_width_log2_lookup
[
BLOCK_SIZES
]
=
const
u
int
8_t
b_width_log2_lookup
[
BLOCK_SIZES
]
=
{
0
,
0
,
1
,
1
,
1
,
2
,
2
,
2
,
3
,
3
,
3
,
4
,
4
};
const
int
b_height_log2_lookup
[
BLOCK_SIZES
]
=
const
u
int
8_t
b_height_log2_lookup
[
BLOCK_SIZES
]
=
{
0
,
1
,
0
,
1
,
2
,
1
,
2
,
3
,
2
,
3
,
4
,
3
,
4
};
const
int
num_4x4_blocks_wide_lookup
[
BLOCK_SIZES
]
=
const
u
int
8_t
num_4x4_blocks_wide_lookup
[
BLOCK_SIZES
]
=
{
1
,
1
,
2
,
2
,
2
,
4
,
4
,
4
,
8
,
8
,
8
,
16
,
16
};
const
int
num_4x4_blocks_high_lookup
[
BLOCK_SIZES
]
=
const
u
int
8_t
num_4x4_blocks_high_lookup
[
BLOCK_SIZES
]
=
{
1
,
2
,
1
,
2
,
4
,
2
,
4
,
8
,
4
,
8
,
16
,
8
,
16
};
// Log 2 conversion lookup tables for modeinfo width and height
const
int
mi_width_log2_lookup
[
BLOCK_SIZES
]
=
const
u
int
8_t
mi_width_log2_lookup
[
BLOCK_SIZES
]
=
{
0
,
0
,
0
,
0
,
0
,
1
,
1
,
1
,
2
,
2
,
2
,
3
,
3
};
const
int
num_8x8_blocks_wide_lookup
[
BLOCK_SIZES
]
=
const
u
int
8_t
num_8x8_blocks_wide_lookup
[
BLOCK_SIZES
]
=
{
1
,
1
,
1
,
1
,
1
,
2
,
2
,
2
,
4
,
4
,
4
,
8
,
8
};
const
int
num_8x8_blocks_high_lookup
[
BLOCK_SIZES
]
=
const
u
int
8_t
num_8x8_blocks_high_lookup
[
BLOCK_SIZES
]
=
{
1
,
1
,
1
,
1
,
2
,
1
,
2
,
4
,
2
,
4
,
8
,
4
,
8
};
// MIN(3, MIN(b_width_log2(bsize), b_height_log2(bsize)))
const
int
size_group_lookup
[
BLOCK_SIZES
]
=
const
u
int
8_t
size_group_lookup
[
BLOCK_SIZES
]
=
{
0
,
0
,
0
,
1
,
1
,
1
,
2
,
2
,
2
,
3
,
3
,
3
,
3
};
const
int
num_pels_log2_lookup
[
BLOCK_SIZES
]
=
const
u
int
8_t
num_pels_log2_lookup
[
BLOCK_SIZES
]
=
{
4
,
5
,
5
,
6
,
7
,
7
,
8
,
9
,
9
,
10
,
11
,
11
,
12
};
const
PARTITION_TYPE
partition_lookup
[][
BLOCK_SIZES
]
=
{
...
...
vp9/common/vp9_common_data.h
View file @
28a82263
...
...
@@ -12,20 +12,21 @@
#define VP9_COMMON_VP9_COMMON_DATA_H_
#include "vp9/common/vp9_enums.h"
#include "vpx/vpx_integer.h"
#ifdef __cplusplus
extern
"C"
{
#endif
extern
const
int
b_width_log2_lookup
[
BLOCK_SIZES
];
extern
const
int
b_height_log2_lookup
[
BLOCK_SIZES
];
extern
const
int
mi_width_log2_lookup
[
BLOCK_SIZES
];
extern
const
int
num_8x8_blocks_wide_lookup
[
BLOCK_SIZES
];
extern
const
int
num_8x8_blocks_high_lookup
[
BLOCK_SIZES
];
extern
const
int
num_4x4_blocks_high_lookup
[
BLOCK_SIZES
];
extern
const
int
num_4x4_blocks_wide_lookup
[
BLOCK_SIZES
];
extern
const
int
size_group_lookup
[
BLOCK_SIZES
];
extern
const
int
num_pels_log2_lookup
[
BLOCK_SIZES
];
extern
const
u
int
8_t
b_width_log2_lookup
[
BLOCK_SIZES
];
extern
const
u
int
8_t
b_height_log2_lookup
[
BLOCK_SIZES
];
extern
const
u
int
8_t
mi_width_log2_lookup
[
BLOCK_SIZES
];
extern
const
u
int
8_t
num_8x8_blocks_wide_lookup
[
BLOCK_SIZES
];
extern
const
u
int
8_t
num_8x8_blocks_high_lookup
[
BLOCK_SIZES
];
extern
const
u
int
8_t
num_4x4_blocks_high_lookup
[
BLOCK_SIZES
];
extern
const
u
int
8_t
num_4x4_blocks_wide_lookup
[
BLOCK_SIZES
];
extern
const
u
int
8_t
size_group_lookup
[
BLOCK_SIZES
];
extern
const
u
int
8_t
num_pels_log2_lookup
[
BLOCK_SIZES
];
extern
const
PARTITION_TYPE
partition_lookup
[][
BLOCK_SIZES
];
extern
const
BLOCK_SIZE
subsize_lookup
[
PARTITION_TYPES
][
BLOCK_SIZES
];
extern
const
TX_SIZE
max_txsize_lookup
[
BLOCK_SIZES
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment