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
5eeffc9f
Commit
5eeffc9f
authored
11 years ago
by
Dmitry Kovalev
Browse files
Options
Download
Patches
Plain Diff
Cleaning up vp9_get_pred_context_tx_size() function.
Change-Id: Ia6ef876e3d1e66b2182a9c0bce3fd758691cd381
parent
a1123538
v1.14.0-linphone
1.4.X
feature/update_to_v1.9.0-linphone
feature/uwp_nuget
frame_parallel
highbitdepth
indianrunnerduck
javanwhistlingduck
khakicampbell
linphone
linphone-android
linphone-old
longtailedduck
m49-2623
m52-2743
m54-2840
m56-2924
m66-3359
m68-3440
mandarinduck
mcw
mcw2
nextgen
nextgenv2
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
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
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
vp9/common/vp9_pred_common.c
+13
-22
vp9/common/vp9_pred_common.c
with
13 additions
and
22 deletions
vp9/common/vp9_pred_common.c
+
13
−
22
View file @
5eeffc9f
...
@@ -369,31 +369,22 @@ unsigned char vp9_get_pred_context_single_ref_p2(const MACROBLOCKD *xd) {
...
@@ -369,31 +369,22 @@ unsigned char vp9_get_pred_context_single_ref_p2(const MACROBLOCKD *xd) {
// left of the entries corresponding to real blocks.
// left of the entries corresponding to real blocks.
// The prediction flags in these dummy entries are initialized to 0.
// The prediction flags in these dummy entries are initialized to 0.
unsigned
char
vp9_get_pred_context_tx_size
(
const
MACROBLOCKD
*
xd
)
{
unsigned
char
vp9_get_pred_context_tx_size
(
const
MACROBLOCKD
*
xd
)
{
const
MODE_INFO
*
const
above_mi
=
get_above_mi
(
xd
);
const
MODE_INFO
*
const
left_mi
=
get_left_mi
(
xd
);
const
MB_MODE_INFO
*
const
above_mbmi
=
get_above_mbmi
(
above_mi
);
const
MB_MODE_INFO
*
const
left_mbmi
=
get_left_mbmi
(
left_mi
);
const
int
above_in_image
=
above_mi
!=
NULL
;
const
int
left_in_image
=
left_mi
!=
NULL
;
const
int
max_tx_size
=
max_txsize_lookup
[
xd
->
mi_8x8
[
0
]
->
mbmi
.
sb_type
];
const
int
max_tx_size
=
max_txsize_lookup
[
xd
->
mi_8x8
[
0
]
->
mbmi
.
sb_type
];
int
above_context
=
max_tx_size
;
const
MB_MODE_INFO
*
const
above_mbmi
=
get_above_mbmi
(
get_above_mi
(
xd
));
int
left_context
=
max_tx_size
;
const
MB_MODE_INFO
*
const
left_mbmi
=
get_left_mbmi
(
get_left_mi
(
xd
));
const
int
has_above
=
above_mbmi
!=
NULL
;
if
(
above_in_image
)
const
int
has_left
=
left_mbmi
!=
NULL
;
above_context
=
above_mbmi
->
skip_coeff
?
max_tx_size
int
above_ctx
=
(
has_above
&&
!
above_mbmi
->
skip_coeff
)
?
above_mbmi
->
tx_size
:
above_mbmi
->
tx_size
;
:
max_tx_size
;
int
left_ctx
=
(
has_left
&&
!
left_mbmi
->
skip_coeff
)
?
left_mbmi
->
tx_size
if
(
left_in_image
)
:
max_tx_size
;
left_context
=
left_mbmi
->
skip_coeff
?
max_tx_size
if
(
!
has_left
)
:
left_mbmi
->
tx_size
;
left_ctx
=
above_ctx
;
if
(
!
left_in_image
)
left_context
=
above_context
;
if
(
!
abov
e_in_imag
e
)
if
(
!
has_
above
)
above_c
ontex
t
=
left_c
ontex
t
;
above_ct
x
=
left_ct
x
;
return
above_c
ontex
t
+
left_c
ontext
>
max_tx_size
;
return
(
above_ct
x
+
left_c
tx
)
>
max_tx_size
;
}
}
int
vp9_get_segment_id
(
VP9_COMMON
*
cm
,
const
uint8_t
*
segment_ids
,
int
vp9_get_segment_id
(
VP9_COMMON
*
cm
,
const
uint8_t
*
segment_ids
,
...
...
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