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
65083b49
Commit
65083b49
authored
Jul 17, 2011
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsputil: remove disabled code
parent
c99c0e26
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
71 deletions
+0
-71
dsputil.c
libavcodec/dsputil.c
+0
-32
dsputil_mmx.c
libavcodec/x86/dsputil_mmx.c
+0
-39
No files found.
libavcodec/dsputil.c
View file @
65083b49
...
@@ -175,16 +175,6 @@ static int pix_norm1_c(uint8_t * pix, int line_size)
...
@@ -175,16 +175,6 @@ static int pix_norm1_c(uint8_t * pix, int line_size)
s
=
0
;
s
=
0
;
for
(
i
=
0
;
i
<
16
;
i
++
)
{
for
(
i
=
0
;
i
<
16
;
i
++
)
{
for
(
j
=
0
;
j
<
16
;
j
+=
8
)
{
for
(
j
=
0
;
j
<
16
;
j
+=
8
)
{
#if 0
s += sq[pix[0]];
s += sq[pix[1]];
s += sq[pix[2]];
s += sq[pix[3]];
s += sq[pix[4]];
s += sq[pix[5]];
s += sq[pix[6]];
s += sq[pix[7]];
#else
#if LONG_MAX > 2147483647
#if LONG_MAX > 2147483647
register
uint64_t
x
=*
(
uint64_t
*
)
pix
;
register
uint64_t
x
=*
(
uint64_t
*
)
pix
;
s
+=
sq
[
x
&
0xff
];
s
+=
sq
[
x
&
0xff
];
...
@@ -206,7 +196,6 @@ static int pix_norm1_c(uint8_t * pix, int line_size)
...
@@ -206,7 +196,6 @@ static int pix_norm1_c(uint8_t * pix, int line_size)
s
+=
sq
[(
x
>>
8
)
&
0xff
];
s
+=
sq
[(
x
>>
8
)
&
0xff
];
s
+=
sq
[(
x
>>
16
)
&
0xff
];
s
+=
sq
[(
x
>>
16
)
&
0xff
];
s
+=
sq
[(
x
>>
24
)
&
0xff
];
s
+=
sq
[(
x
>>
24
)
&
0xff
];
#endif
#endif
#endif
pix
+=
8
;
pix
+=
8
;
}
}
...
@@ -819,27 +808,6 @@ static inline void avg_tpel_pixels_mc22_c(uint8_t *dst, const uint8_t *src, int
...
@@ -819,27 +808,6 @@ static inline void avg_tpel_pixels_mc22_c(uint8_t *dst, const uint8_t *src, int
dst
+=
stride
;
dst
+=
stride
;
}
}
}
}
#if 0
#define TPEL_WIDTH(width)\
static void put_tpel_pixels ## width ## _mc00_c(uint8_t *dst, const uint8_t *src, int stride, int height){\
void put_tpel_pixels_mc00_c(dst, src, stride, width, height);}\
static void put_tpel_pixels ## width ## _mc10_c(uint8_t *dst, const uint8_t *src, int stride, int height){\
void put_tpel_pixels_mc10_c(dst, src, stride, width, height);}\
static void put_tpel_pixels ## width ## _mc20_c(uint8_t *dst, const uint8_t *src, int stride, int height){\
void put_tpel_pixels_mc20_c(dst, src, stride, width, height);}\
static void put_tpel_pixels ## width ## _mc01_c(uint8_t *dst, const uint8_t *src, int stride, int height){\
void put_tpel_pixels_mc01_c(dst, src, stride, width, height);}\
static void put_tpel_pixels ## width ## _mc11_c(uint8_t *dst, const uint8_t *src, int stride, int height){\
void put_tpel_pixels_mc11_c(dst, src, stride, width, height);}\
static void put_tpel_pixels ## width ## _mc21_c(uint8_t *dst, const uint8_t *src, int stride, int height){\
void put_tpel_pixels_mc21_c(dst, src, stride, width, height);}\
static void put_tpel_pixels ## width ## _mc02_c(uint8_t *dst, const uint8_t *src, int stride, int height){\
void put_tpel_pixels_mc02_c(dst, src, stride, width, height);}\
static void put_tpel_pixels ## width ## _mc12_c(uint8_t *dst, const uint8_t *src, int stride, int height){\
void put_tpel_pixels_mc12_c(dst, src, stride, width, height);}\
static void put_tpel_pixels ## width ## _mc22_c(uint8_t *dst, const uint8_t *src, int stride, int height){\
void put_tpel_pixels_mc22_c(dst, src, stride, width, height);}
#endif
#define QPEL_MC(r, OPNAME, RND, OP) \
#define QPEL_MC(r, OPNAME, RND, OP) \
static void OPNAME ## mpeg4_qpel8_h_lowpass(uint8_t *dst, uint8_t *src, int dstStride, int srcStride, int h){\
static void OPNAME ## mpeg4_qpel8_h_lowpass(uint8_t *dst, uint8_t *src, int dstStride, int srcStride, int h){\
...
...
libavcodec/x86/dsputil_mmx.c
View file @
65083b49
...
@@ -1665,10 +1665,6 @@ QPEL_2TAP(put_, 8, 3dnow)
...
@@ -1665,10 +1665,6 @@ QPEL_2TAP(put_, 8, 3dnow)
QPEL_2TAP
(
avg_
,
8
,
3
dnow
)
QPEL_2TAP
(
avg_
,
8
,
3
dnow
)
#if 0
static void just_return(void) { return; }
#endif
#if HAVE_YASM
#if HAVE_YASM
typedef
void
emu_edge_core_func
(
uint8_t
*
buf
,
const
uint8_t
*
src
,
typedef
void
emu_edge_core_func
(
uint8_t
*
buf
,
const
uint8_t
*
src
,
x86_reg
linesize
,
x86_reg
start_y
,
x86_reg
linesize
,
x86_reg
start_y
,
...
@@ -2953,39 +2949,4 @@ void dsputil_init_mmx(DSPContext* c, AVCodecContext *avctx)
...
@@ -2953,39 +2949,4 @@ void dsputil_init_mmx(DSPContext* c, AVCodecContext *avctx)
if
(
CONFIG_ENCODERS
)
if
(
CONFIG_ENCODERS
)
dsputilenc_init_mmx
(
c
,
avctx
);
dsputilenc_init_mmx
(
c
,
avctx
);
#if 0
// for speed testing
get_pixels = just_return;
put_pixels_clamped = just_return;
add_pixels_clamped = just_return;
pix_abs16x16 = just_return;
pix_abs16x16_x2 = just_return;
pix_abs16x16_y2 = just_return;
pix_abs16x16_xy2 = just_return;
put_pixels_tab[0] = just_return;
put_pixels_tab[1] = just_return;
put_pixels_tab[2] = just_return;
put_pixels_tab[3] = just_return;
put_no_rnd_pixels_tab[0] = just_return;
put_no_rnd_pixels_tab[1] = just_return;
put_no_rnd_pixels_tab[2] = just_return;
put_no_rnd_pixels_tab[3] = just_return;
avg_pixels_tab[0] = just_return;
avg_pixels_tab[1] = just_return;
avg_pixels_tab[2] = just_return;
avg_pixels_tab[3] = just_return;
avg_no_rnd_pixels_tab[0] = just_return;
avg_no_rnd_pixels_tab[1] = just_return;
avg_no_rnd_pixels_tab[2] = just_return;
avg_no_rnd_pixels_tab[3] = just_return;
//av_fdct = just_return;
//ff_idct = just_return;
#endif
}
}
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