Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
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
b968d46a
Commit
b968d46a
authored
Nov 29, 2016
by
Angie Chiang
Browse files
Test all subpels in av1_convolve_vert_first test
Change-Id: Ibb695cc12381ecddced85891810a3c97e2fca3cf
parent
cdcac6d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/av1_convolve_test.cc
View file @
b968d46a
...
...
@@ -110,8 +110,8 @@ TEST(AV1ConvolveTest, av1_convolve) {
src
[
i
]
=
rnd
.
Rand16
()
%
(
1
<<
8
);
}
for
(
subpel_x_q4
=
0
;
subpel_x_q4
<
16
;
subpel_x_q4
++
)
{
for
(
subpel_y_q4
=
0
;
subpel_y_q4
<
16
;
subpel_y_q4
++
)
{
for
(
subpel_x_q4
=
0
;
subpel_x_q4
<
SUBPEL_SHIFTS
;
subpel_x_q4
++
)
{
for
(
subpel_y_q4
=
0
;
subpel_y_q4
<
SUBPEL_SHIFTS
;
subpel_y_q4
++
)
{
av1_convolve
(
src
+
src_stride
*
filter_center
+
filter_center
,
src_stride
,
dst
,
dst_stride
,
w
,
h
,
interp_filter
,
subpel_x_q4
,
x_step_q4
,
subpel_y_q4
,
y_step_q4
,
avg
);
...
...
@@ -171,8 +171,8 @@ TEST(AV1ConvolveTest, av1_convolve_vert_first) {
src
[
i
]
=
rnd
.
Rand16
()
%
(
1
<<
8
);
}
for
(
subpel_x_q4
=
1
;
subpel_x_q4
<
2
;
subpel_x_q4
++
)
{
for
(
subpel_y_q4
=
1
;
subpel_y_q4
<
2
;
subpel_y_q4
++
)
{
for
(
subpel_x_q4
=
1
;
subpel_x_q4
<
SUBPEL_SHIFTS
;
subpel_x_q4
++
)
{
for
(
subpel_y_q4
=
1
;
subpel_y_q4
<
SUBPEL_SHIFTS
;
subpel_y_q4
++
)
{
av1_convolve
(
src
+
src_stride
*
filter_center_y
+
filter_center_x
,
src_stride
,
dst
,
dst_stride
,
w
,
h
,
interp_filter
,
subpel_x_q4
,
x_step_q4
,
subpel_y_q4
,
y_step_q4
,
avg
);
...
...
@@ -239,8 +239,8 @@ TEST(AV1ConvolveTest, av1_convolve_avg) {
int
offset
=
filter_size
*
filter_center
+
filter_center
;
for
(
subpel_x_q4
=
0
;
subpel_x_q4
<
16
;
subpel_x_q4
++
)
{
for
(
subpel_y_q4
=
0
;
subpel_y_q4
<
16
;
subpel_y_q4
++
)
{
for
(
subpel_x_q4
=
0
;
subpel_x_q4
<
SUBPEL_SHIFTS
;
subpel_x_q4
++
)
{
for
(
subpel_y_q4
=
0
;
subpel_y_q4
<
SUBPEL_SHIFTS
;
subpel_y_q4
++
)
{
avg
=
0
;
av1_convolve
(
src0
+
offset
,
src_stride
,
dst0
,
dst_stride
,
w
,
h
,
interp_filter
,
subpel_x_q4
,
x_step_q4
,
subpel_y_q4
,
...
...
@@ -297,8 +297,8 @@ TEST(AV1ConvolveTest, av1_highbd_convolve) {
src
[
i
]
=
rnd
.
Rand16
()
%
(
1
<<
bd
);
}
for
(
subpel_x_q4
=
0
;
subpel_x_q4
<
16
;
subpel_x_q4
++
)
{
for
(
subpel_y_q4
=
0
;
subpel_y_q4
<
16
;
subpel_y_q4
++
)
{
for
(
subpel_x_q4
=
0
;
subpel_x_q4
<
SUBPEL_SHIFTS
;
subpel_x_q4
++
)
{
for
(
subpel_y_q4
=
0
;
subpel_y_q4
<
SUBPEL_SHIFTS
;
subpel_y_q4
++
)
{
av1_highbd_convolve
(
CONVERT_TO_BYTEPTR
(
src
+
src_stride
*
filter_center
+
filter_center
),
src_stride
,
CONVERT_TO_BYTEPTR
(
dst
),
dst_stride
,
w
,
h
,
interp_filter
,
...
...
@@ -363,8 +363,8 @@ TEST(AV1ConvolveTest, av1_highbd_convolve_avg) {
src1
[
i
]
=
rnd
.
Rand16
()
%
(
1
<<
bd
);
}
for
(
subpel_x_q4
=
0
;
subpel_x_q4
<
16
;
subpel_x_q4
++
)
{
for
(
subpel_y_q4
=
0
;
subpel_y_q4
<
16
;
subpel_y_q4
++
)
{
for
(
subpel_x_q4
=
0
;
subpel_x_q4
<
SUBPEL_SHIFTS
;
subpel_x_q4
++
)
{
for
(
subpel_y_q4
=
0
;
subpel_y_q4
<
SUBPEL_SHIFTS
;
subpel_y_q4
++
)
{
int
offset
=
filter_size
*
filter_center
+
filter_center
;
avg
=
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