Lines Matching refs:f32
58 typedef f32 FrameType;
63 static FrameType QuantizedFrame( const ResFloatSegmentFVData*, f32 frame ) { return frame; } in QuantizedFrame()
65 …static f32 GetFrameF32( const ResFloatSegmentFVData*, const KeyType* pKey ) { return pKey->G… in GetFrameF32()
66 …static f32 GetValue( const ResFloatSegmentFVData*, const KeyType* pKey ) { return pKey->GetV… in GetValue()
79 static FrameType QuantizedFrame( const ResFloatSegmentFVData* pSegment, f32 frame ) in QuantizedFrame()
81 f32 decoded = frame / pSegment->fv32.m_FrameScale; in QuantizedFrame()
85 static f32 GetFrameF32( const ResFloatSegmentFVData* pSegment, const KeyType* pKey ) in GetFrameF32()
87 f32 frame = pKey->GetFrameF32(); in GetFrameF32()
90 static f32 GetValue( const ResFloatSegmentFVData* pSegment, const KeyType* pKey ) in GetValue()
92 f32 value = pKey->GetValue(); in GetValue()
102 typedef f32 FrameType;
107 static FrameType QuantizedFrame( const ResFloatSegmentFVData*, f32 frame ) { return frame; } in QuantizedFrame()
109 …static f32 GetFrameF32( const ResFloatSegmentFVData*, const KeyType* pKey ) { return pKey->m… in GetFrameF32()
110 …static f32 GetValue( const ResFloatSegmentFVData*, const KeyType* pKey ) { return pKey->m_Va… in GetValue()
111 static f32 GetInSlope( const KeyType* pKey ) { return pKey->m_InSlope; } in GetInSlope()
112 static f32 GetOutSlope( const KeyType* pKey ) { return pKey->m_OutSlope; } in GetOutSlope()
125 static FrameType QuantizedFrame( const ResFloatSegmentFVData* pSegment, f32 frame ) in QuantizedFrame()
127 f32 decoded = frame / pSegment->fvss64.m_FrameScale; in QuantizedFrame()
131 static f32 GetFrameF32( const ResFloatSegmentFVData* pSegment, const KeyType* pKey ) in GetFrameF32()
133 f32 frame = pKey->GetFrameF32(); in GetFrameF32()
136 static f32 GetValue( const ResFloatSegmentFVData* pSegment, const KeyType* pKey ) in GetValue()
138 f32 value = pKey->GetValue(); in GetValue()
141 static f32 GetInSlope( const KeyType* pKey ) { return pKey->GetInSlope(); } in GetInSlope()
142 static f32 GetOutSlope( const KeyType* pKey ) { return pKey->GetOutSlope(); } in GetOutSlope()
155 static FrameType QuantizedFrame( const ResFloatSegmentFVData* pSegment, f32 frame ) in QuantizedFrame()
157 f32 decoded = frame / pSegment->fvss48.m_FrameScale; in QuantizedFrame()
161 static f32 GetFrameF32( const ResFloatSegmentFVData* pSegment, const KeyType* pKey ) in GetFrameF32()
163 f32 frame = 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 GetInSlope( const KeyType* pKey ) { return pKey->GetInSlope(); } in GetInSlope()
172 static f32 GetOutSlope( const KeyType* pKey ) { return pKey->GetOutSlope(); } in GetOutSlope()
181 typedef f32 FrameType;
186 static FrameType QuantizedFrame( const ResFloatSegmentFVData*, f32 frame ) { return frame; } in QuantizedFrame()
188 …static f32 GetFrameF32( const ResFloatSegmentFVData*, const KeyType* pKey ) { return pKey->G… in GetFrameF32()
189 …static f32 GetValue( const ResFloatSegmentFVData*, const KeyType* pKey ) { return pKey->GetV… in GetValue()
190 static f32 GetSlope( const KeyType* pKey ) { return pKey->GetSlope(); } in GetSlope()
203 static FrameType QuantizedFrame( const ResFloatSegmentFVData* pSegment, f32 frame ) in QuantizedFrame()
205 f32 decoded = frame / pSegment->fvs48.m_FrameScale; in QuantizedFrame()
209 static f32 GetFrameF32( const ResFloatSegmentFVData* pSegment, const KeyType* pKey ) in GetFrameF32()
211 f32 frame = pKey->GetFrameF32(); in GetFrameF32()
214 static f32 GetValue( const ResFloatSegmentFVData* pSegment, const KeyType* pKey ) in GetValue()
216 f32 value = pKey->GetValue(); in GetValue()
219 static f32 GetSlope( const KeyType* pKey ) { return pKey->GetSlope(); } in GetSlope()
232 static FrameType QuantizedFrame( const ResFloatSegmentFVData* pSegment, f32 frame ) in QuantizedFrame()
234 f32 decoded = frame / pSegment->fvs32.m_FrameScale; in QuantizedFrame()
238 static f32 GetFrameF32( const ResFloatSegmentFVData* pSegment, const KeyType* pKey ) in GetFrameF32()
240 f32 frame = pKey->GetFrameF32(); in GetFrameF32()
243 static f32 GetValue( const ResFloatSegmentFVData* pSegment, const KeyType* pKey ) in GetValue()
245 f32 value = f32(pKey->m_ValueSlope[0] + ((pKey->m_ValueSlope[1] & 0x0F) << 8) ); in GetValue()
248 static f32 GetSlope( const KeyType* pKey ) { return pKey->GetSlope(); } in GetSlope()
257 typedef f32 FrameType;
262 static FrameType QuantizedFrame( const ResIntCurveFVData*, f32 frame ) { return frame; } in QuantizedFrame()
264 …static f32 GetFrameF32( const ResIntCurveFVData*, const KeyType* pKey ) { return pKey->GetFr… in GetFrameF32()
278 … static FrameType QuantizedFrame( const ResIntCurveFVData*, f32 frame ) { return u32(frame); } in QuantizedFrame()
280 …static f32 GetFrameF32( const ResIntCurveFVData*, const KeyType* pKey ) { return pKey->GetFr… in GetFrameF32()
298 … static FrameType QuantizedFrame( const ResIntCurveFVData*, f32 frame ) { return u32(frame); } in QuantizedFrame()
300 …static f32 GetFrameF32( const ResIntCurveFVData*, const KeyType* pKey ) { return f32( GetFra… in GetFrameF32()
307 typedef f32 (*NormalizeFrameFunc)( f32 frame, f32 startFrame, f32 endFrame );
309 f32
310 NormalizeFrameNonePre_( f32 frame, f32 startFrame, f32 /* endFrame */ ) in NormalizeFrameNonePre_() argument
315 f32
316 NormalizeFrameNonePost_( f32 frame, f32 /*startFrame*/, f32 endFrame ) in NormalizeFrameNonePost_() argument
321 f32
322 NormalizeFrameRepeatPre_( f32 frame, f32 startFrame, f32 endFrame ) in NormalizeFrameRepeatPre_()
324 f32 duration = endFrame - startFrame; in NormalizeFrameRepeatPre_()
332 f32
333 NormalizeFrameRepeatPost_( f32 frame, f32 startFrame, f32 endFrame ) in NormalizeFrameRepeatPost_()
335 f32 duration = endFrame - startFrame; in NormalizeFrameRepeatPost_()
343 f32
344 NormalizeFrameMirrorPre_( f32 frame, f32 startFrame, f32 endFrame ) in NormalizeFrameMirrorPre_()
347 f32 duration = endFrame - startFrame; in NormalizeFrameMirrorPre_()
356 f32
357 NormalizeFrameMirrorPost_( f32 frame, f32 startFrame, f32 endFrame ) in NormalizeFrameMirrorPost_()
360 f32 duration = endFrame - startFrame; in NormalizeFrameMirrorPost_()
377 f32 NormalizeFrame_( f32 frame, const ResAnimCurveData* pCurve ) in NormalizeFrame_()
421 GetKeyFV_( const Segment* pSegment, f32 frame ) in GetKeyFV_()
482 GetFloatSegment_( const ResSegmentFloatCurveData* pCurve, f32 frame ) in GetFloatSegment_()
514 GetFloatKeyFV_( const ResFloatSegmentFVData* pSegment, f32 frame ) in GetFloatKeyFV_()
522 f32
523 CalcStepFloatSegmentFV_( const ResFloatSegmentFVData* pSegment, f32 frame ) in CalcStepFloatSegmentFV_()
533 f32
534 CalcLinearFloatSegmentFV_( const ResFloatSegmentFVData* pSegment, f32 frame ) in CalcLinearFloatSegmentFV_()
540 f32 keyFrame = Traits::GetFrameF32( pSegment, pKey ); in CalcLinearFloatSegmentFV_()
549 f32 nextKeyFrame = Traits::GetFrameF32( pSegment, pNextKey ); in CalcLinearFloatSegmentFV_()
550 f32 rate = (frame - keyFrame) / (nextKeyFrame - keyFrame); in CalcLinearFloatSegmentFV_()
557 f32
558 CalcHermiteFloatSegmentFVSS_( const ResFloatSegmentFVData* pSegment, f32 frame ) in CalcHermiteFloatSegmentFVSS_()
564 f32 keyFrame = Traits::GetFrameF32( pSegment, pKey ); in CalcHermiteFloatSegmentFVSS_()
573 f32 p = frame - keyFrame; in CalcHermiteFloatSegmentFVSS_()
574 f32 d = Traits::GetFrameF32( pSegment, pNextKey ) - keyFrame; in CalcHermiteFloatSegmentFVSS_()
575 f32 v0 = Traits::GetValue( pSegment, pKey ); in CalcHermiteFloatSegmentFVSS_()
576 f32 v1 = Traits::GetValue( pSegment, pNextKey ); in CalcHermiteFloatSegmentFVSS_()
577 f32 t0 = Traits::GetOutSlope( pKey ); in CalcHermiteFloatSegmentFVSS_()
578 f32 t1 = Traits::GetInSlope( pNextKey ); in CalcHermiteFloatSegmentFVSS_()
584 f32
585 CalcHermiteFloatSegmentFVS_( const ResFloatSegmentFVData* pSegment, f32 frame ) in CalcHermiteFloatSegmentFVS_()
593 f32 keyFrame = Traits::GetFrameF32( pSegment, pKey ); in CalcHermiteFloatSegmentFVS_()
602 f32 p = frame - keyFrame; in CalcHermiteFloatSegmentFVS_()
603 f32 d = Traits::GetFrameF32( pSegment, pNextKey ) - keyFrame; in CalcHermiteFloatSegmentFVS_()
604 f32 v0 = Traits::GetValue( pSegment, pKey ); in CalcHermiteFloatSegmentFVS_()
605 f32 v1 = Traits::GetValue( pSegment, pNextKey ); in CalcHermiteFloatSegmentFVS_()
606 f32 t0 = Traits::GetSlope( pKey ); in CalcHermiteFloatSegmentFVS_()
607 f32 t1 = Traits::GetSlope( pNextKey ); in CalcHermiteFloatSegmentFVS_()
612 typedef f32 (*CalcFloatSegmentFVFunc)( const ResFloatSegmentFVData* pSegment, f32 frame );
651 GetIntKeyFV_( const ResIntCurveFVData* pCurve, f32 frame ) in GetIntKeyFV_()
659 CalcIntCurveFV_( const ResIntCurveFVData* pCurve, f32 frame ) in CalcIntCurveFV_()
666 typedef s32 (*CalcIntCurveFVFunc)( const ResIntCurveFVData* pCurve, f32 frame );
676 NW_INLINE f32
677 CalcFloatSegment_( const ResFloatSegmentData* pSegment, f32 frame ) in CalcFloatSegment_()
698 NW_INLINE f32
699 CalcSegmentFloatCurve_( const ResSegmentFloatCurveData* pCurve, f32 frame ) in CalcSegmentFloatCurve_()
721 NW_INLINE f32
722 CalcCompositeFloatCurve_( const ResCompositeFloatCurveData* pCurve, f32 frame ) in CalcCompositeFloatCurve_()
729 f32 leftValue = CalcFloatCurve( pLeftCurve, frame ); in CalcCompositeFloatCurve_()
730 f32 rightValue = CalcFloatCurve( pRightCurve, frame ); in CalcCompositeFloatCurve_()
740 CalcBoolCurveCV_( const ResBoolCurveData* pCurve, f32 frame ) in CalcBoolCurveCV_()
760 …CalcVector3CurveCV_( math::VEC3* result, bit32* flags, const ResVector3CurveData* pCurve, f32 fram… in CalcVector3CurveCV_()
763 f32 remainder = frame - index; in CalcVector3CurveCV_()
787 f32 nextFrame = NormalizeFrame_( frame + 1.0f, pCurve ); in CalcVector3CurveCV_()
805 …CalcRotateCurveCV_( math::MTX34* result, bit32* flags, const ResVector4CurveData* pCurve, f32 fram… in CalcRotateCurveCV_()
808 f32 remainder = frame - index; in CalcRotateCurveCV_()
840 f32 nextFrame = NormalizeFrame_( frame + 1.0f, pCurve ); in CalcRotateCurveCV_()
874 …ranslateCurveCV_( math::MTX34* result, bit32* flags, const ResVector3CurveData* pCurve, f32 frame ) in CalcTranslateCurveCV_()
877 f32 remainder = frame - index; in CalcTranslateCurveCV_()
906 f32 nextFrame = NormalizeFrame_( frame + 1.0f, pCurve ); in CalcTranslateCurveCV_()
927 f32
928 CalcFloatCurve( const ResFloatCurveData* pCurve, f32 frame ) in CalcFloatCurve()
946 CalcIntCurve( const ResIntCurveData* pCurve, f32 frame ) in CalcIntCurve()
966 CalcBoolCurve( const ResBoolCurveData* pCurve, f32 frame ) in CalcBoolCurve()
992 CalcVector3Curve( math::VEC3* result, bit32* flags, const ResVector3CurveData* pCurve, f32 frame ) in CalcVector3Curve()
1014 void CalcRotateCurve(math::MTX34* result, bit32* flags, const ResVector4CurveData* pCurve, f32 fram… in CalcRotateCurve()
1034 void CalcTranslateCurve(math::MTX34* result, bit32* flags, const ResVector3CurveData* pCurve, f32 f… in CalcTranslateCurve()
1054 CalcTransformCurve( math::MTX34* result, const ResFullBakedCurveData* pCurve, f32 frame ) in CalcTransformCurve()