This repository has been archived by the owner on May 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
148 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,47 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
using Newtonsoft.Json; | ||
using Newtonsoft.Json.Converters; | ||
using System.Runtime.Serialization; | ||
|
||
namespace MK.IO | ||
{ | ||
/// <summary> The encoding types for live event. </summary> | ||
public readonly partial struct LiveEventEncodingType | ||
/// <summary> | ||
/// Live event type. When encodingType is set to PassthroughBasic or PassthroughStandard, the service simply passes through the incoming video and audio layer(s) to the output. When encodingType is set to Standard or Premium1080p, a live encoder transcodes the incoming stream into multiple bitrates or layers | ||
/// </summary> | ||
/// <value>Live event type. When encodingType is set to PassthroughBasic or PassthroughStandard, the service simply passes through the incoming video and audio layer(s) to the output. When encodingType is set to Standard or Premium1080p, a live encoder transcodes the incoming stream into multiple bitrates or layers</value> | ||
[JsonConverter(typeof(StringEnumConverter))] | ||
public enum LiveEventEncodingType | ||
{ | ||
/// <summary> | ||
/// Enum None for value: None | ||
/// </summary> | ||
[EnumMember(Value = "None")] | ||
None = 1, | ||
|
||
/// <summary> | ||
/// The ingested stream passes through the live event from the contribution encoder. | ||
/// Enum PassthroughBasic for value: PassthroughBasic | ||
/// </summary> | ||
public static readonly string PassthroughBasic = "PassthroughBasic"; | ||
[EnumMember(Value = "PassthroughBasic")] | ||
PassthroughBasic = 2, | ||
|
||
/// <summary> | ||
/// The ingested stream passes through the live event from the contribution encoder. | ||
/// Enum PassthroughStandard for value: PassthroughStandard | ||
/// </summary> | ||
public static readonly string PassthroughStandard = "PassthroughStandard"; | ||
[EnumMember(Value = "PassthroughStandard")] | ||
PassthroughStandard = 3, | ||
|
||
/// <summary> | ||
/// A live encoder transcodes the incoming stream into multiple bitrates or layers | ||
/// Enum Premium1080p for value: Premium1080p | ||
/// </summary> | ||
public static readonly string Standard = "Standard "; | ||
[EnumMember(Value = "Premium1080p")] | ||
Premium1080p = 4, | ||
|
||
/// <summary> | ||
/// A live encoder transcodes the incoming stream into multiple bitrates or layers | ||
/// Enum Standard for value: Standard | ||
/// </summary> | ||
public static readonly string Premium1080p = "Premium1080p "; | ||
[EnumMember(Value = "Standard")] | ||
Standard = 5 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,29 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
using Newtonsoft.Json; | ||
using Newtonsoft.Json.Converters; | ||
using System.Runtime.Serialization; | ||
|
||
namespace MK.IO | ||
{ | ||
/// <summary> The input protocols for live event. </summary> | ||
public readonly partial struct LiveEventInputProtocol | ||
/// <summary> | ||
/// The input protocol for the live event. This is specified at creation time and cannot be updated. Must be one of RTMP or SRT. fmp4 smooth input is not supported. | ||
/// </summary> | ||
/// <value>The input protocol for the live event. This is specified at creation time and cannot be updated. Must be one of RTMP or SRT. fmp4 smooth input is not supported. </value> | ||
[JsonConverter(typeof(StringEnumConverter))] | ||
public enum LiveEventInputProtocol | ||
{ | ||
public static readonly string RTMP = "RTMP"; | ||
public static readonly string SRT = "SRT "; | ||
/// <summary> | ||
/// Enum RTMP for value: RTMP | ||
/// </summary> | ||
[EnumMember(Value = "RTMP")] | ||
RTMP = 1, | ||
|
||
/// <summary> | ||
/// Enum SRT for value: SRT | ||
/// </summary> | ||
[EnumMember(Value = "SRT")] | ||
SRT = 2 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
using Newtonsoft.Json; | ||
using Newtonsoft.Json.Converters; | ||
using System.ComponentModel.DataAnnotations; | ||
using System.Runtime.Serialization; | ||
|
||
namespace MK.IO | ||
{ | ||
/// <summary> | ||
/// Determines the set of audio analysis operations to be performed. If unspecified, the Standard AudioAnalysisMode would be chosen. | ||
/// </summary> | ||
/// <value>Determines the set of audio analysis operations to be performed. If unspecified, the Standard AudioAnalysisMode would be chosen.</value> | ||
[JsonConverter(typeof(StringEnumConverter))] | ||
public enum AudioAnalyzerMode | ||
{ | ||
/// <summary> | ||
/// Enum Basic for value: Basic | ||
/// </summary> | ||
[EnumMember(Value = "Basic")] | ||
Basic = 1, | ||
|
||
/// <summary> | ||
/// Enum Standard for value: Standard | ||
/// </summary> | ||
[EnumMember(Value = "Standard")] | ||
Standard = 2 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,74 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
using Newtonsoft.Json; | ||
using Newtonsoft.Json.Converters; | ||
using System.Runtime.Serialization; | ||
|
||
namespace MK.IO | ||
{ | ||
/// <summary> The built-in preset to be used for encoding videos. </summary> | ||
public readonly partial struct EncoderNamedPreset | ||
[JsonConverter(typeof(StringEnumConverter))] | ||
public enum EncoderNamedPreset | ||
{ | ||
public static readonly string H264SingleBitrateSD = "H264SingleBitrateSD"; | ||
public static readonly string H264SingleBitrate720p = "H264SingleBitrate720p"; | ||
public static readonly string H264SingleBitrate1080p = "H264SingleBitrate1080p"; | ||
public static readonly string H264MultipleBitrate1080p = "H264MultipleBitrate1080p"; | ||
public static readonly string H264MultipleBitrate720p = "H264MultipleBitrate720p"; | ||
public static readonly string H264MultipleBitrateSD = "H264MultipleBitrateSD"; | ||
|
||
public static readonly string H265SingleBitrate720p = "H265SingleBitrate720p"; | ||
public static readonly string H265SingleBitrate1080p = "H265SingleBitrate1080p"; | ||
public static readonly string H265SingleBitrate4K = "H265SingleBitrate4K"; | ||
|
||
public static readonly string AACGoodQualityAudio = "AACGoodQualityAudio"; | ||
/// <summary> | ||
/// Enum H264SingleBitrateSD for value: H264SingleBitrateSD | ||
/// </summary> | ||
[EnumMember(Value = "H264SingleBitrateSD")] | ||
H264SingleBitrateSD = 1, | ||
|
||
/// <summary> | ||
/// Enum H264SingleBitrate720p for value: H264SingleBitrate720p | ||
/// </summary> | ||
[EnumMember(Value = "H264SingleBitrate720p")] | ||
H264SingleBitrate720p = 2, | ||
|
||
/// <summary> | ||
/// Enum H264SingleBitrate1080p for value: H264SingleBitrate1080p | ||
/// </summary> | ||
[EnumMember(Value = "H264SingleBitrate1080p")] | ||
H264SingleBitrate1080p = 3, | ||
|
||
/// <summary> | ||
/// Enum H264MultipleBitrateSD for value: H264MultipleBitrateSD | ||
/// </summary> | ||
[EnumMember(Value = "H264MultipleBitrateSD")] | ||
H264MultipleBitrateSD = 4, | ||
|
||
/// <summary> | ||
/// Enum H264MultipleBitrate720p for value: H264MultipleBitrate720p | ||
/// </summary> | ||
[EnumMember(Value = "H264MultipleBitrate720p")] | ||
H264MultipleBitrate720p = 5, | ||
|
||
/// <summary> | ||
/// Enum H264MultipleBitrate1080p for value: H264MultipleBitrate1080p | ||
/// </summary> | ||
[EnumMember(Value = "H264MultipleBitrate1080p")] | ||
H264MultipleBitrate1080p = 6, | ||
|
||
/// <summary> | ||
/// Enum H265SingleBitrate720p for value: H265SingleBitrate720p | ||
/// </summary> | ||
[EnumMember(Value = "H265SingleBitrate720p")] | ||
H265SingleBitrate720p = 7, | ||
|
||
/// <summary> | ||
/// Enum H265SingleBitrate1080p for value: H265SingleBitrate1080p | ||
/// </summary> | ||
[EnumMember(Value = "H265SingleBitrate1080p")] | ||
H265SingleBitrate1080p = 8, | ||
|
||
/// <summary> | ||
/// Enum H265SingleBitrate4K for value: H265SingleBitrate4K | ||
/// </summary> | ||
[EnumMember(Value = "H265SingleBitrate4K")] | ||
H265SingleBitrate4K = 9, | ||
|
||
/// <summary> | ||
/// Enum AACGoodQualityAudio for value: AACGoodQualityAudio | ||
/// </summary> | ||
[EnumMember(Value = "AACGoodQualityAudio")] | ||
AACGoodQualityAudio = 10 | ||
} | ||
} |