MuxerUtil
@UnstableApi
class MuxerUtil
Utility methods for muxer.
Summary
Constants |
|
|---|---|
const Long |
UNSIGNED_INT_MAX_VALUE = 4294967295The maximum value of a 32-bit unsigned int. |
Public functions |
|
|---|---|
java-static Unit |
createMotionPhotoFromJpegImageAndBmffVideo(Creates a Motion Photo from a JPEG image and a BMFF video as per the Motion Photo spec. |
java-static BufferInfo! |
getMuxerBufferInfoFromMediaCodecBufferInfo(Returns |
java-static Boolean |
isMetadataSupported(metadata: Metadata.Entry!)Returns whether a given |
Constants
UNSIGNED_INT_MAX_VALUE
const val UNSIGNED_INT_MAX_VALUE = 4294967295: Long
The maximum value of a 32-bit unsigned int.
Public functions
createMotionPhotoFromJpegImageAndBmffVideo
java-static fun createMotionPhotoFromJpegImageAndBmffVideo(
imageInputStream: FileInputStream!,
imagePresentationTimestampUs: Long,
videoInputStream: FileInputStream!,
videoContainerMimeType: String!,
outputChannel: WritableByteChannel!
): Unit
Creates a Motion Photo from a JPEG image and a BMFF video as per the Motion Photo spec.
| Parameters | |
|---|---|
imageInputStream: FileInputStream! |
A |
imagePresentationTimestampUs: Long |
The presentation timestamp of the image in the video (in microseconds). |
videoInputStream: FileInputStream! |
A |
videoContainerMimeType: String! |
The container mime type of the video. Must be |
outputChannel: WritableByteChannel! |
A |
| Throws | |
|---|---|
java.io.IOException |
If an error occurs when creating the Motion Photo. |
getMuxerBufferInfoFromMediaCodecBufferInfo
java-static fun getMuxerBufferInfoFromMediaCodecBufferInfo(
mediaCodecBufferInfo: MediaCodec.BufferInfo!
): BufferInfo!
Returns BufferInfo corresponding to the MediaCodec.BufferInfo.
isMetadataSupported
java-static fun isMetadataSupported(metadata: Metadata.Entry!): Boolean
Returns whether a given metadata is supported.