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
f07e8487
Commit
f07e8487
authored
Sep 15, 2006
by
Måns Rullgård
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clean up #ifdef HAVE_IPP
Originally committed as revision 6278 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
469b7bf8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
12 deletions
+11
-12
dsputil_arm.c
libavcodec/armv4l/dsputil_arm.c
+11
-12
No files found.
libavcodec/armv4l/dsputil_arm.c
View file @
f07e8487
...
...
@@ -164,45 +164,46 @@ static void simple_idct_ARM_add(uint8_t *dest, int line_size, DCTELEM *block)
simple_idct_ARM
(
block
);
ff_add_pixels_clamped
(
block
,
dest
,
line_size
);
}
#ifdef HAVE_IPP
static
void
simple_idct_ipp
(
DCTELEM
*
block
)
{
#ifdef HAVE_IPP
ippiDCT8x8Inv_Video_16s_C1I
(
block
);
#endif
}
static
void
simple_idct_ipp_put
(
uint8_t
*
dest
,
int
line_size
,
DCTELEM
*
block
)
{
#ifdef HAVE_IPP
ippiDCT8x8Inv_Video_16s8u_C1R
(
block
,
dest
,
line_size
);
#endif
}
void
add_pixels_clamped_iwmmxt
(
const
DCTELEM
*
block
,
uint8_t
*
pixels
,
int
line_size
);
static
void
simple_idct_ipp_add
(
uint8_t
*
dest
,
int
line_size
,
DCTELEM
*
block
)
{
#ifdef HAVE_IPP
ippiDCT8x8Inv_Video_16s_C1I
(
block
);
#ifdef HAVE_IWMMXT
add_pixels_clamped_iwmmxt
(
block
,
dest
,
line_size
);
#else
add_pixels_clamped_ARM
(
block
,
dest
,
line_size
);
#endif
#endif
}
#endif
void
dsputil_init_armv4l
(
DSPContext
*
c
,
AVCodecContext
*
avctx
)
{
const
int
idct_algo
=
avctx
->
idct_algo
;
int
idct_algo
=
avctx
->
idct_algo
;
ff_put_pixels_clamped
=
c
->
put_pixels_clamped
;
ff_add_pixels_clamped
=
c
->
add_pixels_clamped
;
if
(
idct_algo
==
FF_IDCT_AUTO
){
#ifdef HAVE_IPP
if
(
idct_algo
==
FF_IDCT_ARM
){
idct_algo
=
FF_IDCT_IPP
;
#else
if
(
idct_algo
==
FF_IDCT_AUTO
||
idct_algo
==
FF_IDCT_ARM
){
idct_algo
=
FF_IDCT_ARM
;
#endif
}
if
(
idct_algo
==
FF_IDCT_ARM
){
c
->
idct_put
=
j_rev_dct_ARM_put
;
c
->
idct_add
=
j_rev_dct_ARM_add
;
c
->
idct
=
j_rev_dct_ARM
;
...
...
@@ -213,14 +214,12 @@ void dsputil_init_armv4l(DSPContext* c, AVCodecContext *avctx)
c
->
idct
=
simple_idct_ARM
;
c
->
idct_permutation_type
=
FF_NO_IDCT_PERM
;
#ifdef HAVE_IPP
}
else
if
(
idct_algo
==
FF_IDCT_AUTO
||
idct_algo
==
FF_IDCT_IPP
){
#else
}
else
if
(
idct_algo
==
FF_IDCT_IPP
){
#endif
c
->
idct_put
=
simple_idct_ipp_put
;
c
->
idct_add
=
simple_idct_ipp_add
;
c
->
idct
=
simple_idct_ipp
;
c
->
idct_permutation_type
=
FF_NO_IDCT_PERM
;
#endif
}
/* c->put_pixels_tab[0][0] = put_pixels16_arm; */
// NG!
...
...
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