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
0fe67fa7
Commit
0fe67fa7
authored
Jan 07, 2003
by
Fabrice Bellard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
suppressed pix_norm_altivec
Originally committed as revision 1420 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
f08ce7fe
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
44 deletions
+0
-44
dsputil_altivec.c
libavcodec/ppc/dsputil_altivec.c
+0
-42
dsputil_altivec.h
libavcodec/ppc/dsputil_altivec.h
+0
-1
dsputil_ppc.c
libavcodec/ppc/dsputil_ppc.c
+0
-1
No files found.
libavcodec/ppc/dsputil_altivec.c
View file @
0fe67fa7
...
...
@@ -343,48 +343,6 @@ int pix_norm1_altivec(uint8_t *pix, int line_size)
return
s
;
}
int
pix_norm_altivec
(
uint8_t
*
pix1
,
uint8_t
*
pix2
,
int
line_size
)
{
int
s
,
i
;
vector
unsigned
char
*
tv
,
zero
;
vector
unsigned
char
pix1v
,
pix2v
,
t5
;
vector
unsigned
int
sv
;
vector
signed
int
sum
;
zero
=
vec_splat_u8
(
0
);
sv
=
vec_splat_u32
(
0
);
s
=
0
;
for
(
i
=
0
;
i
<
16
;
i
++
)
{
/* Read in the potentially unaligned pixels */
tv
=
(
vector
unsigned
char
*
)
pix1
;
pix1v
=
vec_perm
(
tv
[
0
],
tv
[
1
],
vec_lvsl
(
0
,
pix1
));
tv
=
(
vector
unsigned
char
*
)
pix2
;
pix2v
=
vec_perm
(
tv
[
0
],
tv
[
1
],
vec_lvsl
(
0
,
pix2
));
/*
Since we want to use unsigned chars, we can take advantage
of the fact that abs(a-b)^2 = (a-b)^2.
*/
/* Calculate a sum of abs differences vector */
t5
=
vec_sub
(
vec_max
(
pix1v
,
pix2v
),
vec_min
(
pix1v
,
pix2v
));
/* Square the values and add them to our sum */
sv
=
vec_msum
(
t5
,
t5
,
sv
);
pix1
+=
line_size
;
pix2
+=
line_size
;
}
/* Sum up the four partial sums, and put the result into s */
sum
=
vec_sums
((
vector
signed
int
)
sv
,
(
vector
signed
int
)
zero
);
sum
=
vec_splat
(
sum
,
3
);
vec_ste
(
sum
,
0
,
&
s
);
return
s
;
}
int
pix_sum_altivec
(
UINT8
*
pix
,
int
line_size
)
{
...
...
libavcodec/ppc/dsputil_altivec.h
View file @
0fe67fa7
...
...
@@ -23,7 +23,6 @@ extern int pix_abs16x16_xy2_altivec(uint8_t *pix1, uint8_t *pix2, int line_size)
extern
int
pix_abs16x16_altivec
(
uint8_t
*
pix1
,
uint8_t
*
pix2
,
int
line_size
);
extern
int
pix_abs8x8_altivec
(
uint8_t
*
pix1
,
uint8_t
*
pix2
,
int
line_size
);
extern
int
pix_norm1_altivec
(
uint8_t
*
pix
,
int
line_size
);
extern
int
pix_norm_altivec
(
uint8_t
*
pix1
,
uint8_t
*
pix2
,
int
line_size
);
extern
int
pix_sum_altivec
(
UINT8
*
pix
,
int
line_size
);
extern
void
diff_pixels_altivec
(
DCTELEM
*
block
,
const
UINT8
*
s1
,
const
UINT8
*
s2
,
int
stride
);
extern
void
get_pixels_altivec
(
DCTELEM
*
block
,
const
UINT8
*
pixels
,
int
line_size
);
...
...
libavcodec/ppc/dsputil_ppc.c
View file @
0fe67fa7
...
...
@@ -42,7 +42,6 @@ void dsputil_init_ppc(DSPContext* c, unsigned mask)
c
->
pix_abs16x16
=
pix_abs16x16_altivec
;
c
->
pix_abs8x8
=
pix_abs8x8_altivec
;
c
->
pix_norm1
=
pix_norm1_altivec
;
c
->
pix_norm
=
pix_norm_altivec
;
c
->
pix_sum
=
pix_sum_altivec
;
c
->
diff_pixels
=
diff_pixels_altivec
;
c
->
get_pixels
=
get_pixels_altivec
;
...
...
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