Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
ec325742
Commit
ec325742
authored
Jul 09, 2016
by
Janne Grunau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
checkasm: vp8: mc: test unequal width/height for partitions
parent
5f74bd31
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
vp8dsp.c
tests/checkasm/vp8dsp.c
+9
-7
No files found.
tests/checkasm/vp8dsp.c
View file @
ec325742
...
...
@@ -268,15 +268,17 @@ static void check_mc(void)
LOCAL_ALIGNED_16
(
uint8_t
,
dst0
,
[
16
*
16
]);
LOCAL_ALIGNED_16
(
uint8_t
,
dst1
,
[
16
*
16
]);
VP8DSPContext
d
;
int
type
,
hsize
,
dx
,
dy
;
int
type
,
k
,
dx
,
dy
;
declare_func_emms
(
AV_CPU_FLAG_MMX
,
void
,
uint8_t
*
,
ptrdiff_t
,
uint8_t
*
,
ptrdiff_t
,
int
,
int
,
int
);
ff_vp78dsp_init
(
&
d
);
for
(
type
=
0
;
type
<
2
;
type
++
)
{
vp8_mc_func
(
*
tab
)[
3
][
3
]
=
type
?
d
.
put_vp8_bilinear_pixels_tab
:
d
.
put_vp8_epel_pixels_tab
;
for
(
hsize
=
0
;
hsize
<
3
;
hsize
++
)
{
int
size
=
16
>>
hsize
;
for
(
k
=
1
;
k
<
8
;
k
++
)
{
int
hsize
=
k
/
3
;
int
size
=
16
>>
hsize
;
int
height
=
(
size
<<
1
)
>>
(
k
%
3
);
for
(
dy
=
0
;
dy
<
3
;
dy
++
)
{
for
(
dx
=
0
;
dx
<
3
;
dx
++
)
{
char
str
[
100
];
...
...
@@ -309,11 +311,11 @@ static void check_mc(void)
src
[
i
]
=
val
;
src
[
i
*
SRC_BUF_STRIDE
]
=
val
;
}
call_ref
(
dst0
,
size
,
src
,
SRC_BUF_STRIDE
,
size
,
mx
,
my
);
call_new
(
dst1
,
size
,
src
,
SRC_BUF_STRIDE
,
size
,
mx
,
my
);
if
(
memcmp
(
dst0
,
dst1
,
size
*
size
))
call_ref
(
dst0
,
size
,
src
,
SRC_BUF_STRIDE
,
height
,
mx
,
my
);
call_new
(
dst1
,
size
,
src
,
SRC_BUF_STRIDE
,
height
,
mx
,
my
);
if
(
memcmp
(
dst0
,
dst1
,
size
*
height
))
fail
();
bench_new
(
dst1
,
size
,
src
,
SRC_BUF_STRIDE
,
size
,
mx
,
my
);
bench_new
(
dst1
,
size
,
src
,
SRC_BUF_STRIDE
,
height
,
mx
,
my
);
}
}
}
...
...
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