intfloat_readwrite.h 435 Bytes
Newer Older
1 2 3 4 5
#ifndef INTFLOAT_READWRITE_H
#define INTFLOAT_READWRITE_H

#include "common.h"

6 7 8 9 10 11
/* IEEE 80 bits extended float */
typedef struct AVExtFloat  {
    uint8_t exponent[2];
    uint8_t mantissa[8];
} AVExtFloat;

12 13
double av_int2dbl(int64_t v);
float av_int2flt(int32_t v);
14
double av_ext2dbl(const AVExtFloat ext);
15 16
int64_t av_dbl2int(double d);
int32_t av_flt2int(float d);
17
AVExtFloat av_dbl2ext(double d);
18 19

#endif /* INTFLOAT_READWRITE_H */