| // Copyright 2021 The Fuchsia Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| library fuchsia.mediastreams; |
| |
| /// An identifier for compression types. |
| alias CompressionType = string:256; |
| |
| /// Describes the compression applied to a stream. |
| type Compression = struct { |
| /// The type of compression applied to the stream. |
| type CompressionType; |
| |
| /// Opaque ‘out-of-band’ parameters describing the compression |
| /// of the stream. |
| parameters bytes:optional; |
| }; |
| |
| // TODO: Use mimetypes for these? |
| const AUDIO_COMPRESSION_AAC string = "fuchsia.streams.aac"; |
| const AUDIO_COMPRESSION_AACLATM string = "fuchsia.streams.aaclatm"; |
| const AUDIO_COMPRESSION_AMRNB string = "fuchsia.streams.amrnb"; |
| const AUDIO_COMPRESSION_AMRWB string = "fuchsia.streams.amrwb"; |
| const AUDIO_COMPRESSION_APTX string = "fuchsia.streams.aptx"; |
| const AUDIO_COMPRESSION_FLAC string = "fuchsia.streams.flac"; |
| const AUDIO_COMPRESSION_GSMMS string = "fuchsia.streams.gsmms"; |
| const AUDIO_COMPRESSION_MP3 string = "fuchsia.streams.mp3"; |
| const AUDIO_COMPRESSION_PCMALAW string = "fuchsia.streams.pcmalaw"; |
| const AUDIO_COMPRESSION_PCMMULAW string = "fuchsia.streams.pcmmulaw"; |
| const AUDIO_COMPRESSION_SBC string = "fuchsia.streams.sbc"; |
| const AUDIO_COMPRESSION_VORBIS string = "fuchsia.streams.vorbis"; |
| const AUDIO_COMPRESSION_OPUS string = "fuchsia.streams.opus"; |
| |
| const VIDEO_COMPRESSION_H263 string = "fuchsia.streams.h263"; |
| const VIDEO_COMPRESSION_H264 string = "fuchsia.streams.h264"; |
| const VIDEO_COMPRESSION_MPEG4 string = "fuchsia.streams.mpeg4"; |
| const VIDEO_COMPRESSION_THEORA string = "fuchsia.streams.theora"; |
| const VIDEO_COMPRESSION_VP3 string = "fuchsia.streams.vp3"; |
| const VIDEO_COMPRESSION_VP8 string = "fuchsia.streams.vp8"; |
| const VIDEO_COMPRESSION_VP9 string = "fuchsia.streams.vp9"; |