Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Guillaume Martres
aom-rav1e
Commits
79ec9a26
Commit
79ec9a26
authored
Mar 26, 2014
by
Marco Paniconi
Committed by
Gerrit Code Review
Mar 26, 2014
Browse files
Merge "Fix to cylcic refresh: use correct/chosen mode for update_segment."
parents
4ecaaa81
eeed7e29
Changes
1
Hide whitespace changes
Inline
Side-by-side
vp9/encoder/vp9_encodeframe.c
View file @
79ec9a26
...
...
@@ -896,22 +896,17 @@ static void update_state(VP9_COMP *cpi, PICK_MODE_CONTEXT *ctx,
assert
(
mi
->
mbmi
.
sb_type
==
bsize
);
// For in frame adaptive Q copy over the chosen segment id into the
// mode innfo context for the chosen mode / partition.
if
((
cpi
->
oxcf
.
aq_mode
==
COMPLEXITY_AQ
||
cpi
->
oxcf
.
aq_mode
==
CYCLIC_REFRESH_AQ
)
&&
*
mi_addr
=
*
mi
;
// For in frame adaptive Q, check for reseting the segment_id and updating
// the cyclic refresh map.
if
((
cpi
->
oxcf
.
aq_mode
==
CYCLIC_REFRESH_AQ
)
&&
seg
->
enabled
&&
output_enabled
)
{
// Check for reseting segment_id and update cyclic map.
if
(
cpi
->
oxcf
.
aq_mode
==
CYCLIC_REFRESH_AQ
&&
seg
->
enabled
)
{
vp9_update_segment_aq
(
cpi
,
&
xd
->
mi_8x8
[
0
]
->
mbmi
,
mi_row
,
mi_col
,
bsize
,
1
);
vp9_init_plane_quantizers
(
cpi
,
x
);
}
mi
->
mbmi
.
segment_id
=
xd
->
mi_8x8
[
0
]
->
mbmi
.
segment_id
;
vp9_update_segment_aq
(
cpi
,
&
xd
->
mi_8x8
[
0
]
->
mbmi
,
mi_row
,
mi_col
,
bsize
,
1
);
vp9_init_plane_quantizers
(
cpi
,
x
);
}
*
mi_addr
=
*
mi
;
max_plane
=
is_inter_block
(
mbmi
)
?
MAX_MB_PLANE
:
1
;
for
(
i
=
0
;
i
<
max_plane
;
++
i
)
{
p
[
i
].
coeff
=
ctx
->
coeff_pbuf
[
i
][
1
];
...
...
Write
Preview
Supports
Markdown
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