UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
vdecmpeg4::M4MotionVectorMgr Class Reference

#include <M4MotionVectorMgr.h>

Public Member Functions

void init ()
 Init members for current frame.
 
void readMvForward (M4_MB *mb)
 Read the motion vector residual from the bitstream.
 
void predictAddForward (M4_MB *mb, int32 mbx, int32 mby)
 Add the residual to the prediction.
 
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.
 
void addMvForward (M4_VECTOR &res, const M4_VECTOR &inputMv, const M4_VECTOR &predictor)
 Add predicted motion vector to FORWARD prediction.
 
void readMv (M4_VECTOR &res, uint16 code)
 Read motion vector residual from file.
 
voidoperator new (size_t sz, M4MemHandler &memSys)
 
void operator delete (void *ptr)
 

Static Public Member Functions

static M4MotionVectorMgrcreate (M4Decoder *pDecoder, M4MemHandler &memSys)
 Creation.
 
static void destroy (M4MotionVectorMgr *&pMgr, M4MemHandler &memSys)
 Destruction.
 

Static Public Attributes

static const M4_VECTOR MV_ZERO = { 0, 0 }
 Zero motion vector.
 

Member Function Documentation

◆ addMv()

void vdecmpeg4::M4MotionVectorMgr::addMv ( M4_VECTOR res,
uint16  code,
const M4_VECTOR inputMv,
const M4_VECTOR predictor 
)
inline

Add predictor and input motion vector based on forward/backward code.

◆ addMvForward()

void vdecmpeg4::M4MotionVectorMgr::addMvForward ( M4_VECTOR res,
const M4_VECTOR inputMv,
const M4_VECTOR predictor 
)
inline

Add predicted motion vector to FORWARD prediction.

◆ create()

M4MotionVectorMgr * vdecmpeg4::M4MotionVectorMgr::create ( M4Decoder pDecoder,
M4MemHandler memSys 
)
static

Creation.

Static creation of class instance

Parameters
pDecoder
memSys
Returns

◆ destroy()

void vdecmpeg4::M4MotionVectorMgr::destroy ( M4MotionVectorMgr *&  pMgr,
M4MemHandler memSys 
)
static

Destruction.

Destruction of class instance

Parameters
pMgr
memSys

◆ init()

void vdecmpeg4::M4MotionVectorMgr::init ( )

Init members for current frame.

Initialize requird M4MotionVectorMgr members

◆ operator delete()

void vdecmpeg4::M4MotionVectorMgr::operator delete ( void ptr)

placement delete

Parameters
ptr

◆ operator new()

void * vdecmpeg4::M4MotionVectorMgr::operator new ( size_t  sz,
M4MemHandler memSys 
)

placement new

Parameters
sz
memSys
Returns

◆ predictAddForward()

void vdecmpeg4::M4MotionVectorMgr::predictAddForward ( M4_MB mb,
int32  mbx,
int32  mby 
)

Add the residual to the prediction.

Do the actual motion vector prediction

Parameters
mb
mbx
mby

◆ readMv()

void vdecmpeg4::M4MotionVectorMgr::readMv ( M4_VECTOR res,
uint16  code 
)
inline

Read motion vector residual from file.

◆ readMvForward()

void vdecmpeg4::M4MotionVectorMgr::readMvForward ( M4_MB mb)

Read the motion vector residual from the bitstream.

Just read the motion vector info from the bitstream

Parameters
mb

Member Data Documentation

◆ MV_ZERO

const M4_VECTOR vdecmpeg4::M4MotionVectorMgr::MV_ZERO = { 0, 0 }
static

Zero motion vector.


The documentation for this class was generated from the following files: