# Index

A B C D E F G H I K L M N O P R S T U V W
All Classes and Interfaces|All Packages|Constant Field Values

## A

accessibilityChannel - Variable in class com.castlabs.sdk.base.subtitles.utilities.SubtitleFormat
  The Accessibility channel, or `SubtitleFormat.NO_VALUE` if not known or applicable.
addFlag(int) - Method in class com.castlabs.sdk.base.subtitles.buffer.Buffer
  Adds the `flag` to this buffer's flags.
ALLOW_CAPTURE_BY_ALL - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
  See `AudioAttributes.ALLOW_CAPTURE_BY_ALL`.
ALLOW_CAPTURE_BY_NONE - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
  See `AudioAttributes.ALLOW_CAPTURE_BY_NONE`.
ALLOW_CAPTURE_BY_SYSTEM - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
  See `AudioAttributes.ALLOW_CAPTURE_BY_SYSTEM`.
allSamplesAreSyncSamples(String) - Static method in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
  Returns true if it is known that all samples in a stream of the given sample MIME type are guaranteed to be sync samples (i.e., `Constants.BUFFER_FLAG_KEY_FRAME` is guaranteed to be set on every sample).
APPLICATION_CAMERA_MOTION - Static variable in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
APPLICATION_CEA608 - Static variable in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
APPLICATION_CEA708 - Static variable in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
APPLICATION_DVBSUBS - Static variable in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
APPLICATION_DVBTTX - Static variable in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
APPLICATION_EMSG - Static variable in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
APPLICATION_EXIF - Static variable in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
APPLICATION_ICY - Static variable in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
APPLICATION_ID3 - Static variable in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
APPLICATION_M3U8 - Static variable in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
APPLICATION_MP4 - Static variable in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
APPLICATION_MP4CEA608 - Static variable in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
APPLICATION_MP4VTT - Static variable in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
APPLICATION_MPD - Static variable in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
APPLICATION_PGS - Static variable in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
APPLICATION_RAWCC - Static variable in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
APPLICATION_SCTE35 - Static variable in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
APPLICATION_SS - Static variable in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
APPLICATION_SUBRIP - Static variable in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
APPLICATION_TTML - Static variable in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
APPLICATION_TX3G - Static variable in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
APPLICATION_VOBSUB - Static variable in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
APPLICATION_WEBM - Static variable in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
areEqual(Object, Object) - Static method in class com.castlabs.sdk.base.subtitles.utilities.Util
  Tests two objects for `Object.equals(Object)` equality, handling the case where one or both may be null.
ASCII_NAME - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
  The name of the ASCII charset.
Assertions - Class in com.castlabs.sdk.base.subtitles.utilities
  Provides methods for asserting the truth of expressions and properties.
AUDIO_AAC - Static variable in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
AUDIO_AC3 - Static variable in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
AUDIO_AC4 - Static variable in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
AUDIO_ALAC - Static variable in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
AUDIO_ALAW - Static variable in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
AUDIO_AMR_NB - Static variable in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
AUDIO_AMR_WB - Static variable in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
AUDIO_DTS - Static variable in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
AUDIO_DTS_EXPRESS - Static variable in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
AUDIO_DTS_HD - Static variable in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
AUDIO_E_AC3 - Static variable in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
AUDIO_E_AC3_JOC - Static variable in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
AUDIO_FLAC - Static variable in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
AUDIO_MLAW - Static variable in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
AUDIO_MP4 - Static variable in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
AUDIO_MPEG - Static variable in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
AUDIO_MPEG_L1 - Static variable in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
AUDIO_MPEG_L2 - Static variable in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
AUDIO_MSGSM - Static variable in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
AUDIO_OPUS - Static variable in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
AUDIO_RAW - Static variable in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
AUDIO_TRUEHD - Static variable in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
AUDIO_UNKNOWN - Static variable in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
AUDIO_VORBIS - Static variable in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
AUDIO_WEBM - Static variable in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
AUDIOFOCUS_GAIN - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
AUDIOFOCUS_GAIN_TRANSIENT - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
AUDIOFOCUS_GAIN_TRANSIENT_EXCLUSIVE - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
AUDIOFOCUS_GAIN_TRANSIENT_MAY_DUCK - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
AUDIOFOCUS_NONE - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants

## B

BASE_TYPE_APPLICATION - Static variable in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
BASE_TYPE_AUDIO - Static variable in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
BASE_TYPE_IMAGE - Static variable in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
BASE_TYPE_TEXT - Static variable in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
BASE_TYPE_VIDEO - Static variable in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
BaseSubtitleInputBuffer - Class in com.castlabs.sdk.base.subtitles.buffer
  A `DecoderInputBuffer`.
BaseSubtitleInputBuffer() - Constructor for class com.castlabs.sdk.base.subtitles.buffer.BaseSubtitleInputBuffer
bitrate - Variable in class com.castlabs.sdk.base.subtitles.utilities.SubtitleFormat
  The average bandwidth in bits per second, or `SubtitleFormat.NO_VALUE` if unknown or not applicable.
BITS_PER_BYTE - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
  The number of bits per byte.
bitsLeft() - Method in class com.castlabs.sdk.base.subtitles.utilities.ParsableBitArray
  Returns the number of bits yet to be read.
Buffer - Class in com.castlabs.sdk.base.subtitles.buffer
  Base class for buffers with flags.
Buffer() - Constructor for class com.castlabs.sdk.base.subtitles.buffer.Buffer
BUFFER_FLAG_DECODE_ONLY - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
  Indicates that a buffer should be decoded but not rendered.
BUFFER_FLAG_ENCRYPTED - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
  Indicates that a buffer is (at least partially) encrypted.
BUFFER_FLAG_END_OF_STREAM - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
  Flag for empty buffers that signal that the end of the stream was reached.
BUFFER_FLAG_HAS_SUPPLEMENTAL_DATA - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
  Indicates that a buffer has supplemental data.
BUFFER_FLAG_KEY_FRAME - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
  Indicates that a buffer holds a synchronization sample.
BUFFER_FLAG_LAST_SAMPLE - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
  Indicates that a buffer is known to contain the last media sample of the stream.
BUFFER_REPLACEMENT_MODE_DIRECT - Static variable in class com.castlabs.sdk.base.subtitles.buffer.DecoderInputBuffer
  Allows buffer replacement using `ByteBuffer.allocateDirect(int)`.
BUFFER_REPLACEMENT_MODE_DISABLED - Static variable in class com.castlabs.sdk.base.subtitles.buffer.DecoderInputBuffer
  Disallows buffer replacement.
BUFFER_REPLACEMENT_MODE_NORMAL - Static variable in class com.castlabs.sdk.base.subtitles.buffer.DecoderInputBuffer
  Allows buffer replacement using `ByteBuffer.allocate(int)`.
BUFFER_REPLACEMENT_MODE_SHARED - Static variable in class com.castlabs.sdk.base.subtitles.buffer.DecoderInputBuffer
  Allows buffer replacement using Android Shared Memory.
byteAlign() - Method in class com.castlabs.sdk.base.subtitles.utilities.ParsableBitArray
  Aligns the position to the next byte boundary.
BYTES_PER_FLOAT - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
  The number of bytes per float.
bytesLeft() - Method in class com.castlabs.sdk.base.subtitles.utilities.ParsableByteArray
  Returns the number of bytes yet to be read.

## C

canReplace(DrmInitData.SchemeData) - Method in class com.castlabs.sdk.base.subtitles.utilities.DrmInitData.SchemeData
  Returns whether this `DrmInitData.SchemeData` can be used to replace `other`.
