Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
aom-rav1e
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xiph.Org
aom-rav1e
Commits
9b040645
Commit
9b040645
authored
Oct 24, 2016
by
Jingning Han
Committed by
Gerrit Code Review
Oct 24, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge "Add block size in pixels lookup table" into nextgenv2
parents
7e213aab
c47fe6c6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
0 deletions
+12
-0
av1/common/blockd.h
av1/common/blockd.h
+2
-0
av1/common/common_data.h
av1/common/common_data.h
+6
-0
av1/common/onyxc_int.h
av1/common/onyxc_int.h
+4
-0
No files found.
av1/common/blockd.h
View file @
9b040645
...
...
@@ -307,6 +307,8 @@ typedef struct macroblockd_plane {
uint16_t
n4_w
,
n4_h
;
// log2 of n4_w, n4_h
uint8_t
n4_wl
,
n4_hl
;
// block size in pixels
uint8_t
width
,
height
;
#if CONFIG_AOM_QM
const
qm_val_t
*
seg_iqmatrix
[
MAX_SEGMENTS
][
2
][
TX_SIZES
];
...
...
av1/common/common_data.h
View file @
9b040645
...
...
@@ -42,6 +42,12 @@ static const uint8_t mi_height_log2_lookup[BLOCK_SIZES] = {
};
// Width/height lookup tables in units of various block sizes
static
const
uint8_t
block_size_wide
[
BLOCK_SIZES
]
=
{
4
,
4
,
8
,
8
,
8
,
16
,
16
,
16
,
32
,
32
,
32
,
64
,
64
,
IF_EXT_PARTITION
(
64
,
128
,
128
)
};
static
const
uint8_t
block_size_high
[
BLOCK_SIZES
]
=
{
4
,
8
,
4
,
8
,
16
,
8
,
16
,
32
,
16
,
32
,
64
,
32
,
64
,
IF_EXT_PARTITION
(
128
,
64
,
128
)
};
static
const
uint8_t
num_4x4_blocks_wide_lookup
[
BLOCK_SIZES
]
=
{
1
,
1
,
2
,
2
,
2
,
4
,
4
,
4
,
8
,
8
,
8
,
16
,
16
,
IF_EXT_PARTITION
(
16
,
32
,
32
)
};
...
...
av1/common/onyxc_int.h
View file @
9b040645
...
...
@@ -527,6 +527,10 @@ static INLINE void set_plane_n4(MACROBLOCKD *const xd, int bw, int bh, int bwl,
int
bhl
)
{
int
i
;
for
(
i
=
0
;
i
<
MAX_MB_PLANE
;
i
++
)
{
xd
->
plane
[
i
].
width
=
block_size_wide
[
xd
->
mi
[
0
]
->
mbmi
.
sb_type
]
>>
xd
->
plane
[
i
].
subsampling_x
;
xd
->
plane
[
i
].
height
=
block_size_high
[
xd
->
mi
[
0
]
->
mbmi
.
sb_type
]
>>
xd
->
plane
[
i
].
subsampling_y
;
xd
->
plane
[
i
].
n4_w
=
(
bw
<<
1
)
>>
xd
->
plane
[
i
].
subsampling_x
;
xd
->
plane
[
i
].
n4_h
=
(
bh
<<
1
)
>>
xd
->
plane
[
i
].
subsampling_y
;
xd
->
plane
[
i
].
n4_wl
=
bwl
-
xd
->
plane
[
i
].
subsampling_x
;
...
...
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