3 Copyright (c) 2003-2015 HandBrake Team
4 This file is part of the HandBrake source code
5 Homepage: <http://handbrake.fr/>.
6 It may be used under the terms of the GNU General Public License v2.
7 For full terms see the file COPYING file or visit http://www.gnu.org/licenses/gpl-2.0.html
9 Authors: Peng Gao <peng@multicorewareinc.com> <http://www.multicorewareinc.com/>
10 Li Cao <li@multicorewareinc.com> <http://www.multicorewareinc.com/>
16 __inline
float hb_dx_fixedtofloat( const DXVA2_Fixed32 _fixed_
)
18 return (FLOAT
)_fixed_
.Value
+ (FLOAT
)_fixed_
.Fraction
/ 0x10000;
21 __inline
const DXVA2_Fixed32
hb_dx_fixed32_opaque_alpha()
23 DXVA2_Fixed32 _fixed_
;
31 __inline DXVA2_Fixed32
hb_dx_floattofixed( const float _float_
)
33 DXVA2_Fixed32 _fixed_
;
34 _fixed_
.Fraction
= LOWORD( _float_
* 0x10000 );
35 _fixed_
.Value
= HIWORD( _float_
* 0x10000 );