MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / half2float

Function half2float

libavutil/half2float.h:39–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37void ff_init_half2float_tables(Half2FloatTables *t);
38
39static inline uint32_t half2float(uint16_t h, const Half2FloatTables *t)
40{
41#if HAVE_FAST_FLOAT16
42 union {
43 _Float16 f;
44 uint16_t i;
45 } u;
46 u.i = h;
47 return av_float2int(u.f);
48#else
49 uint32_t f;
50
51 f = t->mantissatable[t->offsettable[h >> 10] + (h & 0x3ff)] + t->exponenttable[h >> 10];
52
53 return f;
54#endif
55}
56
57#endif /* AVUTIL_HALF2FLOAT_H */

Callers 4

ac_uncompressFunction · 0.85
dwa_uncompressFunction · 0.85
decode_initFunction · 0.85
pnm_decode_frameFunction · 0.85

Calls 1

av_float2intFunction · 0.85

Tested by

no test coverage detected