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
a886b279
Commit
a886b279
authored
Aug 29, 2012
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x86: cosmetics: Comment some #endifs for better readability
parent
04fc5c6b
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
17 additions
and
18 deletions
+17
-18
dsputil_mmx.c
libavcodec/x86/dsputil_mmx.c
+5
-5
fmtconvert_init.c
libavcodec/x86/fmtconvert_init.c
+2
-2
rv34dsp_init.c
libavcodec/x86/rv34dsp_init.c
+1
-1
rv40dsp_init.c
libavcodec/x86/rv40dsp_init.c
+1
-1
vc1dsp_mmx.c
libavcodec/x86/vc1dsp_mmx.c
+2
-3
vp8dsp_init.c
libavcodec/x86/vp8dsp_init.c
+2
-2
audio_mix_init.c
libavresample/x86/audio_mix_init.c
+1
-1
cpu.c
libavutil/x86/cpu.c
+2
-2
swscale.c
libswscale/x86/swscale.c
+1
-1
No files found.
libavcodec/x86/dsputil_mmx.c
View file @
a886b279
...
...
@@ -2692,7 +2692,7 @@ static void dsputil_init_mmx2(DSPContext *c, AVCodecContext *avctx,
#endif
SET_QPEL_FUNCS
(
put_h264_qpel
,
2
,
4
,
10
_mmxext
,
ff_
);
SET_QPEL_FUNCS
(
avg_h264_qpel
,
2
,
4
,
10
_mmxext
,
ff_
);
#endif
#endif
/* HAVE_YASM */
}
#if HAVE_INLINE_ASM
...
...
@@ -2727,7 +2727,7 @@ static void dsputil_init_mmx2(DSPContext *c, AVCodecContext *avctx,
}
else
{
c
->
apply_window_int16
=
ff_apply_window_int16_mmxext
;
}
#endif
#endif
/* HAVE_YASM */
}
static
void
dsputil_init_3dnow
(
DSPContext
*
c
,
AVCodecContext
*
avctx
,
...
...
@@ -2806,7 +2806,7 @@ static void dsputil_init_3dnow(DSPContext *c, AVCodecContext *avctx,
c
->
avg_h264_chroma_pixels_tab
[
0
]
=
ff_avg_h264_chroma_mc8_3dnow_rnd
;
c
->
avg_h264_chroma_pixels_tab
[
1
]
=
ff_avg_h264_chroma_mc4_3dnow
;
}
#endif
#endif
/* HAVE_YASM */
}
static
void
dsputil_init_3dnowext
(
DSPContext
*
c
,
AVCodecContext
*
avctx
,
...
...
@@ -2852,7 +2852,7 @@ static void dsputil_init_sse(DSPContext *c, AVCodecContext *avctx, int mm_flags)
#if HAVE_INLINE_ASM
c
->
gmc
=
gmc_sse
;
#endif
#endif
#endif
/* HAVE_YASM */
}
static
void
dsputil_init_sse2
(
DSPContext
*
c
,
AVCodecContext
*
avctx
,
...
...
@@ -2920,7 +2920,7 @@ static void dsputil_init_sse2(DSPContext *c, AVCodecContext *avctx,
c
->
apply_window_int16
=
ff_apply_window_int16_sse2
;
}
c
->
bswap_buf
=
ff_bswap32_buf_sse2
;
#endif
#endif
/* HAVE_YASM */
}
static
void
dsputil_init_ssse3
(
DSPContext
*
c
,
AVCodecContext
*
avctx
,
...
...
libavcodec/x86/fmtconvert_init.c
View file @
a886b279
...
...
@@ -110,7 +110,7 @@ static void float_interleave_sse(float *dst, const float **src,
else
ff_float_interleave_c
(
dst
,
src
,
len
,
channels
);
}
#endif
#endif
/* HAVE_YASM */
void
ff_fmt_convert_init_x86
(
FmtConvertContext
*
c
,
AVCodecContext
*
avctx
)
{
...
...
@@ -143,5 +143,5 @@ void ff_fmt_convert_init_x86(FmtConvertContext *c, AVCodecContext *avctx)
c
->
float_to_int16_interleave
=
float_to_int16_interleave_sse2
;
}
}
#endif
#endif
/* HAVE_YASM */
}
libavcodec/x86/rv34dsp_init.c
View file @
a886b279
...
...
@@ -43,5 +43,5 @@ av_cold void ff_rv34dsp_init_x86(RV34DSPContext* c, DSPContext *dsp)
}
if
(
mm_flags
&
AV_CPU_FLAG_SSE4
)
c
->
rv34_idct_dc_add
=
ff_rv34_idct_dc_add_sse4
;
#endif
#endif
/* HAVE_YASM */
}
libavcodec/x86/rv40dsp_init.c
View file @
a886b279
...
...
@@ -234,5 +234,5 @@ void ff_rv40dsp_init_x86(RV34DSPContext *c, DSPContext *dsp)
QPEL_MC_SET
(
put_
,
_ssse3
)
QPEL_MC_SET
(
avg_
,
_ssse3
)
}
#endif
#endif
/* HAVE_YASM */
}
libavcodec/x86/vc1dsp_mmx.c
View file @
a886b279
...
...
@@ -718,8 +718,7 @@ static void vc1_h_loop_filter16_sse4(uint8_t *src, int stride, int pq)
ff_vc1_h_loop_filter8_sse4
(
src
,
stride
,
pq
);
ff_vc1_h_loop_filter8_sse4
(
src
+
8
*
stride
,
stride
,
pq
);
}
#endif
#endif
/* HAVE_YASM */
void
ff_put_vc1_chroma_mc8_mmx_nornd
(
uint8_t
*
dst
,
uint8_t
*
src
,
int
stride
,
int
h
,
int
x
,
int
y
);
...
...
@@ -822,5 +821,5 @@ void ff_vc1dsp_init_mmx(VC1DSPContext *dsp)
dsp
->
vc1_h_loop_filter8
=
ff_vc1_h_loop_filter8_sse4
;
dsp
->
vc1_h_loop_filter16
=
vc1_h_loop_filter16_sse4
;
}
#endif
#endif
/* HAVE_YASM */
}
libavcodec/x86/vp8dsp_init.c
View file @
a886b279
...
...
@@ -289,7 +289,7 @@ DECLARE_LOOP_FILTER(sse2)
DECLARE_LOOP_FILTER
(
ssse3
)
DECLARE_LOOP_FILTER
(
sse4
)
#endif
#endif
/* HAVE_YASM */
#define VP8_LUMA_MC_FUNC(IDX, SIZE, OPT) \
c->put_vp8_epel_pixels_tab[IDX][0][2] = ff_put_vp8_epel ## SIZE ## _h6_ ## OPT; \
...
...
@@ -446,5 +446,5 @@ av_cold void ff_vp8dsp_init_x86(VP8DSPContext* c)
c
->
vp8_h_loop_filter8uv
=
ff_vp8_h_loop_filter8uv_mbedge_sse4
;
#endif
}
#endif
#endif
/* HAVE_YASM */
}
libavresample/x86/audio_mix_init.c
View file @
a886b279
...
...
@@ -210,5 +210,5 @@ av_cold void ff_audio_mix_init_x86(AudioMix *am)
SET_MIX_3_8_TO_1_2
(
6
)
SET_MIX_3_8_TO_1_2
(
7
)
SET_MIX_3_8_TO_1_2
(
8
)
#endif
#endif
/* HAVE_YASM */
}
libavutil/x86/cpu.c
View file @
a886b279
...
...
@@ -144,8 +144,8 @@ int ff_get_cpu_flags_x86(void)
if
((
eax
&
0x6
)
==
0x6
)
rval
|=
AV_CPU_FLAG_AVX
;
}
#endif
#endif
#endif
/* HAVE_AVX */
#endif
/* HAVE_SSE */
}
cpuid
(
0x80000000
,
max_ext_level
,
ebx
,
ecx
,
edx
);
...
...
libswscale/x86/swscale.c
View file @
a886b279
...
...
@@ -395,7 +395,7 @@ switch(c->dstBpc){ \
if
(
cpu_flags
&
AV_CPU_FLAG_MMXEXT
)
{
ASSIGN_VSCALEX_FUNC
(
c
->
yuv2planeX
,
mmx2
,
,
1
);
}
#endif
#endif
/* ARCH_X86_32 */
#define ASSIGN_SSE_SCALE_FUNC(hscalefn, filtersize, opt1, opt2) \
switch (filtersize) { \
case 4: ASSIGN_SCALE_FUNC2(hscalefn, 4, opt1, opt2); break; \
...
...
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