capacity() - Method in class com.castlabs.sdk.base.subtitles.utilities.ParsableByteArray
  Returns the capacity of the array, which may be larger than the limit.
castNonNull(T) - Static method in class com.castlabs.sdk.base.subtitles.utilities.Util
  Casts a nullable variable to a non-null variable without runtime null check.
checkArgument(boolean) - Static method in class com.castlabs.sdk.base.subtitles.utilities.Assertions
  Throws `IllegalArgumentException` if `expression` evaluates to false.
checkArgument(boolean, Object) - Static method in class com.castlabs.sdk.base.subtitles.utilities.Assertions
  Throws `IllegalArgumentException` if `expression` evaluates to false.
checkIndex(int, int, int) - Static method in class com.castlabs.sdk.base.subtitles.utilities.Assertions
  Throws `IndexOutOfBoundsException` if `index` falls outside the specified bounds.
checkMainThread() - Static method in class com.castlabs.sdk.base.subtitles.utilities.Assertions
  Throws `IllegalStateException` if the calling thread is not the application's main thread.
checkNotEmpty(String) - Static method in class com.castlabs.sdk.base.subtitles.utilities.Assertions
  Throws `IllegalArgumentException` if `string` is null or zero length.
checkNotEmpty(String, Object) - Static method in class com.castlabs.sdk.base.subtitles.utilities.Assertions
  Throws `IllegalArgumentException` if `string` is null or zero length.
checkNotNull(T) - Static method in class com.castlabs.sdk.base.subtitles.utilities.Assertions
  Throws `NullPointerException` if `reference` is null.
checkNotNull(T, Object) - Static method in class com.castlabs.sdk.base.subtitles.utilities.Assertions
  Throws `NullPointerException` if `reference` is null.
checkState(boolean) - Static method in class com.castlabs.sdk.base.subtitles.utilities.Assertions
  Throws `IllegalStateException` if `expression` evaluates to false.
checkState(boolean, Object) - Static method in class com.castlabs.sdk.base.subtitles.utilities.Assertions
  Throws `IllegalStateException` if `expression` evaluates to false.
checkStateNotNull(T) - Static method in class com.castlabs.sdk.base.subtitles.utilities.Assertions
  Throws `IllegalStateException` if `reference` is null.
checkStateNotNull(T, Object) - Static method in class com.castlabs.sdk.base.subtitles.utilities.Assertions
  Throws `IllegalStateException` if `reference` is null.
clear() - Method in class com.castlabs.sdk.base.subtitles.buffer.Buffer
  Clears the buffer.
clear() - Method in class com.castlabs.sdk.base.subtitles.buffer.DecoderInputBuffer
clearBlocks - Variable in class com.castlabs.sdk.base.subtitles.buffer.CryptoInfo
clearFlag(int) - Method in class com.castlabs.sdk.base.subtitles.buffer.Buffer
  Removes the `flag` from this buffer's flags, if it is set.
CLEARKEY_UUID - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
  UUID for the ClearKey DRM scheme.
codecs - Variable in class com.castlabs.sdk.base.subtitles.utilities.SubtitleFormat
  Codecs of the SubtitleFormat as described in RFC 6381, or null if unknown or not applicable.
com.castlabs.sdk.base.subtitles - package com.castlabs.sdk.base.subtitles
com.castlabs.sdk.base.subtitles.buffer - package com.castlabs.sdk.base.subtitles.buffer
com.castlabs.sdk.base.subtitles.utilities - package com.castlabs.sdk.base.subtitles.utilities
COMMON_PSSH_UUID - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
  UUID for the W3C Common PSSH box.
compare(DrmInitData.SchemeData, DrmInitData.SchemeData) - Method in class com.castlabs.sdk.base.subtitles.utilities.DrmInitData
Constants - Class in com.castlabs.sdk.base.subtitles.utilities
  Defines constants used by the library.
Constants.AudioAllowedCapturePolicy - Annotation Type in com.castlabs.sdk.base.subtitles.utilities
  Capture policies for `AudioAttributes`.
Constants.AudioFlags - Annotation Type in com.castlabs.sdk.base.subtitles.utilities
  Flags for `AudioAttributes`.
Constants.AudioFocusGain - Annotation Type in com.castlabs.sdk.base.subtitles.utilities
  Audio focus types.
Constants.AudioUsage - Annotation Type in com.castlabs.sdk.base.subtitles.utilities
  Usage types for `AudioAttributes`.
Constants.BufferFlags - Annotation Type in com.castlabs.sdk.base.subtitles.utilities
  Flags which can apply to a buffer containing a media sample.
Constants.CryptoMode - Annotation Type in com.castlabs.sdk.base.subtitles.utilities
  Crypto modes for a codec.
Constants.RoleFlags - Annotation Type in com.castlabs.sdk.base.subtitles.utilities
  Track role flags.
Constants.SelectionFlags - Annotation Type in com.castlabs.sdk.base.subtitles.utilities
  Track selection flags.
Constants.TrackType - Annotation Type in com.castlabs.sdk.base.subtitles.utilities
Constants.VideoOutputMode - Annotation Type in com.castlabs.sdk.base.subtitles.utilities
  Video decoder output modes.
containerMimeType - Variable in class com.castlabs.sdk.base.subtitles.utilities.SubtitleFormat
  The mime type of the container, or null if unknown or not applicable.
copyWithData(byte[]) - Method in class com.castlabs.sdk.base.subtitles.utilities.DrmInitData.SchemeData
  Returns a copy of this instance with the specified data.
copyWithManifestSubtitleFormatInfo(SubtitleFormat) - Method in class com.castlabs.sdk.base.subtitles.utilities.SubtitleFormat
copyWithManifestSubtitleFormatInfo(SubtitleFormat, boolean) - Method in class com.castlabs.sdk.base.subtitles.utilities.SubtitleFormat
copyWithSchemeType(String) - Method in class com.castlabs.sdk.base.subtitles.utilities.DrmInitData
  Returns a copy with the specified protection scheme type.
createSessionCreationData(DrmInitData, DrmInitData) - Static method in class com.castlabs.sdk.base.subtitles.utilities.DrmInitData
  Merges `DrmInitData` obtained from a media manifest and a media stream.
createTextSampleSubtitleFormat(String, String, int, int, int, String, String, String, List<byte[]>, DrmInitData, String, String, int) - Static method in class com.castlabs.sdk.base.subtitles.utilities.SubtitleFormat
createTextSampleSubtitleFormat(String, String, int, String, List<byte[]>) - Static method in class com.castlabs.sdk.base.subtitles.utilities.SubtitleFormat
createTextSampleSubtitleFormat(String, String, String, int, int, String, int, DrmInitData) - Static method in class com.castlabs.sdk.base.subtitles.utilities.SubtitleFormat
CREATOR - Static variable in class com.castlabs.sdk.base.subtitles.utilities.DrmInitData
CREATOR - Static variable in class com.castlabs.sdk.base.subtitles.utilities.DrmInitData.SchemeData
CREATOR - Static variable in class com.castlabs.sdk.base.subtitles.utilities.SubtitleFormat
CRYPTO_MODE_AES_CBC - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
CRYPTO_MODE_AES_CTR - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
CRYPTO_MODE_UNENCRYPTED - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
cryptoInfo - Variable in class com.castlabs.sdk.base.subtitles.buffer.DecoderInputBuffer
  `CryptoInfo` for encrypted data.
