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
8e148b87
Commit
8e148b87
authored
Jan 24, 2013
by
Janne Grunau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
arm: h264qpel: use neon h264 qpel functions only if supported
parent
e9d81735
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
h264qpel_init_arm.c
libavcodec/arm/h264qpel_init_arm.c
+3
-3
No files found.
libavcodec/arm/h264qpel_init_arm.c
View file @
8e148b87
...
...
@@ -22,6 +22,7 @@
#include <stdint.h>
#include "config.h"
#include "libavutil/arm/cpu.h"
#include "libavcodec/h264qpel.h"
void
ff_put_h264_qpel16_mc00_neon
(
uint8_t
*
,
uint8_t
*
,
int
);
...
...
@@ -94,10 +95,10 @@ void ff_avg_h264_qpel8_mc33_neon(uint8_t *, uint8_t *, int);
void
ff_h264qpel_init_arm
(
H264QpelContext
*
c
,
int
bit_depth
)
{
#if HAVE_NEON
const
int
high_bit_depth
=
bit_depth
>
8
;
int
cpu_flags
=
av_get_cpu_flags
();
if
(
!
high_bit_depth
)
{
if
(
have_neon
(
cpu_flags
)
&&
!
high_bit_depth
)
{
c
->
put_h264_qpel_pixels_tab
[
0
][
0
]
=
ff_put_h264_qpel16_mc00_neon
;
c
->
put_h264_qpel_pixels_tab
[
0
][
1
]
=
ff_put_h264_qpel16_mc10_neon
;
c
->
put_h264_qpel_pixels_tab
[
0
][
2
]
=
ff_put_h264_qpel16_mc20_neon
;
...
...
@@ -166,5 +167,4 @@ void ff_h264qpel_init_arm(H264QpelContext *c, int bit_depth)
c
->
avg_h264_qpel_pixels_tab
[
1
][
14
]
=
ff_avg_h264_qpel8_mc23_neon
;
c
->
avg_h264_qpel_pixels_tab
[
1
][
15
]
=
ff_avg_h264_qpel8_mc33_neon
;
}
#endif
/* HAVE_NEON */
}
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