Google is committed to advancing racial equity for Black communities. See how.

fuchsia.mediastreams

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.

FieldTypeDescriptionDefault
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.

FieldTypeDescriptionDefault
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

FieldTypeDescriptionDefault
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

FieldTypeDescriptionDefault
clear_blocks uint32 No default
encrypted_blocks uint32 No default

EncryptionSubsampleEntry

Defined in fuchsia.mediastreams/encryption.fidl

FieldTypeDescriptionDefault
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.

FieldTypeDescriptionDefault
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 coded_size values.

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.

NameValueDescription
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.

NameValueDescription
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.

NameValueDescription
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
VariantTypeDescription
1 placeholder uint8

MediaFormat flexible

Defined in fuchsia.mediastreams/media_format.fidl

Describes a format used for elementary streams

Ordinal
VariantTypeDescription
1 audio AudioFormat

Format for audio streams.

2 video VideoFormat

Format for video streams.

CONSTANTS

NameValueTypeDescription
AUDIO_COMPRESSION_AAC fuchsia.streams.aac String
AUDIO_COMPRESSION_AACLATM fuchsia.streams.aaclatm String
AUDIO_COMPRESSION_AMRNB fuchsia.streams.amrnb String
AUDIO_COMPRESSION_AMRWB fuchsia.streams.amrwb String
AUDIO_COMPRESSION_APTX fuchsia.streams.aptx String
AUDIO_COMPRESSION_FLAC fuchsia.streams.flac String
AUDIO_COMPRESSION_GSMMS fuchsia.streams.gsmms String
AUDIO_COMPRESSION_MP3 fuchsia.streams.mp3 String
AUDIO_COMPRESSION_OPUS fuchsia.streams.opus String
AUDIO_COMPRESSION_PCMALAW fuchsia.streams.pcmalaw String
AUDIO_COMPRESSION_PCMMULAW fuchsia.streams.pcmmulaw String
AUDIO_COMPRESSION_SBC fuchsia.streams.sbc String
AUDIO_COMPRESSION_VORBIS fuchsia.streams.vorbis String
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 EncryptionScheme string.

MAX_INIT_VECTOR_SIZE 16 int64

The maximum size of a EncryptionInitVector blob.

MAX_KEY_ID_SIZE 16 int64

The maximum size of a EncryptionKeyId blob.

VIDEO_COMPRESSION_H263 fuchsia.streams.h263 String
VIDEO_COMPRESSION_H264 fuchsia.streams.h264 String
VIDEO_COMPRESSION_MPEG4 fuchsia.streams.mpeg4 String
VIDEO_COMPRESSION_THEORA fuchsia.streams.theora String
VIDEO_COMPRESSION_VP3 fuchsia.streams.vp3 String
VIDEO_COMPRESSION_VP8 fuchsia.streams.vp8 String
VIDEO_COMPRESSION_VP9 fuchsia.streams.vp9 String

TYPE ALIASES

NameValueDescription
CompressionType string[256]

An identifier for compression types.

EncryptionInitVector vector[MAX_INIT_VECTOR_SIZE]
EncryptionKeyId vector[MAX_KEY_ID_SIZE]
EncryptionScheme string[MAX_ENCRYPTION_SCHEME_SIZE]

Identifies an encryption scheme.