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
29#include "common.h"29#include "common.h"
30#include "mathematics.h"30#include "mathematics.h"
31#include "intfloat_readwrite.h"31#include "intfloat_readwrite.h"
32#include "version.h"
32 33
34#if FF_API_INTFLOAT
33double av_int2dbl(int64_t v){35double av_int2dbl(int64_t v){
34 if((uint64_t)v+v > 0xFFEULL<<52)36 if((uint64_t)v+v > 0xFFEULL<<52)
35 return NAN;37 return NAN;
@@ -96,3 +98,4 @@ AVExtFloat av_dbl2ext(double d){ · 60 unmodified lines
96 ext.exponent[0] |= 0x80;98 ext.exponent[0] |= 0x80;
97 return ext;99 return ext;
98}100}
101#endif /* FF_API_INTFLOAT */
libavutil/intfloat_readwrite.h+4−0
@@ -22,8 +22,11 @@ · 21 unmodified lines
22#define AVUTIL_INTFLOAT_READWRITE_H22#define AVUTIL_INTFLOAT_READWRITE_H
23 23
24#include <stdint.h>24#include <stdint.h>
25
25#include "attributes.h"26#include "attributes.h"
27#include "version.h"
26 28
29#if FF_API_INTFLOAT
27/* IEEE 80 bits extended float */30/* IEEE 80 bits extended float */
28typedef struct AVExtFloat {31typedef struct AVExtFloat {
29 uint8_t exponent[2];32 uint8_t exponent[2];
@@ -36,5 +39,6 @@ attribute_deprecated double av_ext2dbl(const AVExtFloat ext) av_const; · 6 unmodified lines
36attribute_deprecated int64_t av_dbl2int(double d) av_const;39attribute_deprecated int64_t av_dbl2int(double d) av_const;
37attribute_deprecated int32_t av_flt2int(float d) av_const;40attribute_deprecated int32_t av_flt2int(float d) av_const;
38attribute_deprecated AVExtFloat av_dbl2ext(double d) av_const;41attribute_deprecated AVExtFloat av_dbl2ext(double d) av_const;
42#endif /* FF_API_INTFLOAT */
39 43
40#endif /* AVUTIL_INTFLOAT_READWRITE_H */44#endif /* AVUTIL_INTFLOAT_READWRITE_H */
libavutil/version.h+3−0
@@ -150,6 +150,9 @@ · 149 unmodified lines
150#ifndef FF_API_XVMC150#ifndef FF_API_XVMC
151#define FF_API_XVMC (LIBAVUTIL_VERSION_MAJOR < 53)151#define FF_API_XVMC (LIBAVUTIL_VERSION_MAJOR < 53)
152#endif152#endif
153#ifndef FF_API_INTFLOAT
154#define FF_API_INTFLOAT (LIBAVUTIL_VERSION_MAJOR < 53)
155#endif
153 156
154/**157/**
155 * @}158 * @}

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