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
a64f6a04
Commit
a64f6a04
authored
Oct 12, 2012
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsputil: x86: Hide arch-specific initialization details
Also give consistent names to init functions.
parent
f61bece6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
9 deletions
+8
-9
dsputil.c
libavcodec/dsputil.c
+1
-1
dsputil.h
libavcodec/dsputil.h
+1
-1
Makefile
libavcodec/x86/Makefile
+5
-6
dsputil_init.c
libavcodec/x86/dsputil_init.c
+1
-1
No files found.
libavcodec/dsputil.c
View file @
a64f6a04
...
@@ -2745,7 +2745,7 @@ av_cold void ff_dsputil_init(DSPContext* c, AVCodecContext *avctx)
...
@@ -2745,7 +2745,7 @@ av_cold void ff_dsputil_init(DSPContext* c, AVCodecContext *avctx)
}
}
if
(
HAVE_MMX
)
ff_dsputil_init_mmx
(
c
,
avctx
);
if
(
ARCH_X86
)
ff_dsputil_init_x86
(
c
,
avctx
);
if
(
ARCH_ARM
)
ff_dsputil_init_arm
(
c
,
avctx
);
if
(
ARCH_ARM
)
ff_dsputil_init_arm
(
c
,
avctx
);
if
(
HAVE_VIS
)
ff_dsputil_init_vis
(
c
,
avctx
);
if
(
HAVE_VIS
)
ff_dsputil_init_vis
(
c
,
avctx
);
if
(
ARCH_ALPHA
)
ff_dsputil_init_alpha
(
c
,
avctx
);
if
(
ARCH_ALPHA
)
ff_dsputil_init_alpha
(
c
,
avctx
);
...
...
libavcodec/dsputil.h
View file @
a64f6a04
...
@@ -317,9 +317,9 @@ void ff_set_cmp(DSPContext* c, me_cmp_func *cmp, int type);
...
@@ -317,9 +317,9 @@ void ff_set_cmp(DSPContext* c, me_cmp_func *cmp, int type);
void
ff_dsputil_init_alpha
(
DSPContext
*
c
,
AVCodecContext
*
avctx
);
void
ff_dsputil_init_alpha
(
DSPContext
*
c
,
AVCodecContext
*
avctx
);
void
ff_dsputil_init_arm
(
DSPContext
*
c
,
AVCodecContext
*
avctx
);
void
ff_dsputil_init_arm
(
DSPContext
*
c
,
AVCodecContext
*
avctx
);
void
ff_dsputil_init_bfin
(
DSPContext
*
c
,
AVCodecContext
*
avctx
);
void
ff_dsputil_init_bfin
(
DSPContext
*
c
,
AVCodecContext
*
avctx
);
void
ff_dsputil_init_mmx
(
DSPContext
*
c
,
AVCodecContext
*
avctx
);
void
ff_dsputil_init_ppc
(
DSPContext
*
c
,
AVCodecContext
*
avctx
);
void
ff_dsputil_init_ppc
(
DSPContext
*
c
,
AVCodecContext
*
avctx
);
void
ff_dsputil_init_sh4
(
DSPContext
*
c
,
AVCodecContext
*
avctx
);
void
ff_dsputil_init_sh4
(
DSPContext
*
c
,
AVCodecContext
*
avctx
);
void
ff_dsputil_init_vis
(
DSPContext
*
c
,
AVCodecContext
*
avctx
);
void
ff_dsputil_init_vis
(
DSPContext
*
c
,
AVCodecContext
*
avctx
);
void
ff_dsputil_init_x86
(
DSPContext
*
c
,
AVCodecContext
*
avctx
);
#endif
/* AVCODEC_DSPUTIL_H */
#endif
/* AVCODEC_DSPUTIL_H */
libavcodec/x86/Makefile
View file @
a64f6a04
...
@@ -6,6 +6,9 @@ OBJS-$(CONFIG_AC3DSP) += x86/ac3dsp_init.o
...
@@ -6,6 +6,9 @@ OBJS-$(CONFIG_AC3DSP) += x86/ac3dsp_init.o
OBJS-$(CONFIG_CAVS_DECODER)
+=
x86/cavsdsp.o
OBJS-$(CONFIG_CAVS_DECODER)
+=
x86/cavsdsp.o
OBJS-$(CONFIG_DCT)
+=
x86/dct_init.o
OBJS-$(CONFIG_DCT)
+=
x86/dct_init.o
OBJS-$(CONFIG_DNXHD_ENCODER)
+=
x86/dnxhdenc.o
OBJS-$(CONFIG_DNXHD_ENCODER)
+=
x86/dnxhdenc.o
OBJS-$(CONFIG_DSPUTIL)
+=
x86/dsputil_init.o
OBJS-$(CONFIG_ENCODERS)
+=
x86/dsputilenc_mmx.o
\
x86/motion_est.o
OBJS-$(CONFIG_FFT)
+=
x86/fft_init.o
OBJS-$(CONFIG_FFT)
+=
x86/fft_init.o
OBJS-$(CONFIG_H264CHROMA)
+=
x86/h264chroma_init.o
OBJS-$(CONFIG_H264CHROMA)
+=
x86/h264chroma_init.o
OBJS-$(CONFIG_H264DSP)
+=
x86/h264dsp_init.o
OBJS-$(CONFIG_H264DSP)
+=
x86/h264dsp_init.o
...
@@ -31,17 +34,13 @@ OBJS-$(CONFIG_VP6_DECODER) += x86/vp6dsp_init.o
...
@@ -31,17 +34,13 @@ OBJS-$(CONFIG_VP6_DECODER) += x86/vp6dsp_init.o
OBJS-$(CONFIG_VP8_DECODER)
+=
x86/vp8dsp_init.o
OBJS-$(CONFIG_VP8_DECODER)
+=
x86/vp8dsp_init.o
OBJS-$(CONFIG_XMM_CLOBBER_TEST)
+=
x86/w64xmmtest.o
OBJS-$(CONFIG_XMM_CLOBBER_TEST)
+=
x86/w64xmmtest.o
MMX-OBJS-$(CONFIG_DSPUTIL)
+=
x86/dsputil_init.o
\
MMX-OBJS-$(CONFIG_DSPUTIL)
+=
x86/dsputil_mmx.o
\
x86/dsputil_mmx.o
\
x86/fdct.o
\
x86/fdct.o
\
x86/fpel_mmx.o
\
x86/fpel_mmx.o
\
x86/idct_mmx_xvid.o
\
x86/idct_mmx_xvid.o
\
x86/idct_sse2_xvid.o
\
x86/idct_sse2_xvid.o
\
x86/rnd_mmx.o
\
x86/rnd_mmx.o
\
x86/simple_idct.o
\
x86/simple_idct.o
MMX-OBJS-$(CONFIG_ENCODERS)
+=
x86/dsputilenc_mmx.o
\
x86/motion_est.o
MMX-OBJS-$(CONFIG_HPELDSP)
+=
x86/fpel_mmx.o
\
MMX-OBJS-$(CONFIG_HPELDSP)
+=
x86/fpel_mmx.o
\
x86/hpeldsp_mmx.o
\
x86/hpeldsp_mmx.o
\
x86/rnd_mmx.o
x86/rnd_mmx.o
...
...
libavcodec/x86/dsputil_init.c
View file @
a64f6a04
...
@@ -686,7 +686,7 @@ static av_cold void dsputil_init_sse4(DSPContext *c, AVCodecContext *avctx,
...
@@ -686,7 +686,7 @@ static av_cold void dsputil_init_sse4(DSPContext *c, AVCodecContext *avctx,
#endif
/* HAVE_SSE4_EXTERNAL */
#endif
/* HAVE_SSE4_EXTERNAL */
}
}
av_cold
void
ff_dsputil_init_
mmx
(
DSPContext
*
c
,
AVCodecContext
*
avctx
)
av_cold
void
ff_dsputil_init_
x86
(
DSPContext
*
c
,
AVCodecContext
*
avctx
)
{
{
int
cpu_flags
=
av_get_cpu_flags
();
int
cpu_flags
=
av_get_cpu_flags
();
...
...
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