Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
external
libvpx
Commits
03492884
Commit
03492884
authored
May 02, 2013
by
Ronald S. Bultje
Browse files
Fix use of wrong rate/distortion variables in 16x8 r/d check.
Change-Id: Ib5961b4c8ca84d54c84b2651a4e0317c72fe7da4
parent
183aeecd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
vp9/encoder/vp9_encodeframe.c
vp9/encoder/vp9_encodeframe.c
+4
-4
No files found.
vp9/encoder/vp9_encodeframe.c
View file @
03492884
...
@@ -1134,8 +1134,8 @@ static void encode_sb_row(VP9_COMP *cpi,
...
@@ -1134,8 +1134,8 @@ static void encode_sb_row(VP9_COMP *cpi,
r2
+=
x
->
partition_cost
[
pl
][
PARTITION_VERT
];
r2
+=
x
->
partition_cost
[
pl
][
PARTITION_VERT
];
if
(
RDCOST
(
x
->
rdmult
,
x
->
rddiv
,
r2
,
d2
)
<
if
(
RDCOST
(
x
->
rdmult
,
x
->
rddiv
,
r2
,
d2
)
<
RDCOST
(
x
->
rdmult
,
x
->
rddiv
,
mb16_rate
,
mb16_dist
))
{
RDCOST
(
x
->
rdmult
,
x
->
rddiv
,
mb16_rate
,
mb16_dist
))
{
mb16_rate
=
r
;
mb16_rate
=
r
2
;
mb16_dist
=
d
;
mb16_dist
=
d
2
;
mb_partitioning
[
i
][
j
]
=
BLOCK_SIZE_SB8X16
;
mb_partitioning
[
i
][
j
]
=
BLOCK_SIZE_SB8X16
;
}
}
for
(
p
=
0
;
p
<
MAX_MB_PLANE
;
p
++
)
{
for
(
p
=
0
;
p
<
MAX_MB_PLANE
;
p
++
)
{
...
@@ -1179,8 +1179,8 @@ static void encode_sb_row(VP9_COMP *cpi,
...
@@ -1179,8 +1179,8 @@ static void encode_sb_row(VP9_COMP *cpi,
r2
+=
x
->
partition_cost
[
pl
][
PARTITION_HORZ
];
r2
+=
x
->
partition_cost
[
pl
][
PARTITION_HORZ
];
if
(
RDCOST
(
x
->
rdmult
,
x
->
rddiv
,
r2
,
d2
)
<
if
(
RDCOST
(
x
->
rdmult
,
x
->
rddiv
,
r2
,
d2
)
<
RDCOST
(
x
->
rdmult
,
x
->
rddiv
,
mb16_rate
,
mb16_dist
))
{
RDCOST
(
x
->
rdmult
,
x
->
rddiv
,
mb16_rate
,
mb16_dist
))
{
mb16_rate
=
r
;
mb16_rate
=
r
2
;
mb16_dist
=
d
;
mb16_dist
=
d
2
;
mb_partitioning
[
i
][
j
]
=
BLOCK_SIZE_SB16X8
;
mb_partitioning
[
i
][
j
]
=
BLOCK_SIZE_SB16X8
;
}
}
for
(
p
=
0
;
p
<
MAX_MB_PLANE
;
p
++
)
{
for
(
p
=
0
;
p
<
MAX_MB_PLANE
;
p
++
)
{
...
...
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