CryptoInfo - Class in com.castlabs.sdk.base.subtitles.buffer
  Compatibility wrapper for `MediaCodec.CryptoInfo`.
CryptoInfo() - Constructor for class com.castlabs.sdk.base.subtitles.buffer.CryptoInfo

## D

data - Variable in class com.castlabs.sdk.base.subtitles.buffer.DecoderInputBuffer
  The buffer's data, or `null` if no data has been set.
data - Variable in class com.castlabs.sdk.base.subtitles.utilities.DrmInitData.SchemeData
  The initialization data.
data - Variable in class com.castlabs.sdk.base.subtitles.utilities.ParsableBitArray
data - Variable in class com.castlabs.sdk.base.subtitles.utilities.ParsableByteArray
DecoderInputBuffer - Class in com.castlabs.sdk.base.subtitles.buffer
  Holds input for a decoder.
DecoderInputBuffer(int) - Constructor for class com.castlabs.sdk.base.subtitles.buffer.DecoderInputBuffer
DecoderInputBuffer.BufferReplacementMode - Annotation Type in com.castlabs.sdk.base.subtitles.buffer
  The buffer replacement mode, which may disable replacement.
dequeueInputBuffer() - Method in class com.castlabs.sdk.base.subtitles.SubtitleParserApi
dequeueInputBuffer() - Method in class com.castlabs.sdk.base.subtitles.SubtitleParserHelper
  Gets the input buffer for subsequent read operation
describeContents() - Method in class com.castlabs.sdk.base.subtitles.utilities.DrmInitData
describeContents() - Method in class com.castlabs.sdk.base.subtitles.utilities.DrmInitData.SchemeData
describeContents() - Method in class com.castlabs.sdk.base.subtitles.utilities.SubtitleFormat
DEVICE - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Util
  Like `Build.DEVICE`, but in a place where it can be conveniently overridden for local testing.
DEVICE_DEBUG_INFO - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Util
  A concise description of the device that it can be useful to log for debugging purposes.
disable() - Method in class com.castlabs.sdk.base.subtitles.SubtitleParserApi
disposeWhenReady() - Method in class com.castlabs.sdk.base.subtitles.SubtitleParserHelper
  Internal method that sends a dispose indicator to the background thread that will remove the native instance of this helper
drmInitData - Variable in class com.castlabs.sdk.base.subtitles.utilities.SubtitleFormat
  DRM initialization data if the stream is protected, or null otherwise.
DrmInitData - Class in com.castlabs.sdk.base.subtitles.utilities
  Initialization data for one or more DRM schemes.
DrmInitData(DrmInitData.SchemeData...) - Constructor for class com.castlabs.sdk.base.subtitles.utilities.DrmInitData
DrmInitData(String, DrmInitData.SchemeData...) - Constructor for class com.castlabs.sdk.base.subtitles.utilities.DrmInitData
DrmInitData(String, List<DrmInitData.SchemeData>) - Constructor for class com.castlabs.sdk.base.subtitles.utilities.DrmInitData
DrmInitData(List<DrmInitData.SchemeData>) - Constructor for class com.castlabs.sdk.base.subtitles.utilities.DrmInitData
DrmInitData.SchemeData - Class in com.castlabs.sdk.base.subtitles.utilities
  Scheme initialization data.

## E

ecmData - Variable in class com.castlabs.sdk.base.subtitles.buffer.CryptoInfo
EMPTY_BYTE_ARRAY - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Util
  An empty byte array.
ENCODING_INVALID - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
encryptedBlocks - Variable in class com.castlabs.sdk.base.subtitles.buffer.CryptoInfo
enqueueInputBuffer(BaseSubtitleInputBuffer, String, boolean) - Method in class com.castlabs.sdk.base.subtitles.SubtitleParserApi
enqueueInputBuffer(BaseSubtitleInputBuffer, String, boolean) - Method in class com.castlabs.sdk.base.subtitles.SubtitleParserHelper
  Sets the input buffer after a read operation
ensureSpaceForWrite(int) - Method in class com.castlabs.sdk.base.subtitles.buffer.DecoderInputBuffer
  Ensures that `DecoderInputBuffer.data` is large enough to accommodate a write of a given length at its current position.
equals(Object) - Method in class com.castlabs.sdk.base.subtitles.utilities.DrmInitData
equals(Object) - Method in class com.castlabs.sdk.base.subtitles.utilities.DrmInitData.SchemeData
equals(Object) - Method in class com.castlabs.sdk.base.subtitles.utilities.SubtitleFormat

## F

finalize() - Method in class com.castlabs.sdk.base.subtitles.SubtitleParserHelper
FLAG_AUDIBILITY_ENFORCED - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
flip() - Method in class com.castlabs.sdk.base.subtitles.buffer.DecoderInputBuffer
  Flips `DecoderInputBuffer.data` and `DecoderInputBuffer.supplementalData` in preparation for being queued to a decoder.
flush() - Method in class com.castlabs.sdk.base.subtitles.SubtitleParserHelper
  Flushes the helper, canceling the current parsing operation, if there is one.
fromUtf8Bytes(byte[]) - Static method in class com.castlabs.sdk.base.subtitles.utilities.Util
  Returns a new `String` constructed by decoding UTF-8 encoded bytes.
fromUtf8Bytes(byte[], int, int) - Static method in class com.castlabs.sdk.base.subtitles.utilities.Util
  Returns a new `String` constructed by decoding UTF-8 encoded bytes in a subarray.

## G

generateAudioSessionIdV21(Context) - Static method in class com.castlabs.sdk.base.subtitles.utilities.Constants
  Returns a newly generated audio session identifier, or `AudioManager.ERROR` if an error occurred in which case audio playback may fail.
get(int) - Method in class com.castlabs.sdk.base.subtitles.utilities.DrmInitData
  Retrieves the `DrmInitData.SchemeData` at a given index.
get(UUID) - Method in class com.castlabs.sdk.base.subtitles.utilities.DrmInitData
  Deprecated.
  Use `DrmInitData.get(int)` and `DrmInitData.SchemeData.matches(UUID)` instead.
getAudioMediaMimeType(String) - Static method in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
  Derives a audio sample mimeType from a codecs attribute.
getBlurRadiusPx() - Method in class com.castlabs.sdk.base.subtitles.TextShadow
getBytePosition() - Method in class com.castlabs.sdk.base.subtitles.utilities.ParsableBitArray
  Returns the current byte offset.
getCodecsOfType(String, int) - Static method in class com.castlabs.sdk.base.subtitles.utilities.Util
  Returns a copy of `codecs` without the codecs whose track type doesn't match `trackType`.
getColorARGB() - Method in class com.castlabs.sdk.base.subtitles.TextShadow
getData() - Method in class com.castlabs.sdk.base.subtitles.utilities.ParsableByteArray
  Returns the underlying array.
getFlag(int) - Method in class com.castlabs.sdk.base.subtitles.buffer.Buffer
  Returns whether the specified flag has been set on this buffer.
getFrameworkCryptoInfo() - Method in class com.castlabs.sdk.base.subtitles.buffer.CryptoInfo
  Returns an equivalent `MediaCodec.CryptoInfo` instance.
getFrameworkCryptoInfoV16() - Method in class com.castlabs.sdk.base.subtitles.buffer.CryptoInfo
  Deprecated.
  Use `CryptoInfo.getFrameworkCryptoInfo()`.
getHorizontalOffsetPx() - Method in class com.castlabs.sdk.base.subtitles.TextShadow
getIntegerCodeForString(String) - Static method in class com.castlabs.sdk.base.subtitles.utilities.Util
  Returns the integer equal to the big-endian concatenation of the characters in `string` as bytes.
