Crate fidl_fuchsia_media_common

Source

Macros§

AacTransportUnknown
Pattern that matches an unknown AacTransport member.
AudioCaptureUsage2Unknown
Pattern that matches an unknown AudioCaptureUsage2 member.
AudioCompressedFormatUnknown
Pattern that matches an unknown AudioCompressedFormat member.
AudioRenderUsage2Unknown
Pattern that matches an unknown AudioRenderUsage2 member.
BehaviorUnknown
Pattern that matches an unknown Behavior member.
CodecProfileUnknown
Pattern that matches an unknown CodecProfile member.
CryptoFormatUnknown
Pattern that matches an unknown CryptoFormat member.
EncoderSettingsUnknown
Pattern that matches an unknown EncoderSettings member.
Lc3FrameDurationUnknown
Pattern that matches an unknown Lc3FrameDuration member.
Usage2Unknown
Pattern that matches an unknown Usage2 member.
UsageStateUnknown
Pattern that matches an unknown UsageState member.

Structs§

AacConstantBitRate
AacEncoderSettings
AacTransportAdts
AAC inside ADTS
AacTransportLatm
AAC inside LATM
AacTransportRaw
Raw AAC access units.
ActivityReporterWatchCaptureActivity2Response
ActivityReporterWatchCaptureActivityResponse
ActivityReporterWatchRenderActivity2Response
ActivityReporterWatchRenderActivityResponse
AudioCapturerCaptureAtRequest
AudioCapturerCaptureAtResponse
AudioCapturerGetStreamTypeResponse
AudioCapturerSetPcmStreamTypeRequest
AudioCapturerSetUsage2Request
AudioCapturerSetUsageRequest
AudioCapturerStartAsyncCaptureRequest
AudioCompressedFormatAac
AudioCompressedFormatCvsd
AudioCompressedFormatCvsd contains no fields for now since we will be using the parameter values recommended by Bluetooth Core Spec v5.3 section 9.2.
AudioCompressedFormatLc3
AudioCompressedFormatLc3 contains no fields. The required parameters for setting up the decoder would be embedded as Codec_Specific_Configuration (Assigned Numbers section 6.12.5) in FormatDetails.oob_bytes.
AudioCompressedFormatSbc
AudioConsumerSetRateRequest
AudioConsumerStartFlags
Flags passed to AudioConsumer.Start.
AudioConsumerStartRequest
AudioConsumerStatus
Represents the status of the consumer. In the initial status, error and presentation_timeline are absent. The lead time fields are always present.
AudioConsumerWatchStatusResponse
AudioCoreEnableDeviceSettingsRequest
AudioCoreGetDbFromVolume2Request
AudioCoreGetDbFromVolume2Response
AudioCoreGetDbFromVolumeRequest
AudioCoreGetDbFromVolumeResponse
AudioCoreGetVolumeFromDb2Request
AudioCoreGetVolumeFromDb2Response
AudioCoreGetVolumeFromDbRequest
AudioCoreGetVolumeFromDbResponse
AudioCoreSetCaptureUsageGain2Request
AudioCoreSetCaptureUsageGainRequest
AudioCoreSetInteraction2Request
AudioCoreSetInteractionRequest
AudioCoreSetRenderUsageGain2Request
AudioCoreSetRenderUsageGainRequest
AudioDeviceEnumeratorGetDeviceGainRequest
AudioDeviceEnumeratorGetDeviceGainResponse
AudioDeviceEnumeratorGetDevicesResponse
AudioDeviceEnumeratorOnDefaultDeviceChangedRequest
AudioDeviceEnumeratorOnDeviceAddedRequest
AudioDeviceEnumeratorOnDeviceGainChangedRequest
AudioDeviceEnumeratorOnDeviceRemovedRequest
AudioDeviceEnumeratorSetDeviceGainRequest
AudioDeviceInfo
AudioGainInfo
AudioGainInfoFlags
AudioGainValidFlags
AudioRendererEnableMinLeadTimeEventsRequest
AudioRendererGetMinLeadTimeResponse
AudioRendererOnMinLeadTimeChangedRequest
AudioRendererPauseResponse
AudioRendererPlayNoReplyRequest
AudioRendererPlayRequest
AudioRendererPlayResponse
AudioRendererSetPcmStreamTypeRequest
AudioRendererSetPtsContinuityThresholdRequest
AudioRendererSetPtsUnitsRequest
AudioRendererSetUsage2Request
AudioRendererSetUsageRequest
AudioStreamType
Describes the type of an audio elementary stream.
Compression
Describes the compression applied to a stream. This type can be used in conjunction with AudioStreamType or VideoStreamType to represent a medium-specific compressed type.
CvsdEncoderSettings
Settings for CVSD Encoders. It contains no fields for now since we will be using the parameter values recommended by Bluetooth Core Spec v5.3 section 9.2.
DecryptedFormat
DecryptedFormat
EncryptedFormat
EncryptedFormat
EncryptionPattern
EncryptionPattern
FormatDetails
FormatDetails
H264EncoderSettings
Settings for H264 Encoders.
H264QuantizationParameters
Customization of h264 encoder parameters for macroblock quantization. The values can range from 0 to 51, with lower numbers indicating higher quality/bitrate. While encoders should support these fields if feasible, some encoders may ignore these fields. It’s ok to not set this table, or not set some of the fields in this table, as encoders can determine their own defaults. If the targeted bitrate can’t be achieved with the specified values, then the user should expect the resulting encoded stream bitrate to differ from the requested bitrate.
HevcEncoderSettings
Settings for HEVC/H265 Encoders.
InputAudioCapturerConfiguration
Configuration for a capturer which will receive a stream from an input device.
Lc3EncoderSettings
Settings for LC3 Encoders. Contains parameters stated in LC3 Specification v1.0. Contains fields that are not represented by PcmFormat.
LoopbackAudioCapturerConfiguration
Configuration for a capturer which will receive a loopback stream a system output.
MSbcEncoderSettings
Settings for the mSBC encoder. There are no settings as the mSBC encoder uses the values required by HFP Spec v1.8.
Metadata
Packet
A Packet represents a chunk of input or output data to or from a stream processor.
PacketHeader
PacketHeader
Parameter
Parameter
PcmFormat
PcmFormat
ProfileProviderRegisterHandlerWithCapacityResponse
Property
SbcEncoderSettings
Settings for an SBC Encoder.
StreamBufferConstraints
This struct conveys the buffer_constraints_version_ordinal.
StreamBufferSetRemovePayloadBufferRequest
StreamBufferSettings
Deprecated. Use SetStreamBufferPartialSettings() and StreamBufferPartialSettings instead.
StreamOutputConstraints
The stream-processor-controlled output configuration, including both StreamBufferConstraints for the output and FormatDetails for the output.
StreamOutputFormat
StreamPacket
Describes a packet consumed by StreamSink or produced by StreamSource.
StreamProcessorCloseCurrentStreamRequest
StreamProcessorCompleteOutputBufferPartialSettingsRequest
StreamProcessorFlushEndOfStreamAndCloseStreamRequest
StreamProcessorOnFreeInputPacketRequest
StreamProcessorOnInputConstraintsRequest
StreamProcessorOnOutputConstraintsRequest
StreamProcessorOnOutputEndOfStreamRequest
StreamProcessorOnOutputFormatRequest
StreamProcessorOnOutputPacketRequest
StreamProcessorOnStreamFailedRequest
StreamProcessorQueueInputEndOfStreamRequest
StreamProcessorQueueInputFormatDetailsRequest
StreamProcessorQueueInputPacketRequest
StreamProcessorRecycleOutputPacketRequest
StreamSinkSendPacketNoReplyRequest
StreamSinkSendPacketRequest
StreamSourceOnPacketProducedRequest
StreamSourceReleasePacketRequest
StreamType
Describes the type of an elementary stream.
SubpictureStreamType
Describes the type of a subpicture elementary stream.
SubsampleEntry
SubsampleEntry
TextStreamType
Describes the type of a text elementary stream.
TimelineFunction
A TimelineFunction represents a relationship between a subject timeline and a reference timeline with a linear relation.
UsageGainListenerOnGainMuteChangedRequest
UsageStateDucked
A state of audio usages in which a policy decision has been made to temporarily lower the volume of all streams with this usage.
UsageStateMuted
A state of audio usages in which a policy decision has been made to temporarily mute the volume of all streams with this usage.
UsageStateUnadjusted
A state of audio usages in which no policy actions are taken on any streams with the usage.
UsageWatcher2OnStateChangedRequest
UsageWatcherOnStateChangedRequest
VideoStreamType
Describes the type of a video elementary stream.
VideoUncompressedFormat
VideoUncompressedFormat
Void

