util-tracking-instability

Generate the instability value for a given scanline - used to emulate the horizontal jitter (instability) of a picture due to less-than-ideal signal quality.

Functions

CalculateTrackingInstabilityOffset
                float CalculateTrackingInstabilityOffset(
                  uint scanlineIndex, 
                  uint noiseSeed, 
                  float scale, 
                  uint signalTextureWidth)
              
Description

Generate the instability value for a given scanline.

Called by gen-phase and rgb-to-svideo-or-composite.

Parameters
scanlineIndex

Type: uint

The (0-based) index of the scanline to get the tracking instability offset from.

noiseSeed

Type: uint

A seed value for noise generation, used to allow time-varying noise.

scale

Type: float

The scale of the tracking instability.

signalTextureWidth

Type: uint

The width of the signal texture, in texels.

Return Value
Type: float

A noise value in the range [0..1).