Package-level declarations
Properties
Get the application pixel density
Returns the display orientation in degrees from the natural orientation.
Returns the display orientation in degrees from the natural orientation.
Extracts csd buffers from MediaFormat. It can contains SPS, PPS for AVC.
Whether ByteBuffer is Annex B or not. Annex B frames start with a start code (0x00000001 or 0x000001).
Whether the application is in landscape.
Whether the application is in portrait.
Whether ByteBuffer is AVCC/HVCC or not. AVCC/HVCC frames start with a the frame size.
Whether the device is in landscape orientation.
Whether the device is in portrait orientation.
Whether the size is in landscape orientation.
Whether the application is in landscape orientation.
Whether the natural orientation is portrait.
Whether the size is in portrait orientation.
Gets the size in landscape orientation: the largest dimension as width and the smallest as height.
Gets the size in portrait orientation: the smallest dimension as width and the largest as height.
Extracts resolution from a MediaFormat. Only for MediaFormat of video.
Get the screen rectangle in pixels
Converts AudioCodecConfig to AudioSourceConfig.
Converts VideoCodecConfig to VideoSourceConfig.
Get start code size of ByteBuffer.
Functions
Clone ByteBuffer. The position of the original ByteBuffer will be 0 after the clone.
Whether AudioCodecConfig is compatible with AudioSourceConfig.
Whether VideoCodecConfig is compatible with VideoCodecConfig.
Whether AudioSourceConfig is compatible with AudioSourceConfig.
Whether VideoSourceConfig is compatible with VideoSourceConfig.
Whether the rotation is portrait for this device.
Whether the rotation is portrait for this device.
Remove all prefixes from ByteBuffer whatever their order. It slices ByteBuffer so it does not copy data.
Get all ByteBuffer occurrences that start with prefix.
Whether the ByteBuffer starts with a String from the current position.
Whether the ByteBuffer starts with a list of ByteBuffer from the current position.
Whether the ByteBuffer starts with a ByteArray from the current position.
Returns ByteBuffer array even if ByteBuffer.hasArray returns false.