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
210f7284
Commit
210f7284
authored
Feb 15, 2012
by
Martin Storsjö
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ppc: Add ff_ prefix to nonstatic symbols
Signed-off-by:
Martin Storsjö
<
martin@martin.st
>
parent
f73673a7
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
28 additions
and
28 deletions
+28
-28
dsputil_altivec.c
libavcodec/ppc/dsputil_altivec.c
+5
-5
dsputil_altivec.h
libavcodec/ppc/dsputil_altivec.h
+9
-9
dsputil_ppc.c
libavcodec/ppc/dsputil_ppc.c
+6
-6
fdct_altivec.c
libavcodec/ppc/fdct_altivec.c
+1
-1
float_altivec.c
libavcodec/ppc/float_altivec.c
+1
-1
gmc_altivec.c
libavcodec/ppc/gmc_altivec.c
+1
-1
h264_altivec.c
libavcodec/ppc/h264_altivec.c
+1
-1
idct_altivec.c
libavcodec/ppc/idct_altivec.c
+2
-2
int_altivec.c
libavcodec/ppc/int_altivec.c
+1
-1
vp8dsp_altivec.c
libavcodec/ppc/vp8dsp_altivec.c
+1
-1
No files found.
libavcodec/ppc/dsputil_altivec.c
View file @
210f7284
...
...
@@ -609,7 +609,7 @@ static void add_bytes_altivec(uint8_t *dst, uint8_t *src, int w) {
}
/* next one assumes that ((line_size % 16) == 0) */
void
put_pixels16_altivec
(
uint8_t
*
block
,
const
uint8_t
*
pixels
,
int
line_size
,
int
h
)
void
ff_
put_pixels16_altivec
(
uint8_t
*
block
,
const
uint8_t
*
pixels
,
int
line_size
,
int
h
)
{
register
vector
unsigned
char
pixelsv1
,
pixelsv2
;
register
vector
unsigned
char
pixelsv1B
,
pixelsv2B
;
...
...
@@ -651,7 +651,7 @@ void put_pixels16_altivec(uint8_t *block, const uint8_t *pixels, int line_size,
/* next one assumes that ((line_size % 16) == 0) */
#define op_avg(a,b) a = ( ((a)|(b)) - ((((a)^(b))&0xFEFEFEFEUL)>>1) )
void
avg_pixels16_altivec
(
uint8_t
*
block
,
const
uint8_t
*
pixels
,
int
line_size
,
int
h
)
void
ff_
avg_pixels16_altivec
(
uint8_t
*
block
,
const
uint8_t
*
pixels
,
int
line_size
,
int
h
)
{
register
vector
unsigned
char
pixelsv1
,
pixelsv2
,
pixelsv
,
blockv
;
register
vector
unsigned
char
perm
=
vec_lvsl
(
0
,
pixels
);
...
...
@@ -1391,10 +1391,10 @@ void ff_dsputil_init_altivec(DSPContext* c, AVCodecContext *avctx)
if
(
!
high_bit_depth
)
{
c
->
get_pixels
=
get_pixels_altivec
;
c
->
clear_block
=
clear_block_altivec
;
c
->
put_pixels_tab
[
0
][
0
]
=
put_pixels16_altivec
;
c
->
put_pixels_tab
[
0
][
0
]
=
ff_
put_pixels16_altivec
;
/* the two functions do the same thing, so use the same code */
c
->
put_no_rnd_pixels_tab
[
0
][
0
]
=
put_pixels16_altivec
;
c
->
avg_pixels_tab
[
0
][
0
]
=
avg_pixels16_altivec
;
c
->
put_no_rnd_pixels_tab
[
0
][
0
]
=
ff_
put_pixels16_altivec
;
c
->
avg_pixels_tab
[
0
][
0
]
=
ff_
avg_pixels16_altivec
;
c
->
avg_pixels_tab
[
1
][
0
]
=
avg_pixels8_altivec
;
c
->
avg_pixels_tab
[
1
][
3
]
=
avg_pixels8_xy2_altivec
;
c
->
put_pixels_tab
[
1
][
3
]
=
put_pixels8_xy2_altivec
;
...
...
libavcodec/ppc/dsputil_altivec.h
View file @
210f7284
...
...
@@ -26,15 +26,15 @@
#include <stdint.h>
#include "libavcodec/dsputil.h"
void
put_pixels16_altivec
(
uint8_t
*
block
,
const
uint8_t
*
pixels
,
int
line_size
,
int
h
);
void
ff_
put_pixels16_altivec
(
uint8_t
*
block
,
const
uint8_t
*
pixels
,
int
line_size
,
int
h
);
void
avg_pixels16_altivec
(
uint8_t
*
block
,
const
uint8_t
*
pixels
,
int
line_size
,
int
h
);
void
ff_
avg_pixels16_altivec
(
uint8_t
*
block
,
const
uint8_t
*
pixels
,
int
line_size
,
int
h
);
void
fdct_altivec
(
int16_t
*
block
);
void
gmc1_altivec
(
uint8_t
*
dst
,
uint8_t
*
src
,
int
stride
,
int
h
,
int
x16
,
int
y16
,
int
rounder
);
void
idct_put_altivec
(
uint8_t
*
dest
,
int
line_size
,
int16_t
*
block
);
void
idct_add_altivec
(
uint8_t
*
dest
,
int
line_size
,
int16_t
*
block
);
void
f
f_f
dct_altivec
(
int16_t
*
block
);
void
ff_
gmc1_altivec
(
uint8_t
*
dst
,
uint8_t
*
src
,
int
stride
,
int
h
,
int
x16
,
int
y16
,
int
rounder
);
void
ff_
idct_put_altivec
(
uint8_t
*
dest
,
int
line_size
,
int16_t
*
block
);
void
ff_
idct_add_altivec
(
uint8_t
*
dest
,
int
line_size
,
int16_t
*
block
);
void
ff_vp3_idct_altivec
(
DCTELEM
*
block
);
void
ff_vp3_idct_put_altivec
(
uint8_t
*
dest
,
int
line_size
,
DCTELEM
*
block
);
...
...
@@ -43,7 +43,7 @@ void ff_vp3_idct_add_altivec(uint8_t *dest, int line_size, DCTELEM *block);
void
ff_dsputil_h264_init_ppc
(
DSPContext
*
c
,
AVCodecContext
*
avctx
);
void
ff_dsputil_init_altivec
(
DSPContext
*
c
,
AVCodecContext
*
avctx
);
void
float_init_altivec
(
DSPContext
*
c
,
AVCodecContext
*
avctx
);
void
int_init_altivec
(
DSPContext
*
c
,
AVCodecContext
*
avctx
);
void
f
f_f
loat_init_altivec
(
DSPContext
*
c
,
AVCodecContext
*
avctx
);
void
ff_
int_init_altivec
(
DSPContext
*
c
,
AVCodecContext
*
avctx
);
#endif
/* AVCODEC_PPC_DSPUTIL_ALTIVEC_H */
libavcodec/ppc/dsputil_ppc.c
View file @
210f7284
...
...
@@ -167,23 +167,23 @@ void ff_dsputil_init_ppc(DSPContext* c, AVCodecContext *avctx)
if
(
av_get_cpu_flags
()
&
AV_CPU_FLAG_ALTIVEC
)
{
ff_dsputil_init_altivec
(
c
,
avctx
);
float_init_altivec
(
c
,
avctx
);
int_init_altivec
(
c
,
avctx
);
c
->
gmc1
=
gmc1_altivec
;
f
f_f
loat_init_altivec
(
c
,
avctx
);
ff_
int_init_altivec
(
c
,
avctx
);
c
->
gmc1
=
ff_
gmc1_altivec
;
#if CONFIG_ENCODERS
if
(
avctx
->
bits_per_raw_sample
<=
8
&&
(
avctx
->
dct_algo
==
FF_DCT_AUTO
||
avctx
->
dct_algo
==
FF_DCT_ALTIVEC
))
{
c
->
fdct
=
fdct_altivec
;
c
->
fdct
=
f
f_f
dct_altivec
;
}
#endif //CONFIG_ENCODERS
if
(
avctx
->
lowres
==
0
&&
avctx
->
bits_per_raw_sample
<=
8
)
{
if
((
avctx
->
idct_algo
==
FF_IDCT_AUTO
)
||
(
avctx
->
idct_algo
==
FF_IDCT_ALTIVEC
))
{
c
->
idct_put
=
idct_put_altivec
;
c
->
idct_add
=
idct_add_altivec
;
c
->
idct_put
=
ff_
idct_put_altivec
;
c
->
idct_add
=
ff_
idct_add_altivec
;
c
->
idct_permutation_type
=
FF_TRANSPOSE_IDCT_PERM
;
}
else
if
((
CONFIG_VP3_DECODER
||
CONFIG_VP5_DECODER
||
CONFIG_VP6_DECODER
)
&&
avctx
->
idct_algo
==
FF_IDCT_VP3
){
...
...
libavcodec/ppc/fdct_altivec.c
View file @
210f7284
...
...
@@ -195,7 +195,7 @@ static vector float fdctconsts[3] = {
/* two dimensional discrete cosine transform */
void
fdct_altivec
(
int16_t
*
block
)
void
f
f_f
dct_altivec
(
int16_t
*
block
)
{
vector
signed
short
*
bp
;
vector
float
*
cp
;
...
...
libavcodec/ppc/float_altivec.c
View file @
210f7284
...
...
@@ -122,7 +122,7 @@ static void vector_fmul_window_altivec(float *dst, const float *src0, const floa
}
}
void
float_init_altivec
(
DSPContext
*
c
,
AVCodecContext
*
avctx
)
void
f
f_f
loat_init_altivec
(
DSPContext
*
c
,
AVCodecContext
*
avctx
)
{
c
->
vector_fmul
=
vector_fmul_altivec
;
c
->
vector_fmul_reverse
=
vector_fmul_reverse_altivec
;
...
...
libavcodec/ppc/gmc_altivec.c
View file @
210f7284
...
...
@@ -29,7 +29,7 @@
altivec-enhanced gmc1. ATM this code assume stride is a multiple of 8,
to preserve proper dst alignment.
*/
void
gmc1_altivec
(
uint8_t
*
dst
/* align 8 */
,
uint8_t
*
src
/* align1 */
,
int
stride
,
int
h
,
int
x16
,
int
y16
,
int
rounder
)
void
ff_
gmc1_altivec
(
uint8_t
*
dst
/* align 8 */
,
uint8_t
*
src
/* align1 */
,
int
stride
,
int
h
,
int
x16
,
int
y16
,
int
rounder
)
{
const
DECLARE_ALIGNED
(
16
,
unsigned
short
,
rounder_a
)
=
rounder
;
const
DECLARE_ALIGNED
(
16
,
unsigned
short
,
ABCD
)[
8
]
=
...
...
libavcodec/ppc/h264_altivec.c
View file @
210f7284
...
...
@@ -72,7 +72,7 @@
#define H264_MC(OPNAME, SIZE, CODETYPE) \
static void OPNAME ## h264_qpel ## SIZE ## _mc00_ ## CODETYPE (uint8_t *dst, uint8_t *src, int stride){\
OPNAME ## pixels ## SIZE ## _ ## CODETYPE(dst, src, stride, SIZE);\
ff_ ##
OPNAME ## pixels ## SIZE ## _ ## CODETYPE(dst, src, stride, SIZE);\
}\
\
static void OPNAME ## h264_qpel ## SIZE ## _mc10_ ## CODETYPE(uint8_t *dst, uint8_t *src, int stride){ \
...
...
libavcodec/ppc/idct_altivec.c
View file @
210f7284
...
...
@@ -158,7 +158,7 @@ static const vec_s16 constants[5] = {
{
19266
,
26722
,
25172
,
22654
,
19266
,
22654
,
25172
,
26722
}
};
void
idct_put_altivec
(
uint8_t
*
dest
,
int
stride
,
int16_t
*
blk
)
void
ff_
idct_put_altivec
(
uint8_t
*
dest
,
int
stride
,
int16_t
*
blk
)
{
vec_s16
*
block
=
(
vec_s16
*
)
blk
;
vec_u8
tmp
;
...
...
@@ -180,7 +180,7 @@ void idct_put_altivec(uint8_t* dest, int stride, int16_t *blk)
COPY
(
dest
,
vx7
)
}
void
idct_add_altivec
(
uint8_t
*
dest
,
int
stride
,
int16_t
*
blk
)
void
ff_
idct_add_altivec
(
uint8_t
*
dest
,
int
stride
,
int16_t
*
blk
)
{
vec_s16
*
block
=
(
vec_s16
*
)
blk
;
vec_u8
tmp
;
...
...
libavcodec/ppc/int_altivec.c
View file @
210f7284
...
...
@@ -144,7 +144,7 @@ static int32_t scalarproduct_and_madd_int16_altivec(int16_t *v1, const int16_t *
return
ires
;
}
void
int_init_altivec
(
DSPContext
*
c
,
AVCodecContext
*
avctx
)
void
ff_
int_init_altivec
(
DSPContext
*
c
,
AVCodecContext
*
avctx
)
{
c
->
ssd_int8_vs_int16
=
ssd_int8_vs_int16_altivec
;
c
->
scalarproduct_int16
=
scalarproduct_int16_altivec
;
...
...
libavcodec/ppc/vp8dsp_altivec.c
View file @
210f7284
...
...
@@ -268,7 +268,7 @@ EPEL_HV(4, 4,4)
static
void
put_vp8_pixels16_altivec
(
uint8_t
*
dst
,
int
stride
,
uint8_t
*
src
,
int
s
,
int
h
,
int
mx
,
int
my
)
{
put_pixels16_altivec
(
dst
,
src
,
stride
,
h
);
ff_
put_pixels16_altivec
(
dst
,
src
,
stride
,
h
);
}
av_cold
void
ff_vp8dsp_init_altivec
(
VP8DSPContext
*
c
)
...
...
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