Lines Matching refs:pSegment

44         static const KeyType*   GetKey( const ResFloatSegmentFVData* pSegment, uint keyIdx )  in GetKey()  argument
45 { return &(pSegment->fv64.m_KeyValue[ keyIdx ]); } in GetKey()
60 static const KeyType* GetKey( const ResFloatSegmentFVData* pSegment, uint keyIdx ) in GetKey() argument
61 { return &(pSegment->fv32.m_KeyValue[ keyIdx ]); } in GetKey()
66 static f32 GetValue( const ResFloatSegmentFVData* pSegment, const KeyType* pKey ) in GetValue() argument
69 return value * pSegment->fv32.m_Scale + pSegment->fv32.m_Offset; in GetValue()
80 static const KeyType* GetKey( const ResFloatSegmentFVData* pSegment, uint keyIdx ) in GetKey() argument
81 { return &(pSegment->fvss128.m_KeyValue[ keyIdx ]); } in GetKey()
98 static const KeyType* GetKey( const ResFloatSegmentFVData* pSegment, uint keyIdx ) in GetKey() argument
99 { return &(pSegment->fvss64.m_KeyValue[ keyIdx ]); } in GetKey()
104 static f32 GetValue( const ResFloatSegmentFVData* pSegment, const KeyType* pKey ) in GetValue() argument
107 return value * pSegment->fvss64.m_Scale + pSegment->fvss64.m_Offset; in GetValue()
120 static const KeyType* GetKey( const ResFloatSegmentFVData* pSegment, uint keyIdx ) in GetKey() argument
121 { return &(pSegment->fvss48.m_KeyValue[ keyIdx ]); } in GetKey()
126 static f32 GetValue( const ResFloatSegmentFVData* pSegment, const KeyType* pKey ) in GetValue() argument
129 return value * pSegment->fvss48.m_Scale + pSegment->fvss48.m_Offset; in GetValue()
143 static const KeyType* GetKey( const ResFloatSegmentFVData* pSegment, uint keyIdx ) in GetKey() argument
144 { return &(pSegment->fvs96.m_KeyValue[ keyIdx ]); } in GetKey()
160 static const KeyType* GetKey( const ResFloatSegmentFVData* pSegment, uint keyIdx ) in GetKey() argument
161 { return &(pSegment->fvs48.m_KeyValue[ keyIdx ]); } in GetKey()
166 static f32 GetValue( const ResFloatSegmentFVData* pSegment, const KeyType* pKey ) in GetValue() argument
169 return value * pSegment->fvs48.m_Scale + pSegment->fvs48.m_Offset; in GetValue()
181 static const KeyType* GetKey( const ResFloatSegmentFVData* pSegment, uint keyIdx ) in GetKey() argument
182 { return &(pSegment->fvs32.m_KeyValue[ keyIdx ]); } in GetKey()
187 static f32 GetValue( const ResFloatSegmentFVData* pSegment, const KeyType* pKey ) in GetValue() argument
190 return value * pSegment->fvs32.m_Scale + pSegment->fvs32.m_Offset; in GetValue()
367 GetKeyFV_( const Segment* pSegment, f32 frame ) in GetKeyFV_() argument
373 const typename Traits::KeyType* pFirstKey = Traits::GetKey(pSegment, 0); in GetKeyFV_()
380 …const typename Traits::KeyType* pLastKey = Traits::GetKey(pSegment, pSegment->m_NumFrameValues - 1… in GetKeyFV_()
387 …uint keyIdx = static_cast<uint>( frame * pSegment->m_InvDuration * (pSegment->m_NumFrameValues - 1… in GetKeyFV_()
388 NW_ASSERT( keyIdx <= pSegment->m_NumFrameValues - 1U ); in GetKeyFV_()
390 const typename Traits::KeyType* pKey = Traits::GetKey(pSegment, keyIdx); in GetKeyFV_()
397 NW_ASSERT( Traits::GetKey(pSegment, 0) < pKey ); in GetKeyFV_()
405 NW_ASSERT( pKey < Traits::GetKey(pSegment, pSegment->m_NumFrameValues - 1) ); in GetKeyFV_()
410 NW_ASSERT( Traits::GetKey(pSegment, 0) < pKey ); in GetKeyFV_()
445 …const ResFloatSegmentData* pSegment = reinterpret_cast<const ResFloatSegmentData*>( pOffset->to_pt… in GetFloatSegment_() local
447 if ( pSegment->m_EndFrame > frame ) in GetFloatSegment_()
449 return pSegment; in GetFloatSegment_()
458 GetFloatKeyFV_( const ResFloatSegmentFVData* pSegment, f32 frame ) in GetFloatKeyFV_() argument
460 return GetKeyFV_<Traits, ResFloatSegmentFVData>( pSegment, frame ); in GetFloatKeyFV_()
466 CalcStepFloatSegmentFV_( const ResFloatSegmentFVData* pSegment, f32 frame ) in CalcStepFloatSegmentFV_() argument
468 const typename Traits::KeyType* pKey = GetFloatKeyFV_<Traits>( pSegment, frame ); in CalcStepFloatSegmentFV_()
470 return Traits::GetValue( pSegment, pKey ); in CalcStepFloatSegmentFV_()
476 CalcLinearFloatSegmentFV_( const ResFloatSegmentFVData* pSegment, f32 frame ) in CalcLinearFloatSegmentFV_() argument
478 const typename Traits::KeyType* pKey = GetFloatKeyFV_<Traits>( pSegment, frame ); in CalcLinearFloatSegmentFV_()
484 return Traits::GetValue( pSegment, pKey ); in CalcLinearFloatSegmentFV_()
492 return Traits::GetValue( pSegment, pKey ) * (1.0f - rate) in CalcLinearFloatSegmentFV_()
493 + Traits::GetValue( pSegment, pNextKey ) * rate; in CalcLinearFloatSegmentFV_()
498 CalcHermiteFloatSegmentFVSS_( const ResFloatSegmentFVData* pSegment, f32 frame ) in CalcHermiteFloatSegmentFVSS_() argument
500 const typename Traits::KeyType* pKey = GetFloatKeyFV_<Traits>( pSegment, frame ); in CalcHermiteFloatSegmentFVSS_()
506 return Traits::GetValue( pSegment, pKey ); in CalcHermiteFloatSegmentFVSS_()
513 f32 v0 = Traits::GetValue( pSegment, pKey ); in CalcHermiteFloatSegmentFVSS_()
514 f32 v1 = Traits::GetValue( pSegment, pNextKey ); in CalcHermiteFloatSegmentFVSS_()
523 CalcHermiteFloatSegmentFVS_( const ResFloatSegmentFVData* pSegment, f32 frame ) in CalcHermiteFloatSegmentFVS_() argument
525 const typename Traits::KeyType* pKey = GetFloatKeyFV_<Traits>( pSegment, frame ); in CalcHermiteFloatSegmentFVS_()
533 return Traits::GetValue( pSegment, pKey ); in CalcHermiteFloatSegmentFVS_()
540 f32 v0 = Traits::GetValue( pSegment, pKey ); in CalcHermiteFloatSegmentFVS_()
541 f32 v1 = Traits::GetValue( pSegment, pNextKey ); in CalcHermiteFloatSegmentFVS_()
548 typedef f32 (*CalcFloatSegmentFVFunc)( const ResFloatSegmentFVData* pSegment, f32 frame );
613 CalcFloatSegment_( const ResFloatSegmentData* pSegment, f32 frame ) in CalcFloatSegment_() argument
615 NW_NULL_ASSERT( pSegment ); in CalcFloatSegment_()
616 NW_ASSERT( pSegment->m_StartFrame <= frame && frame <= pSegment->m_EndFrame ); in CalcFloatSegment_()
617 NW_ASSERT(!(pSegment->m_Flags & ResFloatSegmentData::FLAG_BAKED)); in CalcFloatSegment_()
619 if ( pSegment->m_Flags & ResFloatSegmentData::FLAG_CONSTANT ) in CalcFloatSegment_()
621 return pSegment->constantValue; in CalcFloatSegment_()
624 … u32 quantizeType = (pSegment->m_Flags & ResFloatSegmentData::FLAG_QUANTIZATION_TYPE_MASK) >> in CalcFloatSegment_()
627 … u32 interporateMode = (pSegment->m_Flags & ResFloatSegmentData::FLAG_INTERPORATE_MODE_MASK) >> in CalcFloatSegment_()
630 …alcFloatSegmentFVTable[ interporateMode ][ quantizeType ]( &(pSegment->fv), frame - pSegment->m_St… in CalcFloatSegment_()
645 const ResFloatSegmentData* pSegment = GetFloatSegment_( pCurve, frame ); in CalcSegmentFloatCurve_() local
647 if ( frame < pSegment->m_StartFrame ) in CalcSegmentFloatCurve_()
650 frame = pSegment->m_StartFrame; in CalcSegmentFloatCurve_()
653 return CalcFloatSegment_( pSegment, frame ); in CalcSegmentFloatCurve_()