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
04059821
Commit
04059821
authored
Apr 05, 2016
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sws/aarch64: restore ff_hscale_8_to_15_neon()
Fix final scaling and required filter alignment. Pass FATE.
parent
56a3a3f0
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
hscale.S
libswscale/aarch64/hscale.S
+1
-1
swscale.c
libswscale/aarch64/swscale.c
+1
-1
utils.c
libswscale/utils.c
+1
-1
No files found.
libswscale/aarch64/hscale.S
View file @
04059821
...
...
@@ -51,7 +51,7 @@ function ff_hscale_8_to_15_neon, export=1
add x10, x10, w6, UXTW #1 // filter2 += filterSize*2
addp v4.4S, v4.4S, v5.4S // horizontal pair adding of the 8x32-bit sums into 4x32-bit
addp v4.4S, v4.4S, v4.4S // horizontal pair adding of the 4x32-bit sums into 2x32-bit
sq
rshrun
v4.4H, v4.4S, #7 // shift and clip the 2x16-bit final values
sq
shrn
v4.4H, v4.4S, #7 // shift and clip the 2x16-bit final values
st1 {v4.S}[0], [x1], #4 // write to destination
subs w2, w2, #2 // dstW -= 2
b.gt 1b // loop until end of line
...
...
libswscale/aarch64/swscale.c
View file @
04059821
...
...
@@ -31,7 +31,7 @@ av_cold void ff_sws_init_swscale_aarch64(SwsContext *c)
if
(
have_neon
(
cpu_flags
))
{
if
(
c
->
srcBpc
==
8
&&
c
->
dstBpc
<=
14
)
{
//
c->hyScale = c->hcScale = ff_hscale_8_to_15_neon;
c
->
hyScale
=
c
->
hcScale
=
ff_hscale_8_to_15_neon
;
}
}
}
libswscale/utils.c
View file @
04059821
...
...
@@ -1629,7 +1629,7 @@ av_cold int sws_init_context(SwsContext *c, SwsFilter *srcFilter,
{
const
int
filterAlign
=
X86_MMX
(
cpu_flags
)
?
4
:
PPC_ALTIVEC
(
cpu_flags
)
?
8
:
have_neon
(
cpu_flags
)
?
4
:
1
;
have_neon
(
cpu_flags
)
?
8
:
1
;
if
((
ret
=
initFilter
(
&
c
->
hLumFilter
,
&
c
->
hLumFilterPos
,
&
c
->
hLumFilterSize
,
c
->
lumXInc
,
...
...
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