48 else if (
res.x > high)
57 else if (
res.y > high)
71 if (
res.x < mMvClipLow)
73 res.x += mMvClipRange;
75 else if (
res.x > mMvClipHigh)
77 res.x -= mMvClipRange;
80 if (
res.y < mMvClipLow)
82 res.y += mMvClipRange;
84 else if (
res.y > mMvClipHigh)
86 res.y -= mMvClipRange;
94 res.x = mDecoder->mBitstreamParser.
getMv(code);
95 res.y = mDecoder->mBitstreamParser.
getMv(code);
102 void operator delete(
void* ptr);
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define M4_MEMORY_HANDLER
Definition M4Memory.h:14
int32 getMv(const uint16 code)
Definition M4BitstreamParser.h:261
Definition M4Decoder.h:30
Definition M4MotionVectorMgr.h:14
void addMvForward(M4_VECTOR &res, const M4_VECTOR &inputMv, const M4_VECTOR &predictor)
Add predicted motion vector to FORWARD prediction.
Definition M4MotionVectorMgr.h:64
static void destroy(M4MotionVectorMgr *&pMgr, M4MemHandler &memSys)
Destruction.
Definition M4MotionVectorMgr.cpp:65
void init()
Init members for current frame.
Definition M4MotionVectorMgr.cpp:92
static const M4_VECTOR MV_ZERO
Zero motion vector.
Definition M4MotionVectorMgr.h:99
void readMvForward(M4_MB *mb)
Read the motion vector residual from the bitstream.
Definition M4MotionVectorMgr.cpp:108
void addMv(M4_VECTOR &res, uint16 code, const M4_VECTOR &inputMv, const M4_VECTOR &predictor)
Add predictor and input motion vector based on forward/backward code.
Definition M4MotionVectorMgr.h:34
void readMv(M4_VECTOR &res, uint16 code)
Read motion vector residual from file.
Definition M4MotionVectorMgr.h:91
void predictAddForward(M4_MB *mb, int32 mbx, int32 mby)
Add the residual to the prediction.
Definition M4MotionVectorMgr.cpp:141
static M4MotionVectorMgr * create(M4Decoder *pDecoder, M4MemHandler &memSys)
Creation.
Definition M4MotionVectorMgr.cpp:52
Definition M4Bitstream.h:9
void M4MotionVectorClear(M4_MB *mb)
GENERIC: Set all motion vectors to 0.
Definition M4MotionVectorMgr.h:138
static UE_FORCEINLINE_HINT void * Memzero(void *Dest, SIZE_T Count)
Definition UnrealMemory.h:131
Motion vector.
Definition M4Global.h:71