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
2d70e165
Commit
2d70e165
authored
Mar 21, 2014
by
Yaowu Xu
Committed by
Gerrit Code Review
Mar 21, 2014
Browse files
Merge "Fix a valgrind error"
parents
46c71e5e
e993fb5e
Changes
1
Hide whitespace changes
Inline
Side-by-side
vp9/encoder/vp9_encodeframe.c
View file @
2d70e165
...
...
@@ -2699,8 +2699,8 @@ static void nonrd_use_partition(VP9_COMP *cpi,
const
int
mis
=
cm
->
mode_info_stride
;
PARTITION_TYPE
partition
;
BLOCK_SIZE
subsize
;
int
rate
;
int64_t
dist
;
int
rate
=
INT_MAX
;
int64_t
dist
=
INT64_MAX
;
if
(
mi_row
>=
cm
->
mi_rows
||
mi_col
>=
cm
->
mi_cols
)
return
;
...
...
@@ -2747,7 +2747,6 @@ static void nonrd_use_partition(VP9_COMP *cpi,
break
;
case
PARTITION_SPLIT
:
subsize
=
get_subsize
(
bsize
,
PARTITION_SPLIT
);
*
get_sb_index
(
x
,
subsize
)
=
0
;
nonrd_use_partition
(
cpi
,
tile
,
mi_8x8
,
tp
,
mi_row
,
mi_col
,
subsize
,
output_enabled
,
totrate
,
totdist
);
...
...
@@ -2804,8 +2803,8 @@ static void encode_nonrd_sb_row(VP9_COMP *cpi, const TileInfo *const tile,
// Code each SB in the row
for
(
mi_col
=
tile
->
mi_col_start
;
mi_col
<
tile
->
mi_col_end
;
mi_col
+=
MI_BLOCK_SIZE
)
{
int
dummy_rate
;
int64_t
dummy_dist
;
int
dummy_rate
=
0
;
int64_t
dummy_dist
=
0
;
const
int
idx_str
=
cm
->
mode_info_stride
*
mi_row
+
mi_col
;
MODE_INFO
**
mi_8x8
=
cm
->
mi_grid_visible
+
idx_str
;
MODE_INFO
**
prev_mi_8x8
=
cm
->
prev_mi_grid_visible
+
idx_str
;
...
...
@@ -2822,8 +2821,8 @@ static void encode_nonrd_sb_row(VP9_COMP *cpi, const TileInfo *const tile,
else
if
(
cpi
->
sf
.
partition_search_type
==
REFERENCE_PARTITION
)
{
if
(
cpi
->
sf
.
partition_check
)
{
MACROBLOCK
*
x
=
&
cpi
->
mb
;
int
rate1
,
rate2
,
rate3
;
int64_t
dist1
,
dist2
,
dist3
;
int
rate1
=
0
,
rate2
=
0
,
rate3
=
0
;
int64_t
dist1
=
0
,
dist2
=
0
,
dist3
=
0
;
set_fixed_partitioning
(
cpi
,
tile
,
mi_8x8
,
mi_row
,
mi_col
,
BLOCK_8X8
);
nonrd_use_partition
(
cpi
,
tile
,
mi_8x8
,
tp
,
mi_row
,
mi_col
,
BLOCK_64X64
,
0
,
&
rate1
,
&
dist1
);
...
...
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