getMediaMimeType(String) - Static method in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
  Derives a mimeType from a codec identifier, as defined in RFC 6381.
getMimeTypeFromMp4ObjectType(int) - Static method in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
  Derives a mimeType from MP4 object type identifier, as defined in RFC 6381 and https://mp4ra.org/#/object_types.
getPosition() - Method in class com.castlabs.sdk.base.subtitles.utilities.ParsableBitArray
  Returns the current bit offset.
getPosition() - Method in class com.castlabs.sdk.base.subtitles.utilities.ParsableByteArray
  Returns the current offset in the array, in bytes.
getTrackType(String) - Static method in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
  Returns the `Constants``.TRACK_TYPE_*` constant that corresponds to a specified MIME type.
getTrackTypeOfCodec(String) - Static method in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
  Equivalent to `getTrackType(getMediaMimeType(codec))`.
getUtf8Bytes(String) - Static method in class com.castlabs.sdk.base.subtitles.utilities.Util
  Returns a new byte array containing the code points of a `String` encoded using UTF-8.
getVerticalOffsetPx() - Method in class com.castlabs.sdk.base.subtitles.TextShadow
getVideoMediaMimeType(String) - Static method in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
  Derives a video sample mimeType from a codecs attribute.

## H

handleMessage(Message) - Method in class com.castlabs.sdk.base.subtitles.SubtitleParserHelper
hasData() - Method in class com.castlabs.sdk.base.subtitles.utilities.DrmInitData.SchemeData
  Returns whether `DrmInitData.SchemeData.data` is non-null.
hasEqualSchemeDatas(DrmInitData) - Method in class com.castlabs.sdk.base.subtitles.utilities.DrmInitData
  Returns whether the DrmInitData has equal `DrmInitData.SchemeData`s to the one provided.
hashCode() - Method in class com.castlabs.sdk.base.subtitles.utilities.DrmInitData
hashCode() - Method in class com.castlabs.sdk.base.subtitles.utilities.DrmInitData.SchemeData
hashCode() - Method in class com.castlabs.sdk.base.subtitles.utilities.SubtitleFormat
hasMatchingSchemeData(DrmInitData) - Method in class com.castlabs.sdk.base.subtitles.utilities.DrmInitData
  Returns whether the DrmInitData has at least one equal `DrmInitData.SchemeData` to the one provided.
hasSupplementalData() - Method in class com.castlabs.sdk.base.subtitles.buffer.Buffer
  Returns whether the `Constants.BUFFER_FLAG_HAS_SUPPLEMENTAL_DATA` flag is set.

## I

id - Variable in class com.castlabs.sdk.base.subtitles.utilities.SubtitleFormat
  An identifier for the SubtitleFormat, or null if unknown or not applicable.
imagePool() - Method in class com.castlabs.sdk.base.subtitles.SubtitleParserHelper
ImagePool - Class in com.castlabs.sdk.base.subtitles
  The image pool is used to load and cache imaged that are referenced by subtitles.
ImagePool() - Constructor for class com.castlabs.sdk.base.subtitles.ImagePool
increaseClearDataFirstSubSampleBy(int) - Method in class com.castlabs.sdk.base.subtitles.buffer.CryptoInfo
  Increases the number of clear data for the first sub sample by `count`.
INDEX_UNSET - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
  Represents an unset or unknown index.
initializationData - Variable in class com.castlabs.sdk.base.subtitles.utilities.SubtitleFormat
  Initialization data that must be provided to the decoder.
initializationDataEquals(SubtitleFormat) - Method in class com.castlabs.sdk.base.subtitles.utilities.SubtitleFormat
  Returns whether the `SubtitleFormat.initializationData`s belonging to this SubtitleFormat and `other` are equal.
initializeWithWebvtt(String) - Method in class com.castlabs.sdk.base.subtitles.SubtitleParserHelper
isApplication(String) - Static method in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
  Returns whether the given string is an application MIME type.
isAudio(String) - Static method in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
  Returns whether the given string is an audio MIME type.
isDecodeOnly() - Method in class com.castlabs.sdk.base.subtitles.buffer.Buffer
  Returns whether the `Constants.BUFFER_FLAG_DECODE_ONLY` flag is set.
isEnabled() - Method in class com.castlabs.sdk.base.subtitles.TextShadow
isEncrypted() - Method in class com.castlabs.sdk.base.subtitles.buffer.DecoderInputBuffer
  Returns whether the `Constants.BUFFER_FLAG_ENCRYPTED` flag is set.
isEndOfStream() - Method in class com.castlabs.sdk.base.subtitles.buffer.Buffer
  Returns whether the `Constants.BUFFER_FLAG_END_OF_STREAM` flag is set.
isFlagsOnly() - Method in class com.castlabs.sdk.base.subtitles.buffer.DecoderInputBuffer
  Returns whether the buffer is only able to hold flags, meaning `DecoderInputBuffer.data` is null and its replacement mode is `DecoderInputBuffer.BUFFER_REPLACEMENT_MODE_DISABLED`.
isImage(String) - Static method in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
  Whether the top-level type of `mimeType` is image.
isKeyFrame() - Method in class com.castlabs.sdk.base.subtitles.buffer.Buffer
  Returns whether the `Constants.BUFFER_FLAG_KEY_FRAME` flag is set.
isLinebreak(int) - Static method in class com.castlabs.sdk.base.subtitles.utilities.Util
  Returns whether the given character is a carriage return ('\r') or a line feed ('\n').
ISO88591_NAME - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
  The name of the ISO-8859-1 charset.
isSharedMemoryBuffer() - Method in class com.castlabs.sdk.base.subtitles.buffer.DecoderInputBuffer
isText(String) - Static method in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
  Returns whether the given string is a text MIME type.
isVideo(String) - Static method in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
  Returns whether the given string is a video MIME type.
iv - Variable in class com.castlabs.sdk.base.subtitles.buffer.CryptoInfo
  The 16 byte initialization vector.

## K

key - Variable in class com.castlabs.sdk.base.subtitles.buffer.CryptoInfo
  The 16 byte key id.
keyIds - Variable in class com.castlabs.sdk.base.subtitles.utilities.DrmInitData.SchemeData
  Default key ids for `Constants.COMMON_PSSH_UUID` or `null`

## L

label - Variable in class com.castlabs.sdk.base.subtitles.utilities.SubtitleFormat
  The human readable label, or null if unknown or not applicable.
language - Variable in class com.castlabs.sdk.base.subtitles.utilities.SubtitleFormat
  The language as an IETF BCP 47 conformant tag, or null if unknown or not applicable.
LANGUAGE_UNDETERMINED - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
  Represents an undetermined language as an ISO 639-2 language code.
LENGTH_UNSET - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
  Represents an unset or unknown length.
licenseServerUrl - Variable in class com.castlabs.sdk.base.subtitles.utilities.DrmInitData.SchemeData
  The URL of the server to which license requests should be made.
limit() - Method in class com.castlabs.sdk.base.subtitles.utilities.ParsableByteArray
  Returns the limit.

## M

MANUFACTURER - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Util
  Like `Build.MANUFACTURER`, but in a place where it can be conveniently overridden for local testing.
matches(UUID) - Method in class com.castlabs.sdk.base.subtitles.utilities.DrmInitData.SchemeData
  Returns whether this initialization data applies to the specified scheme.
