Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
e9735572
Commit
e9735572
authored
May 24, 2011
by
Ronald S. Bultje
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move emms_c() from libavcodec to libavutil.
parent
7ca5338b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
19 deletions
+15
-19
dsputil.h
libavcodec/dsputil.h
+1
-19
internal.h
libavutil/internal.h
+14
-0
No files found.
libavcodec/dsputil.h
View file @
e9735572
...
...
@@ -630,13 +630,6 @@ static inline int get_penalty_factor(int lambda, int lambda2, int type){
}
}
/**
* Empty mmx state.
* this must be called between any dsp function and float/double code.
* for example sin(); dsp->idct_put(); emms_c(); cos()
*/
#define emms_c()
void
dsputil_init_alpha
(
DSPContext
*
c
,
AVCodecContext
*
avctx
);
void
dsputil_init_arm
(
DSPContext
*
c
,
AVCodecContext
*
avctx
);
void
dsputil_init_bfin
(
DSPContext
*
c
,
AVCodecContext
*
avctx
);
...
...
@@ -654,18 +647,7 @@ void ff_intrax8dsp_init(DSPContext* c, AVCodecContext *avctx);
void
ff_mlp_init
(
DSPContext
*
c
,
AVCodecContext
*
avctx
);
void
ff_mlp_init_x86
(
DSPContext
*
c
,
AVCodecContext
*
avctx
);
#if HAVE_MMX
#undef emms_c
static
inline
void
emms
(
void
)
{
__asm__
volatile
(
"emms;"
:::
"memory"
);
}
#define emms_c() emms()
#elif ARCH_ARM
#if ARCH_ARM
#if HAVE_NEON
# define STRIDE_ALIGN 16
...
...
libavutil/internal.h
View file @
e9735572
...
...
@@ -223,4 +223,18 @@
# define ONLY_IF_THREADS_ENABLED(x) NULL
#endif
#if HAVE_MMX
/**
* Empty mmx state.
* this must be called between any dsp function and float/double code.
* for example sin(); dsp->idct_put(); emms_c(); cos()
*/
static
av_always_inline
void
emms_c
(
void
)
{
__asm__
volatile
(
"emms"
:::
"memory"
);
}
#else
/* HAVE_MMX */
#define emms_c()
#endif
/* HAVE_MMX */
#endif
/* AVUTIL_INTERNAL_H */
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