Enums§

AacAudioObjectType
AacBitRate
AacChannelMode
AacTransport
AacVariableBitRate
Variable bit rate modes. The actual resulting bitrate varies based on input signal and other encoding settings.
AudioBitrateMode
AudioCaptureUsage
Usages annotating the purpose of the stream being used to capture audio. The AudioCaptureUsage is used by audio policy to dictate how audio streams interact with each other.
AudioCaptureUsage2
Usages annotating the purpose of the stream being used to capture audio. The AudioCaptureUsage is used by audio policy to dictate how audio streams interact with each other.
AudioCapturerConfiguration
Configuration for an audio Capturer.
AudioChannelId
AudioChannelId
AudioCompressedFormat
AudioConsumerError
Represents a AudioConsumer error condition.
AudioFormat
AudioFormat
AudioOutputRoutingPolicy
AudioPcmMode
AudioPcmMode
AudioRenderUsage
Usage annotating the purpose of the stream being used to render audio. An AudioRenderer’s usage cannot be changed after creation. The AudioRenderUsage is used by audio policy to dictate how audio streams interact with each other.
AudioRenderUsage2
Usage annotating the purpose of the stream being used to render audio. An AudioRenderer’s usage cannot be changed after creation. The AudioRenderUsage2 value is used by audio policy to dictate how audio streams interact with each other. This enum expands the original (strict) enum |AudioRenderUsage| with additional stream types.
AudioSampleFormat
Enumerates the supported audio sample formats.
AudioUncompressedFormat
AudioUncompressedFormat
Behavior
CodecProfile
A list of permitted codec profiles. This list should be flexible since codecs can and will be added in the future. This can contain both video and audio profiles if needed.
ColorSpace
CryptoFormat
CryptoFormat
DomainFormat
DomainFormat
EncoderSettings
Settings for encoders that tell them how to encode raw formats.
Lc3FrameDuration
MediumSpecificStreamType
A union of all medium-specific stream type structs.
SbcAllocation
SbcBlockCount
SbcChannelMode
SbcSubBands
StreamError
StreamError
Usage
Usage2
UsageState
The state of audio policy enforcement on a stream or set of streams.
Value
Value
VideoColorSpace
VideoCompressedFormat
VideoCompressedFormat
VideoFormat
VideoFormat

