STRUCTS
AudioFormat
Defined in fuchsia.mediastreams/audio_format.fidl
Describes a format used for audio elementary streams without
reference to compression. Where compression is supported, this
type should be combined with a Compression struct.
| Field | Type | Description | Default | 
|---|---|---|---|
| sample_format | AudioSampleFormat | The type of individual samples. | No default | 
| channel_count | uint32 | The number of samples per frame. | No default | 
| frames_per_second | uint32 | The number of frames per second. | No default | 
| channel_layout | AudioChannelLayout | The spatial assignment of each channel. | No default | 
Compression
Defined in fuchsia.mediastreams/compression.fidl
Describes the compression applied to a stream.
| Field | Type | Description | Default | 
|---|---|---|---|
| type | CompressionType | The type of compression applied to the stream. | No default | 
| parameters | vector<uint8>? | Opaque 'out-of-band' parameters describing the compression of the stream. | No default | 
Encryption
Defined in fuchsia.mediastreams/encryption.fidl
| Field | Type | Description | Default | 
|---|---|---|---|
| scheme | EncryptionScheme | No default | |
| default_key_id | EncryptionKeyId | No default | |
| default_init_vector | EncryptionInitVector | No default | |
| default_pattern | EncryptionPattern? | No default | 
EncryptionPattern
Defined in fuchsia.mediastreams/encryption.fidl
| Field | Type | Description | Default | 
|---|---|---|---|
| clear_blocks | uint32 | No default | |
| encrypted_blocks | uint32 | No default | 
EncryptionSubsampleEntry
Defined in fuchsia.mediastreams/encryption.fidl
| Field | Type | Description | Default | 
|---|---|---|---|
| clear_bytes | uint32 | No default | |
| encrypted_bytes | uint32 | No default | 
VideoFormat
Defined in fuchsia.mediastreams/video_format.fidl
Describes a format used for video elementary streams without
reference to compression. Where compression is supported, this
type should be combined with a Compression struct.
| Field | Type | Description | Default | 
|---|---|---|---|
| pixel_format | PixelFormat | Describes the manner in which pixels are encoded. | No default | 
| pixel_format_modifier | uint64 | Vendor-specific pixel format modifier. | No default | 
| color_space | ColorSpace | Indicates the color space used to interpret pixel values. | No default | 
| coded_size | fuchsia.math/Size | The size of a frame in terms of the number of pixels that are represented in a frame payload. | No default | 
| display_size | fuchsia.math/Size | The size of a frame in terms of the number of pixels that
should be displayed. These values will always be less than
or equal to the corresponding  | No default | 
| aspect_ratio | fuchsia.math/Size? | Aspect ratio of a single pixel as the video is intended to be displayed. | No default | 
ENUMS
AudioSampleFormat strict
Type: uint32
Defined in fuchsia.mediastreams/audio_format.fidl
Expresses the format of individual audio samples.
| Name | Value | Description | 
|---|---|---|
| UNSIGNED_8 | 1 | |
| SIGNED_16 | 2 | |
| SIGNED_24_IN_32 | 3 | |
| SIGNED_32 | 4 | |
| FLOAT | 5 | 
ColorSpace strict
Type: uint32
Defined in fuchsia.mediastreams/video_format.fidl
Expresses the color space used to interpret video pixel values.
| Name | Value | Description | 
|---|---|---|
| INVALID | 0 | |
| SRGB | 1 | |
| REC601_NTSC | 2 | |
| REC601_NTSC_FULL_RANGE | 3 | |
| REC601_PAL | 4 | |
| REC601_PAL_FULL_RANGE | 5 | |
| REC709 | 6 | |
| REC2020 | 7 | |
| REC2100 | 8 | 
PixelFormat strict
Type: uint32
Defined in fuchsia.mediastreams/video_format.fidl
Expresses the manner in which video pixels are encoded.
| Name | Value | Description | 
|---|---|---|
| INVALID | 0 | |
| R8G8B8A8 | 1 | |
| BGRA32 | 101 | |
| I420 | 102 | |
| M420 | 103 | |
| NV12 | 104 | |
| YUY2 | 105 | |
| MJPEG | 106 | |
| YV12 | 107 | |
| BGR24 | 108 | |
| RGB565 | 109 | |
| RGB332 | 110 | |
| RGB2220 | 111 | |
| L8 | 112 | |
| R8 | 113 | |
| R8G8 | 114 | 
UNIONS
AudioChannelLayout strict
Defined in fuchsia.mediastreams/audio_format.fidl
| Ordinal | Variant | Type | Description | 
|---|---|---|---|
| 1 | placeholder | uint8 | 
MediaFormat flexible
Defined in fuchsia.mediastreams/media_format.fidl
Describes a format used for elementary streams
| Ordinal | Variant | Type | Description | 
|---|---|---|---|
| 1 | audio | AudioFormat | Format for audio streams. | 
| 2 | video | VideoFormat | Format for video streams. | 
CONSTANTS
| Name | Value | Type | Description | 
|---|---|---|---|
| AUDIO_COMPRESSION_AAC | fuchsia.streams.aac | String | Removed: HEAD | 
| AUDIO_COMPRESSION_AACLATM | fuchsia.streams.aaclatm | String | Removed: HEAD | 
| AUDIO_COMPRESSION_AMRNB | fuchsia.streams.amrnb | String | Removed: HEAD | 
| AUDIO_COMPRESSION_AMRWB | fuchsia.streams.amrwb | String | Removed: HEAD | 
| AUDIO_COMPRESSION_APTX | fuchsia.streams.aptx | String | Removed: HEAD | 
| AUDIO_COMPRESSION_FLAC | fuchsia.streams.flac | String | Removed: HEAD | 
| AUDIO_COMPRESSION_GSMMS | fuchsia.streams.gsmms | String | Removed: HEAD | 
| AUDIO_COMPRESSION_MP3 | fuchsia.streams.mp3 | String | Removed: HEAD | 
| AUDIO_COMPRESSION_OPUS | fuchsia.streams.opus | String | Removed: HEAD | 
| AUDIO_COMPRESSION_PCMALAW | fuchsia.streams.pcmalaw | String | Removed: HEAD | 
| AUDIO_COMPRESSION_PCMMULAW | fuchsia.streams.pcmmulaw | String | Removed: HEAD | 
| AUDIO_COMPRESSION_SBC | fuchsia.streams.sbc | String | Removed: HEAD | 
| AUDIO_COMPRESSION_VORBIS | fuchsia.streams.vorbis | String | Removed: HEAD | 
| ENCRYPTION_SCHEME_CBC1 | cbc1 | String | |
| ENCRYPTION_SCHEME_CBCS | cbcs | String | |
| ENCRYPTION_SCHEME_CENC | cenc | String | |
| ENCRYPTION_SCHEME_CENS | cens | String | |
| MAX_ENCRYPTION_SCHEME_SIZE | 4 | int64 | The maximum size of an  | 
| MAX_INIT_VECTOR_SIZE | 16 | int64 | The maximum size of a  | 
| MAX_KEY_ID_SIZE | 16 | int64 | The maximum size of a  | 
| VIDEO_COMPRESSION_H263 | fuchsia.streams.h263 | String | Removed: HEAD | 
| VIDEO_COMPRESSION_H264 | fuchsia.streams.h264 | String | Removed: HEAD | 
| VIDEO_COMPRESSION_MPEG4 | fuchsia.streams.mpeg4 | String | Removed: HEAD | 
| VIDEO_COMPRESSION_THEORA | fuchsia.streams.theora | String | Removed: HEAD | 
| VIDEO_COMPRESSION_VP3 | fuchsia.streams.vp3 | String | Removed: HEAD | 
| VIDEO_COMPRESSION_VP8 | fuchsia.streams.vp8 | String | Removed: HEAD | 
| VIDEO_COMPRESSION_VP9 | fuchsia.streams.vp9 | String | Removed: HEAD | 
ALIASES
| Name | Value | Description | 
|---|---|---|
| CompressionType | string[256] | An identifier for compression types. Removed: HEAD | 
| EncryptionInitVector | vector[MAX_INIT_VECTOR_SIZE] | |
| EncryptionKeyId | vector[MAX_KEY_ID_SIZE] | |
| EncryptionScheme | string[MAX_ENCRYPTION_SCHEME_SIZE] | Identifies an encryption scheme. |