matchesUUID(DrmInitData.SchemeData) - Method in class com.castlabs.sdk.base.subtitles.utilities.DrmInitData.SchemeData
merge(DrmInitData) - Method in class com.castlabs.sdk.base.subtitles.utilities.DrmInitData
  Returns an instance containing the `DrmInitData.schemeDatas` from both this and `other`.
MICROS_PER_SECOND - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
  The number of microseconds in one second.
MILLIS_PER_SECOND - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
  The number of milliseconds in one second.
MIME_TYPE_CEA608 - Static variable in class com.castlabs.sdk.base.subtitles.SubtitleParserHelper
MIME_TYPE_DVBSUBS - Static variable in class com.castlabs.sdk.base.subtitles.SubtitleParserHelper
MIME_TYPE_DVBTTX - Static variable in class com.castlabs.sdk.base.subtitles.SubtitleParserHelper
MIME_TYPE_MP4_VTT - Static variable in class com.castlabs.sdk.base.subtitles.SubtitleParserHelper
MIME_TYPE_SRT - Static variable in class com.castlabs.sdk.base.subtitles.SubtitleParserHelper
MIME_TYPE_TTML - Static variable in class com.castlabs.sdk.base.subtitles.SubtitleParserHelper
MIME_TYPE_VTT - Static variable in class com.castlabs.sdk.base.subtitles.SubtitleParserHelper
mimeType - Variable in class com.castlabs.sdk.base.subtitles.utilities.DrmInitData.SchemeData
  The mimeType of `DrmInitData.SchemeData.data`.
MimeTypes - Class in com.castlabs.sdk.base.subtitles.utilities
  Defines common MIME types and helper methods.
mode - Variable in class com.castlabs.sdk.base.subtitles.buffer.CryptoInfo
  The type of encryption that has been applied.
MODEL - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Util
  Like `Build.MODEL`, but in a place where it can be conveniently overridden for local testing.
msToUs(long) - Static method in class com.castlabs.sdk.base.subtitles.utilities.Constants
  Converts a time in milliseconds to the corresponding time in microseconds, preserving `Constants.TIME_UNSET` values and `Constants.TIME_END_OF_SOURCE` values.

## N

NANOS_PER_SECOND - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
  The number of nanoseconds in one second.
newFlagsOnlyInstance() - Static method in class com.castlabs.sdk.base.subtitles.buffer.DecoderInputBuffer
  Creates a new instance for which `DecoderInputBuffer.isFlagsOnly()` will return true.
newSharedMemoryInstance(String, int) - Static method in class com.castlabs.sdk.base.subtitles.buffer.DecoderInputBuffer
  Creates a new instance for which `DecoderInputBuffer.isSharedMemoryBuffer()` will return true.
NO_VALUE - Static variable in class com.castlabs.sdk.base.subtitles.utilities.SubtitleFormat
  A value for various fields to indicate that the field's value is unknown or not applicable.
nullSafeArrayConcatenation(T[], T[]) - Static method in class com.castlabs.sdk.base.subtitles.utilities.Util
  Creates a new array containing the concatenation of two non-null type arrays.
numBytesOfClearData - Variable in class com.castlabs.sdk.base.subtitles.buffer.CryptoInfo
  The number of leading unencrypted bytes in each sub-sample.
numBytesOfEncryptedData - Variable in class com.castlabs.sdk.base.subtitles.buffer.CryptoInfo
  The number of trailing encrypted bytes in each sub-sample.
numSubSamples - Variable in class com.castlabs.sdk.base.subtitles.buffer.CryptoInfo
  The number of subSamples that make up the buffer's contents.

## O

OFFSET_SAMPLE_RELATIVE - Static variable in class com.castlabs.sdk.base.subtitles.utilities.SubtitleFormat
  A value to indicate that subsample timestamps are relative to the timestamps of their parent samples.
onDraw(Canvas) - Method in class com.castlabs.sdk.base.subtitles.SubtitlesView
onSizeChanged(int, int, int, int) - Method in class com.castlabs.sdk.base.subtitles.SubtitlesView
onStyleChange(SubtitlesStyle) - Method in class com.castlabs.sdk.base.subtitles.SubtitlesView
  Set the user settings that override or customise the subtitles appearance
originalLanguage - Variable in class com.castlabs.sdk.base.subtitles.utilities.SubtitleFormat
  The language as present in manifest language tag, or null if unknown or not applicable.

## P

ParsableBitArray - Class in com.castlabs.sdk.base.subtitles.utilities
  Wraps a byte array, providing methods that allow it to be read as a bitstream.
ParsableBitArray() - Constructor for class com.castlabs.sdk.base.subtitles.utilities.ParsableBitArray
  Creates a new instance that initially has no backing data.
ParsableBitArray(byte[]) - Constructor for class com.castlabs.sdk.base.subtitles.utilities.ParsableBitArray
  Creates a new instance that wraps an existing array.
ParsableBitArray(byte[], int) - Constructor for class com.castlabs.sdk.base.subtitles.utilities.ParsableBitArray
  Creates a new instance that wraps an existing array.
ParsableByteArray - Class in com.castlabs.sdk.base.subtitles.utilities
  Wraps a byte array, providing a set of methods for parsing data from it.
ParsableByteArray() - Constructor for class com.castlabs.sdk.base.subtitles.utilities.ParsableByteArray
  Creates a new instance that initially has no backing data.
ParsableByteArray(byte[]) - Constructor for class com.castlabs.sdk.base.subtitles.utilities.ParsableByteArray
  Creates a new instance wrapping `data`, and sets the limit to `data.length`.
ParsableByteArray(byte[], int) - Constructor for class com.castlabs.sdk.base.subtitles.utilities.ParsableByteArray
  Creates a new instance that wraps an existing array.
ParsableByteArray(int) - Constructor for class com.castlabs.sdk.base.subtitles.utilities.ParsableByteArray
  Creates a new instance with `limit` bytes and sets the limit.
parse(String, byte[], String, long) - Method in class com.castlabs.sdk.base.subtitles.SubtitlesView
parse(String, String, String, long) - Method in class com.castlabs.sdk.base.subtitles.SubtitlesView
peekChar() - Method in class com.castlabs.sdk.base.subtitles.utilities.ParsableByteArray
  Peeks at the next char.
peekUnsignedByte() - Method in class com.castlabs.sdk.base.subtitles.utilities.ParsableByteArray
  Peeks at the next byte as an unsigned value.
PERCENTAGE_UNSET - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
  Represents an unset or unknown percentage.
PLAYREADY_UUID - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
  UUID for the PlayReady DRM scheme.
POSITION_UNSET - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
  Represents an unset or unknown position.
putInt(int, int) - Method in class com.castlabs.sdk.base.subtitles.utilities.ParsableBitArray
  Overwrites `numBits` from this array using the `numBits` least significant bits from `value`.

## R

readBit() - Method in class com.castlabs.sdk.base.subtitles.utilities.ParsableBitArray
  Reads a single bit.
readBits(byte[], int, int) - Method in class com.castlabs.sdk.base.subtitles.utilities.ParsableBitArray
  Reads `numBits` bits into `buffer`.
readBits(int) - Method in class com.castlabs.sdk.base.subtitles.utilities.ParsableBitArray
  Reads up to 32 bits.
readBitsToLong(int) - Method in class com.castlabs.sdk.base.subtitles.utilities.ParsableBitArray
  Reads up to 64 bits.
readBytes(byte[], int, int) - Method in class com.castlabs.sdk.base.subtitles.utilities.ParsableBitArray
  Reads the next `length` bytes into `buffer`.
