Lines Matching refs:pCurve
203 static const KeyType* GetKey( const ResIntCurveFVData* pCurve, uint keyIdx ) in GetKey() argument
204 { return &(pCurve->fv64.m_KeyValue[ keyIdx ]); } in GetKey()
219 static const KeyType* GetKey( const ResIntCurveFVData* pCurve, uint keyIdx ) in GetKey() argument
220 { return &(pCurve->fv32.m_KeyValue[ keyIdx ]); } in GetKey()
239 static const KeyType* GetKey( const ResIntCurveFVData* pCurve, uint keyIdx ) in GetKey() argument
240 { return &(pCurve->fv16.m_KeyValue[ keyIdx ]); } in GetKey()
321 f32 NormalizeFrame_( f32 frame, const ResAnimCurveData* pCurve ) in NormalizeFrame_() argument
339 NW_ASSERT( pCurve->m_InRepeatMethod < ResAnimCurveData::METHOD_NUM ); in NormalizeFrame_()
340 NW_ASSERT( pCurve->m_OutRepeatMethod < ResAnimCurveData::METHOD_NUM ); in NormalizeFrame_()
342 if ( frame < pCurve->m_StartFrame ) in NormalizeFrame_()
344 …return preRepeatMethod[ pCurve->m_InRepeatMethod ]( frame, pCurve->m_StartFrame, pCurve->m_EndFram… in NormalizeFrame_()
349 if ( frame >= pCurve->m_EndFrame ) in NormalizeFrame_()
351 …return postRepeatMethod[ pCurve->m_OutRepeatMethod ]( frame, pCurve->m_StartFrame, pCurve->m_EndFr… in NormalizeFrame_()
426 GetFloatSegment_( const ResSegmentFloatCurveData* pCurve, f32 frame ) in GetFloatSegment_() argument
428 NW_NULL_ASSERT( pCurve ); in GetFloatSegment_()
429 NW_ASSERT( pCurve->m_StartFrame <= frame && frame <= pCurve->m_EndFrame ); in GetFloatSegment_()
432 if ( pCurve->m_Flags & ResSegmentFloatCurveData::FLAG_MONO_SEGMENT ) in GetFloatSegment_()
434 …return reinterpret_cast<const ResFloatSegmentData*>( pCurve->segmentsTable.toSegments[0].to_ptr() … in GetFloatSegment_()
437 s32 segmentCount = pCurve->segmentsTable.m_NumSegments; in GetFloatSegment_()
441 const ut::Offset* pOffsetTable = &(pCurve->segmentsTable.toSegments[0]); in GetFloatSegment_()
587 GetIntKeyFV_( const ResIntCurveFVData* pCurve, f32 frame ) in GetIntKeyFV_() argument
589 return GetKeyFV_<Traits, ResIntCurveFVData>( pCurve, frame ); in GetIntKeyFV_()
595 CalcIntCurveFV_( const ResIntCurveFVData* pCurve, f32 frame ) in CalcIntCurveFV_() argument
597 const typename Traits::KeyType* pKey = GetIntKeyFV_<Traits>( pCurve, frame ); in CalcIntCurveFV_()
599 return Traits::GetValue( pCurve, pKey ); in CalcIntCurveFV_()
602 typedef s32 (*CalcIntCurveFVFunc)( const ResIntCurveFVData* pCurve, f32 frame );
635 CalcSegmentFloatCurve_( const ResSegmentFloatCurveData* pCurve, f32 frame ) in CalcSegmentFloatCurve_() argument
637 NW_NULL_ASSERT( pCurve ); in CalcSegmentFloatCurve_()
638 NW_ASSERT( pCurve->m_StartFrame <= frame && frame <= pCurve->m_EndFrame ); in CalcSegmentFloatCurve_()
640 if ( pCurve->m_Flags & ResSegmentFloatCurveData::FLAG_CONSTANT ) in CalcSegmentFloatCurve_()
642 return pCurve->m_ConstantValue; in CalcSegmentFloatCurve_()
645 const ResFloatSegmentData* pSegment = GetFloatSegment_( pCurve, frame ); in CalcSegmentFloatCurve_()
658 CalcCompositeFloatCurve_( const ResCompositeFloatCurveData* pCurve, f32 frame ) in CalcCompositeFloatCurve_() argument
661 reinterpret_cast<const ResFloatCurveData*>( pCurve->toLeftCurve.to_ptr() ); in CalcCompositeFloatCurve_()
663 reinterpret_cast<const ResFloatCurveData*>( pCurve->toRightCurve.to_ptr() ); in CalcCompositeFloatCurve_()
676 CalcBoolCurveCV_( const ResBoolCurveData* pCurve, f32 frame ) in CalcBoolCurveCV_() argument
678 NW_ASSERT( pCurve->m_StartFrame <= frame && frame <= pCurve->m_EndFrame ); in CalcBoolCurveCV_()
680 float frameOffset = frame - pCurve->m_StartFrame; in CalcBoolCurveCV_()
683 if (frame == pCurve->m_EndFrame) in CalcBoolCurveCV_()
691 return ( (pCurve->cv.m_KeyValue[ index ] >> shift) & 0x1) != 0; in CalcBoolCurveCV_()
696 …CalcVector3CurveCV_( math::VEC3* result, bit32* flags, const ResVector3CurveData* pCurve, f32 fram… in CalcVector3CurveCV_() argument
700 const ResVector3CurveData::FrameValue& frameValue = pCurve->frames.m_KeyValue[index]; in CalcVector3CurveCV_()
711 f32 nextFrame = NormalizeFrame_( frame + 1.0f, pCurve ); in CalcVector3CurveCV_()
713 … const ResVector3CurveData::FrameValue& nextFrameValue = pCurve->frames.m_KeyValue[nextIndex]; in CalcVector3CurveCV_()
729 …CalcRotateCurveCV_( math::MTX34* result, bit32* flags, const ResVector4CurveData* pCurve, f32 fram… in CalcRotateCurveCV_() argument
733 const ResVector4CurveData::FrameValue& frameValue = pCurve->frames.m_KeyValue[index]; in CalcRotateCurveCV_()
751 f32 nextFrame = NormalizeFrame_( frame + 1.0f, pCurve ); in CalcRotateCurveCV_()
753 … const ResVector4CurveData::FrameValue& nextFrameValue = pCurve->frames.m_KeyValue[nextIndex]; in CalcRotateCurveCV_()
785 …ranslateCurveCV_( math::MTX34* result, bit32* flags, const ResVector3CurveData* pCurve, f32 frame ) in CalcTranslateCurveCV_() argument
789 const ResVector3CurveData::FrameValue& frameValue = pCurve->frames.m_KeyValue[index]; in CalcTranslateCurveCV_()
803 f32 nextFrame = NormalizeFrame_( frame + 1.0f, pCurve ); in CalcTranslateCurveCV_()
805 … const ResVector3CurveData::FrameValue& nextFrameValue = pCurve->frames.m_KeyValue[nextIndex]; in CalcTranslateCurveCV_()
825 CalcFloatCurve( const ResFloatCurveData* pCurve, f32 frame ) in CalcFloatCurve() argument
827 NW_NULL_ASSERT( pCurve ); in CalcFloatCurve()
829 frame = NormalizeFrame_( frame, pCurve ); in CalcFloatCurve()
831 if ( pCurve->m_Flags & ResFloatCurveData::FLAG_COMPOSITE_CURVE ) in CalcFloatCurve()
833 …n CalcCompositeFloatCurve_( reinterpret_cast<const ResCompositeFloatCurveData*>( pCurve ), frame ); in CalcFloatCurve()
837 …return CalcSegmentFloatCurve_( reinterpret_cast<const ResSegmentFloatCurveData*>( pCurve ), frame … in CalcFloatCurve()
843 CalcIntCurve( const ResIntCurveData* pCurve, f32 frame ) in CalcIntCurve() argument
845 NW_NULL_ASSERT( pCurve ); in CalcIntCurve()
846 NW_ASSERT(!(pCurve->m_Flags & ResIntCurveData::FLAG_BAKED)); in CalcIntCurve()
848 frame = NormalizeFrame_( frame, pCurve ); in CalcIntCurve()
850 if ( pCurve->m_Flags & ResIntCurveData::FLAG_CONSTANT ) in CalcIntCurve()
852 return pCurve->constantValue; in CalcIntCurve()
855 u32 quantizedType = (pCurve->m_Flags & ResIntCurveData::FLAG_QUANTIZATION_TYPE_MASK) >> in CalcIntCurve()
858 return s_CalcIntCurveFVTable[ quantizedType ]( &(pCurve->fv), frame ); in CalcIntCurve()
863 CalcBoolCurve( const ResBoolCurveData* pCurve, f32 frame ) in CalcBoolCurve() argument
865 NW_NULL_ASSERT( pCurve ); in CalcBoolCurve()
867 frame = NormalizeFrame_( frame, pCurve ); in CalcBoolCurve()
869 if ( pCurve->m_Flags & ResBoolCurveData::FLAG_CONSTANT ) in CalcBoolCurve()
871 return ((pCurve->m_Flags & ResBoolCurveData::FLAG_CONSTANT_VALUE) != 0); in CalcBoolCurve()
874 if ( pCurve->m_Flags & ResBoolCurveData::FLAG_BAKED ) in CalcBoolCurve()
876 return CalcBoolCurveCV_( pCurve, frame ); in CalcBoolCurve()
880 u32 quantizedType = (pCurve->m_Flags & ResBoolCurveData::FLAG_QUANTIZATION_TYPE_MASK) >> in CalcBoolCurve()
883 return (s_CalcIntCurveFVTable[ quantizedType ]( &(pCurve->fv), frame ) != 0); in CalcBoolCurve()
889 CalcVector3Curve( math::VEC3* result, bit32* flags, const ResVector3CurveData* pCurve, f32 frame ) in CalcVector3Curve() argument
891 NW_NULL_ASSERT( pCurve ); in CalcVector3Curve()
893 if ( pCurve->m_Flags & ResVector3CurveData::FLAG_CONSTANT ) in CalcVector3Curve()
896 frame = pCurve->m_StartFrame; in CalcVector3Curve()
900 frame = NormalizeFrame_( frame, pCurve ); in CalcVector3Curve()
904 CalcVector3CurveCV_( result, flags, pCurve, frame ); in CalcVector3Curve()
911 void CalcRotateCurve(math::MTX34* result, bit32* flags, const ResVector4CurveData* pCurve, f32 fram… in CalcRotateCurve() argument
913 NW_NULL_ASSERT( pCurve ); in CalcRotateCurve()
915 frame = NormalizeFrame_( frame, pCurve ); in CalcRotateCurve()
917 if ( pCurve->m_Flags & ResVector4CurveData::FLAG_CONSTANT ) in CalcRotateCurve()
920 frame = pCurve->m_StartFrame; in CalcRotateCurve()
924 CalcRotateCurveCV_( result, flags, pCurve, frame ); in CalcRotateCurve()
931 void CalcTranslateCurve(math::MTX34* result, bit32* flags, const ResVector3CurveData* pCurve, f32 f… in CalcTranslateCurve() argument
933 NW_NULL_ASSERT( pCurve ); in CalcTranslateCurve()
935 if ( pCurve->m_Flags & ResVector3CurveData::FLAG_CONSTANT ) in CalcTranslateCurve()
938 frame = pCurve->m_StartFrame; in CalcTranslateCurve()
942 frame = NormalizeFrame_( frame, pCurve ); in CalcTranslateCurve()
946 CalcTranslateCurveCV_( result, flags, pCurve, frame ); in CalcTranslateCurve()