2005-08-01 23:07:05 +03:00
|
|
|
#ifndef INTFLOAT_READWRITE_H
|
|
|
|
#define INTFLOAT_READWRITE_H
|
|
|
|
|
|
|
|
#include "common.h"
|
|
|
|
|
2006-02-02 17:21:19 +02:00
|
|
|
/* IEEE 80 bits extended float */
|
|
|
|
typedef struct AVExtFloat {
|
|
|
|
uint8_t exponent[2];
|
|
|
|
uint8_t mantissa[8];
|
|
|
|
} AVExtFloat;
|
|
|
|
|
2005-08-01 23:07:05 +03:00
|
|
|
double av_int2dbl(int64_t v);
|
|
|
|
float av_int2flt(int32_t v);
|
2006-02-02 17:21:19 +02:00
|
|
|
double av_ext2dbl(const AVExtFloat ext);
|
2005-08-01 23:07:05 +03:00
|
|
|
int64_t av_dbl2int(double d);
|
|
|
|
int32_t av_flt2int(float d);
|
2006-02-02 17:21:19 +02:00
|
|
|
AVExtFloat av_dbl2ext(double d);
|
2005-08-01 23:07:05 +03:00
|
|
|
|
|
|
|
#endif /* INTFLOAT_READWRITE_H */
|