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
32ff6432
Commit
32ff6432
authored
Jan 22, 2013
by
Ronald S. Bultje
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsputil: remove avg_no_rnd_pixels8.
This is never used.
parent
88bd7fdc
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
13 additions
and
491 deletions
+13
-491
dsputil_alpha.c
libavcodec/alpha/dsputil_alpha.c
+0
-5
dsputil_init_neon.c
libavcodec/arm/dsputil_init_neon.c
+0
-7
dsputil_neon.S
libavcodec/arm/dsputil_neon.S
+3
-3
dsputil.c
libavcodec/dsputil.c
+0
-1
dsputil.h
libavcodec/dsputil.h
+4
-4
dsputil_align.c
libavcodec/sh4/dsputil_align.c
+0
-9
dsputil_vis.c
libavcodec/sparc/dsputil_vis.c
+0
-461
dsputil_mmx.c
libavcodec/x86/dsputil_mmx.c
+2
-1
dsputil_rnd_template.c
libavcodec/x86/dsputil_rnd_template.c
+4
-0
No files found.
libavcodec/alpha/dsputil_alpha.c
View file @
32ff6432
...
...
@@ -308,11 +308,6 @@ void ff_dsputil_init_alpha(DSPContext* c, AVCodecContext *avctx)
c
->
avg_pixels_tab
[
1
][
2
]
=
avg_pixels_y2_axp
;
c
->
avg_pixels_tab
[
1
][
3
]
=
avg_pixels_xy2_axp
;
c
->
avg_no_rnd_pixels_tab
[
1
][
0
]
=
avg_no_rnd_pixels_axp
;
c
->
avg_no_rnd_pixels_tab
[
1
][
1
]
=
avg_no_rnd_pixels_x2_axp
;
c
->
avg_no_rnd_pixels_tab
[
1
][
2
]
=
avg_no_rnd_pixels_y2_axp
;
c
->
avg_no_rnd_pixels_tab
[
1
][
3
]
=
avg_no_rnd_pixels_xy2_axp
;
c
->
clear_blocks
=
clear_blocks_axp
;
}
...
...
libavcodec/arm/dsputil_init_neon.c
View file @
32ff6432
...
...
@@ -58,9 +58,6 @@ void ff_avg_pixels8_xy2_neon(uint8_t *, const uint8_t *, int, int);
void
ff_avg_pixels16_x2_no_rnd_neon
(
uint8_t
*
,
const
uint8_t
*
,
int
,
int
);
void
ff_avg_pixels16_y2_no_rnd_neon
(
uint8_t
*
,
const
uint8_t
*
,
int
,
int
);
void
ff_avg_pixels16_xy2_no_rnd_neon
(
uint8_t
*
,
const
uint8_t
*
,
int
,
int
);
void
ff_avg_pixels8_x2_no_rnd_neon
(
uint8_t
*
,
const
uint8_t
*
,
int
,
int
);
void
ff_avg_pixels8_y2_no_rnd_neon
(
uint8_t
*
,
const
uint8_t
*
,
int
,
int
);
void
ff_avg_pixels8_xy2_no_rnd_neon
(
uint8_t
*
,
const
uint8_t
*
,
int
,
int
);
void
ff_add_pixels_clamped_neon
(
const
int16_t
*
,
uint8_t
*
,
int
);
void
ff_put_pixels_clamped_neon
(
const
int16_t
*
,
uint8_t
*
,
int
);
...
...
@@ -203,10 +200,6 @@ void ff_dsputil_init_neon(DSPContext *c, AVCodecContext *avctx)
c
->
avg_no_rnd_pixels_tab
[
0
][
1
]
=
ff_avg_pixels16_x2_no_rnd_neon
;
c
->
avg_no_rnd_pixels_tab
[
0
][
2
]
=
ff_avg_pixels16_y2_no_rnd_neon
;
c
->
avg_no_rnd_pixels_tab
[
0
][
3
]
=
ff_avg_pixels16_xy2_no_rnd_neon
;
c
->
avg_no_rnd_pixels_tab
[
1
][
0
]
=
ff_avg_pixels8_neon
;
c
->
avg_no_rnd_pixels_tab
[
1
][
1
]
=
ff_avg_pixels8_x2_no_rnd_neon
;
c
->
avg_no_rnd_pixels_tab
[
1
][
2
]
=
ff_avg_pixels8_y2_no_rnd_neon
;
c
->
avg_no_rnd_pixels_tab
[
1
][
3
]
=
ff_avg_pixels8_xy2_no_rnd_neon
;
}
c
->
add_pixels_clamped
=
ff_add_pixels_clamped_neon
;
...
...
libavcodec/arm/dsputil_neon.S
View file @
32ff6432
...
...
@@ -421,9 +421,9 @@ function ff_avg_h264_qpel8_mc00_neon, export=1
endfunc
pixfunc avg_, pixels8, avg=1
pixfunc
2
avg_, pixels8_x2, avg=1
pixfunc
2
avg_, pixels8_y2, avg=1
pixfunc
2
avg_, pixels8_xy2, avg=1
pixfunc
avg_, pixels8_x2, avg=1
pixfunc
avg_, pixels8_y2, avg=1
pixfunc
avg_, pixels8_xy2, avg=1
function ff_put_pixels_clamped_neon, export=1
vld1.16 {d16-d19}, [r0,:128]!
...
...
libavcodec/dsputil.c
View file @
32ff6432
...
...
@@ -2745,7 +2745,6 @@ av_cold void ff_dsputil_init(DSPContext* c, AVCodecContext *avctx)
dspfunc1(avg , 2, 4, depth);\
dspfunc1(avg , 3, 2, depth);\
dspfunc1(avg_no_rnd, 0, 16, depth);\
dspfunc1(avg_no_rnd, 1, 8, depth);\
\
dspfunc2(put_h264_qpel, 0, 16, depth);\
dspfunc2(put_h264_qpel, 1, 8, depth);\
...
...
libavcodec/dsputil.h
View file @
32ff6432
...
...
@@ -280,15 +280,15 @@ typedef struct DSPContext {
/**
* Halfpel motion compensation with no rounding (a+b)>>1.
* this is an array[
2][4] of motion compensation functions for 2
* horizontal blocksize
s (8,
16) and the 4 halfpel positions<br>
* *pixels_tab[
0->16xH 1->8xH
][ xhalfpel + 2*yhalfpel ]
* this is an array[
4] of motion compensation functions for 1
* horizontal blocksize
(
16) and the 4 halfpel positions<br>
* *pixels_tab[
0
][ xhalfpel + 2*yhalfpel ]
* @param block destination into which the result is averaged (a+b)>>1
* @param pixels source
* @param line_size number of bytes in a horizontal line of block
* @param h height
*/
op_pixels_func
avg_no_rnd_pixels_tab
[
4
][
4
];
op_pixels_func
avg_no_rnd_pixels_tab
[
1
][
4
];
/**
* Thirdpel motion compensation with rounding (a+b+1)>>1.
...
...
libavcodec/sh4/dsputil_align.c
View file @
32ff6432
...
...
@@ -294,11 +294,8 @@ DEFFUNC(put,no_rnd,xy,16,OP_XY,PACK)
DEFFUNC
(
avg
,
rnd
,
o
,
8
,
OP_C
,
avg32
)
DEFFUNC
(
avg
,
rnd
,
x
,
8
,
OP_X
,
avg32
)
DEFFUNC
(
avg
,
no_rnd
,
x
,
8
,
OP_X
,
avg32
)
DEFFUNC
(
avg
,
rnd
,
y
,
8
,
OP_Y
,
avg32
)
DEFFUNC
(
avg
,
no_rnd
,
y
,
8
,
OP_Y
,
avg32
)
DEFFUNC
(
avg
,
rnd
,
xy
,
8
,
OP_XY
,
PACK
)
DEFFUNC
(
avg
,
no_rnd
,
xy
,
8
,
OP_XY
,
PACK
)
DEFFUNC
(
avg
,
rnd
,
o
,
16
,
OP_C
,
avg32
)
DEFFUNC
(
avg
,
rnd
,
x
,
16
,
OP_X
,
avg32
)
DEFFUNC
(
avg
,
no_rnd
,
x
,
16
,
OP_X
,
avg32
)
...
...
@@ -311,7 +308,6 @@ DEFFUNC(avg,no_rnd,xy,16,OP_XY,PACK)
#define put_no_rnd_pixels8_o put_rnd_pixels8_o
#define put_no_rnd_pixels16_o put_rnd_pixels16_o
#define avg_no_rnd_pixels8_o avg_rnd_pixels8_o
#define avg_no_rnd_pixels16_o avg_rnd_pixels16_o
#define put_pixels8_c put_rnd_pixels8_o
...
...
@@ -320,7 +316,6 @@ DEFFUNC(avg,no_rnd,xy,16,OP_XY,PACK)
#define avg_pixels16_c avg_rnd_pixels16_o
#define put_no_rnd_pixels8_c put_rnd_pixels8_o
#define put_no_rnd_pixels16_c put_rnd_pixels16_o
#define avg_no_rnd_pixels8_c avg_rnd_pixels8_o
#define avg_no_rnd_pixels16_c avg_rnd_pixels16_o
#define QPEL
...
...
@@ -367,10 +362,6 @@ void ff_dsputil_init_align(DSPContext* c, AVCodecContext *avctx)
c
->
avg_no_rnd_pixels_tab
[
0
][
1
]
=
avg_no_rnd_pixels16_x
;
c
->
avg_no_rnd_pixels_tab
[
0
][
2
]
=
avg_no_rnd_pixels16_y
;
c
->
avg_no_rnd_pixels_tab
[
0
][
3
]
=
avg_no_rnd_pixels16_xy
;
c
->
avg_no_rnd_pixels_tab
[
1
][
0
]
=
avg_no_rnd_pixels8_o
;
c
->
avg_no_rnd_pixels_tab
[
1
][
1
]
=
avg_no_rnd_pixels8_x
;
c
->
avg_no_rnd_pixels_tab
[
1
][
2
]
=
avg_no_rnd_pixels8_y
;
c
->
avg_no_rnd_pixels_tab
[
1
][
3
]
=
avg_no_rnd_pixels8_xy
;
}
#ifdef QPEL
...
...
libavcodec/sparc/dsputil_vis.c
View file @
32ff6432
This diff is collapsed.
Click to expand it.
libavcodec/x86/dsputil_mmx.c
View file @
32ff6432
...
...
@@ -160,6 +160,7 @@ DECLARE_ALIGNED(16, const double, ff_pd_2)[2] = { 2.0, 2.0 };
/***********************************/
/* MMX no rounding */
#define NO_RND 1
#define DEF(x, y) x ## _no_rnd_ ## y ## _mmx
#define SET_RND MOVQ_WONE
#define PAVGBP(a, b, c, d, e, f) PAVGBP_MMX_NO_RND(a, b, c, d, e, f)
...
...
@@ -172,6 +173,7 @@ DECLARE_ALIGNED(16, const double, ff_pd_2)[2] = { 2.0, 2.0 };
#undef SET_RND
#undef PAVGBP
#undef PAVGB
#undef NO_RND
/***********************************/
/* MMX rounding */
...
...
@@ -1917,7 +1919,6 @@ static void dsputil_init_mmx(DSPContext *c, AVCodecContext *avctx, int mm_flags)
SET_HPEL_FUNCS
(
put
,
1
,
8
,
mmx
);
SET_HPEL_FUNCS
(
put_no_rnd
,
1
,
8
,
mmx
);
SET_HPEL_FUNCS
(
avg
,
1
,
8
,
mmx
);
SET_HPEL_FUNCS
(
avg_no_rnd
,
1
,
8
,
mmx
);
switch
(
avctx
->
idct_algo
)
{
case
FF_IDCT_AUTO
:
...
...
libavcodec/x86/dsputil_rnd_template.c
View file @
32ff6432
...
...
@@ -317,6 +317,7 @@ static void av_unused DEF(avg, pixels4)(uint8_t *block, const uint8_t *pixels, i
while
(
--
h
);
}
#ifndef NO_RND
// in case more speed is needed - unroling would certainly help
static
void
DEF
(
avg
,
pixels8
)(
uint8_t
*
block
,
const
uint8_t
*
pixels
,
int
line_size
,
int
h
)
{
...
...
@@ -336,6 +337,7 @@ static void DEF(avg, pixels8)(uint8_t *block, const uint8_t *pixels, int line_si
}
while
(
--
h
);
}
#endif // NO_RND
static
void
DEF
(
avg
,
pixels16
)(
uint8_t
*
block
,
const
uint8_t
*
pixels
,
int
line_size
,
int
h
)
{
...
...
@@ -360,6 +362,7 @@ static void DEF(avg, pixels16)(uint8_t *block, const uint8_t *pixels, int line_s
while
(
--
h
);
}
#ifndef NO_RND
static
void
DEF
(
avg
,
pixels8_x2
)(
uint8_t
*
block
,
const
uint8_t
*
pixels
,
int
line_size
,
int
h
)
{
MOVQ_BFE
(
mm6
);
...
...
@@ -379,6 +382,7 @@ static void DEF(avg, pixels8_x2)(uint8_t *block, const uint8_t *pixels, int line
block
+=
line_size
;
}
while
(
--
h
);
}
#endif // NO_RND
static
av_unused
void
DEF
(
avg
,
pixels8_l2
)(
uint8_t
*
dst
,
uint8_t
*
src1
,
uint8_t
*
src2
,
int
dstStride
,
int
src1Stride
,
int
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