public final class

Ac3Util.SyncFrameInfo

extends java.lang.Object

 java.lang.Object

↳androidx.media3.extractor.Ac3Util.SyncFrameInfo

Overview

Holds sample format information as presented by a syncframe header.

Summary

Fields
public final intbitrate

The bitrate of audio samples.

public final intchannelCount

The number of audio channels

public final intframeSize

The size of the frame.

public final java.lang.StringmimeType

The sample MIME type of the bitstream.

public final intsampleCount

Number of audio samples in the frame.

public final intsampleRate

The audio sampling rate in Hz.

public static final intSTREAM_TYPE_TYPE0

Type 0 AC3 stream type.

public static final intSTREAM_TYPE_TYPE1

Type 1 AC3 stream type.

public static final intSTREAM_TYPE_TYPE2

Type 2 AC3 stream type.

public static final intSTREAM_TYPE_UNDEFINED

Undefined AC3 stream type.

public final intstreamType

The type of the stream if Ac3Util.SyncFrameInfo.mimeType is MimeTypes.AUDIO_E_AC3, or Ac3Util.SyncFrameInfo.STREAM_TYPE_UNDEFINED otherwise.

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

Fields

public static final int STREAM_TYPE_UNDEFINED

Undefined AC3 stream type.

public static final int STREAM_TYPE_TYPE0

Type 0 AC3 stream type.

public static final int STREAM_TYPE_TYPE1

Type 1 AC3 stream type.

public static final int STREAM_TYPE_TYPE2

Type 2 AC3 stream type.

public final java.lang.String mimeType

The sample MIME type of the bitstream. One of MimeTypes.AUDIO_AC3 and MimeTypes.AUDIO_E_AC3.

public final int streamType

The type of the stream if Ac3Util.SyncFrameInfo.mimeType is MimeTypes.AUDIO_E_AC3, or Ac3Util.SyncFrameInfo.STREAM_TYPE_UNDEFINED otherwise.

public final int sampleRate

The audio sampling rate in Hz.

public final int channelCount

The number of audio channels

public final int frameSize

The size of the frame.

public final int sampleCount

Number of audio samples in the frame.

public final int bitrate

The bitrate of audio samples.