protected final class

MatroskaExtractor.Track

extends java.lang.Object

 java.lang.Object

↳androidx.media3.extractor.mkv.MatroskaExtractor.Track

Overview

Holds data corresponding to a single track.

Summary

Fields
public intaudioBitDepth

public intbitsPerChannel

public intchannelCount

public longcodecDelayNs

public java.lang.StringcodecId

public byte[]codecPrivate

public intcolorRange

public intcolorSpace

public intcolorTransfer

public TrackOutput.CryptoDatacryptoData

public intdefaultSampleDurationNs

public intdisplayHeight

public intdisplayUnit

public intdisplayWidth

public byte[]dolbyVisionConfigBytes

public DrmInitDatadrmInitData

public booleanflagDefault

public booleanflagForced

public booleanhasColorInfo

public booleanhasContentEncryption

public intheight

public intmaxBlockAdditionId

public intmaxContentLuminance

public intmaxFrameAverageLuminance

public floatmaxMasteringLuminance

public floatminMasteringLuminance

public intnalUnitLengthFieldLength

public java.lang.Stringname

public intnumber

public TrackOutputoutput

public floatprimaryBChromaticityX

public floatprimaryBChromaticityY

public floatprimaryGChromaticityX

public floatprimaryGChromaticityY

public floatprimaryRChromaticityX

public floatprimaryRChromaticityY

public byte[]projectionData

public floatprojectionPosePitch

public floatprojectionPoseRoll

public floatprojectionPoseYaw

public intprojectionType

public intsampleRate

public byte[]sampleStrippedBytes

public longseekPreRollNs

public intstereoMode

public TrueHdSampleRechunkertrueHdSampleRechunker

public inttype

public floatwhitePointChromaticityX

public floatwhitePointChromaticityY

public intwidth

Constructors
protectedTrack()

Methods
public voidinitializeOutput(ExtractorOutput output, int trackId)

Initializes the track with an output.

public voidoutputPendingSampleMetadata()

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

public voidreset()

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

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Fields

public java.lang.String name

public java.lang.String codecId

public int number

public int type

public int defaultSampleDurationNs

public int maxBlockAdditionId

public boolean hasContentEncryption

public byte[] sampleStrippedBytes

public TrackOutput.CryptoData cryptoData

public byte[] codecPrivate

public DrmInitData drmInitData

public int width

public int height

public int bitsPerChannel

public int displayWidth

public int displayHeight

public int displayUnit

public int projectionType

public float projectionPoseYaw

public float projectionPosePitch

public float projectionPoseRoll

public byte[] projectionData

public int stereoMode

public boolean hasColorInfo

public int colorSpace

public int colorTransfer

public int colorRange

public int maxContentLuminance

public int maxFrameAverageLuminance

public float primaryRChromaticityX

public float primaryRChromaticityY

public float primaryGChromaticityX

public float primaryGChromaticityY

public float primaryBChromaticityX

public float primaryBChromaticityY

public float whitePointChromaticityX

public float whitePointChromaticityY

public float maxMasteringLuminance

public float minMasteringLuminance

public byte[] dolbyVisionConfigBytes

public int channelCount

public int audioBitDepth

public int sampleRate

public long codecDelayNs

public long seekPreRollNs

public TrueHdSampleRechunker trueHdSampleRechunker

public boolean flagForced

public boolean flagDefault

public TrackOutput output

public int nalUnitLengthFieldLength

Constructors

protected Track()

Methods

public void initializeOutput(ExtractorOutput output, int trackId)

Initializes the track with an output.

public void outputPendingSampleMetadata()

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

public void reset()

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