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
3d03c0a2
Commit
3d03c0a2
authored
Aug 13, 2001
by
Fabrice Bellard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
arm optimizations
Originally committed as revision 82 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
bdc4796f
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
2 deletions
+24
-2
Makefile
libavcodec/Makefile
+10
-0
dsputil.c
libavcodec/dsputil.c
+3
-0
dsputil.h
libavcodec/dsputil.h
+11
-2
No files found.
libavcodec/Makefile
View file @
3d03c0a2
...
...
@@ -31,6 +31,12 @@ OBJS += i386/fdctdata.o i386/cputest.o \
i386/idct_mmx.o
endif
# armv4l specific stuff
ifeq
($(TARGET_ARCH_ARMV4L),yes)
ASM_OBJS
+=
armv4l/jrevdct_arm.o
OBJS
+=
armv4l/dsputil_arm.o
endif
SRCS
=
$
(
OBJS:.o
=
.c
)
$
(
ASM_OBJS:.o
=
.s
)
LIB
=
libavcodec.a
...
...
@@ -48,6 +54,9 @@ dsputil.o: dsputil.c dsputil.h
%.o
:
%.c
$(CC)
$(CFLAGS)
-c
-o
$@
$<
%.o
:
%.S
$(CC)
$(CFLAGS)
-c
-o
$@
$<
%.o
:
%.s
nasm
-f
elf
-o
$@
$<
...
...
@@ -59,6 +68,7 @@ depend:
clean
:
rm
-f
*
.o
*
~
*
.a i386/
*
.o i386/
*
~
\
armv4l/
*
.o armv4l/
*
~
\
libac3/
*
.o libac3/
*
~
\
mpglib/
*
.o mpglib/
*
~
\
apiexample
$(TESTS)
...
...
libavcodec/dsputil.c
View file @
3d03c0a2
...
...
@@ -450,4 +450,7 @@ void dsputil_init(void)
#ifdef HAVE_MMX
dsputil_init_mmx
();
#endif
#ifdef ARCH_ARMV4L
dsputil_init_armv4l
();
#endif
}
libavcodec/dsputil.h
View file @
3d03c0a2
...
...
@@ -2,7 +2,6 @@
#define DSPUTIL_H
#include "common.h"
#include <inttypes.h>
/* dct code */
typedef
short
DCTELEM
;
...
...
@@ -75,7 +74,7 @@ static inline int block_permute_op(int j)
void
block_permute
(
INT16
*
block
);
#if
def HAVE_MMX
#if
defined(HAVE_MMX)
#define MM_MMX 0x0001
/* standard MMX */
#define MM_3DNOW 0x0004
/* AMD 3DNOW */
...
...
@@ -102,6 +101,16 @@ static inline void emms(void)
void
dsputil_init_mmx
(
void
);
#elif defined(ARCH_ARMV4L)
#define emms_c()
/* This is to use 4 bytes read to the IDCT pointers for some 'zero'
line ptimizations */
#define __align8 __attribute__ ((aligned (4)))
void
dsputil_init_armv4l
(
void
);
#else
#define emms_c()
...
...
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