Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
aom-rav1e
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Xiph.Org
aom-rav1e
Commits
be60924f
Commit
be60924f
authored
11 years ago
by
Dmitry Kovalev
Browse files
Options
Downloads
Patches
Plain Diff
Cleaning up optimize_init_b function.
Change-Id: Ib2c975e1d96deefb7ac4d6b600c8c5388035d111
parent
3286abd8
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
vp9/encoder/vp9_encodemb.c
+13
-13
13 additions, 13 deletions
vp9/encoder/vp9_encodemb.c
with
13 additions
and
13 deletions
vp9/encoder/vp9_encodemb.c
+
13
−
13
View file @
be60924f
...
...
@@ -378,13 +378,13 @@ void vp9_optimize_b(int plane, int block, BLOCK_SIZE_TYPE plane_bsize,
&
ctx
->
ta
[
plane
][
x
],
&
ctx
->
tl
[
plane
][
y
],
tx_size
);
}
void
optimize_init_b
(
int
plane
,
BLOCK_SIZE_TYPE
bsize
,
void
*
arg
)
{
const
struct
encode_b_args
*
const
args
=
arg
;
static
void
optimize_init_b
(
int
plane
,
BLOCK_SIZE_TYPE
bsize
,
struct
encode_b_args
*
args
)
{
const
MACROBLOCKD
*
xd
=
&
args
->
x
->
e_mbd
;
const
struct
macroblockd_plane
*
const
pd
=
&
xd
->
plane
[
plane
];
const
int
bwl
=
b_width_log2
(
bsize
)
-
pd
->
subsampling_x
;
const
int
bhl
=
b_height_log2
(
bsize
)
-
pd
->
subsampling_y
;
const
int
bw
=
1
<<
bwl
,
bh
=
1
<<
bhl
;
const
BLOCK_SIZE_TYPE
plane_bsize
=
get_plane_block_size
(
bsize
,
pd
)
;
const
int
num_4x4_w
=
num_4x4_blocks_wide_lookup
[
plane_bsize
]
;
const
int
num_4x4_h
=
num_4x4_blocks_high_lookup
[
plane_bsize
]
;
const
MB_MODE_INFO
*
mbmi
=
&
xd
->
mode_info_context
->
mbmi
;
const
TX_SIZE
tx_size
=
plane
?
get_uv_tx_size
(
mbmi
)
:
mbmi
->
txfm_size
;
int
i
;
...
...
@@ -392,26 +392,26 @@ void optimize_init_b(int plane, BLOCK_SIZE_TYPE bsize, void *arg) {
switch
(
tx_size
)
{
case
TX_4X4
:
vpx_memcpy
(
args
->
ctx
->
ta
[
plane
],
pd
->
above_context
,
sizeof
(
ENTROPY_CONTEXT
)
*
b
w
);
sizeof
(
ENTROPY_CONTEXT
)
*
num_4x4_
w
);
vpx_memcpy
(
args
->
ctx
->
tl
[
plane
],
pd
->
left_context
,
sizeof
(
ENTROPY_CONTEXT
)
*
b
h
);
sizeof
(
ENTROPY_CONTEXT
)
*
num_4x4_
h
);
break
;
case
TX_8X8
:
for
(
i
=
0
;
i
<
b
w
;
i
+=
2
)
for
(
i
=
0
;
i
<
num_4x4_
w
;
i
+=
2
)
args
->
ctx
->
ta
[
plane
][
i
]
=
!!*
(
uint16_t
*
)
&
pd
->
above_context
[
i
];
for
(
i
=
0
;
i
<
b
h
;
i
+=
2
)
for
(
i
=
0
;
i
<
num_4x4_
h
;
i
+=
2
)
args
->
ctx
->
tl
[
plane
][
i
]
=
!!*
(
uint16_t
*
)
&
pd
->
left_context
[
i
];
break
;
case
TX_16X16
:
for
(
i
=
0
;
i
<
b
w
;
i
+=
4
)
for
(
i
=
0
;
i
<
num_4x4_
w
;
i
+=
4
)
args
->
ctx
->
ta
[
plane
][
i
]
=
!!*
(
uint32_t
*
)
&
pd
->
above_context
[
i
];
for
(
i
=
0
;
i
<
b
h
;
i
+=
4
)
for
(
i
=
0
;
i
<
num_4x4_
h
;
i
+=
4
)
args
->
ctx
->
tl
[
plane
][
i
]
=
!!*
(
uint32_t
*
)
&
pd
->
left_context
[
i
];
break
;
case
TX_32X32
:
for
(
i
=
0
;
i
<
b
w
;
i
+=
8
)
for
(
i
=
0
;
i
<
num_4x4_
w
;
i
+=
8
)
args
->
ctx
->
ta
[
plane
][
i
]
=
!!*
(
uint64_t
*
)
&
pd
->
above_context
[
i
];
for
(
i
=
0
;
i
<
b
h
;
i
+=
8
)
for
(
i
=
0
;
i
<
num_4x4_
h
;
i
+=
8
)
args
->
ctx
->
tl
[
plane
][
i
]
=
!!*
(
uint64_t
*
)
&
pd
->
left_context
[
i
];
break
;
default:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment