FSortedKeyHeader

Structure that represents a sorted key header.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/AnimEncoding.h

Include

#include "AnimEncoding.h"

Syntax

struct FSortedKeyHeader

Remarks

Structure that represents a sorted key header.

Our time delta can be positive or negative. To make packing easier, we offset it in order to always make it positive A small header has 5 bits to store the time delta. 5 bits == 0x1F == 31 == [0 .. 31] A large header has 5 + 8 = 13 bits to store the time delta. 13 bits == 0x1FFF == 8191 == [0 .. 8191] A small header has an offset of 16. e.g.: -5 + 16 = 11 15 + 16 = 31 -16 + 16 = 0 A small header this has a signed range of [-16 .. 15] and maps to [0 .. 31] A large header has an offset of 4096. The signed range is [-4096 .. 4095] and maps to [0 ... 8191]

Variables

Name Description

Public variable

uint8[2]

 

PackedData

Public variable

uint16

 

TrackIndex

Constructors

Name Description

Public function

FSortedKeyHeader()

Public function

FSortedKeyHeader

(
    const uint8* InData
)

Public function

FSortedKeyHeader

(
    uint16 InTrackIndex,
    uint8 KeyType,
    int32 TimeDelta
)

Functions

Name Description

Public function Const

constexpr uint8

 

GetKeyType()

Public function Const

constexpr uint8

 

GetSize()

Public function Const

int32

 

GetTimeDelta()

Public function Const

constexpr bool

 

IsEndOfStream()

Public function Const

constexpr bool

 

IsLargeHeader()

Constants

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback