Enum ElementType
- Namespace
- VisioForge.Core.Types.X
- Assembly
- VisioForge.Core.dll
Specifies various types of media processing elements (encoders and decoders) available within the VisioForge X engine. This enumeration helps in identifying and configuring specific components in a media processing pipeline.
public enum ElementTypeFields
Unknown = 0-
The element type is unknown or not specified.
H264Encoder = 1-
H.264 video encoder.
H264Decoder = 2-
H.264 video decoder.
H263Encoder = 3-
H.263 video encoder.
H263Decoder = 4-
H.263 video decoder.
HEVCEncoder = 5-
HEVC (H.265) video encoder.
HEVCDecoder = 6-
HEVC (H.265) video decoder.
MPEG4Encoder = 7-
MPEG-4 video encoder.
MPEG4Decoder = 8-
MPEG-4 video decoder.
VP8Encoder = 9-
VP8 video encoder.
VP8Decoder = 10-
VP8 video decoder.
VP9Encoder = 11-
VP9 video encoder.
VP9Decoder = 12-
VP9 video decoder.
AACEncoder = 13-
AAC (Advanced Audio Coding) encoder.
AACDecoder = 14-
AAC (Advanced Audio Coding) decoder.
AMRNBDecoder = 15-
AMR-NB (Adaptive Multi-Rate Narrowband) audio decoder.
FLACEncoder = 16-
FLAC (Free Lossless Audio Codec) encoder.
FLACDecoder = 17-
FLAC (Free Lossless Audio Codec) decoder.
G711ALAWDecoder = 18-
G.711 A-law audio decoder.
G711MLAWDecoder = 19-
G.711 μ-law audio decoder.
G711ALAWEncoder = 20-
G.711 A-law audio encoder.
G711MLAWEncoder = 21-
G.711 μ-law audio encoder.
MP3Decoder = 22-
MP3 (MPEG-1 Audio Layer III) decoder.
MP3Encoder = 23-
MP3 (MPEG-1 Audio Layer III) encoder.
OPUSDecoder = 24-
OPUS audio decoder.
OPUSEncoder = 25-
OPUS audio encoder.
VorbisDecoder = 26-
Vorbis audio decoder.
VorbisEncoder = 27-
Vorbis audio encoder.
Examples
// Example of checking the type of a media element.
// ElementType element = GetMediaElement();
// switch (element)
// {
// case ElementType.H264Encoder:
// Console.WriteLine("This is an H.264 video encoder.");
// break;
// case ElementType.AACDecoder:
// Console.WriteLine("This is an AAC audio decoder.");
// break;
// default:
// Console.WriteLine($"Unknown element type: {element}");
// break;
// }
Remarks
Each member represents a distinct codec or processing unit, allowing developers to select the appropriate technology for their media tasks.