Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
BC
public
external
libvpx
Commits
cb05a451
Commit
cb05a451
authored
11 years ago
by
Dmitry Kovalev
Committed by
Gerrit Code Review
11 years ago
Browse files
Options
Download
Plain Diff
Merge "Cleaning up optimize_init_b function."
parents
64c0f5c5
be60924f
v1.14.0-linphone
1.4.X
feature/update_to_v1.9.0-linphone
feature/uwp_nuget
forest
frame_parallel
highbitdepth
indianrunnerduck
javanwhistlingduck
khakicampbell
linphone
linphone-android
linphone-old
longtailedduck
m31-baseline
m49-2623
m52-2743
m54-2840
m56-2924
m66-3359
m68-3440
mandarinduck
mcw
mcw2
nextgen
nextgenv2
pcs-2013
playground
sandbox/Jingning/experimental
sandbox/Jingning/transcode
sandbox/Jingning/vpx
sandbox/aconverse@google.com/ansbench
sandbox/debargha/playground
sandbox/hkuang/frame_parallel
sandbox/hkuang@google.com/decode
sandbox/jimbankoski@google.com/proposed-aom
sandbox/jingning@google.com/decoder_test_suite
sandbox/jingning@google.com/experimental
sandbox/jzern@google.com/test
sandbox/wangch@google.com/vp9
sandbox/yaowu@google.com/mergeaom
stable-vp9-decoder
v1.12.0-linphone
v1.6.1_linphone
v1.7.0-linphone
v1.9.0-linphone
v1.9.0
v1.9.0-rc1
v1.8.2
v1.8.1
v1.8.0
v1.7.0
v1.6.1
v1.6.0
v1.5.0
v1.4.0
v1.3.0
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
vp9/encoder/vp9_encodemb.c
with
13 additions
and
13 deletions
vp9/encoder/vp9_encodemb.c
+
13
−
13
View file @
cb05a451
...
@@ -378,13 +378,13 @@ void vp9_optimize_b(int plane, int block, BLOCK_SIZE_TYPE plane_bsize,
...
@@ -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
);
&
ctx
->
ta
[
plane
][
x
],
&
ctx
->
tl
[
plane
][
y
],
tx_size
);
}
}
void
optimize_init_b
(
int
plane
,
BLOCK_SIZE_TYPE
bsize
,
void
*
arg
)
{
static
void
optimize_init_b
(
int
plane
,
BLOCK_SIZE_TYPE
bsize
,
const
struct
encode_b_args
*
const
args
=
arg
;
struct
encode_b_args
*
args
)
{
const
MACROBLOCKD
*
xd
=
&
args
->
x
->
e_mbd
;
const
MACROBLOCKD
*
xd
=
&
args
->
x
->
e_mbd
;
const
struct
macroblockd_plane
*
const
pd
=
&
xd
->
plane
[
plane
];
const
struct
macroblockd_plane
*
const
pd
=
&
xd
->
plane
[
plane
];
const
int
bwl
=
b_width_log2
(
bsize
)
-
pd
->
subsampling_x
;
const
BLOCK_SIZE_TYPE
plane_bsize
=
get_plane_block_size
(
bsize
,
pd
)
;
const
int
bhl
=
b_height_log2
(
bsize
)
-
pd
->
subsampling_y
;
const
int
num_4x4_w
=
num_4x4_blocks_wide_lookup
[
plane_bsize
]
;
const
int
bw
=
1
<<
bwl
,
bh
=
1
<<
bhl
;
const
int
num_4x4_h
=
num_4x4_blocks_high_lookup
[
plane_bsize
]
;
const
MB_MODE_INFO
*
mbmi
=
&
xd
->
mode_info_context
->
mbmi
;
const
MB_MODE_INFO
*
mbmi
=
&
xd
->
mode_info_context
->
mbmi
;
const
TX_SIZE
tx_size
=
plane
?
get_uv_tx_size
(
mbmi
)
:
mbmi
->
txfm_size
;
const
TX_SIZE
tx_size
=
plane
?
get_uv_tx_size
(
mbmi
)
:
mbmi
->
txfm_size
;
int
i
;
int
i
;
...
@@ -392,26 +392,26 @@ void optimize_init_b(int plane, BLOCK_SIZE_TYPE bsize, void *arg) {
...
@@ -392,26 +392,26 @@ void optimize_init_b(int plane, BLOCK_SIZE_TYPE bsize, void *arg) {
switch
(
tx_size
)
{
switch
(
tx_size
)
{
case
TX_4X4
:
case
TX_4X4
:
vpx_memcpy
(
args
->
ctx
->
ta
[
plane
],
pd
->
above_context
,
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
,
vpx_memcpy
(
args
->
ctx
->
tl
[
plane
],
pd
->
left_context
,
sizeof
(
ENTROPY_CONTEXT
)
*
b
h
);
sizeof
(
ENTROPY_CONTEXT
)
*
num_4x4_
h
);
break
;
break
;
case
TX_8X8
:
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
];
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
];
args
->
ctx
->
tl
[
plane
][
i
]
=
!!*
(
uint16_t
*
)
&
pd
->
left_context
[
i
];
break
;
break
;
case
TX_16X16
:
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
];
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
];
args
->
ctx
->
tl
[
plane
][
i
]
=
!!*
(
uint32_t
*
)
&
pd
->
left_context
[
i
];
break
;
break
;
case
TX_32X32
:
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
];
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
];
args
->
ctx
->
tl
[
plane
][
i
]
=
!!*
(
uint64_t
*
)
&
pd
->
left_context
[
i
];
break
;
break
;
default:
default:
...
...
This diff is collapsed.
Click to expand it.
Preview
Supports
Markdown
0%
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
Menu
Explore
Projects
Groups
Topics
Snippets