Lines Matching refs:pCurve

243         static const KeyType*   GetKey( const ResIntCurveFVData* pCurve, uint keyIdx )  in GetKey()  argument
244 { return &(pCurve->fv64.m_KeyValue[ keyIdx ]); } in GetKey()
259 static const KeyType* GetKey( const ResIntCurveFVData* pCurve, uint keyIdx ) in GetKey() argument
260 { return &(pCurve->fv32.m_KeyValue[ keyIdx ]); } in GetKey()
279 static const KeyType* GetKey( const ResIntCurveFVData* pCurve, uint keyIdx ) in GetKey() argument
280 { return &(pCurve->fv16.m_KeyValue[ keyIdx ]); } in GetKey()
361 f32 NormalizeFrame_( f32 frame, const ResAnimCurveData* pCurve ) in NormalizeFrame_() argument
377 NW_ASSERT( pCurve->m_InRepeatMethod < ResAnimCurveData::METHOD_NUM ); in NormalizeFrame_()
378 NW_ASSERT( pCurve->m_OutRepeatMethod < ResAnimCurveData::METHOD_NUM ); in NormalizeFrame_()
380 if ( frame < pCurve->m_StartFrame ) in NormalizeFrame_()
382 …return preRepeatMethod[ pCurve->m_InRepeatMethod ]( frame, pCurve->m_StartFrame, pCurve->m_EndFram… in NormalizeFrame_()
387 if ( frame >= pCurve->m_EndFrame ) in NormalizeFrame_()
389 …return postRepeatMethod[ pCurve->m_OutRepeatMethod ]( frame, pCurve->m_StartFrame, pCurve->m_EndFr… in NormalizeFrame_()
464 GetFloatSegment_( const ResSegmentFloatCurveData* pCurve, f32 frame ) in GetFloatSegment_() argument
466 NW_NULL_ASSERT( pCurve ); in GetFloatSegment_()
467 NW_ASSERT( pCurve->m_StartFrame <= frame && frame <= pCurve->m_EndFrame ); in GetFloatSegment_()
470 if ( pCurve->m_Flags & ResSegmentFloatCurveData::FLAG_MONO_SEGMENT ) in GetFloatSegment_()
472 …return reinterpret_cast<const ResFloatSegmentData*>( pCurve->segmentsTable.toSegments[0].to_ptr() … in GetFloatSegment_()
475 s32 segmentCount = pCurve->segmentsTable.m_NumSegments; in GetFloatSegment_()
479 const ut::Offset* pOffsetTable = &(pCurve->segmentsTable.toSegments[0]); in GetFloatSegment_()
625 GetIntKeyFV_( const ResIntCurveFVData* pCurve, f32 frame ) in GetIntKeyFV_() argument
627 return GetKeyFV_<Traits, ResIntCurveFVData>( pCurve, frame ); in GetIntKeyFV_()
633 CalcIntCurveFV_( const ResIntCurveFVData* pCurve, f32 frame ) in CalcIntCurveFV_() argument
635 const typename Traits::KeyType* pKey = GetIntKeyFV_<Traits>( pCurve, frame ); in CalcIntCurveFV_()
637 return Traits::GetValue( pCurve, pKey ); in CalcIntCurveFV_()
640 typedef s32 (*CalcIntCurveFVFunc)( const ResIntCurveFVData* pCurve, f32 frame );
673 CalcSegmentFloatCurve_( const ResSegmentFloatCurveData* pCurve, f32 frame ) in CalcSegmentFloatCurve_() argument
675 NW_NULL_ASSERT( pCurve ); in CalcSegmentFloatCurve_()
676 NW_ASSERT( pCurve->m_StartFrame <= frame && frame <= pCurve->m_EndFrame ); in CalcSegmentFloatCurve_()
678 if ( pCurve->m_Flags & ResSegmentFloatCurveData::FLAG_CONSTANT ) in CalcSegmentFloatCurve_()
680 return pCurve->m_ConstantValue; in CalcSegmentFloatCurve_()
683 const ResFloatSegmentData* pSegment = GetFloatSegment_( pCurve, frame ); in CalcSegmentFloatCurve_()
696 CalcCompositeFloatCurve_( const ResCompositeFloatCurveData* pCurve, f32 frame ) in CalcCompositeFloatCurve_() argument
699 reinterpret_cast<const ResFloatCurveData*>( pCurve->toLeftCurve.to_ptr() ); in CalcCompositeFloatCurve_()
701 reinterpret_cast<const ResFloatCurveData*>( pCurve->toRightCurve.to_ptr() ); in CalcCompositeFloatCurve_()
714 CalcBoolCurveCV_( const ResBoolCurveData* pCurve, f32 frame ) in CalcBoolCurveCV_() argument
716 NW_ASSERT( pCurve->m_StartFrame <= frame && frame <= pCurve->m_EndFrame ); in CalcBoolCurveCV_()
718 float frameOffset = frame - pCurve->m_StartFrame; in CalcBoolCurveCV_()
721 if (frame == pCurve->m_EndFrame) in CalcBoolCurveCV_()
729 return ( (pCurve->cv.m_KeyValue[ index ] >> shift) & 0x1) != 0; in CalcBoolCurveCV_()
734 …CalcVector3CurveCV_( math::VEC3* result, bit32* flags, const ResVector3CurveData* pCurve, f32 fram… in CalcVector3CurveCV_() argument
738 const ResVector3CurveData::FrameValue& frameValue = pCurve->frames.m_KeyValue[index]; in CalcVector3CurveCV_()
749 f32 nextFrame = NormalizeFrame_( frame + 1.0f, pCurve ); in CalcVector3CurveCV_()
751 … const ResVector3CurveData::FrameValue& nextFrameValue = pCurve->frames.m_KeyValue[nextIndex]; in CalcVector3CurveCV_()
767 …CalcRotateCurveCV_( math::MTX34* result, bit32* flags, const ResVector4CurveData* pCurve, f32 fram… in CalcRotateCurveCV_() argument
771 const ResVector4CurveData::FrameValue& frameValue = pCurve->frames.m_KeyValue[index]; in CalcRotateCurveCV_()
789 f32 nextFrame = NormalizeFrame_( frame + 1.0f, pCurve ); in CalcRotateCurveCV_()
791 … const ResVector4CurveData::FrameValue& nextFrameValue = pCurve->frames.m_KeyValue[nextIndex]; in CalcRotateCurveCV_()
823 …ranslateCurveCV_( math::MTX34* result, bit32* flags, const ResVector3CurveData* pCurve, f32 frame ) in CalcTranslateCurveCV_() argument
827 const ResVector3CurveData::FrameValue& frameValue = pCurve->frames.m_KeyValue[index]; in CalcTranslateCurveCV_()
841 f32 nextFrame = NormalizeFrame_( frame + 1.0f, pCurve ); in CalcTranslateCurveCV_()
843 … const ResVector3CurveData::FrameValue& nextFrameValue = pCurve->frames.m_KeyValue[nextIndex]; in CalcTranslateCurveCV_()
863 CalcFloatCurve( const ResFloatCurveData* pCurve, f32 frame ) in CalcFloatCurve() argument
865 NW_NULL_ASSERT( pCurve ); in CalcFloatCurve()
867 frame = NormalizeFrame_( frame, pCurve ); in CalcFloatCurve()
869 if ( pCurve->m_Flags & ResFloatCurveData::FLAG_COMPOSITE_CURVE ) in CalcFloatCurve()
871 …n CalcCompositeFloatCurve_( reinterpret_cast<const ResCompositeFloatCurveData*>( pCurve ), frame ); in CalcFloatCurve()
875 …return CalcSegmentFloatCurve_( reinterpret_cast<const ResSegmentFloatCurveData*>( pCurve ), frame … in CalcFloatCurve()
881 CalcIntCurve( const ResIntCurveData* pCurve, f32 frame ) in CalcIntCurve() argument
883 NW_NULL_ASSERT( pCurve ); in CalcIntCurve()
884 NW_ASSERT(!(pCurve->m_Flags & ResIntCurveData::FLAG_BAKED)); in CalcIntCurve()
886 frame = NormalizeFrame_( frame, pCurve ); in CalcIntCurve()
888 if ( pCurve->m_Flags & ResIntCurveData::FLAG_CONSTANT ) in CalcIntCurve()
890 return pCurve->constantValue; in CalcIntCurve()
893 u32 quantizedType = (pCurve->m_Flags & ResIntCurveData::FLAG_QUANTIZATION_TYPE_MASK) >> in CalcIntCurve()
896 return s_CalcIntCurveFVTable[ quantizedType ]( &(pCurve->fv), frame ); in CalcIntCurve()
901 CalcBoolCurve( const ResBoolCurveData* pCurve, f32 frame ) in CalcBoolCurve() argument
903 NW_NULL_ASSERT( pCurve ); in CalcBoolCurve()
905 frame = NormalizeFrame_( frame, pCurve ); in CalcBoolCurve()
907 if ( pCurve->m_Flags & ResBoolCurveData::FLAG_CONSTANT ) in CalcBoolCurve()
909 return ((pCurve->m_Flags & ResBoolCurveData::FLAG_CONSTANT_VALUE) != 0); in CalcBoolCurve()
912 if ( pCurve->m_Flags & ResBoolCurveData::FLAG_BAKED ) in CalcBoolCurve()
914 return CalcBoolCurveCV_( pCurve, frame ); in CalcBoolCurve()
918 u32 quantizedType = (pCurve->m_Flags & ResBoolCurveData::FLAG_QUANTIZATION_TYPE_MASK) >> in CalcBoolCurve()
921 return (s_CalcIntCurveFVTable[ quantizedType ]( &(pCurve->fv), frame ) != 0); in CalcBoolCurve()
927 CalcVector3Curve( math::VEC3* result, bit32* flags, const ResVector3CurveData* pCurve, f32 frame ) in CalcVector3Curve() argument
929 NW_NULL_ASSERT( pCurve ); in CalcVector3Curve()
931 if ( pCurve->m_Flags & ResVector3CurveData::FLAG_CONSTANT ) in CalcVector3Curve()
934 frame = pCurve->m_StartFrame; in CalcVector3Curve()
938 frame = NormalizeFrame_( frame, pCurve ); in CalcVector3Curve()
942 CalcVector3CurveCV_( result, flags, pCurve, frame ); in CalcVector3Curve()
949 void CalcRotateCurve(math::MTX34* result, bit32* flags, const ResVector4CurveData* pCurve, f32 fram… in CalcRotateCurve() argument
951 NW_NULL_ASSERT( pCurve ); in CalcRotateCurve()
953 frame = NormalizeFrame_( frame, pCurve ); in CalcRotateCurve()
955 if ( pCurve->m_Flags & ResVector4CurveData::FLAG_CONSTANT ) in CalcRotateCurve()
958 frame = pCurve->m_StartFrame; in CalcRotateCurve()
962 CalcRotateCurveCV_( result, flags, pCurve, frame ); in CalcRotateCurve()
969 void CalcTranslateCurve(math::MTX34* result, bit32* flags, const ResVector3CurveData* pCurve, f32 f… in CalcTranslateCurve() argument
971 NW_NULL_ASSERT( pCurve ); in CalcTranslateCurve()
973 if ( pCurve->m_Flags & ResVector3CurveData::FLAG_CONSTANT ) in CalcTranslateCurve()
976 frame = pCurve->m_StartFrame; in CalcTranslateCurve()
980 frame = NormalizeFrame_( frame, pCurve ); in CalcTranslateCurve()
984 CalcTranslateCurveCV_( result, flags, pCurve, frame ); in CalcTranslateCurve()
989 CalcTransformCurve( math::MTX34* result, const ResFullBakedCurveData* pCurve, f32 frame ) in CalcTransformCurve() argument
991 NW_NULL_ASSERT( pCurve ); in CalcTransformCurve()
993 frame = NormalizeFrame_( frame, pCurve ); in CalcTransformCurve()
998 static_cast<const math::MTX34*>(&pCurve->frames.m_KeyValue[index]) ); in CalcTransformCurve()