Lines Matching refs:f32

42         typedef f32                 FrameType;
47 static FrameType QuantizedFrame( const ResFloatSegmentFVData*, f32 frame ) { return frame; } in QuantizedFrame()
49 …static f32 GetFrameF32( const ResFloatSegmentFVData*, const KeyType* pKey ) { return pKey->G… in GetFrameF32()
50 …static f32 GetValue( const ResFloatSegmentFVData*, const KeyType* pKey ) { return pKey->GetV… in GetValue()
63 static FrameType QuantizedFrame( const ResFloatSegmentFVData* pSegment, f32 frame ) in QuantizedFrame()
65 f32 decoded = (frame - pSegment->fv32.m_FrameOffset) / pSegment->fv32.m_FrameScale; in QuantizedFrame()
69 static f32 GetFrameF32( const ResFloatSegmentFVData* pSegment, const KeyType* pKey ) in GetFrameF32()
71 f32 frame = pKey->GetFrameF32(); in GetFrameF32()
74 static f32 GetValue( const ResFloatSegmentFVData* pSegment, const KeyType* pKey ) in GetValue()
76 f32 value = pKey->GetValue(); in GetValue()
86 typedef f32 FrameType;
91 static FrameType QuantizedFrame( const ResFloatSegmentFVData*, f32 frame ) { return frame; } in QuantizedFrame()
93 …static f32 GetFrameF32( const ResFloatSegmentFVData*, const KeyType* pKey ) { return pKey->m… in GetFrameF32()
94 …static f32 GetValue( const ResFloatSegmentFVData*, const KeyType* pKey ) { return pKey->m_Va… in GetValue()
95 static f32 GetInSlope( const KeyType* pKey ) { return pKey->m_InSlope; } in GetInSlope()
96 static f32 GetOutSlope( const KeyType* pKey ) { return pKey->m_OutSlope; } in GetOutSlope()
109 static FrameType QuantizedFrame( const ResFloatSegmentFVData* pSegment, f32 frame ) in QuantizedFrame()
111f32 decoded = (frame - pSegment->fvss64.m_FrameOffset) / pSegment->fvss64.m_FrameScale; in QuantizedFrame()
115 static f32 GetFrameF32( const ResFloatSegmentFVData* pSegment, const KeyType* pKey ) in GetFrameF32()
117 f32 frame = pKey->GetFrameF32(); in GetFrameF32()
120 static f32 GetValue( const ResFloatSegmentFVData* pSegment, const KeyType* pKey ) in GetValue()
122 f32 value = pKey->GetValue(); in GetValue()
125 static f32 GetInSlope( const KeyType* pKey ) { return pKey->GetInSlope(); } in GetInSlope()
126 static f32 GetOutSlope( const KeyType* pKey ) { return pKey->GetOutSlope(); } in GetOutSlope()
139 static FrameType QuantizedFrame( const ResFloatSegmentFVData* pSegment, f32 frame ) in QuantizedFrame()
141f32 decoded = (frame - pSegment->fvss48.m_FrameOffset) / pSegment->fvss48.m_FrameScale; in QuantizedFrame()
145 static f32 GetFrameF32( const ResFloatSegmentFVData* pSegment, const KeyType* pKey ) in GetFrameF32()
147 f32 frame = pKey->GetFrameF32(); in GetFrameF32()
150 static f32 GetValue( const ResFloatSegmentFVData* pSegment, const KeyType* pKey ) in GetValue()
152 f32 value = pKey->GetValue(); in GetValue()
155 static f32 GetInSlope( const KeyType* pKey ) { return pKey->GetInSlope(); } in GetInSlope()
156 static f32 GetOutSlope( const KeyType* pKey ) { return pKey->GetOutSlope(); } in GetOutSlope()
165 typedef f32 FrameType;
170 static FrameType QuantizedFrame( const ResFloatSegmentFVData*, f32 frame ) { return frame; } in QuantizedFrame()
172 …static f32 GetFrameF32( const ResFloatSegmentFVData*, const KeyType* pKey ) { return pKey->G… in GetFrameF32()
173 …static f32 GetValue( const ResFloatSegmentFVData*, const KeyType* pKey ) { return pKey->GetV… in GetValue()
174 static f32 GetSlope( const KeyType* pKey ) { return pKey->GetSlope(); } in GetSlope()
187 static FrameType QuantizedFrame( const ResFloatSegmentFVData* pSegment, f32 frame ) in QuantizedFrame()
189f32 decoded = (frame - pSegment->fvs48.m_FrameOffset) / pSegment->fvs48.m_FrameScale; in QuantizedFrame()
193 static f32 GetFrameF32( const ResFloatSegmentFVData* pSegment, const KeyType* pKey ) in GetFrameF32()
195 f32 frame = pKey->GetFrameF32(); in GetFrameF32()
198 static f32 GetValue( const ResFloatSegmentFVData* pSegment, const KeyType* pKey ) in GetValue()
200 f32 value = pKey->GetValue(); in GetValue()
203 static f32 GetSlope( const KeyType* pKey ) { return pKey->GetSlope(); } in GetSlope()
216 static FrameType QuantizedFrame( const ResFloatSegmentFVData* pSegment, f32 frame ) in QuantizedFrame()
218f32 decoded = (frame - pSegment->fvs32.m_FrameOffset) / pSegment->fvs32.m_FrameScale; in QuantizedFrame()
222 static f32 GetFrameF32( const ResFloatSegmentFVData* pSegment, const KeyType* pKey ) in GetFrameF32()
224 f32 frame = pKey->GetFrameF32(); in GetFrameF32()
227 static f32 GetValue( const ResFloatSegmentFVData* pSegment, const KeyType* pKey ) in GetValue()
229 f32 value = f32(pKey->m_ValueSlope[0] + ((pKey->m_ValueSlope[1] & 0x0F) << 8) ); in GetValue()
232 static f32 GetSlope( const KeyType* pKey ) { return pKey->GetSlope(); } in GetSlope()
241 typedef f32 FrameType;
246 static FrameType QuantizedFrame( const ResIntCurveFVData*, f32 frame ) { return frame; } in QuantizedFrame()
248 …static f32 GetFrameF32( const ResIntCurveFVData*, const KeyType* pKey ) { return pKey->GetFr… in GetFrameF32()
262 … static FrameType QuantizedFrame( const ResIntCurveFVData*, f32 frame ) { return u32(frame); } in QuantizedFrame()
264 …static f32 GetFrameF32( const ResIntCurveFVData*, const KeyType* pKey ) { return pKey->GetFr… in GetFrameF32()
282 … static FrameType QuantizedFrame( const ResIntCurveFVData*, f32 frame ) { return u32(frame); } in QuantizedFrame()
284 …static f32 GetFrameF32( const ResIntCurveFVData*, const KeyType* pKey ) { return f32( GetFra… in GetFrameF32()
291 typedef f32 (*NormalizeFrameFunc)( f32 frame, f32 startFrame, f32 endFrame );
293 f32
294 NormalizeFrameNonePre_( f32 frame, f32 startFrame, f32 /* endFrame */ ) in NormalizeFrameNonePre_() argument
299 f32
300 NormalizeFrameNonePost_( f32 frame, f32 /*startFrame*/, f32 endFrame ) in NormalizeFrameNonePost_() argument
305 f32
306 NormalizeFrameRepeatPre_( f32 frame, f32 startFrame, f32 endFrame ) in NormalizeFrameRepeatPre_()
308 f32 duration = endFrame - startFrame; in NormalizeFrameRepeatPre_()
316 f32
317 NormalizeFrameRepeatPost_( f32 frame, f32 startFrame, f32 endFrame ) in NormalizeFrameRepeatPost_()
319 f32 duration = endFrame - startFrame; in NormalizeFrameRepeatPost_()
327 f32
328 NormalizeFrameMirrorPre_( f32 frame, f32 startFrame, f32 endFrame ) in NormalizeFrameMirrorPre_()
331 f32 duration = endFrame - startFrame; in NormalizeFrameMirrorPre_()
340 f32
341 NormalizeFrameMirrorPost_( f32 frame, f32 startFrame, f32 endFrame ) in NormalizeFrameMirrorPost_()
344 f32 duration = endFrame - startFrame; in NormalizeFrameMirrorPost_()
361 f32 NormalizeFrame_( f32 frame, const ResAnimCurveData* pCurve ) in NormalizeFrame_()
405 GetKeyFV_( const Segment* pSegment, f32 frame ) in GetKeyFV_()
464 GetFloatSegment_( const ResSegmentFloatCurveData* pCurve, f32 frame ) in GetFloatSegment_()
496 GetFloatKeyFV_( const ResFloatSegmentFVData* pSegment, f32 frame ) in GetFloatKeyFV_()
503 f32
504 CalcStepFloatSegmentFV_( const ResFloatSegmentFVData* pSegment, f32 frame ) in CalcStepFloatSegmentFV_()
513 f32
514 CalcLinearFloatSegmentFV_( const ResFloatSegmentFVData* pSegment, f32 frame ) in CalcLinearFloatSegmentFV_()
518 f32 keyFrame = Traits::GetFrameF32( pSegment, pKey ); in CalcLinearFloatSegmentFV_()
527 f32 nextKeyFrame = Traits::GetFrameF32( pSegment, pNextKey ); in CalcLinearFloatSegmentFV_()
528 f32 rate = (frame - keyFrame) / (nextKeyFrame - keyFrame); in CalcLinearFloatSegmentFV_()
535 f32
536 CalcHermiteFloatSegmentFVSS_( const ResFloatSegmentFVData* pSegment, f32 frame ) in CalcHermiteFloatSegmentFVSS_()
540 f32 keyFrame = Traits::GetFrameF32( pSegment, pKey ); in CalcHermiteFloatSegmentFVSS_()
549 f32 p = frame - keyFrame; in CalcHermiteFloatSegmentFVSS_()
550 f32 d = Traits::GetFrameF32( pSegment, pNextKey ) - keyFrame; in CalcHermiteFloatSegmentFVSS_()
551 f32 v0 = Traits::GetValue( pSegment, pKey ); in CalcHermiteFloatSegmentFVSS_()
552 f32 v1 = Traits::GetValue( pSegment, pNextKey ); in CalcHermiteFloatSegmentFVSS_()
553 f32 t0 = Traits::GetOutSlope( pKey ); in CalcHermiteFloatSegmentFVSS_()
554 f32 t1 = Traits::GetInSlope( pNextKey ); in CalcHermiteFloatSegmentFVSS_()
560 f32
561 CalcHermiteFloatSegmentFVS_( const ResFloatSegmentFVData* pSegment, f32 frame ) in CalcHermiteFloatSegmentFVS_()
567 f32 keyFrame = Traits::GetFrameF32( pSegment, pKey ); in CalcHermiteFloatSegmentFVS_()
576 f32 p = frame - keyFrame; in CalcHermiteFloatSegmentFVS_()
577 f32 d = Traits::GetFrameF32( pSegment, pNextKey ) - keyFrame; in CalcHermiteFloatSegmentFVS_()
578 f32 v0 = Traits::GetValue( pSegment, pKey ); in CalcHermiteFloatSegmentFVS_()
579 f32 v1 = Traits::GetValue( pSegment, pNextKey ); in CalcHermiteFloatSegmentFVS_()
580 f32 t0 = Traits::GetSlope( pKey ); in CalcHermiteFloatSegmentFVS_()
581 f32 t1 = Traits::GetSlope( pNextKey ); in CalcHermiteFloatSegmentFVS_()
586 typedef f32 (*CalcFloatSegmentFVFunc)( const ResFloatSegmentFVData* pSegment, f32 frame );
625 GetIntKeyFV_( const ResIntCurveFVData* pCurve, f32 frame ) in GetIntKeyFV_()
633 CalcIntCurveFV_( const ResIntCurveFVData* pCurve, f32 frame ) in CalcIntCurveFV_()
640 typedef s32 (*CalcIntCurveFVFunc)( const ResIntCurveFVData* pCurve, f32 frame );
650 NW_INLINE f32
651 CalcFloatSegment_( const ResFloatSegmentData* pSegment, f32 frame ) in CalcFloatSegment_()
672 NW_INLINE f32
673 CalcSegmentFloatCurve_( const ResSegmentFloatCurveData* pCurve, f32 frame ) in CalcSegmentFloatCurve_()
695 NW_INLINE f32
696 CalcCompositeFloatCurve_( const ResCompositeFloatCurveData* pCurve, f32 frame ) in CalcCompositeFloatCurve_()
703 f32 leftValue = CalcFloatCurve( pLeftCurve, frame ); in CalcCompositeFloatCurve_()
704 f32 rightValue = CalcFloatCurve( pRightCurve, frame ); in CalcCompositeFloatCurve_()
714 CalcBoolCurveCV_( const ResBoolCurveData* pCurve, f32 frame ) in CalcBoolCurveCV_()
734 …CalcVector3CurveCV_( math::VEC3* result, bit32* flags, const ResVector3CurveData* pCurve, f32 fram… in CalcVector3CurveCV_()
737 f32 remainder = frame - index; in CalcVector3CurveCV_()
749 f32 nextFrame = NormalizeFrame_( frame + 1.0f, pCurve ); in CalcVector3CurveCV_()
767 …CalcRotateCurveCV_( math::MTX34* result, bit32* flags, const ResVector4CurveData* pCurve, f32 fram… in CalcRotateCurveCV_()
770 f32 remainder = frame - index; in CalcRotateCurveCV_()
789 f32 nextFrame = NormalizeFrame_( frame + 1.0f, pCurve ); in CalcRotateCurveCV_()
823 …ranslateCurveCV_( math::MTX34* result, bit32* flags, const ResVector3CurveData* pCurve, f32 frame ) in CalcTranslateCurveCV_()
826 f32 remainder = frame - index; in CalcTranslateCurveCV_()
841 f32 nextFrame = NormalizeFrame_( frame + 1.0f, pCurve ); in CalcTranslateCurveCV_()
862 f32
863 CalcFloatCurve( const ResFloatCurveData* pCurve, f32 frame ) in CalcFloatCurve()
881 CalcIntCurve( const ResIntCurveData* pCurve, f32 frame ) in CalcIntCurve()
901 CalcBoolCurve( const ResBoolCurveData* pCurve, f32 frame ) in CalcBoolCurve()
927 CalcVector3Curve( math::VEC3* result, bit32* flags, const ResVector3CurveData* pCurve, f32 frame ) in CalcVector3Curve()
949 void CalcRotateCurve(math::MTX34* result, bit32* flags, const ResVector4CurveData* pCurve, f32 fram… in CalcRotateCurve()
969 void CalcTranslateCurve(math::MTX34* result, bit32* flags, const ResVector3CurveData* pCurve, f32 f… in CalcTranslateCurve()
989 CalcTransformCurve( math::MTX34* result, const ResFullBakedCurveData* pCurve, f32 frame ) in CalcTransformCurve()