Lines Matching refs:f32
42 typedef f32 FrameType;
47 static FrameType QuantizedFrame( f32 frame ) { return frame; } in QuantizedFrame()
49 static f32 GetFrameF32( const KeyType* pKey ) { return pKey->GetFrameF32(); } in GetFrameF32()
50 …static f32 GetValue( const ResFloatSegmentFVData*, const KeyType* pKey ) { return pKey->GetV… in GetValue()
63 static FrameType QuantizedFrame( f32 frame ) { return u32(frame); } in QuantizedFrame()
65 static f32 GetFrameF32( const KeyType* pKey ) { return pKey->GetFrameF32(); } in GetFrameF32()
66 static f32 GetValue( const ResFloatSegmentFVData* pSegment, const KeyType* pKey ) in GetValue()
68 f32 value = pKey->GetValue(); in GetValue()
78 typedef f32 FrameType;
83 static FrameType QuantizedFrame( f32 frame ) { return frame; } in QuantizedFrame()
85 static f32 GetFrameF32( const KeyType* pKey ) { return pKey->m_Frame; } in GetFrameF32()
86 …static f32 GetValue( const ResFloatSegmentFVData*, const KeyType* pKey ) { return pKey->m_Va… in GetValue()
87 static f32 GetInSlope( const KeyType* pKey ) { return pKey->m_InSlope; } in GetInSlope()
88 static f32 GetOutSlope( const KeyType* pKey ) { return pKey->m_OutSlope; } in GetOutSlope()
101 static FrameType QuantizedFrame( f32 frame ) { return u32(frame); } in QuantizedFrame()
103 static f32 GetFrameF32( const KeyType* pKey ) { return f32( GetFrame(pKey) ); } in GetFrameF32()
104 static f32 GetValue( const ResFloatSegmentFVData* pSegment, const KeyType* pKey ) in GetValue()
106 f32 value = pKey->GetValue(); in GetValue()
109 static f32 GetInSlope( const KeyType* pKey ) { return pKey->GetInSlope(); } in GetInSlope()
110 static f32 GetOutSlope( const KeyType* pKey ) { return pKey->GetOutSlope(); } in GetOutSlope()
123 static FrameType QuantizedFrame( f32 frame ) { return u32(frame); } in QuantizedFrame()
125 static f32 GetFrameF32( const KeyType* pKey ) { return pKey->GetFrameF32(); } in GetFrameF32()
126 static f32 GetValue( const ResFloatSegmentFVData* pSegment, const KeyType* pKey ) in GetValue()
128 f32 value = pKey->GetValue(); in GetValue()
131 static f32 GetInSlope( const KeyType* pKey ) { return pKey->GetInSlope(); } in GetInSlope()
132 static f32 GetOutSlope( const KeyType* pKey ) { return pKey->GetOutSlope(); } in GetOutSlope()
141 typedef f32 FrameType;
146 static FrameType QuantizedFrame( f32 frame ) { return frame; } in QuantizedFrame()
148 static f32 GetFrameF32( const KeyType* pKey ) { return pKey->GetFrameF32(); } in GetFrameF32()
149 …static f32 GetValue( const ResFloatSegmentFVData*, const KeyType* pKey ) { return pKey->GetV… in GetValue()
150 static f32 GetSlope( const KeyType* pKey ) { return pKey->GetSlope(); } in GetSlope()
163 static FrameType QuantizedFrame( f32 frame ) { return internal::CastF32ToS10_5(frame); } in QuantizedFrame()
165 static f32 GetFrameF32( const KeyType* pKey ) { return pKey->GetFrameF32(); } in GetFrameF32()
166 static f32 GetValue( const ResFloatSegmentFVData* pSegment, const KeyType* pKey ) in GetValue()
168 f32 value = pKey->GetValue(); in GetValue()
171 static f32 GetSlope( const KeyType* pKey ) { return pKey->GetSlope(); } in GetSlope()
184 static FrameType QuantizedFrame( f32 frame ) { return u32(frame); } in QuantizedFrame()
186 static f32 GetFrameF32( const KeyType* pKey ) { return f32( GetFrame( pKey ) ); } in GetFrameF32()
187 static f32 GetValue( const ResFloatSegmentFVData* pSegment, const KeyType* pKey ) in GetValue()
189 f32 value = f32(pKey->m_ValueSlope[0] + ((pKey->m_ValueSlope[1] & 0x0F) << 8) ); in GetValue()
192 static f32 GetSlope( const KeyType* pKey ) { return pKey->GetSlope(); } in GetSlope()
201 typedef f32 FrameType;
206 static FrameType QuantizedFrame( f32 frame ) { return frame; } in QuantizedFrame()
208 static f32 GetFrameF32( const KeyType* pKey ) { return pKey->GetFrameF32(); } in GetFrameF32()
222 static FrameType QuantizedFrame( f32 frame ) { return u32(frame); } in QuantizedFrame()
224 static f32 GetFrameF32( const KeyType* pKey ) { return pKey->GetFrameF32(); } in GetFrameF32()
242 static FrameType QuantizedFrame( f32 frame ) { return u32(frame); } in QuantizedFrame()
244 static f32 GetFrameF32( const KeyType* pKey ) { return f32( GetFrame( pKey ) ); } in GetFrameF32()
251 typedef f32 (*NormalizeFrameFunc)( f32 frame, f32 startFrame, f32 endFrame );
253 f32
254 NormalizeFrameNonePre_( f32 frame, f32 startFrame, f32 /* endFrame */ ) in NormalizeFrameNonePre_() argument
259 f32
260 NormalizeFrameNonePost_( f32 frame, f32 /*startFrame*/, f32 endFrame ) in NormalizeFrameNonePost_() argument
265 f32
266 NormalizeFrameRepeatPre_( f32 frame, f32 startFrame, f32 endFrame ) in NormalizeFrameRepeatPre_()
268 f32 duration = endFrame - startFrame; in NormalizeFrameRepeatPre_()
276 f32
277 NormalizeFrameRepeatPost_( f32 frame, f32 startFrame, f32 endFrame ) in NormalizeFrameRepeatPost_()
279 f32 duration = endFrame - startFrame; in NormalizeFrameRepeatPost_()
287 f32
288 NormalizeFrameMirrorPre_( f32 frame, f32 startFrame, f32 endFrame ) in NormalizeFrameMirrorPre_()
291 f32 duration = endFrame - startFrame; in NormalizeFrameMirrorPre_()
300 f32
301 NormalizeFrameMirrorPost_( f32 frame, f32 startFrame, f32 endFrame ) in NormalizeFrameMirrorPost_()
304 f32 duration = endFrame - startFrame; in NormalizeFrameMirrorPost_()
321 f32 NormalizeFrame_( f32 frame, const ResAnimCurveData* pCurve ) in NormalizeFrame_()
367 GetKeyFV_( const Segment* pSegment, f32 frame ) in GetKeyFV_()
426 GetFloatSegment_( const ResSegmentFloatCurveData* pCurve, f32 frame ) in GetFloatSegment_()
458 GetFloatKeyFV_( const ResFloatSegmentFVData* pSegment, f32 frame ) in GetFloatKeyFV_()
465 f32
466 CalcStepFloatSegmentFV_( const ResFloatSegmentFVData* pSegment, f32 frame ) in CalcStepFloatSegmentFV_()
475 f32
476 CalcLinearFloatSegmentFV_( const ResFloatSegmentFVData* pSegment, f32 frame ) in CalcLinearFloatSegmentFV_()
480 f32 keyFrame = Traits::GetFrameF32( pKey ); in CalcLinearFloatSegmentFV_()
489 f32 nextKeyFrame = Traits::GetFrameF32( pNextKey ); in CalcLinearFloatSegmentFV_()
490 f32 rate = (frame - keyFrame) / (nextKeyFrame - keyFrame); in CalcLinearFloatSegmentFV_()
497 f32
498 CalcHermiteFloatSegmentFVSS_( const ResFloatSegmentFVData* pSegment, f32 frame ) in CalcHermiteFloatSegmentFVSS_()
502 f32 keyFrame = Traits::GetFrameF32( pKey ); in CalcHermiteFloatSegmentFVSS_()
511 f32 p = frame - keyFrame; in CalcHermiteFloatSegmentFVSS_()
512 f32 d = Traits::GetFrameF32( pNextKey ) - keyFrame; in CalcHermiteFloatSegmentFVSS_()
513 f32 v0 = Traits::GetValue( pSegment, pKey ); in CalcHermiteFloatSegmentFVSS_()
514 f32 v1 = Traits::GetValue( pSegment, pNextKey ); in CalcHermiteFloatSegmentFVSS_()
515 f32 t0 = Traits::GetOutSlope( pKey ); in CalcHermiteFloatSegmentFVSS_()
516 f32 t1 = Traits::GetInSlope( pNextKey ); in CalcHermiteFloatSegmentFVSS_()
522 f32
523 CalcHermiteFloatSegmentFVS_( const ResFloatSegmentFVData* pSegment, f32 frame ) in CalcHermiteFloatSegmentFVS_()
529 f32 keyFrame = Traits::GetFrameF32( pKey ); in CalcHermiteFloatSegmentFVS_()
538 f32 p = frame - keyFrame; in CalcHermiteFloatSegmentFVS_()
539 f32 d = Traits::GetFrameF32( pNextKey ) - keyFrame; in CalcHermiteFloatSegmentFVS_()
540 f32 v0 = Traits::GetValue( pSegment, pKey ); in CalcHermiteFloatSegmentFVS_()
541 f32 v1 = Traits::GetValue( pSegment, pNextKey ); in CalcHermiteFloatSegmentFVS_()
542 f32 t0 = Traits::GetSlope( pKey ); in CalcHermiteFloatSegmentFVS_()
543 f32 t1 = Traits::GetSlope( pNextKey ); in CalcHermiteFloatSegmentFVS_()
548 typedef f32 (*CalcFloatSegmentFVFunc)( const ResFloatSegmentFVData* pSegment, f32 frame );
587 GetIntKeyFV_( const ResIntCurveFVData* pCurve, f32 frame ) in GetIntKeyFV_()
595 CalcIntCurveFV_( const ResIntCurveFVData* pCurve, f32 frame ) in CalcIntCurveFV_()
602 typedef s32 (*CalcIntCurveFVFunc)( const ResIntCurveFVData* pCurve, f32 frame );
612 NW_INLINE f32
613 CalcFloatSegment_( const ResFloatSegmentData* pSegment, f32 frame ) in CalcFloatSegment_()
634 NW_INLINE f32
635 CalcSegmentFloatCurve_( const ResSegmentFloatCurveData* pCurve, f32 frame ) in CalcSegmentFloatCurve_()
657 NW_INLINE f32
658 CalcCompositeFloatCurve_( const ResCompositeFloatCurveData* pCurve, f32 frame ) in CalcCompositeFloatCurve_()
665 f32 leftValue = CalcFloatCurve( pLeftCurve, frame ); in CalcCompositeFloatCurve_()
666 f32 rightValue = CalcFloatCurve( pRightCurve, frame ); in CalcCompositeFloatCurve_()
676 CalcBoolCurveCV_( const ResBoolCurveData* pCurve, f32 frame ) in CalcBoolCurveCV_()
696 …CalcVector3CurveCV_( math::VEC3* result, bit32* flags, const ResVector3CurveData* pCurve, f32 fram… in CalcVector3CurveCV_()
699 f32 remainder = frame - index; in CalcVector3CurveCV_()
711 f32 nextFrame = NormalizeFrame_( frame + 1.0f, pCurve ); in CalcVector3CurveCV_()
729 …CalcRotateCurveCV_( math::MTX34* result, bit32* flags, const ResVector4CurveData* pCurve, f32 fram… in CalcRotateCurveCV_()
732 f32 remainder = frame - index; in CalcRotateCurveCV_()
751 f32 nextFrame = NormalizeFrame_( frame + 1.0f, pCurve ); in CalcRotateCurveCV_()
785 …ranslateCurveCV_( math::MTX34* result, bit32* flags, const ResVector3CurveData* pCurve, f32 frame ) in CalcTranslateCurveCV_()
788 f32 remainder = frame - index; in CalcTranslateCurveCV_()
803 f32 nextFrame = NormalizeFrame_( frame + 1.0f, pCurve ); in CalcTranslateCurveCV_()
824 f32
825 CalcFloatCurve( const ResFloatCurveData* pCurve, f32 frame ) in CalcFloatCurve()
843 CalcIntCurve( const ResIntCurveData* pCurve, f32 frame ) in CalcIntCurve()
863 CalcBoolCurve( const ResBoolCurveData* pCurve, f32 frame ) in CalcBoolCurve()
889 CalcVector3Curve( math::VEC3* result, bit32* flags, const ResVector3CurveData* pCurve, f32 frame ) in CalcVector3Curve()
911 void CalcRotateCurve(math::MTX34* result, bit32* flags, const ResVector4CurveData* pCurve, f32 fram… in CalcRotateCurve()
931 void CalcTranslateCurve(math::MTX34* result, bit32* flags, const ResVector3CurveData* pCurve, f32 f… in CalcTranslateCurve()