MLMediaMuxerSampleData
Module: Media Recorder
Data type that encapsulates sample data to be written in to MLMediaMuxer. More...
#include <ml_media_muxer.h>
Public Attributes
Type | Name |
---|---|
uint32_t | version |
size_t | track_index The track index number, to which to write the sample data into. This should be one of the number returned by MLMediaMuxerAddTrack. |
const uint8_t * | buffer |
size_t | size |
int64_t | time_us |
uint32_t | flags The flag about the data. The following flags are supported: MLMediaCodecBufferFlag_KeyFrame: if its a sync/key frame. MLMediaCodecBufferFlag_EOS: To notify end of stream. MLMediaCodecBufferFlag_MuxerData: if it is muxer data (only Exif data block is supported). |
Detailed Description
struct MLMediaMuxerSampleData;
Data type that encapsulates sample data to be written in to MLMediaMuxer.
Deprecated since 1.4.0. Scheduled for removal.
API Level:
- 20
Public Attributes Documentation
version
uint32_t version;
Version of this structure.
track_index
size_t track_index;
The track index number, to which to write the sample data into. This should be one of the number returned by MLMediaMuxerAddTrack.
buffer
const uint8_t * buffer;
Pointer to the sample buffer/data.
size
size_t size;
Size of the sample buuffer/data.
time_us
int64_t time_us;
The buffer's time stamp in microseconds.
flags
uint32_t flags;
The flag about the data. The following flags are supported: MLMediaCodecBufferFlag_KeyFrame: if its a sync/key frame. MLMediaCodecBufferFlag_EOS: To notify end of stream. MLMediaCodecBufferFlag_MuxerData: if it is muxer data (only Exif data block is supported).