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
Xiph.Org
aom-rav1e
Commits
0e84fb08
Commit
0e84fb08
authored
Mar 24, 2014
by
Dmitry Kovalev
Committed by
Gerrit Code Review
Mar 24, 2014
Browse files
Merge "Making c++ compiler happier."
parents
64c766bb
9347e55f
Changes
2
Hide whitespace changes
Inline
Side-by-side
vp9/decoder/vp9_decodeframe.c
View file @
0e84fb08
...
...
@@ -214,7 +214,7 @@ static void inverse_transform_block(MACROBLOCKD* xd, int plane, int block,
struct
macroblockd_plane
*
const
pd
=
&
xd
->
plane
[
plane
];
if
(
eob
>
0
)
{
TX_TYPE
tx_type
;
const
int
plane_type
=
pd
->
plane_type
;
const
PLANE_TYPE
plane_type
=
pd
->
plane_type
;
int16_t
*
const
dqcoeff
=
BLOCK_OFFSET
(
pd
->
dqcoeff
,
block
);
switch
(
tx_size
)
{
case
TX_4X4
:
...
...
@@ -262,7 +262,7 @@ struct intra_args {
static
void
predict_and_reconstruct_intra_block
(
int
plane
,
int
block
,
BLOCK_SIZE
plane_bsize
,
TX_SIZE
tx_size
,
void
*
arg
)
{
struct
intra_args
*
const
args
=
arg
;
struct
intra_args
*
const
args
=
(
struct
intra_args
*
)
arg
;
VP9_COMMON
*
const
cm
=
args
->
cm
;
MACROBLOCKD
*
const
xd
=
args
->
xd
;
struct
macroblockd_plane
*
const
pd
=
&
xd
->
plane
[
plane
];
...
...
@@ -298,7 +298,7 @@ struct inter_args {
static
void
reconstruct_inter_block
(
int
plane
,
int
block
,
BLOCK_SIZE
plane_bsize
,
TX_SIZE
tx_size
,
void
*
arg
)
{
struct
inter_args
*
args
=
arg
;
struct
inter_args
*
args
=
(
struct
inter_args
*
)
arg
;
VP9_COMMON
*
const
cm
=
args
->
cm
;
MACROBLOCKD
*
const
xd
=
args
->
xd
;
struct
macroblockd_plane
*
const
pd
=
&
xd
->
plane
[
plane
];
...
...
@@ -414,7 +414,7 @@ static PARTITION_TYPE read_partition(VP9_COMMON *cm, MACROBLOCKD *xd, int hbs,
PARTITION_TYPE
p
;
if
(
has_rows
&&
has_cols
)
p
=
vp9_read_tree
(
r
,
vp9_partition_tree
,
probs
);
p
=
(
PARTITION_TYPE
)
vp9_read_tree
(
r
,
vp9_partition_tree
,
probs
);
else
if
(
!
has_rows
&&
has_cols
)
p
=
vp9_read
(
r
,
probs
[
1
])
?
PARTITION_SPLIT
:
PARTITION_HORZ
;
else
if
(
has_rows
&&
!
has_cols
)
...
...
@@ -1108,7 +1108,7 @@ static size_t read_uncompressed_header(VP9D_COMP *pbi,
if
(
cm
->
frame_type
==
KEY_FRAME
)
{
check_sync_code
(
cm
,
rb
);
cm
->
color_space
=
vp9_rb_read_literal
(
rb
,
3
);
// colorspace
cm
->
color_space
=
(
COLOR_SPACE
)
vp9_rb_read_literal
(
rb
,
3
);
if
(
cm
->
color_space
!=
SRGB
)
{
vp9_rb_read_bit
(
rb
);
// [16,235] (including xvycc) vs [0,255] range
if
(
cm
->
version
==
1
)
{
...
...
vp9/decoder/vp9_decodemv.c
View file @
0e84fb08
...
...
@@ -63,7 +63,7 @@ static TX_SIZE read_selected_tx_size(VP9_COMMON *cm, MACROBLOCKD *xd,
TX_SIZE
max_tx_size
,
vp9_reader
*
r
)
{
const
int
ctx
=
vp9_get_tx_size_context
(
xd
);
const
vp9_prob
*
tx_probs
=
get_tx_probs
(
max_tx_size
,
ctx
,
&
cm
->
fc
.
tx_probs
);
TX_SIZE
tx_size
=
(
TX_SIZE
)
vp9_read
(
r
,
tx_probs
[
0
]);
int
tx_size
=
vp9_read
(
r
,
tx_probs
[
0
]);
if
(
tx_size
!=
TX_4X4
&&
max_tx_size
>=
TX_16X16
)
{
tx_size
+=
vp9_read
(
r
,
tx_probs
[
1
]);
if
(
tx_size
!=
TX_8X8
&&
max_tx_size
>=
TX_32X32
)
...
...
@@ -72,7 +72,7 @@ static TX_SIZE read_selected_tx_size(VP9_COMMON *cm, MACROBLOCKD *xd,
if
(
!
cm
->
frame_parallel_decoding_mode
)
++
get_tx_counts
(
max_tx_size
,
ctx
,
&
cm
->
counts
.
tx
)[
tx_size
];
return
tx_size
;
return
(
TX_SIZE
)
tx_size
;
}
static
TX_SIZE
read_tx_size
(
VP9_COMMON
*
cm
,
MACROBLOCKD
*
xd
,
TX_MODE
tx_mode
,
...
...
@@ -237,14 +237,15 @@ static int read_mv_component(vp9_reader *r,
static
INLINE
void
read_mv
(
vp9_reader
*
r
,
MV
*
mv
,
const
MV
*
ref
,
const
nmv_context
*
ctx
,
nmv_context_counts
*
counts
,
int
allow_hp
)
{
const
MV_JOINT_TYPE
j
=
vp9_read_tree
(
r
,
vp9_mv_joint_tree
,
ctx
->
joints
);
const
MV_JOINT_TYPE
joint_type
=
(
MV_JOINT_TYPE
)
vp9_read_tree
(
r
,
vp9_mv_joint_tree
,
ctx
->
joints
);
const
int
use_hp
=
allow_hp
&&
vp9_use_mv_hp
(
ref
);
MV
diff
=
{
0
,
0
};
if
(
mv_joint_vertical
(
j
))
if
(
mv_joint_vertical
(
j
oint_type
))
diff
.
row
=
read_mv_component
(
r
,
&
ctx
->
comps
[
0
],
use_hp
);
if
(
mv_joint_horizontal
(
j
))
if
(
mv_joint_horizontal
(
j
oint_type
))
diff
.
col
=
read_mv_component
(
r
,
&
ctx
->
comps
[
1
],
use_hp
);
vp9_inc_mv
(
&
diff
,
counts
);
...
...
@@ -276,7 +277,8 @@ static void read_ref_frames(VP9_COMMON *const cm, MACROBLOCKD *const xd,
FRAME_COUNTS
*
const
counts
=
&
cm
->
counts
;
if
(
vp9_segfeature_active
(
&
cm
->
seg
,
segment_id
,
SEG_LVL_REF_FRAME
))
{
ref_frame
[
0
]
=
vp9_get_segdata
(
&
cm
->
seg
,
segment_id
,
SEG_LVL_REF_FRAME
);
ref_frame
[
0
]
=
(
MV_REFERENCE_FRAME
)
vp9_get_segdata
(
&
cm
->
seg
,
segment_id
,
SEG_LVL_REF_FRAME
);
ref_frame
[
1
]
=
NONE
;
}
else
{
const
REFERENCE_MODE
mode
=
read_block_reference_mode
(
cm
,
xd
,
r
);
...
...
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