Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
ffmpeg
Commits
4c8e528d
Commit
4c8e528d
authored
Jan 27, 2017
by
Matthieu Bouron
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc/aarch64: add ff_simple_idct{,_add,_put}_neon functions
parent
911417f0
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
437 additions
and
0 deletions
+437
-0
Makefile
libavcodec/aarch64/Makefile
+2
-0
idct.h
libavcodec/aarch64/idct.h
+28
-0
idctdsp_init_aarch64.c
libavcodec/aarch64/idctdsp_init_aarch64.c
+41
-0
simple_idct_neon.S
libavcodec/aarch64/simple_idct_neon.S
+362
-0
idctdsp.c
libavcodec/idctdsp.c
+2
-0
idctdsp.h
libavcodec/idctdsp.h
+2
-0
No files found.
libavcodec/aarch64/Makefile
View file @
4c8e528d
...
@@ -36,6 +36,8 @@ NEON-OBJS-$(CONFIG_H264PRED) += aarch64/h264pred_neon.o
...
@@ -36,6 +36,8 @@ NEON-OBJS-$(CONFIG_H264PRED) += aarch64/h264pred_neon.o
NEON-OBJS-$(CONFIG_H264QPEL)
+=
aarch64/h264qpel_neon.o
\
NEON-OBJS-$(CONFIG_H264QPEL)
+=
aarch64/h264qpel_neon.o
\
aarch64/hpeldsp_neon.o
aarch64/hpeldsp_neon.o
NEON-OBJS-$(CONFIG_HPELDSP)
+=
aarch64/hpeldsp_neon.o
NEON-OBJS-$(CONFIG_HPELDSP)
+=
aarch64/hpeldsp_neon.o
NEON-OBJS-$(CONFIG_IDCTDSP)
+=
aarch64/idctdsp_init_aarch64.o
\
aarch64/simple_idct_neon.o
NEON-OBJS-$(CONFIG_MDCT)
+=
aarch64/mdct_neon.o
NEON-OBJS-$(CONFIG_MDCT)
+=
aarch64/mdct_neon.o
NEON-OBJS-$(CONFIG_MPEGAUDIODSP)
+=
aarch64/mpegaudiodsp_neon.o
NEON-OBJS-$(CONFIG_MPEGAUDIODSP)
+=
aarch64/mpegaudiodsp_neon.o
...
...
libavcodec/aarch64/idct.h
0 → 100644
View file @
4c8e528d
/*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* FFmpeg is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with FFmpeg; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef AVCODEC_AARCH64_IDCT_H
#define AVCODEC_AARCH64_IDCT_H
#include <stdint.h>
void
ff_simple_idct_neon
(
int16_t
*
data
);
void
ff_simple_idct_put_neon
(
uint8_t
*
dest
,
int
line_size
,
int16_t
*
data
);
void
ff_simple_idct_add_neon
(
uint8_t
*
dest
,
int
line_size
,
int16_t
*
data
);
#endif
/* AVCODEC_AARCH64_IDCT_H */
libavcodec/aarch64/idctdsp_init_aarch64.c
0 → 100644
View file @
4c8e528d
/*
* ARM-NEON-optimized IDCT functions
* Copyright (c) 2008 Mans Rullgard <mans@mansr.com>
* Copyright (c) 2017 Matthieu Bouron <matthieu.bouron@gmail.com>
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* FFmpeg is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with FFmpeg; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "libavutil/attributes.h"
#include "libavcodec/avcodec.h"
#include "libavcodec/idctdsp.h"
#include "idct.h"
av_cold
void
ff_idctdsp_init_aarch64
(
IDCTDSPContext
*
c
,
AVCodecContext
*
avctx
,
unsigned
high_bit_depth
)
{
if
(
!
avctx
->
lowres
&&
!
high_bit_depth
)
{
if
(
avctx
->
idct_algo
==
FF_IDCT_AUTO
||
avctx
->
idct_algo
==
FF_IDCT_SIMPLEAUTO
||
avctx
->
idct_algo
==
FF_IDCT_SIMPLENEON
)
{
c
->
idct_put
=
ff_simple_idct_put_neon
;
c
->
idct_add
=
ff_simple_idct_add_neon
;
c
->
idct
=
ff_simple_idct_neon
;
c
->
perm_type
=
FF_IDCT_PERM_PARTTRANS
;
}
}
}
libavcodec/aarch64/simple_idct_neon.S
0 → 100644
View file @
4c8e528d
This diff is collapsed.
Click to expand it.
libavcodec/idctdsp.c
View file @
4c8e528d
...
@@ -297,6 +297,8 @@ av_cold void ff_idctdsp_init(IDCTDSPContext *c, AVCodecContext *avctx)
...
@@ -297,6 +297,8 @@ av_cold void ff_idctdsp_init(IDCTDSPContext *c, AVCodecContext *avctx)
if
(
CONFIG_MPEG4_DECODER
&&
avctx
->
idct_algo
==
FF_IDCT_XVID
)
if
(
CONFIG_MPEG4_DECODER
&&
avctx
->
idct_algo
==
FF_IDCT_XVID
)
ff_xvid_idct_init
(
c
,
avctx
);
ff_xvid_idct_init
(
c
,
avctx
);
if
(
ARCH_AARCH64
)
ff_idctdsp_init_aarch64
(
c
,
avctx
,
high_bit_depth
);
if
(
ARCH_ALPHA
)
if
(
ARCH_ALPHA
)
ff_idctdsp_init_alpha
(
c
,
avctx
,
high_bit_depth
);
ff_idctdsp_init_alpha
(
c
,
avctx
,
high_bit_depth
);
if
(
ARCH_ARM
)
if
(
ARCH_ARM
)
...
...
libavcodec/idctdsp.h
View file @
4c8e528d
...
@@ -100,6 +100,8 @@ extern void (*ff_add_pixels_clamped)(const int16_t *block, uint8_t *pixels, ptrd
...
@@ -100,6 +100,8 @@ extern void (*ff_add_pixels_clamped)(const int16_t *block, uint8_t *pixels, ptrd
void
ff_idctdsp_init
(
IDCTDSPContext
*
c
,
AVCodecContext
*
avctx
);
void
ff_idctdsp_init
(
IDCTDSPContext
*
c
,
AVCodecContext
*
avctx
);
void
ff_idctdsp_init_aarch64
(
IDCTDSPContext
*
c
,
AVCodecContext
*
avctx
,
unsigned
high_bit_depth
);
void
ff_idctdsp_init_alpha
(
IDCTDSPContext
*
c
,
AVCodecContext
*
avctx
,
void
ff_idctdsp_init_alpha
(
IDCTDSPContext
*
c
,
AVCodecContext
*
avctx
,
unsigned
high_bit_depth
);
unsigned
high_bit_depth
);
void
ff_idctdsp_init_arm
(
IDCTDSPContext
*
c
,
AVCodecContext
*
avctx
,
void
ff_idctdsp_init_arm
(
IDCTDSPContext
*
c
,
AVCodecContext
*
avctx
,
...
...
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