結構化
AudioFormat
定義於 fuchsia.mediastreams/audio_format.fidl
說明在不參照壓縮的情況下,用於音訊基本串流的格式。在支援壓縮的情況下,這個類型應與 Compression 結構搭配使用。
| 欄位 | 類型 | 說明 | 預設 | 
|---|---|---|---|
| sample_format | AudioSampleFormat | 個別樣本的類型。 | 無預設 | 
| channel_count | uint32 | 每影格的取樣數量。 | 無預設 | 
| frames_per_second | uint32 | 每秒影格數。 | 無預設 | 
| channel_layout | AudioChannelLayout | 每個管道的空間分配。 | 無預設 | 
壓縮
定義於 fuchsia.mediastreams/compression.fidl
說明套用至串流的壓縮。
| 欄位 | 類型 | 說明 | 預設 | 
|---|---|---|---|
| type | CompressionType | 套用至串流的壓縮類型。 | 無預設 | 
| parameters | vector<uint8>? | 說明串流壓縮的不透明「頻外」參數。 | 無預設 | 
加密
定義於 fuchsia.mediastreams/encryption.fidl
| 欄位 | 類型 | 說明 | 預設 | 
|---|---|---|---|
| scheme | EncryptionScheme | 無預設 | |
| default_key_id | EncryptionKeyId | 無預設 | |
| default_init_vector | EncryptionInitVector | 無預設 | |
| default_pattern | EncryptionPattern? | 無預設 | 
EncryptionPattern
定義於 fuchsia.mediastreams/encryption.fidl
| 欄位 | 類型 | 說明 | 預設 | 
|---|---|---|---|
| clear_blocks | uint32 | 無預設 | |
| encrypted_blocks | uint32 | 無預設 | 
EncryptionSubsampleEntry
定義於 fuchsia.mediastreams/encryption.fidl
| 欄位 | 類型 | 說明 | 預設 | 
|---|---|---|---|
| clear_bytes | uint32 | 無預設 | |
| encrypted_bytes | uint32 | 無預設 | 
VideoFormat
在 fuchsia.mediastreams/video_format.fidl 中定義的
說明在不參照壓縮的情況下,用於影片基本串流的格式。在支援壓縮的情況下,這個類型應與 Compression 結構搭配使用。
| 欄位 | 類型 | 說明 | 預設 | 
|---|---|---|---|
| pixel_format | PixelFormat | 說明像素編碼的方式。 | 無預設 | 
| pixel_format_modifier | uint64 | 供應商專屬的像素格式修飾符。 | 無預設 | 
| color_space | ColorSpace | 指出用來解譯像素值的色域。 | 無預設 | 
| coded_size | fuchsia.math/Size | 影格的大小,根據影格酬載中代表的像素數量計算。 | 無預設 | 
| display_size | fuchsia.math/Size | 影格的大小,取決於應顯示的像素數量。這些值一律會小於或等於對應的  | 無預設 | 
| aspect_ratio | fuchsia.math/Size? | 影片顯示畫面的長寬比。 | 無預設 | 
ENUMS
AudioSampleFormat 嚴格
類型:uint32
定義於 fuchsia.mediastreams/audio_format.fidl
表示個別音訊樣本的格式。
| 名稱 | 值 | 說明 | 
|---|---|---|
| UNSIGNED_8 | 1 | |
| SIGNED_16 | 2 | |
| SIGNED_24_IN_32 | 3 | |
| SIGNED_32 | 4 | |
| FLOAT | 5 | 
ColorSpace 嚴格
類型:uint32
在 fuchsia.mediastreams/video_format.fidl 中定義的
表示用來解讀影片像素值的色域。
| 名稱 | 值 | 說明 | 
|---|---|---|
| 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 | 
像素格式嚴格
類型:uint32
在 fuchsia.mediastreams/video_format.fidl 中定義的
表示影片像素的編碼方式。
| 名稱 | 值 | 說明 | 
|---|---|---|
| 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 | 
聯合國
AudioChannelLayout 嚴格
定義於 fuchsia.mediastreams/audio_format.fidl
| 序數 | Variant | 類型 | 說明 | 
|---|---|---|---|
| 1 | placeholder | uint8 | 
媒體格式彈性
在 fuchsia.mediastreams/media_format.fidl 中定義的
說明基本串流使用的格式
| 序數 | Variant | 類型 | 說明 | 
|---|---|---|---|
| 1 | audio | AudioFormat | 音訊串流的格式。 | 
| 2 | video | VideoFormat | 影片串流的格式。 | 
業者
| 名稱 | 值 | 類型 | 說明 | 
|---|---|---|---|
| AUDIO_COMPRESSION_AAC | fuchsia.streams.aac | String | 已移除:HEAD | 
| AUDIO_COMPRESSION_AACLATM | fuchsia.streams.aaclatm | String | 已移除:HEAD | 
| AUDIO_COMPRESSION_AMRNB | fuchsia.streams.amrnb | String | 已移除:HEAD | 
| AUDIO_COMPRESSION_AMRWB | fuchsia.streams.amrwb | String | 已移除:HEAD | 
| AUDIO_COMPRESSION_APTX | fuchsia.streams.aptx | String | 已移除:HEAD | 
| AUDIO_COMPRESSION_FLAC | fuchsia.streams.flac | String | 已移除:HEAD | 
| AUDIO_COMPRESSION_GSMMS | fuchsia.streams.gsmms | String | 已移除:HEAD | 
| AUDIO_COMPRESSION_MP3 | fuchsia.streams.mp3 | String | 已移除:HEAD | 
| AUDIO_COMPRESSION_OPUS | fuchsia.streams.opus | String | 已移除:HEAD | 
| AUDIO_COMPRESSION_PCMALAW | fuchsia.streams.pcmalaw | String | 已移除:HEAD | 
| AUDIO_COMPRESSION_PCMMULAW | fuchsia.streams.pcmmulaw | String | 已移除:HEAD | 
| AUDIO_COMPRESSION_SBC | fuchsia.streams.sbc | String | 已移除:HEAD | 
| AUDIO_COMPRESSION_VORBIS | fuchsia.streams.vorbis | String | 已移除: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 | 
 | 
| MAX_INIT_VECTOR_SIZE | 16 | int64 | 
 | 
| MAX_KEY_ID_SIZE | 16 | int64 | 
 | 
| VIDEO_COMPRESSION_H263 | fuchsia.streams.h263 | String | 已移除:HEAD | 
| VIDEO_COMPRESSION_H264 | fuchsia.streams.h264 | String | 已移除:HEAD | 
| VIDEO_COMPRESSION_MPEG4 | fuchsia.streams.mpeg4 | String | 已移除:HEAD | 
| VIDEO_COMPRESSION_THEORA | fuchsia.streams.theora | String | 已移除:HEAD | 
| VIDEO_COMPRESSION_VP3 | fuchsia.streams.vp3 | String | 已移除:HEAD | 
| VIDEO_COMPRESSION_VP8 | fuchsia.streams.vp8 | String | 已移除:HEAD | 
| VIDEO_COMPRESSION_VP9 | fuchsia.streams.vp9 | String | 已移除:HEAD | 
別名
| 名稱 | 值 | 說明 | 
|---|---|---|
| CompressionType | string[256] | 壓縮類型的 ID。 已移除:HEAD | 
| EncryptionInitVector | vector[MAX_INIT_VECTOR_SIZE] | |
| EncryptionKeyId | vector[MAX_KEY_ID_SIZE] | |
| EncryptionScheme | string[MAX_ENCRYPTION_SCHEME_SIZE] | 識別加密配置。 |