History

Merge commit '70a7b24d56a823894440a372c46e89e212b89c35'

* commit '70a7b24d56a823894440a372c46e89e212b89c35': avutil: Add deprecation ifdefs around obsolete intfloat code

Michael Niedermayer committed 12 years ago

Commit acda7c82 parents 2cfccd8 70a7b243 files · +10 −0Browse files

Unified · Split

3 files
  1. libavutil/intfloat_readwrite.c +3 −0
  2. libavutil/intfloat_readwrite.h +4 −0
  3. libavutil/version.h +3 −0
libavutil/intfloat_readwrite.c+3−0
@@ -29,7 +29,9 @@ · 28 unmodified lines
2929 #include "common.h"
3030 #include "mathematics.h"
3131 #include "intfloat_readwrite.h"
32+#include "version.h"
3233
34+#if FF_API_INTFLOAT
3335 double av_int2dbl(int64_t v){
3436 if((uint64_t)v+v > 0xFFEULL<<52)
3537 return NAN;
@@ -96,3 +98,4 @@ AVExtFloat av_dbl2ext(double d){ · 60 unmodified lines
9698 ext.exponent[0] |= 0x80;
9799 return ext;
98100 }
101+#endif /* FF_API_INTFLOAT */
libavutil/intfloat_readwrite.h+4−0
@@ -22,8 +22,11 @@ · 21 unmodified lines
2222 #define AVUTIL_INTFLOAT_READWRITE_H
2323
2424 #include <stdint.h>
25+
2526 #include "attributes.h"
27+#include "version.h"
2628
29+#if FF_API_INTFLOAT
2730 /* IEEE 80 bits extended float */
2831 typedef struct AVExtFloat {
2932 uint8_t exponent[2];
@@ -36,5 +39,6 @@ attribute_deprecated double av_ext2dbl(const AVExtFloat ext) av_const; · 6 unmodified lines
3639 attribute_deprecated int64_t av_dbl2int(double d) av_const;
3740 attribute_deprecated int32_t av_flt2int(float d) av_const;
3841 attribute_deprecated AVExtFloat av_dbl2ext(double d) av_const;
42+#endif /* FF_API_INTFLOAT */
3943
4044 #endif /* AVUTIL_INTFLOAT_READWRITE_H */
libavutil/version.h+3−0
@@ -150,6 +150,9 @@ · 149 unmodified lines
150150 #ifndef FF_API_XVMC
151151 #define FF_API_XVMC (LIBAVUTIL_VERSION_MAJOR < 53)
152152 #endif
153+#ifndef FF_API_INTFLOAT
154+#define FF_API_INTFLOAT (LIBAVUTIL_VERSION_MAJOR < 53)
155+#endif
153156
154157 /**
155158 * @}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t