Lines Matching refs:pCurve

259         static const KeyType*   GetKey( const ResIntCurveFVData* pCurve, uint keyIdx )  in GetKey()  argument
260 { return &(pCurve->fv64.m_KeyValue[ keyIdx ]); } in GetKey()
275 static const KeyType* GetKey( const ResIntCurveFVData* pCurve, uint keyIdx ) in GetKey() argument
276 { return &(pCurve->fv32.m_KeyValue[ keyIdx ]); } in GetKey()
295 static const KeyType* GetKey( const ResIntCurveFVData* pCurve, uint keyIdx ) in GetKey() argument
296 { return &(pCurve->fv16.m_KeyValue[ keyIdx ]); } in GetKey()
377 f32 NormalizeFrame_( f32 frame, const ResAnimCurveData* pCurve ) in NormalizeFrame_() argument
393 NW_ASSERT( pCurve->m_InRepeatMethod < ResAnimCurveData::METHOD_NUM ); in NormalizeFrame_()
394 NW_ASSERT( pCurve->m_OutRepeatMethod < ResAnimCurveData::METHOD_NUM ); in NormalizeFrame_()
396 if ( frame < pCurve->m_StartFrame ) in NormalizeFrame_()
398 …return preRepeatMethod[ pCurve->m_InRepeatMethod ]( frame, pCurve->m_StartFrame, pCurve->m_EndFram… in NormalizeFrame_()
403 if ( frame >= pCurve->m_EndFrame ) in NormalizeFrame_()
405 …return postRepeatMethod[ pCurve->m_OutRepeatMethod ]( frame, pCurve->m_StartFrame, pCurve->m_EndFr… in NormalizeFrame_()
482 GetFloatSegment_( const ResSegmentFloatCurveData* pCurve, f32 frame ) in GetFloatSegment_() argument
484 NW_NULL_ASSERT( pCurve ); in GetFloatSegment_()
485 NW_ASSERT( pCurve->m_StartFrame <= frame && frame <= pCurve->m_EndFrame ); in GetFloatSegment_()
488 if ( pCurve->m_Flags & ResSegmentFloatCurveData::FLAG_MONO_SEGMENT ) in GetFloatSegment_()
490 …return reinterpret_cast<const ResFloatSegmentData*>( pCurve->segmentsTable.toSegments[0].to_ptr() … in GetFloatSegment_()
493 s32 segmentCount = pCurve->segmentsTable.m_NumSegments; in GetFloatSegment_()
497 const ut::Offset* pOffsetTable = &(pCurve->segmentsTable.toSegments[0]); in GetFloatSegment_()
651 GetIntKeyFV_( const ResIntCurveFVData* pCurve, f32 frame ) in GetIntKeyFV_() argument
653 return GetKeyFV_<Traits, ResIntCurveFVData>( pCurve, frame ); in GetIntKeyFV_()
659 CalcIntCurveFV_( const ResIntCurveFVData* pCurve, f32 frame ) in CalcIntCurveFV_() argument
661 const typename Traits::KeyType* pKey = GetIntKeyFV_<Traits>( pCurve, frame ); in CalcIntCurveFV_()
663 return Traits::GetValue( pCurve, pKey ); in CalcIntCurveFV_()
666 typedef s32 (*CalcIntCurveFVFunc)( const ResIntCurveFVData* pCurve, f32 frame );
699 CalcSegmentFloatCurve_( const ResSegmentFloatCurveData* pCurve, f32 frame ) in CalcSegmentFloatCurve_() argument
701 NW_NULL_ASSERT( pCurve ); in CalcSegmentFloatCurve_()
702 NW_ASSERT( pCurve->m_StartFrame <= frame && frame <= pCurve->m_EndFrame ); in CalcSegmentFloatCurve_()
704 if ( pCurve->m_Flags & ResSegmentFloatCurveData::FLAG_CONSTANT ) in CalcSegmentFloatCurve_()
706 return pCurve->m_ConstantValue; in CalcSegmentFloatCurve_()
709 const ResFloatSegmentData* pSegment = GetFloatSegment_( pCurve, frame ); in CalcSegmentFloatCurve_()
722 CalcCompositeFloatCurve_( const ResCompositeFloatCurveData* pCurve, f32 frame ) in CalcCompositeFloatCurve_() argument
725 reinterpret_cast<const ResFloatCurveData*>( pCurve->toLeftCurve.to_ptr() ); in CalcCompositeFloatCurve_()
727 reinterpret_cast<const ResFloatCurveData*>( pCurve->toRightCurve.to_ptr() ); in CalcCompositeFloatCurve_()
740 CalcBoolCurveCV_( const ResBoolCurveData* pCurve, f32 frame ) in CalcBoolCurveCV_() argument
742 NW_ASSERT( pCurve->m_StartFrame <= frame && frame <= pCurve->m_EndFrame ); in CalcBoolCurveCV_()
744 float frameOffset = frame - pCurve->m_StartFrame; in CalcBoolCurveCV_()
747 if (frame == pCurve->m_EndFrame) in CalcBoolCurveCV_()
755 return ( (pCurve->cv.m_KeyValue[ index ] >> shift) & 0x1) != 0; in CalcBoolCurveCV_()
760 …CalcVector3CurveCV_( math::VEC3* result, bit32* flags, const ResVector3CurveData* pCurve, f32 fram… in CalcVector3CurveCV_() argument
764 const ResVector3CurveData::FrameValue& frameValue = pCurve->frames.m_KeyValue[index]; in CalcVector3CurveCV_()
772 else if ( frame == pCurve->m_EndFrame ) in CalcVector3CurveCV_()
780 … const ResVector3CurveData::FrameValue& lastFrameValue = pCurve->frames.m_KeyValue[lastIndex]; in CalcVector3CurveCV_()
787 f32 nextFrame = NormalizeFrame_( frame + 1.0f, pCurve ); in CalcVector3CurveCV_()
789 … const ResVector3CurveData::FrameValue& nextFrameValue = pCurve->frames.m_KeyValue[nextIndex]; in CalcVector3CurveCV_()
805 …CalcRotateCurveCV_( math::MTX34* result, bit32* flags, const ResVector4CurveData* pCurve, f32 fram… in CalcRotateCurveCV_() argument
809 const ResVector4CurveData::FrameValue& frameValue = pCurve->frames.m_KeyValue[index]; in CalcRotateCurveCV_()
824 else if ( frame == pCurve->m_EndFrame ) in CalcRotateCurveCV_()
832 … const ResVector4CurveData::FrameValue& lastFrameValue = pCurve->frames.m_KeyValue[lastIndex]; in CalcRotateCurveCV_()
840 f32 nextFrame = NormalizeFrame_( frame + 1.0f, pCurve ); in CalcRotateCurveCV_()
842 … const ResVector4CurveData::FrameValue& nextFrameValue = pCurve->frames.m_KeyValue[nextIndex]; in CalcRotateCurveCV_()
874 …ranslateCurveCV_( math::MTX34* result, bit32* flags, const ResVector3CurveData* pCurve, f32 frame ) in CalcTranslateCurveCV_() argument
878 const ResVector3CurveData::FrameValue& frameValue = pCurve->frames.m_KeyValue[index]; in CalcTranslateCurveCV_()
889 else if ( frame == pCurve->m_EndFrame ) in CalcTranslateCurveCV_()
897 … const ResVector3CurveData::FrameValue& lastFrameValue = pCurve->frames.m_KeyValue[lastIndex]; in CalcTranslateCurveCV_()
906 f32 nextFrame = NormalizeFrame_( frame + 1.0f, pCurve ); in CalcTranslateCurveCV_()
908 … const ResVector3CurveData::FrameValue& nextFrameValue = pCurve->frames.m_KeyValue[nextIndex]; in CalcTranslateCurveCV_()
928 CalcFloatCurve( const ResFloatCurveData* pCurve, f32 frame ) in CalcFloatCurve() argument
930 NW_NULL_ASSERT( pCurve ); in CalcFloatCurve()
932 frame = NormalizeFrame_( frame, pCurve ); in CalcFloatCurve()
934 if ( pCurve->m_Flags & ResFloatCurveData::FLAG_COMPOSITE_CURVE ) in CalcFloatCurve()
936 …n CalcCompositeFloatCurve_( reinterpret_cast<const ResCompositeFloatCurveData*>( pCurve ), frame ); in CalcFloatCurve()
940 …return CalcSegmentFloatCurve_( reinterpret_cast<const ResSegmentFloatCurveData*>( pCurve ), frame … in CalcFloatCurve()
946 CalcIntCurve( const ResIntCurveData* pCurve, f32 frame ) in CalcIntCurve() argument
948 NW_NULL_ASSERT( pCurve ); in CalcIntCurve()
949 NW_ASSERT(!(pCurve->m_Flags & ResIntCurveData::FLAG_BAKED)); in CalcIntCurve()
951 frame = NormalizeFrame_( frame, pCurve ); in CalcIntCurve()
953 if ( pCurve->m_Flags & ResIntCurveData::FLAG_CONSTANT ) in CalcIntCurve()
955 return pCurve->constantValue; in CalcIntCurve()
958 u32 quantizedType = (pCurve->m_Flags & ResIntCurveData::FLAG_QUANTIZATION_TYPE_MASK) >> in CalcIntCurve()
961 return s_CalcIntCurveFVTable[ quantizedType ]( &(pCurve->fv), frame ); in CalcIntCurve()
966 CalcBoolCurve( const ResBoolCurveData* pCurve, f32 frame ) in CalcBoolCurve() argument
968 NW_NULL_ASSERT( pCurve ); in CalcBoolCurve()
970 frame = NormalizeFrame_( frame, pCurve ); in CalcBoolCurve()
972 if ( pCurve->m_Flags & ResBoolCurveData::FLAG_CONSTANT ) in CalcBoolCurve()
974 return ((pCurve->m_Flags & ResBoolCurveData::FLAG_CONSTANT_VALUE) != 0); in CalcBoolCurve()
977 if ( pCurve->m_Flags & ResBoolCurveData::FLAG_BAKED ) in CalcBoolCurve()
979 return CalcBoolCurveCV_( pCurve, frame ); in CalcBoolCurve()
983 u32 quantizedType = (pCurve->m_Flags & ResBoolCurveData::FLAG_QUANTIZATION_TYPE_MASK) >> in CalcBoolCurve()
986 return (s_CalcIntCurveFVTable[ quantizedType ]( &(pCurve->fv), frame ) != 0); in CalcBoolCurve()
992 CalcVector3Curve( math::VEC3* result, bit32* flags, const ResVector3CurveData* pCurve, f32 frame ) in CalcVector3Curve() argument
994 NW_NULL_ASSERT( pCurve ); in CalcVector3Curve()
996 if ( pCurve->m_Flags & ResVector3CurveData::FLAG_CONSTANT ) in CalcVector3Curve()
999 frame = pCurve->m_StartFrame; in CalcVector3Curve()
1003 frame = NormalizeFrame_( frame, pCurve ); in CalcVector3Curve()
1007 CalcVector3CurveCV_( result, flags, pCurve, frame ); in CalcVector3Curve()
1014 void CalcRotateCurve(math::MTX34* result, bit32* flags, const ResVector4CurveData* pCurve, f32 fram… in CalcRotateCurve() argument
1016 NW_NULL_ASSERT( pCurve ); in CalcRotateCurve()
1018 frame = NormalizeFrame_( frame, pCurve ); in CalcRotateCurve()
1020 if ( pCurve->m_Flags & ResVector4CurveData::FLAG_CONSTANT ) in CalcRotateCurve()
1023 frame = pCurve->m_StartFrame; in CalcRotateCurve()
1027 CalcRotateCurveCV_( result, flags, pCurve, frame ); in CalcRotateCurve()
1034 void CalcTranslateCurve(math::MTX34* result, bit32* flags, const ResVector3CurveData* pCurve, f32 f… in CalcTranslateCurve() argument
1036 NW_NULL_ASSERT( pCurve ); in CalcTranslateCurve()
1038 if ( pCurve->m_Flags & ResVector3CurveData::FLAG_CONSTANT ) in CalcTranslateCurve()
1041 frame = pCurve->m_StartFrame; in CalcTranslateCurve()
1045 frame = NormalizeFrame_( frame, pCurve ); in CalcTranslateCurve()
1049 CalcTranslateCurveCV_( result, flags, pCurve, frame ); in CalcTranslateCurve()
1054 CalcTransformCurve( math::MTX34* result, const ResFullBakedCurveData* pCurve, f32 frame ) in CalcTransformCurve() argument
1056 NW_NULL_ASSERT( pCurve ); in CalcTransformCurve()
1058 frame = NormalizeFrame_( frame, pCurve ); in CalcTransformCurve()
1062 if (frame == pCurve->m_EndFrame) in CalcTransformCurve()
1070 static_cast<const math::MTX34*>(&pCurve->frames.m_KeyValue[index]) ); in CalcTransformCurve()