You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
435B

  1. #ifndef INTFLOAT_READWRITE_H
  2. #define INTFLOAT_READWRITE_H
  3. #include "common.h"
  4. /* IEEE 80 bits extended float */
  5. typedef struct AVExtFloat {
  6. uint8_t exponent[2];
  7. uint8_t mantissa[8];
  8. } AVExtFloat;
  9. double av_int2dbl(int64_t v);
  10. float av_int2flt(int32_t v);
  11. double av_ext2dbl(const AVExtFloat ext);
  12. int64_t av_dbl2int(double d);
  13. int32_t av_flt2int(float d);
  14. AVExtFloat av_dbl2ext(double d);
  15. #endif /* INTFLOAT_READWRITE_H */