Lines Matching refs:pKey
64 static FrameType GetFrame( const KeyType* pKey ) { return pKey->GetFrame(); } in GetFrame() argument
65 …2 GetFrameF32( const ResFloatSegmentFVData*, const KeyType* pKey ) { return pKey->GetFrameF3… in GetFrameF32() argument
66 … f32 GetValue( const ResFloatSegmentFVData*, const KeyType* pKey ) { return pKey->GetValue()… in GetValue() argument
84 static FrameType GetFrame( const KeyType* pKey ) { return pKey->GetFrame(); } in GetFrame() argument
85 static f32 GetFrameF32( const ResFloatSegmentFVData* pSegment, const KeyType* pKey ) in GetFrameF32() argument
87 f32 frame = pKey->GetFrameF32(); in GetFrameF32()
90 static f32 GetValue( const ResFloatSegmentFVData* pSegment, const KeyType* pKey ) in GetValue() argument
92 f32 value = pKey->GetValue(); in GetValue()
108 static FrameType GetFrame( const KeyType* pKey ) { return pKey->m_Frame; } in GetFrame() argument
109 …32 GetFrameF32( const ResFloatSegmentFVData*, const KeyType* pKey ) { return pKey->m_Frame; } in GetFrameF32() argument
110 …c f32 GetValue( const ResFloatSegmentFVData*, const KeyType* pKey ) { return pKey->m_Value; } in GetValue() argument
111 static f32 GetInSlope( const KeyType* pKey ) { return pKey->m_InSlope; } in GetInSlope() argument
112 static f32 GetOutSlope( const KeyType* pKey ) { return pKey->m_OutSlope; } in GetOutSlope() argument
130 static FrameType GetFrame( const KeyType* pKey ) { return pKey->GetFrame(); } in GetFrame() argument
131 static f32 GetFrameF32( const ResFloatSegmentFVData* pSegment, const KeyType* pKey ) in GetFrameF32() argument
133 f32 frame = pKey->GetFrameF32(); in GetFrameF32()
136 static f32 GetValue( const ResFloatSegmentFVData* pSegment, const KeyType* pKey ) in GetValue() argument
138 f32 value = pKey->GetValue(); in GetValue()
141 static f32 GetInSlope( const KeyType* pKey ) { return pKey->GetInSlope(); } in GetInSlope() argument
142 static f32 GetOutSlope( const KeyType* pKey ) { return pKey->GetOutSlope(); } in GetOutSlope() argument
160 static FrameType GetFrame( const KeyType* pKey ) { return pKey->GetFrame(); } in GetFrame() argument
161 static f32 GetFrameF32( const ResFloatSegmentFVData* pSegment, const KeyType* pKey ) in GetFrameF32() argument
163 f32 frame = pKey->GetFrameF32(); in GetFrameF32()
166 static f32 GetValue( const ResFloatSegmentFVData* pSegment, const KeyType* pKey ) in GetValue() argument
168 f32 value = pKey->GetValue(); in GetValue()
171 static f32 GetInSlope( const KeyType* pKey ) { return pKey->GetInSlope(); } in GetInSlope() argument
172 static f32 GetOutSlope( const KeyType* pKey ) { return pKey->GetOutSlope(); } in GetOutSlope() argument
187 static FrameType GetFrame( const KeyType* pKey ) { return pKey->GetFrame(); } in GetFrame() argument
188 …2 GetFrameF32( const ResFloatSegmentFVData*, const KeyType* pKey ) { return pKey->GetFrameF3… in GetFrameF32() argument
189 … f32 GetValue( const ResFloatSegmentFVData*, const KeyType* pKey ) { return pKey->GetValue()… in GetValue() argument
190 static f32 GetSlope( const KeyType* pKey ) { return pKey->GetSlope(); } in GetSlope() argument
208 static FrameType GetFrame( const KeyType* pKey ) { return pKey->GetFrame(); } in GetFrame() argument
209 static f32 GetFrameF32( const ResFloatSegmentFVData* pSegment, const KeyType* pKey ) in GetFrameF32() argument
211 f32 frame = pKey->GetFrameF32(); in GetFrameF32()
214 static f32 GetValue( const ResFloatSegmentFVData* pSegment, const KeyType* pKey ) in GetValue() argument
216 f32 value = pKey->GetValue(); in GetValue()
219 static f32 GetSlope( const KeyType* pKey ) { return pKey->GetSlope(); } in GetSlope() argument
237 static FrameType GetFrame( const KeyType* pKey ) { return pKey->GetFrame(); } in GetFrame() argument
238 static f32 GetFrameF32( const ResFloatSegmentFVData* pSegment, const KeyType* pKey ) in GetFrameF32() argument
240 f32 frame = pKey->GetFrameF32(); in GetFrameF32()
243 static f32 GetValue( const ResFloatSegmentFVData* pSegment, const KeyType* pKey ) in GetValue() argument
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() argument
263 static FrameType GetFrame( const KeyType* pKey ) { return pKey->GetFrame(); } in GetFrame() argument
264 …static f32 GetFrameF32( const ResIntCurveFVData*, const KeyType* pKey ) { return pKey->GetFr… in GetFrameF32() argument
265 …static s32 GetValue( const ResIntCurveFVData*, const KeyType* pKey ) { return pKey->GetValue… in GetValue() argument
279 static FrameType GetFrame( const KeyType* pKey ) { return pKey->GetFrame(); } in GetFrame() argument
280 …static f32 GetFrameF32( const ResIntCurveFVData*, const KeyType* pKey ) { return pKey->GetFr… in GetFrameF32() argument
281 static s32 GetValue( const ResIntCurveFVData* /*pCurve*/, const KeyType* pKey ) in GetValue() argument
283 return pKey->GetValue(); in GetValue()
299 static FrameType GetFrame( const KeyType* pKey ) { return u32(pKey->m_Frame); } in GetFrame() argument
300 … GetFrameF32( const ResIntCurveFVData*, const KeyType* pKey ) { return f32( GetFrame( pKey ) )… in GetFrameF32() argument
301 static s32 GetValue( const ResIntCurveFVData* /*pCurve*/, const KeyType* pKey ) in GetValue() argument
303 return s32(pKey->m_Value); in GetValue()
446 const typename Traits::KeyType* pKey = Traits::GetKey(pSegment, keyIdx); in GetKeyFV_() local
449 if ( quantizedFrame < Traits::GetFrame( pKey ) ) in GetKeyFV_()
453 NW_ASSERT( Traits::GetKey(pSegment, 0) < pKey ); in GetKeyFV_()
454 --pKey; in GetKeyFV_()
455 } while ( quantizedFrame < Traits::GetFrame( pKey ) ); in GetKeyFV_()
461 NW_ASSERT( pKey < Traits::GetKey(pSegment, pSegment->m_NumFrameValues - 1) ); in GetKeyFV_()
462 ++pKey; in GetKeyFV_()
463 } while ( Traits::GetFrame( pKey ) <= quantizedFrame ); in GetKeyFV_()
466 NW_ASSERT( Traits::GetKey(pSegment, 0) < pKey ); in GetKeyFV_()
467 --pKey; in GetKeyFV_()
470 return pKey; in GetKeyFV_()
526 const typename Traits::KeyType* pKey = GetFloatKeyFV_<Traits>( pSegment, frame ); in CalcStepFloatSegmentFV_() local
528 return Traits::GetValue( pSegment, pKey ); in CalcStepFloatSegmentFV_()
537 const typename Traits::KeyType* pKey = GetFloatKeyFV_<Traits>( pSegment, frame ); in CalcLinearFloatSegmentFV_() local
540 f32 keyFrame = Traits::GetFrameF32( pSegment, pKey ); in CalcLinearFloatSegmentFV_()
542 if ( keyFrame == frame || pKey == pLastKey ) in CalcLinearFloatSegmentFV_()
544 return Traits::GetValue( pSegment, pKey ); in CalcLinearFloatSegmentFV_()
547 const typename Traits::KeyType* pNextKey = pKey + 1; in CalcLinearFloatSegmentFV_()
552 return Traits::GetValue( pSegment, pKey ) * (1.0f - rate) in CalcLinearFloatSegmentFV_()
561 const typename Traits::KeyType* pKey = GetFloatKeyFV_<Traits>( pSegment, frame ); in CalcHermiteFloatSegmentFVSS_() local
564 f32 keyFrame = Traits::GetFrameF32( pSegment, pKey ); in CalcHermiteFloatSegmentFVSS_()
566 if ( keyFrame == frame || pKey == pLastKey ) in CalcHermiteFloatSegmentFVSS_()
568 return Traits::GetValue( pSegment, pKey ); in CalcHermiteFloatSegmentFVSS_()
571 const typename Traits::KeyType* pNextKey = pKey + 1; in CalcHermiteFloatSegmentFVSS_()
575 f32 v0 = Traits::GetValue( pSegment, pKey ); in CalcHermiteFloatSegmentFVSS_()
577 f32 t0 = Traits::GetOutSlope( pKey ); in CalcHermiteFloatSegmentFVSS_()
588 const typename Traits::KeyType* pKey = GetFloatKeyFV_<Traits>( pSegment, frame ); in CalcHermiteFloatSegmentFVS_() local
593 f32 keyFrame = Traits::GetFrameF32( pSegment, pKey ); in CalcHermiteFloatSegmentFVS_()
595 if ( keyFrame == frame || pKey == pLastKey ) in CalcHermiteFloatSegmentFVS_()
597 return Traits::GetValue( pSegment, pKey ); in CalcHermiteFloatSegmentFVS_()
600 const typename Traits::KeyType* pNextKey = pKey + 1; in CalcHermiteFloatSegmentFVS_()
604 f32 v0 = Traits::GetValue( pSegment, pKey ); in CalcHermiteFloatSegmentFVS_()
606 f32 t0 = Traits::GetSlope( pKey ); in CalcHermiteFloatSegmentFVS_()
661 const typename Traits::KeyType* pKey = GetIntKeyFV_<Traits>( pCurve, frame ); in CalcIntCurveFV_() local
663 return Traits::GetValue( pCurve, pKey ); in CalcIntCurveFV_()