MatroskaExtractor.Track


protected final class MatroskaExtractor.Track


Holds data corresponding to a single track.

Summary

Protected constructors

Public methods

void
@RequiresNonNull(value = "codecId")
@EnsuresNonNull(value = "this.output")
initializeOutput(ExtractorOutput output, int trackId)

Initializes the track with an output.

void

Forces any pending sample metadata to be flushed to the output.

void

Resets any state stored in the track in response to a seek.

Public fields

audioBitDepth

public int audioBitDepth

bitsPerChannel

public int bitsPerChannel

channelCount

public int channelCount

codecDelayNs

public long codecDelayNs

codecPrivate

public @MonotonicNonNull byte[] codecPrivate

colorRange

public @C.ColorRange int colorRange

colorSpace

@C.ColorSpace
public int colorSpace

colorTransfer

@C.ColorTransfer
public int colorTransfer

defaultSampleDurationNs

public int defaultSampleDurationNs

displayHeight

public int displayHeight

displayUnit

public int displayUnit

displayWidth

public int displayWidth

dolbyVisionConfigBytes

public @MonotonicNonNull byte[] dolbyVisionConfigBytes

flagDefault

public boolean flagDefault

flagForced

public boolean flagForced

hasColorInfo

public boolean hasColorInfo

hasContentEncryption

public boolean hasContentEncryption

height

public int height

maxBlockAdditionId

public int maxBlockAdditionId

maxContentLuminance

public int maxContentLuminance

maxFrameAverageLuminance

public int maxFrameAverageLuminance

maxMasteringLuminance

public float maxMasteringLuminance

minMasteringLuminance

public float minMasteringLuminance

nalUnitLengthFieldLength

public int nalUnitLengthFieldLength

number

public int number

primaryBChromaticityX

public float primaryBChromaticityX

primaryBChromaticityY

public float primaryBChromaticityY

primaryGChromaticityX

public float primaryGChromaticityX

primaryGChromaticityY

public float primaryGChromaticityY

primaryRChromaticityX

public float primaryRChromaticityX

primaryRChromaticityY

public float primaryRChromaticityY

projectionData

public @MonotonicNonNull byte[] projectionData

projectionPosePitch

public float projectionPosePitch

projectionPoseRoll

public float projectionPoseRoll

projectionPoseYaw

public float projectionPoseYaw

projectionType

@C.Projection
public int projectionType

sampleRate

public int sampleRate

sampleStrippedBytes

public @MonotonicNonNull byte[] sampleStrippedBytes

seekPreRollNs

public long seekPreRollNs

stereoMode

@C.StereoMode
public int stereoMode

type

public int type

whitePointChromaticityX

public float whitePointChromaticityX

whitePointChromaticityY

public float whitePointChromaticityY

width

public int width

Protected constructors

Track

protected Track()

Public methods

initializeOutput

@RequiresNonNull(value = "codecId")
@EnsuresNonNull(value = "this.output")
public void initializeOutput(ExtractorOutput output, int trackId)

Initializes the track with an output.

outputPendingSampleMetadata

@RequiresNonNull(value = "output")
public void outputPendingSampleMetadata()

Forces any pending sample metadata to be flushed to the output.

reset

public void reset()

Resets any state stored in the track in response to a seek.