![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
Classes | |
| struct | CLIPinitializer |
| struct | M4_MB |
| struct | M4_VECTOR |
| Motion vector. More... | |
| class | M4Bitstream |
| class | M4BitstreamCache |
| struct | M4BitstreamCacheEntry |
| Information per macroblock filled-in by the bitstream parser. More... | |
| struct | M4BitstreamHeaderInfo |
| class | M4BitstreamParser |
| struct | M4BlockVlcCodeTab |
| helper struct for passing some C++ tables to the ASM routines. Must be initialized only once. More... | |
| class | M4Decoder |
| class | M4Image |
| class | M4MemHandler |
| class | M4MotionVectorMgr |
| class | M4VlcDecoder |
| class | M4XCmdSingleThread |
| class | MemOpOffsets |
| struct | VIDDecoderSetup |
| struct | VIDImage |
| struct | VIDImageInfo |
| Statistical information about decoded frame. This struct is returned via a call to VIDGetFrameInfo. More... | |
| struct | VIDImageMacroblockInfo |
| Statistical information about the possible mpeg block from which this frame is made. More... | |
| class | VIDStreamEvents |
| class | VIDStreamIO |
| struct | VIDYUVTexture |
Typedefs | |
| typedef uint32 | M4_VLC |
| Definition of VLC data types. | |
| typedef int32 | VIDError |
| Generic error type. | |
| typedef void *(* | VIDAllocator) (uint32 size, uint32 alignment) |
| typedef void(* | VIDReporting) (const char *pMessage) |
| typedef void(* | VIDDeallocator) (void *block) |
| memory release callback | |
| typedef void * | VIDDecoder |
| Opaque type of decoder to outside world. See VIDCreateDecoder to create a decoder. | |
Definition of VLC data types.
Memory allocation callback.
This is used for all internal decoder memory allocations. Allocations are freed via VIDDeallocator.
| size | Number of bytes to allocate |
| alignment | Alignment to use for this allocation |
memory release callback
Memory release/free callback.
All allocations via VIDAllocator are freed here.
| block | Pointer to memory block to free |
Opaque type of decoder to outside world. See VIDCreateDecoder to create a decoder.
Generic error type.
Message reporting callback
| pMessage | preformatted message |
Possible decoder initialization flags used in VIDDecoderSetup::flags.
| Enumerator | |
|---|---|
| VID_DECODER_VID_BUFFERS | Allocate indicated number of vid buffers - min 3. |
| VID_DECODER_DEFAULT | |
Possible frame types returned via VIDImageInfo.
Possible return values for VIDGetFrameType() function.
| void vdecmpeg4::M4InvQuantType0Intra | ( | int16 * | output, |
| const int16 * | input, | ||
| uint8 | quantiserScale, | ||
| uint16 | DCScaler | ||
| ) |
| void vdecmpeg4::M4InvQuantType1Inter | ( | int16 * | output, |
| const int16 * | input, | ||
| uint8 | quantiserScale, | ||
| const uint8 * | dequantMtx | ||
| ) |
| void vdecmpeg4::M4InvQuantType1Intra | ( | int16 * | output, |
| const int16 * | input, | ||
| uint8 | quantiserScale, | ||
| uint16 | DCScaler, | ||
| const uint8 * | dequantMtx | ||
| ) |
| void vdecmpeg4::M4MemHalfPelInterpolate | ( | void * | dst, |
| void * | src, | ||
| int32 | stride, | ||
| int32 | xpos, | ||
| int32 | ypos, | ||
| void * | mv, | ||
| uint32 | rounding, | ||
| bool | b4x4 = false |
||
| ) |
| void vdecmpeg4::M4PredictionAdd | ( | M4_MB * | mb, |
| int16 * | dctBlock, | ||
| uint32 | block, | ||
| uint16 | iDcScaler, | ||
| const int16 * | pPrediction | ||
| ) |
Add prediction to residual
| mb | |
| dctBlock | |
| block | |
| iDcScaler | |
| pPrediction |
| void vdecmpeg4::M4PredictionInit | ( | M4_MB * | macroblocks, |
| int32 | mbx, | ||
| int32 | mby, | ||
| int32 | pMBWidth, | ||
| uint32 | block, | ||
| uint8 | currentQuant, | ||
| uint16 | iDcScaler, | ||
| int16 * | pPredictionOut | ||
| ) |
Perform ACDC prediction
| macroblocks | macroblock array |
| mbx | macroblock x |
| mby | macroblock y |
| pMBWidth | stride for macroblocks |
| block | current yuv subblock (0..5) |
| currentQuant | |
| iDcScaler | |
| pPredictionOut |
| VIDError vdecmpeg4::VIDCreateDecoder | ( | const VIDDecoderSetup * | setup, |
| VIDDecoder * | pNewDecoder | ||
| ) |
Create new decoder instance based on setup parameters
| setup | |
| pNewDecoder |
Create decoder
Used to create and initialize the decoder instance. All memory allocations happen inside this method and the amount of required memory is determined by inspecting the values inside the ::VIDDecoderSetup.
| [in] | setup | pointer to ::VIDDecoderSetup. Can be deleted after this method returns. |
| [out] | pNewDecoder | pointer to VIDDecoder variable which get. |
| void vdecmpeg4::VIDDebugVideoOutToBMP | ( | VIDDecoder | dec, |
| const char * | pBaseName | ||
| ) |
Enable bmp output of decoded frames
| dec | |
| pBaseName |
Automatic output of decoded images to disk.
If available (see note below), this function activates the automatic output of the decoded images as BMP files to disk. The supplied base name is prepended to the generated file name.
| [in] | decoder | handle to decoder. |
| [in] | pBaseName | ptr to filename base to prepend to images. |
| void vdecmpeg4::VIDDestroyDecoder | ( | VIDDecoder | dec | ) |
Destroy decoder instance
| dec |
Destroy decoder
Used to destroy the decoder instance and free all the memory
| [in] | decoder | handle to decoder. |
| const VIDImageInfo * vdecmpeg4::VIDGetFrameInfo | ( | const VIDImage * | _pImage | ) |
Return frame info
| _pImage |
Extract image information from frame.
Some additional paramters about the decoded frame are stored in the ::VIDImageInfo struct which can be extracted from a decoder returned ::VIDImage result by calling this function.
| [in] | pImage | pointer to decoder created image. |
| VIDError vdecmpeg4::VIDStreamDecode | ( | VIDDecoder | decoder, |
| float | time, | ||
| const VIDImage ** | result | ||
| ) |
Handle stream processing
| decoder | |
| time | |
| result |
Perform decoding of stream
This initiates the processing of all stream. TODO: Check: Callbacks?
| [in] | decoder | handle to decoder. |
| [in] | time | TODO: deltaTime or |
| VIDError vdecmpeg4::VIDStreamEventsSet | ( | VIDDecoder | decoder, |
| VIDStreamEvents * | pEvents | ||
| ) |
Set event sink explicitely
| decoder | |
| pEvents |
Set stream event interface explicitly
| [in] | decoder | handle to decoder. |
| [in] | pEvents | which event sink to use |
| VIDError vdecmpeg4::VIDStreamSeekNotify | ( | VIDDecoder | decoder | ) |
Handle seek notify
| decoder |
Inform decoder about seeking
| [in] | decoder | handle to decoder. |
| VIDError vdecmpeg4::VIDStreamSet | ( | VIDDecoder | decoder, |
| VIDStreamIO * | pStream, | ||
| VIDStreamEvents * | pEvents | ||
| ) |
Attach a stream to the decoder
| decoder | |
| pStream | |
| pEvents |
Set current stream for playback
The stream is 'attached' to the decoder and processing happens in the VIDStreamDecode function.
| [in] | decoder | handle to decoder. |
| [in] | pStream | ptr to stream to play. |