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
19a4e103
Commit
19a4e103
authored
Oct 06, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gmc_mmx: enable also for large pictures when emu edge isnt needed.
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
e063ffbf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
dsputil_mmx.c
libavcodec/x86/dsputil_mmx.c
+5
-3
No files found.
libavcodec/x86/dsputil_mmx.c
View file @
19a4e103
...
...
@@ -1961,12 +1961,15 @@ static av_always_inline void gmc(uint8_t *dst, uint8_t *src,
const
int
dyh
=
(
dyy
-
(
1
<<
(
16
+
shift
)))
*
(
h
-
1
);
const
int
dxh
=
dxy
*
(
h
-
1
);
const
int
dyw
=
dyx
*
(
w
-
1
);
int
need_emu
=
(
unsigned
)
ix
>=
width
-
w
||
(
unsigned
)
iy
>=
height
-
h
;
if
(
// non-constant fullpel offset (3% of blocks)
((
ox
^
(
ox
+
dxw
))
|
(
ox
^
(
ox
+
dxh
))
|
(
ox
^
(
ox
+
dxw
+
dxh
))
|
(
oy
^
(
oy
+
dyw
))
|
(
oy
^
(
oy
+
dyh
))
|
(
oy
^
(
oy
+
dyw
+
dyh
)))
>>
(
16
+
shift
)
// uses more than 16 bits of subpel mv (only at huge resolution)
||
(
dxx
|
dxy
|
dyx
|
dyy
)
&
15
||
h
>
MAX_H
||
stride
>
MAX_STRIDE
)
{
||
(
need_emu
&&
(
h
>
MAX_H
||
stride
>
MAX_STRIDE
))
)
{
// FIXME could still use mmx for some of the rows
ff_gmc_c
(
dst
,
src
,
stride
,
h
,
ox
,
oy
,
dxx
,
dxy
,
dyx
,
dyy
,
shift
,
r
,
width
,
height
);
...
...
@@ -1974,8 +1977,7 @@ static av_always_inline void gmc(uint8_t *dst, uint8_t *src,
}
src
+=
ix
+
iy
*
stride
;
if
((
unsigned
)
ix
>=
width
-
w
||
(
unsigned
)
iy
>=
height
-
h
)
{
if
(
need_emu
)
{
emu_edge_fn
(
edge_buf
,
src
,
stride
,
w
+
1
,
h
+
1
,
ix
,
iy
,
width
,
height
);
src
=
edge_buf
;
}
...
...
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