Navigation
API > API/Plugins > API/Plugins/LinearTimecode
References
| Module | LinearTimecode |
| Header | /Engine/Plugins/Media/LinearTimecode/Source/LinearTimecode/Public/LinearTimecodeDecoder.h |
| Include | #include "LinearTimecodeDecoder.h" |
Syntax
class FLinearTimecodeDecoder
Remarks
Process audio samples to extract Linear Timecode Signal
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bCurrent | Helper to detect zero crossings/edges of the input signal. | |
| bool | bFlip | Indicates that we're expecting the second half of a logical 1. | |
| float | Center | Sample value to detect zero crossings/edges of the input signal. | |
| int32 | Clock | Counts number of samples since last edge. | |
| int32 | Cycles | Estimates number of samples for a logical 1 in the LTC stream. | |
| int32 | FrameMax | Keeps track of largest frame value received, helps estimate FrameRate. | |
| int32 | FrameRate | Tries to infer FrameRate based on frame value rollovers. | |
| int32 | MaxSamplesPerEdge | Maximum allowable samples per edge in the signal. Helps filter out noise. | |
| int32 | MinSamplesPerEdge | Minimum allowable samples per edge in the signal. Helps filter out noise. | |
| uint16[6] | TimecodeBits | Holds the stream to be decoded as bits come in. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
| Public interface, methods |
Functions
| Type | Name | Description | |
|---|---|---|---|
| int32 | AdjustCycles
(
int32 InClock |
Tries to calculate the number of clocks per bit. | |
| void | DecodeBitStream
(
uint16* InBitStream, |
||
| bool | DecodeFrame
(
uint16* InBitStream, |
||
| bool | HasCompleteFrame
(
uint16* InBitStream |
||
| void | Reset () |
Flush internal state of timecode reader | |
| bool | Sample
(
float InSample, |
Analyze a single sample, looking for a time code pattern | |
| void | ShiftAndInsert
(
uint16* InBitStream, |
Add bit to decoded stream. |
Classes
| Type | Name | Description | |
|---|---|---|---|
| EDecodePattern | Used to extract timecode from bit stream |
Constants
| Name | Description |
|---|---|
| BackwardPattern | |
| ForwardPattern |