readBytes(byte[], int, int) - Method in class com.castlabs.sdk.base.subtitles.utilities.ParsableByteArray
  Reads the next `length` bytes into `buffer` at `offset`.
readBytes(ParsableBitArray, int) - Method in class com.castlabs.sdk.base.subtitles.utilities.ParsableByteArray
  Reads the next `length` bytes into `bitArray`, and resets the position of `bitArray` to zero.
readBytes(ByteBuffer, int) - Method in class com.castlabs.sdk.base.subtitles.utilities.ParsableByteArray
  Reads the next `length` bytes into `buffer`.
readDouble() - Method in class com.castlabs.sdk.base.subtitles.utilities.ParsableByteArray
  Reads the next eight bytes as a 64-bit floating point value.
readFloat() - Method in class com.castlabs.sdk.base.subtitles.utilities.ParsableByteArray
  Reads the next four bytes as a 32-bit floating point value.
readInt() - Method in class com.castlabs.sdk.base.subtitles.utilities.ParsableByteArray
  Reads the next four bytes as a signed value
readInt24() - Method in class com.castlabs.sdk.base.subtitles.utilities.ParsableByteArray
  Reads the next three bytes as a signed value.
readLine() - Method in class com.castlabs.sdk.base.subtitles.utilities.ParsableByteArray
  Reads a line of text.
readLittleEndianInt() - Method in class com.castlabs.sdk.base.subtitles.utilities.ParsableByteArray
  Reads the next four bytes as a signed value in little endian order.
readLittleEndianInt24() - Method in class com.castlabs.sdk.base.subtitles.utilities.ParsableByteArray
  Reads the next three bytes as a signed value in little endian order.
readLittleEndianLong() - Method in class com.castlabs.sdk.base.subtitles.utilities.ParsableByteArray
  Reads the next eight bytes as a signed value in little endian order.
readLittleEndianShort() - Method in class com.castlabs.sdk.base.subtitles.utilities.ParsableByteArray
  Reads the next two bytes as a signed value.
readLittleEndianUnsignedInt() - Method in class com.castlabs.sdk.base.subtitles.utilities.ParsableByteArray
  Reads the next four bytes as an unsigned value in little endian order.
readLittleEndianUnsignedInt24() - Method in class com.castlabs.sdk.base.subtitles.utilities.ParsableByteArray
  Reads the next three bytes as an unsigned value in little endian order.
readLittleEndianUnsignedIntToInt() - Method in class com.castlabs.sdk.base.subtitles.utilities.ParsableByteArray
  Reads the next four bytes as a little endian unsigned integer into an integer, if the top bit is a zero.
readLittleEndianUnsignedShort() - Method in class com.castlabs.sdk.base.subtitles.utilities.ParsableByteArray
  Reads the next two bytes as an unsigned value.
readLong() - Method in class com.castlabs.sdk.base.subtitles.utilities.ParsableByteArray
  Reads the next eight bytes as a signed value.
readNullTerminatedString() - Method in class com.castlabs.sdk.base.subtitles.utilities.ParsableByteArray
  Reads up to the next NUL byte (or the limit) as UTF-8 characters.
readNullTerminatedString(int) - Method in class com.castlabs.sdk.base.subtitles.utilities.ParsableByteArray
  Reads the next `length` bytes as UTF-8 characters.
readShort() - Method in class com.castlabs.sdk.base.subtitles.utilities.ParsableByteArray
  Reads the next two bytes as a signed value.
readString(int) - Method in class com.castlabs.sdk.base.subtitles.utilities.ParsableByteArray
  Reads the next `length` bytes as UTF-8 characters.
readString(int, Charset) - Method in class com.castlabs.sdk.base.subtitles.utilities.ParsableByteArray
  Reads the next `length` bytes as characters in the specified `Charset`.
readSynchSafeInt() - Method in class com.castlabs.sdk.base.subtitles.utilities.ParsableByteArray
  Reads a Synchsafe integer.
readUnsignedByte() - Method in class com.castlabs.sdk.base.subtitles.utilities.ParsableByteArray
  Reads the next byte as an unsigned value.
readUnsignedFixedPoint1616() - Method in class com.castlabs.sdk.base.subtitles.utilities.ParsableByteArray
  Reads the next four bytes, returning the integer portion of the fixed point 16.16 integer.
readUnsignedInt() - Method in class com.castlabs.sdk.base.subtitles.utilities.ParsableByteArray
  Reads the next four bytes as an unsigned value.
readUnsignedInt24() - Method in class com.castlabs.sdk.base.subtitles.utilities.ParsableByteArray
  Reads the next three bytes as an unsigned value.
readUnsignedIntToInt() - Method in class com.castlabs.sdk.base.subtitles.utilities.ParsableByteArray
  Reads the next four bytes as an unsigned integer into an integer, if the top bit is a zero.
readUnsignedLongToLong() - Method in class com.castlabs.sdk.base.subtitles.utilities.ParsableByteArray
  Reads the next eight bytes as an unsigned long into a long, if the top bit is a zero.
readUnsignedShort() - Method in class com.castlabs.sdk.base.subtitles.utilities.ParsableByteArray
  Reads the next two bytes as an unsigned value.
readUtf8EncodedLong() - Method in class com.castlabs.sdk.base.subtitles.utilities.ParsableByteArray
  Reads a long value encoded by UTF-8 encoding
registerCustomMimeType(String, String, int) - Static method in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
  Registers a custom MIME type.
releaseSharedMemoryBuffer() - Method in class com.castlabs.sdk.base.subtitles.buffer.DecoderInputBuffer
reset() - Method in class com.castlabs.sdk.base.subtitles.utilities.ParsableByteArray
  Sets the position and limit to zero.
reset(byte[]) - Method in class com.castlabs.sdk.base.subtitles.utilities.ParsableBitArray
  Updates the instance to wrap `data`, and resets the position to zero.
reset(byte[]) - Method in class com.castlabs.sdk.base.subtitles.utilities.ParsableByteArray
  Updates the instance to wrap `data`, and resets the position to zero and the limit to `data.length`.
reset(byte[], int) - Method in class com.castlabs.sdk.base.subtitles.utilities.ParsableBitArray
  Updates the instance to wrap `data`, and resets the position to zero.
reset(byte[], int) - Method in class com.castlabs.sdk.base.subtitles.utilities.ParsableByteArray
  Updates the instance to wrap `data`, and resets the position to zero.
reset(int) - Method in class com.castlabs.sdk.base.subtitles.utilities.ParsableByteArray
  Resets the position to zero and the limit to the specified value.
reset(ParsableByteArray) - Method in class com.castlabs.sdk.base.subtitles.utilities.ParsableBitArray
  Sets this instance's data, position and limit to match the provided `parsableByteArray`.
resetSupplementalData(int) - Method in class com.castlabs.sdk.base.subtitles.buffer.DecoderInputBuffer
  Clears `DecoderInputBuffer.supplementalData` and ensures that it's large enough to accommodate `length` bytes.
ROLE_FLAG_ALTERNATE - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
  Indicates an alternate track.
ROLE_FLAG_CAPTION - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
  Indicates the track contains captions.
ROLE_FLAG_COMMENTARY - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
  Indicates the track contains commentary, for example from the director.
ROLE_FLAG_DESCRIBES_MUSIC_AND_SOUND - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
  Indicates the track contains a textual description of music and sound.
ROLE_FLAG_DESCRIBES_VIDEO - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
  Indicates the track contains an audio or textual description of a video track.
