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
70a7b24d
Commit
70a7b24d
authored
11 years ago
by
Diego Biurrun
Browse files
Options
Downloads
Patches
Plain Diff
avutil: Add deprecation ifdefs around obsolete intfloat code
This long-deprecated code should disappear at the next version bump.
parent
79d9884e
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
libavutil/intfloat_readwrite.c
+3
-0
3 additions, 0 deletions
libavutil/intfloat_readwrite.c
libavutil/intfloat_readwrite.h
+4
-0
4 additions, 0 deletions
libavutil/intfloat_readwrite.h
libavutil/version.h
+3
-0
3 additions, 0 deletions
libavutil/version.h
with
10 additions
and
0 deletions
libavutil/intfloat_readwrite.c
+
3
−
0
View file @
70a7b24d
...
...
@@ -28,7 +28,9 @@
#include
<stdint.h>
#include
"mathematics.h"
#include
"intfloat_readwrite.h"
#include
"version.h"
#if FF_API_INTFLOAT
double
av_int2dbl
(
int64_t
v
){
if
((
uint64_t
)
v
+
v
>
0xFFEULL
<<
52
)
return
NAN
;
...
...
@@ -95,3 +97,4 @@ AVExtFloat av_dbl2ext(double d){
ext
.
exponent
[
0
]
|=
0x80
;
return
ext
;
}
#endif
/* FF_API_INTFLOAT */
This diff is collapsed.
Click to expand it.
libavutil/intfloat_readwrite.h
+
4
−
0
View file @
70a7b24d
...
...
@@ -22,8 +22,11 @@
#define AVUTIL_INTFLOAT_READWRITE_H
#include
<stdint.h>
#include
"attributes.h"
#include
"version.h"
#if FF_API_INTFLOAT
/* IEEE 80 bits extended float */
typedef
struct
AVExtFloat
{
uint8_t
exponent
[
2
];
...
...
@@ -36,5 +39,6 @@ attribute_deprecated double av_ext2dbl(const AVExtFloat ext) av_const;
attribute_deprecated
int64_t
av_dbl2int
(
double
d
)
av_const
;
attribute_deprecated
int32_t
av_flt2int
(
float
d
)
av_const
;
attribute_deprecated
AVExtFloat
av_dbl2ext
(
double
d
)
av_const
;
#endif
/* FF_API_INTFLOAT */
#endif
/* AVUTIL_INTFLOAT_READWRITE_H */
This diff is collapsed.
Click to expand it.
libavutil/version.h
+
3
−
0
View file @
70a7b24d
...
...
@@ -91,6 +91,9 @@
#ifndef FF_API_XVMC
#define FF_API_XVMC (LIBAVUTIL_VERSION_MAJOR < 53)
#endif
#ifndef FF_API_INTFLOAT
#define FF_API_INTFLOAT (LIBAVUTIL_VERSION_MAJOR < 53)
#endif
/**
* @}
...
...
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