Constants§

AUDIO_ENCODING_AAC
Audio encodings.
AUDIO_ENCODING_AACLATM
AUDIO_ENCODING_AMRNB
AUDIO_ENCODING_AMRWB
AUDIO_ENCODING_APTX
AUDIO_ENCODING_FLAC
AUDIO_ENCODING_GSMMS
AUDIO_ENCODING_LPCM
AUDIO_ENCODING_MP3
AUDIO_ENCODING_OPUS
AUDIO_ENCODING_PCMALAW
AUDIO_ENCODING_PCMMULAW
AUDIO_ENCODING_SBC
AUDIO_ENCODING_VORBIS
CAPTURE_USAGE2_COUNT
CAPTURE_USAGE_COUNT
ENCRYPTION_SCHEME_CBC1
ENCRYPTION_SCHEME_CBCS
ENCRYPTION_SCHEME_CENC
ENCRYPTION_SCHEME_CENS
ENCRYPTION_SCHEME_UNENCRYPTED
MAX_ENCRYPTION_SCHEME_SIZE
MAX_FRAMES_PER_RENDERER_PACKET
The maximum number of frames that may be contained within a single StreamPacket.
MAX_INIT_VECTOR_SIZE
MAX_KEY_ID_SIZE
MAX_OOB_BYTES_SIZE
MAX_PCM_CHANNEL_COUNT
MAX_PCM_FRAMES_PER_SECOND
MAX_USAGE_COUNT
A reasonable upper-bound for the maximum number of render or capture usages. Use this value in FIDL APIs (e.g. for max vector size), instead of RENDER_USAGE2_COUNT or CAPTURE_USAGE2_COUNT directly. This way, an increase in these consts will not cause an ABI-breaking change.
METADATA_LABEL_ALBUM
METADATA_LABEL_ARTIST
METADATA_LABEL_COMPOSER
METADATA_LABEL_EPISODE
METADATA_LABEL_GENRE
METADATA_LABEL_PUBLISHER
METADATA_LABEL_RELEASE_DATE
METADATA_LABEL_SEASON
METADATA_LABEL_STUDIO
METADATA_LABEL_SUBTITLE
METADATA_LABEL_TITLE
METADATA_LABEL_TRACK_NUMBER
METADATA_SOURCE_TITLE
The title of the source of the media, e.g. a player, streaming service, or website.
MIN_PCM_CHANNEL_COUNT
Permitted ranges for AudioRenderer and AudioCapturer
MIN_PCM_FRAMES_PER_SECOND
NO_TIMESTAMP
When used as a StreamPacket.pts value, indicates that the packet has no specific presentation timestamp. The effective presentation time of such a packet depends on the context in which the StreamPacket is used.
RENDER_USAGE2_COUNT
RENDER_USAGE_COUNT
STREAM_PACKET_FLAG_DISCONTINUITY
Indicates a discontinuity in an otherwise continuous-in-time sequence of packets. The precise semantics of this flag depend on the context in which the StreamPacket is used.
STREAM_PACKET_FLAG_DROPPABLE
Indicates that all other packets in the stream can be understood without reference to this packet. This is typically used in compressed streams to identify packets containing frames that may be discarded without affecting other frames.
STREAM_PACKET_FLAG_KEY_FRAME
Indicates that the packet can be understood without reference to other packets in the stream. This is typically used in compressed streams to identify packets that contain key frames.
VIDEO_ENCODING_H263
Video encodings.
VIDEO_ENCODING_H264
VIDEO_ENCODING_MPEG4
VIDEO_ENCODING_THEORA
VIDEO_ENCODING_UNCOMPRESSED
VIDEO_ENCODING_VP3
VIDEO_ENCODING_VP8
VIDEO_ENCODING_VP9

Type Aliases§

CompressionType
An identifier for compression types.
EncryptionScheme
InitVector
KeyId