Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
a54a51cc
Commit
a54a51cc
authored
10 years ago
by
Michael Niedermayer
Browse files
Options
Downloads
Patches
Plain Diff
avutil/float_dsp: add avpriv_float_dsp_alloc()
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
bb5e1482
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
doc/APIchanges
+3
-0
3 additions, 0 deletions
doc/APIchanges
libavutil/float_dsp.c
+10
-1
10 additions, 1 deletion
libavutil/float_dsp.c
libavutil/float_dsp.h
+7
-0
7 additions, 0 deletions
libavutil/float_dsp.h
libavutil/version.h
+1
-1
1 addition, 1 deletion
libavutil/version.h
with
21 additions
and
2 deletions
doc/APIchanges
+
3
−
0
View file @
a54a51cc
...
...
@@ -15,6 +15,9 @@ libavutil: 2014-08-09
API changes, most recent first:
2014-11-18 - xxxxxxx - lavu 54.14.100 - float_dsp.h
Add avpriv_float_dsp_alloc().
2014-11-16 - xxxxxxx - lavf 56.13.0 - avformat.h
Add AVStream.recommended_encoder_configuration with accessors.
...
...
This diff is collapsed.
Click to expand it.
libavutil/float_dsp.c
+
10
−
1
View file @
a54a51cc
...
...
@@ -22,6 +22,7 @@
#include
"config.h"
#include
"attributes.h"
#include
"float_dsp.h"
#include
"mem.h"
static
void
vector_fmul_c
(
float
*
dst
,
const
float
*
src0
,
const
float
*
src1
,
int
len
)
...
...
@@ -139,6 +140,15 @@ av_cold void avpriv_float_dsp_init(AVFloatDSPContext *fdsp, int bit_exact)
ff_float_dsp_init_mips
(
fdsp
);
}
av_cold
AVFloatDSPContext
*
avpriv_float_dsp_alloc
(
int
bit_exact
)
{
AVFloatDSPContext
*
ret
=
av_mallocz
(
sizeof
(
AVFloatDSPContext
));
if
(
ret
)
avpriv_float_dsp_init
(
ret
,
bit_exact
);
return
ret
;
}
#ifdef TEST
#include
<float.h>
...
...
@@ -158,7 +168,6 @@ av_cold void avpriv_float_dsp_init(AVFloatDSPContext *fdsp, int bit_exact)
#include
"internal.h"
#include
"lfg.h"
#include
"log.h"
#include
"mem.h"
#include
"random_seed.h"
#define LEN 240
...
...
This diff is collapsed.
Click to expand it.
libavutil/float_dsp.h
+
7
−
0
View file @
a54a51cc
...
...
@@ -185,4 +185,11 @@ void ff_float_dsp_init_ppc(AVFloatDSPContext *fdsp, int strict);
void
ff_float_dsp_init_x86
(
AVFloatDSPContext
*
fdsp
);
void
ff_float_dsp_init_mips
(
AVFloatDSPContext
*
fdsp
);
/**
* Allocate a float DSP context.
*
* @param strict setting to non-zero avoids using functions which may not be IEEE-754 compliant
*/
AVFloatDSPContext
*
avpriv_float_dsp_alloc
(
int
strict
);
#endif
/* AVUTIL_FLOAT_DSP_H */
This diff is collapsed.
Click to expand it.
libavutil/version.h
+
1
−
1
View file @
a54a51cc
...
...
@@ -56,7 +56,7 @@
*/
#define LIBAVUTIL_VERSION_MAJOR 54
#define LIBAVUTIL_VERSION_MINOR 1
3
#define LIBAVUTIL_VERSION_MINOR 1
4
#define LIBAVUTIL_VERSION_MICRO 100
#define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment