![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#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. | |
| void * | operator new (size_t sz, M4MemHandler &memSys) |
| void | operator delete (void *ptr) |
Static Public Member Functions | |
| static M4MotionVectorMgr * | create (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. | |
|
inline |
Add predictor and input motion vector based on forward/backward code.
|
inline |
Add predicted motion vector to FORWARD prediction.
|
static |
Creation.
Static creation of class instance
| pDecoder | |
| memSys |
|
static |
Destruction.
Destruction of class instance
| pMgr | |
| memSys |
| void vdecmpeg4::M4MotionVectorMgr::init | ( | ) |
Init members for current frame.
Initialize requird M4MotionVectorMgr members
| void * vdecmpeg4::M4MotionVectorMgr::operator new | ( | size_t | sz, |
| M4MemHandler & | memSys | ||
| ) |
placement new
| sz | |
| memSys |
Add the residual to the prediction.
Do the actual motion vector prediction
| mb | |
| mbx | |
| mby |
Read motion vector residual from file.
Read the motion vector residual from the bitstream.
Just read the motion vector info from the bitstream
| mb |
|
static |
Zero motion vector.