DXVA2FixedToFloat() and DXVA2FloatToFixed() functions at "include/dxva2api.h" now use implicit downcasting from (void*).
Although it would be legal in C language, when I refer the functions from my C++ source file, I get the following compile error:
Code: Select all
dxva2api.h: In function 'float DXVA2FixedToFloat(DXVA2_Fixed32)':
error: invalid conversion from 'void*' to 'DXVA2FixedToFloat(DXVA2_Fixed32)::<unnamed struct>*' [-fpermissive]
struct { USHORT Fraction; SHORT Value; } *_f32 = (void *)&f32;