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
Raphael Zumer
aom-rav1e
Commits
c8de931e
Commit
c8de931e
authored
May 02, 2013
by
Ronald S. Bultje
Committed by
Gerrit Code Review
May 02, 2013
Browse files
Merge "Fix i4x4 mode reading and writing in sb8x8 bitstream." into experimental
parents
1cc0e67d
e931dac7
Changes
3
Hide whitespace changes
Inline
Side-by-side
vp9/decoder/vp9_decodemv.c
View file @
c8de931e
...
...
@@ -952,7 +952,12 @@ static void read_mb_modes_mv(VP9D_COMP *pbi, MODE_INFO *mi, MB_MODE_INFO *mbmi,
// required for left and above block mv
mv0
->
as_int
=
0
;
if
(
mbmi
->
sb_type
>
BLOCK_SIZE_MB16X16
)
{
#if CONFIG_SB8X8
if
(
mbmi
->
sb_type
>
BLOCK_SIZE_SB8X8
)
#else
if
(
mbmi
->
sb_type
>
BLOCK_SIZE_MB16X16
)
#endif
{
mbmi
->
mode
=
read_sb_ymode
(
r
,
cm
->
fc
.
sb_ymode_prob
);
cm
->
fc
.
sb_ymode_counts
[
mbmi
->
mode
]
++
;
}
else
{
...
...
@@ -970,7 +975,7 @@ static void read_mb_modes_mv(VP9D_COMP *pbi, MODE_INFO *mi, MB_MODE_INFO *mbmi,
if
(
m
==
B_CONTEXT_PRED
)
m
-=
CONTEXT_PRED_REPLACEMENTS
;
#endif
cm
->
fc
.
bmode_counts
[
m
]
++
;
}
while
(
++
j
<
16
);
}
while
(
++
j
<
(
16
>>
(
2
*
CONFIG_SB8X8
))
);
}
#if !CONFIG_SB8X8
...
...
vp9/encoder/vp9_bitstream.c
View file @
c8de931e
...
...
@@ -671,7 +671,11 @@ static void pack_inter_mode_mvs(VP9_COMP *cpi, MODE_INFO *m,
active_section
=
6
;
#endif
#if CONFIG_SB8X8
if
(
m
->
mbmi
.
sb_type
>
BLOCK_SIZE_SB8X8
)
#else
if
(
m
->
mbmi
.
sb_type
>
BLOCK_SIZE_MB16X16
)
#endif
write_sb_ymode
(
bc
,
mode
,
pc
->
fc
.
sb_ymode_prob
);
else
write_ymode
(
bc
,
mode
,
pc
->
fc
.
ymode_prob
);
...
...
vp9/encoder/vp9_encodeframe.c
View file @
c8de931e
...
...
@@ -2073,7 +2073,12 @@ static void sum_intra_stats(VP9_COMP *cpi, MACROBLOCK *x) {
#endif
#endif
if
(
xd
->
mode_info_context
->
mbmi
.
sb_type
>
BLOCK_SIZE_MB16X16
)
{
#if CONFIG_SB8X8
if
(
xd
->
mode_info_context
->
mbmi
.
sb_type
>
BLOCK_SIZE_SB8X8
)
#else
if
(
xd
->
mode_info_context
->
mbmi
.
sb_type
>
BLOCK_SIZE_MB16X16
)
#endif
{
++
cpi
->
sb_ymode_count
[
m
];
}
else
{
++
cpi
->
ymode_count
[
m
];
...
...
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