Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
VideoLAN
x264
Commits
8a1d6cb2
Commit
8a1d6cb2
authored
Jun 02, 2008
by
Noboru Asai
Committed by
Loren Merritt
Jun 02, 2008
Browse files
fix some uninitialized partitions in rdo
parent
56f2bc89
Changes
1
Hide whitespace changes
Inline
Side-by-side
encoder/analyse.c
View file @
8a1d6cb2
...
...
@@ -1874,6 +1874,7 @@ static void x264_mb_analyse_p_rd( x264_t *h, x264_mb_analysis_t *a, int i_satd )
if
(
a
->
l0
.
i_cost8x8
<=
thresh
)
{
h
->
mb
.
i_type
=
P_8x8
;
h
->
mb
.
i_partition
=
D_8x8
;
x264_analyse_update_cache
(
h
,
a
);
a
->
l0
.
i_cost8x8
=
x264_rd_cost_mb
(
h
,
a
->
i_lambda2
);
...
...
@@ -1892,6 +1893,7 @@ static void x264_mb_analyse_p_rd( x264_t *h, x264_mb_analysis_t *a, int i_satd )
{
h
->
mb
.
i_sub_partition
[
0
]
=
h
->
mb
.
i_sub_partition
[
1
]
=
h
->
mb
.
i_sub_partition
[
2
]
=
h
->
mb
.
i_sub_partition
[
3
]
=
D_L0_8x8
;
x264_analyse_update_cache
(
h
,
a
);
i_cost
=
x264_rd_cost_mb
(
h
,
a
->
i_lambda2
);
if
(
a
->
l0
.
i_cost8x8
<
i_cost
)
{
...
...
@@ -2311,6 +2313,8 @@ void x264_macroblock_analyse( x264_t *h )
}
else
if
(
i_partition
==
D_16x8
)
{
h
->
mb
.
i_sub_partition
[
0
]
=
h
->
mb
.
i_sub_partition
[
1
]
=
h
->
mb
.
i_sub_partition
[
2
]
=
h
->
mb
.
i_sub_partition
[
3
]
=
D_L0_8x8
;
x264_macroblock_cache_ref
(
h
,
0
,
0
,
4
,
2
,
0
,
analysis
.
l0
.
me16x8
[
0
].
i_ref
);
x264_macroblock_cache_ref
(
h
,
0
,
2
,
4
,
2
,
0
,
analysis
.
l0
.
me16x8
[
1
].
i_ref
);
x264_me_refine_qpel_rd
(
h
,
&
analysis
.
l0
.
me16x8
[
0
],
analysis
.
i_lambda2
,
0
);
...
...
@@ -2318,6 +2322,8 @@ void x264_macroblock_analyse( x264_t *h )
}
else
if
(
i_partition
==
D_8x16
)
{
h
->
mb
.
i_sub_partition
[
0
]
=
h
->
mb
.
i_sub_partition
[
1
]
=
h
->
mb
.
i_sub_partition
[
2
]
=
h
->
mb
.
i_sub_partition
[
3
]
=
D_L0_8x8
;
x264_macroblock_cache_ref
(
h
,
0
,
0
,
2
,
4
,
0
,
analysis
.
l0
.
me8x16
[
0
].
i_ref
);
x264_macroblock_cache_ref
(
h
,
2
,
0
,
2
,
4
,
0
,
analysis
.
l0
.
me8x16
[
1
].
i_ref
);
x264_me_refine_qpel_rd
(
h
,
&
analysis
.
l0
.
me8x16
[
0
],
analysis
.
i_lambda2
,
0
);
...
...
Write
Preview
Markdown
is supported
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