ROLE_FLAG_DUB - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
  Indicates the track is in a different language from the original, for example dubbed audio or translated captions.
ROLE_FLAG_EASY_TO_READ - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
  Indicates the track contains a text that has been edited for ease of reading.
ROLE_FLAG_EMERGENCY - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
  Indicates the track contains information about a current emergency.
ROLE_FLAG_ENHANCED_DIALOG_INTELLIGIBILITY - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
  Indicates the track is designed for improved intelligibility of dialogue.
ROLE_FLAG_MAIN - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
  Indicates a main track.
ROLE_FLAG_SIGN - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
  Indicates the track contains a visual sign-language interpretation of an audio track.
ROLE_FLAG_SUBTITLE - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
  Indicates the track contains subtitles.
ROLE_FLAG_SUPPLEMENTARY - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
  Indicates a supplementary track, meaning the track has lower importance than the main track(s).
ROLE_FLAG_TRANSCRIBES_DIALOG - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
  Indicates the track contains a transcription of spoken dialog.
ROLE_FLAG_TRICK_PLAY - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
  Indicates the track is intended for trick play.
roleFlags - Variable in class com.castlabs.sdk.base.subtitles.utilities.SubtitleFormat
  Track role flags.

## S

sampleMimeType - Variable in class com.castlabs.sdk.base.subtitles.utilities.SubtitleFormat
  The mime type of the elementary stream (i.e.
SANS_SERIF_NAME - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
  The name of the sans-serif font family.
SchemeData(UUID, String, byte[]) - Constructor for class com.castlabs.sdk.base.subtitles.utilities.DrmInitData.SchemeData
SchemeData(UUID, String, String, byte[]) - Constructor for class com.castlabs.sdk.base.subtitles.utilities.DrmInitData.SchemeData
SchemeData(UUID, String, String, byte[], UUID[]) - Constructor for class com.castlabs.sdk.base.subtitles.utilities.DrmInitData.SchemeData
schemeDataCount - Variable in class com.castlabs.sdk.base.subtitles.utilities.DrmInitData
  Number of `DrmInitData.SchemeData`s.
schemeType - Variable in class com.castlabs.sdk.base.subtitles.utilities.DrmInitData
  The protection scheme type, or null if not applicable or unknown.
SDK_INT - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Util
  Like `Build.VERSION.SDK_INT`, but in a place where it can be conveniently overridden for local testing.
SELECTION_FLAG_AUTOSELECT - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
  Indicates that the player may choose to play the track in absence of an explicit user preference.
SELECTION_FLAG_DEFAULT - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
  Indicates that the track should be selected if user preferences do not state otherwise.
SELECTION_FLAG_FORCED - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
  Indicates that the track must be displayed.
SELECTION_REASON_ADAPTIVE - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
  A selection reason constant for an adaptive track selection.
SELECTION_REASON_CUSTOM_BASE - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
  Applications or extensions may define custom `SELECTION_REASON_*` constants greater than or equal to this value.
SELECTION_REASON_INITIAL - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
  A selection reason constant for an initial track selection.
SELECTION_REASON_MANUAL - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
  A selection reason constant for an manual (i.e.
SELECTION_REASON_TRICK_PLAY - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
  A selection reason constant for a trick play track selection.
SELECTION_REASON_UNKNOWN - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
  A selection reason constant for selections whose reasons are unknown or unspecified.
selectionFlags - Variable in class com.castlabs.sdk.base.subtitles.utilities.SubtitleFormat
  Track selection flags.
SERIF_NAME - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
  The name of the serif font family.
set(int, int[], int[], byte[], byte[], int, int, int) - Method in class com.castlabs.sdk.base.subtitles.buffer.CryptoInfo
set(int, int[], int[], byte[], byte[], int, int, int, byte[]) - Method in class com.castlabs.sdk.base.subtitles.buffer.CryptoInfo
setDebugRendering(boolean) - Method in class com.castlabs.sdk.base.subtitles.SubtitlesView
  Enable or disable debug rendering
setFlags(int) - Method in class com.castlabs.sdk.base.subtitles.buffer.Buffer
  Replaces this buffer's flags with `flags`.
setFormat(SubtitleFormat) - Method in class com.castlabs.sdk.base.subtitles.SubtitleParserApi
setFormat(SubtitleFormat) - Method in class com.castlabs.sdk.base.subtitles.SubtitleParserHelper
  Sets the format of subsequent samples.
setImagePool(ImagePool) - Method in class com.castlabs.sdk.base.subtitles.SubtitlesView
setJNIHelper(SubtitleParserHelper) - Method in class com.castlabs.sdk.base.subtitles.SubtitlesView
setLimit(int) - Method in class com.castlabs.sdk.base.subtitles.utilities.ParsableByteArray
  Sets the limit.
setMeasuredVideoDimensions(int, int) - Method in class com.castlabs.sdk.base.subtitles.SubtitlesView
  Informs the subtitle render context about the video dimensions.
setPosition(int) - Method in class com.castlabs.sdk.base.subtitles.utilities.ParsableBitArray
  Sets the current bit offset.
setPosition(int) - Method in class com.castlabs.sdk.base.subtitles.utilities.ParsableByteArray
  Sets the reading offset in the array.
setViewParserHelper(SubtitlesView) - Method in class com.castlabs.sdk.base.subtitles.SubtitleParserApi
shmemRegion - Variable in class com.castlabs.sdk.base.subtitles.buffer.DecoderInputBuffer
skipBit() - Method in class com.castlabs.sdk.base.subtitles.utilities.ParsableBitArray
  Skips a single bit.
skipBits(int) - Method in class com.castlabs.sdk.base.subtitles.utilities.ParsableBitArray
  Skips bits and moves current reading position forward.
skipBytes(int) - Method in class com.castlabs.sdk.base.subtitles.utilities.ParsableBitArray
  Skips the next `length` bytes.
skipBytes(int) - Method in class com.castlabs.sdk.base.subtitles.utilities.ParsableByteArray
  Moves the reading offset by `bytes`.
split(String, String) - Static method in class com.castlabs.sdk.base.subtitles.utilities.Util
  Splits a string using `value.split(regex, -1`).
splitAtFirst(String, String) - Static method in class com.castlabs.sdk.base.subtitles.utilities.Util
  Splits the string at the first occurrence of the delimiter `regex`.
splitCodecs(String) - Static method in class com.castlabs.sdk.base.subtitles.utilities.Util
  Splits a codecs sequence string, as defined in RFC 6381, into individual codec strings.
subsampleOffsetUs - Variable in class com.castlabs.sdk.base.subtitles.buffer.BaseSubtitleInputBuffer
  An offset that must be added to the subtitle's event times after it's been decoded, or `SubtitleFormat.OFFSET_SAMPLE_RELATIVE` if `DecoderInputBuffer.timeUs` should be added.
subsamples - Variable in class com.castlabs.sdk.base.subtitles.buffer.DecoderInputBuffer
  Subsamples contained in the buffer.
SubtitleFormat - Class in com.castlabs.sdk.base.subtitles.utilities
SubtitleParserApi - Class in com.castlabs.sdk.base.subtitles
SubtitleParserApi(Looper, Handler) - Constructor for class com.castlabs.sdk.base.subtitles.SubtitleParserApi
SubtitleParserHelper - Class in com.castlabs.sdk.base.subtitles
SubtitleParserHelper(Looper, Handler) - Constructor for class com.castlabs.sdk.base.subtitles.SubtitleParserHelper
SubtitleParserHelper.EdgeType - Annotation Type in com.castlabs.sdk.base.subtitles
SubtitleParserHelper.ScalingMode - Annotation Type in com.castlabs.sdk.base.subtitles
SubtitlesView - Class in com.castlabs.sdk.base.subtitles
SubtitlesView(Context) - Constructor for class com.castlabs.sdk.base.subtitles.SubtitlesView
SubtitlesView(Context, AttributeSet) - Constructor for class com.castlabs.sdk.base.subtitles.SubtitlesView
SubtitlesView(Context, AttributeSet, int) - Constructor for class com.castlabs.sdk.base.subtitles.SubtitlesView
SubtitlesView(Context, AttributeSet, int, int) - Constructor for class com.castlabs.sdk.base.subtitles.SubtitlesView
supplementalData - Variable in class com.castlabs.sdk.base.subtitles.buffer.DecoderInputBuffer
  Supplemental data related to the buffer, if `Buffer.hasSupplementalData()` returns true.

## T

TEXT_SSA - Static variable in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
TEXT_VTT - Static variable in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
TextShadow - Class in com.castlabs.sdk.base.subtitles
TextShadow() - Constructor for class com.castlabs.sdk.base.subtitles.TextShadow
TextShadow(boolean, int, int, int, int) - Constructor for class com.castlabs.sdk.base.subtitles.TextShadow
TIME_END_OF_SOURCE - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
  Special constant representing a time corresponding to the end of a source.
TIME_UNSET - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
  Special constant representing an unset or unknown time or duration.
timeUs - Variable in class com.castlabs.sdk.base.subtitles.buffer.DecoderInputBuffer
  The time at which the sample should be presented.
toLogString(SubtitleFormat) - Static method in class com.castlabs.sdk.base.subtitles.utilities.SubtitleFormat
  Returns a prettier `String` than `SubtitleFormat.toString()`, intended for logging.
toLong(int, int) - Static method in class com.castlabs.sdk.base.subtitles.utilities.Util
  Return the long that is composed of the bits of the 2 specified integers.
toLowerInvariant(String) - Static method in class com.castlabs.sdk.base.subtitles.utilities.Util
  Converts text to lower case using `Locale.US`.
toString() - Method in class com.castlabs.sdk.base.subtitles.utilities.SubtitleFormat
toUnsignedLong(int) - Static method in class com.castlabs.sdk.base.subtitles.utilities.Util
  Converts an integer to a long by unsigned conversion.
toUpperInvariant(String) - Static method in class com.castlabs.sdk.base.subtitles.utilities.Util
  Converts text to upper case using `Locale.US`.
TRACK_TYPE_AUDIO - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
  A type constant for audio tracks.
TRACK_TYPE_CAMERA_MOTION - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
  A type constant for camera motion tracks.
TRACK_TYPE_CUSTOM_BASE - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
  Applications or extensions may define custom `TRACK_TYPE_*` constants greater than or equal to this value.
TRACK_TYPE_DEFAULT - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
  A type constant for tracks of some default type, where the type itself is unknown.
TRACK_TYPE_METADATA - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
  A type constant for metadata tracks.
TRACK_TYPE_NONE - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
  A type constant for a dummy or empty track.
TRACK_TYPE_TEXT - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
  A type constant for text tracks.
TRACK_TYPE_UNKNOWN - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
  A type constant for tracks of unknown type.
TRACK_TYPE_VIDEO - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
  A type constant for video tracks.

## U

unmapByteBuffer() - Method in class com.castlabs.sdk.base.subtitles.buffer.DecoderInputBuffer
update(long) - Method in class com.castlabs.sdk.base.subtitles.SubtitlesView
  Check for visibility changes to any of the subtitles If any subtitle changes state to become hidden or visible then the view will be rendered
updatePlayerPosition(long) - Method in class com.castlabs.sdk.base.subtitles.SubtitleParserApi
updatePlayerPosition(long) - Method in class com.castlabs.sdk.base.subtitles.SubtitleParserHelper
  Sets the current player position.
USAGE_ALARM - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
USAGE_ASSISTANCE_ACCESSIBILITY - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
USAGE_ASSISTANCE_NAVIGATION_GUIDANCE - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
USAGE_ASSISTANCE_SONIFICATION - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
USAGE_ASSISTANT - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
USAGE_GAME - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
USAGE_MEDIA - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
USAGE_NOTIFICATION - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
USAGE_NOTIFICATION_COMMUNICATION_DELAYED - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
USAGE_NOTIFICATION_COMMUNICATION_INSTANT - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
USAGE_NOTIFICATION_COMMUNICATION_REQUEST - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
USAGE_NOTIFICATION_EVENT - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
USAGE_NOTIFICATION_RINGTONE - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
USAGE_UNKNOWN - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
USAGE_VOICE_COMMUNICATION - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
USAGE_VOICE_COMMUNICATION_SIGNALLING - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
usToMs(long) - Static method in class com.castlabs.sdk.base.subtitles.utilities.Constants
  Converts a time in microseconds to the corresponding time in milliseconds, preserving `Constants.TIME_UNSET` and `Constants.TIME_END_OF_SOURCE` values.
UTF16_NAME - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
  The name of the UTF-16 charset.
UTF16LE_NAME - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
  The name of the UTF-16 little-endian charset.
UTF8_NAME - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
  The name of the UTF-8 charset.
Util - Class in com.castlabs.sdk.base.subtitles.utilities
Util() - Constructor for class com.castlabs.sdk.base.subtitles.utilities.Util
UUID_NIL - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
  The Nil UUID as defined by RFC4122.

## V

VIDEO_AV1 - Static variable in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
VIDEO_DIVX - Static variable in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
VIDEO_DOLBY_VISION - Static variable in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
VIDEO_H263 - Static variable in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
VIDEO_H264 - Static variable in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
VIDEO_H265 - Static variable in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
VIDEO_MP4 - Static variable in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
VIDEO_MP4V - Static variable in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
VIDEO_MPEG - Static variable in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
VIDEO_MPEG2 - Static variable in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
VIDEO_OUTPUT_MODE_NONE - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
  Video decoder output mode is not set.
VIDEO_OUTPUT_MODE_SURFACE_YUV - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
  Video decoder output mode that renders 4:2:0 YUV planes directly to a surface.
VIDEO_OUTPUT_MODE_YUV - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
  Video decoder output mode that outputs raw 4:2:0 YUV planes.
VIDEO_UNKNOWN - Static variable in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
VIDEO_VC1 - Static variable in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
VIDEO_VP8 - Static variable in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
VIDEO_VP9 - Static variable in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes
VIDEO_WEBM - Static variable in class com.castlabs.sdk.base.subtitles.utilities.MimeTypes

## W

waitingForKeys - Variable in class com.castlabs.sdk.base.subtitles.buffer.DecoderInputBuffer
  Whether the last attempt to read a sample into this buffer failed due to not yet having the DRM keys associated with the next sample.
WIDEVINE_UUID - Static variable in class com.castlabs.sdk.base.subtitles.utilities.Constants
  UUID for the Widevine DRM scheme.
writeToParcel(Parcel, int) - Method in class com.castlabs.sdk.base.subtitles.utilities.DrmInitData.SchemeData
writeToParcel(Parcel, int) - Method in class com.castlabs.sdk.base.subtitles.utilities.DrmInitData
writeToParcel(Parcel, int) - Method in class com.castlabs.sdk.base.subtitles.utilities.SubtitleFormat

A B C D E F G H I K L M N O P R S T U V W
All Classes and Interfaces|All Packages|Constant Field Values