Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
aom-rav1e
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xiph.Org
aom-rav1e
Commits
79dd1ee9
Commit
79dd1ee9
authored
Mar 16, 2016
by
Sarah Parker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix hbd segfault for prune_one and prune_two
Change-Id: I71da102550aa7d81961e5f10c71058d5fa8dc6c4
parent
f330444a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
6 deletions
+25
-6
vp10/encoder/rdopt.c
vp10/encoder/rdopt.c
+25
-6
No files found.
vp10/encoder/rdopt.c
View file @
79dd1ee9
...
...
@@ -377,16 +377,35 @@ static void get_energy_distribution_fine(const VP10_COMP *cpi,
unsigned
int
var
[
16
];
double
total
=
0
;
const
int
f_index
=
bsize
-
6
;
if
(
f_index
<
0
)
{
int
i
,
j
,
index
;
int
w_shift
=
bw
==
8
?
1
:
2
;
int
h_shift
=
bh
==
8
?
1
:
2
;
for
(
i
=
0
;
i
<
bh
;
++
i
)
for
(
j
=
0
;
j
<
bw
;
++
j
)
{
index
=
(
j
>>
w_shift
)
+
((
i
>>
h_shift
)
<<
2
);
esq
[
index
]
+=
(
src
[
j
+
i
*
src_stride
]
-
dst
[
j
+
i
*
dst_stride
])
*
(
src
[
j
+
i
*
src_stride
]
-
dst
[
j
+
i
*
dst_stride
]);
}
#if CONFIG_VP9_HIGHBITDEPTH
if
(
cpi
->
common
.
use_highbitdepth
)
{
uint16_t
*
src16
=
CONVERT_TO_SHORTPTR
(
src
);
uint16_t
*
dst16
=
CONVERT_TO_SHORTPTR
(
dst
);
for
(
i
=
0
;
i
<
bh
;
++
i
)
for
(
j
=
0
;
j
<
bw
;
++
j
)
{
index
=
(
j
>>
w_shift
)
+
((
i
>>
h_shift
)
<<
2
);
esq
[
index
]
+=
(
src16
[
j
+
i
*
src_stride
]
-
dst16
[
j
+
i
*
dst_stride
])
*
(
src16
[
j
+
i
*
src_stride
]
-
dst16
[
j
+
i
*
dst_stride
]);
}
}
else
{
#endif // CONFIG_VP9_HIGHBITDEPTH
for
(
i
=
0
;
i
<
bh
;
++
i
)
for
(
j
=
0
;
j
<
bw
;
++
j
)
{
index
=
(
j
>>
w_shift
)
+
((
i
>>
h_shift
)
<<
2
);
esq
[
index
]
+=
(
src
[
j
+
i
*
src_stride
]
-
dst
[
j
+
i
*
dst_stride
])
*
(
src
[
j
+
i
*
src_stride
]
-
dst
[
j
+
i
*
dst_stride
]);
}
#if CONFIG_VP9_HIGHBITDEPTH
}
#endif // CONFIG_VP9_HIGHBITDEPTH
}
else
{
var
[
0
]
=
cpi
->
fn_ptr
[
f_index
].
vf
(
src
,
src_stride
,
dst
,
dst_stride
,
&
esq
[
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