public enum MaterialType extends Enum<MaterialType> implements MediaEnumerationValue
Identifies the material type of content according the the SMPTE UMID specification SMPTE S330M. Elements of the enumeration are taken from table 2 in section 5.1.1.1.
To find the corresponding byte value of the given material type identifier, call
getMaterialTypeCode(). The static method materialTypeFromCode(byte) converts the
byte value code into a value of this enumeration.
PackageID,
PackageIDType| Enum Constant and Description |
|---|
Audio
Deprecated.
Use
SingleAudio or TwoAudiosOrMore instead. |
Data
Deprecated.
Use
SingleAuxilary or TwoAuxilarysOrMore instead. |
MixedGroup
Mixed group of components in a single container.
|
NotIdentified
Material type is not identified.
|
Other
Deprecated.
Use
NotIdentified instead. |
Picture
Deprecated.
Use
SinglePicture or TwoPicturesOrMore instead. |
SingleAudio
Single audio component.
|
SingleAuxilary
Single auxiliary (or data) component.
|
SinglePicture
Single picture component.
|
TwoAudiosOrMore
Two or more audio components in a single container.
|
TwoAuxilarysOrMore
Two or more auxiliary (or data) components in a single container.
|
TwoPicturesOrMore
Two or more picture components in a single container.
|
| Modifier and Type | Method and Description |
|---|---|
byte |
getMaterialTypeCode()
Returns the byte value of the material type, as defined in table 2 of SMPTE S330M.
|
static MaterialType |
materialTypeFromCode(byte code)
Converts a byte code for a material type into a value of this enumeration,
as defined in table 2 of SMPTE S330M.
|
String |
symbol()
Provides a name for the enumeration value that can be used in XML serialisation.
|
long |
value()
Returns the unique integer value associated with an enumeration value, either according
to the AAF specification and/or the current AAF meta dictionary.
|
static MaterialType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MaterialType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOfname@Deprecated public static final MaterialType Picture
SinglePicture or TwoPicturesOrMore instead.Picture material (deprecated).
public static final MaterialType Audio
SingleAudio or TwoAudiosOrMore instead.Audio material (deprecated).
public static final MaterialType Data
SingleAuxilary or TwoAuxilarysOrMore instead.Data material (deprecated).
public static final MaterialType Other
NotIdentified instead.Other material (deprecated).
public static final MaterialType SinglePicture
Single picture component. For example, Y component.
public static final MaterialType TwoPicturesOrMore
Two or more picture components in a single container. For example, interleaved Y, Cb and Cr components.
public static final MaterialType SingleAudio
Single audio component. For example, mono audio.
public static final MaterialType TwoAudiosOrMore
Two or more audio components in a single container. For example, AES3 audio pair.
public static final MaterialType SingleAuxilary
Single auxiliary (or data) component. For example, sub-titles only.
public static final MaterialType TwoAuxilarysOrMore
Two or more auxiliary (or data) components in a single container. For example, multiple sub-titles streams in different languages.
public static final MaterialType MixedGroup
Mixed group of components in a single container. For example, video & stereo audio pair.
public static final MaterialType NotIdentified
Material type is not identified.
public static MaterialType[] values()
for (MaterialType c : MaterialType.values()) System.out.println(c);
public static MaterialType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic byte getMaterialTypeCode()
Returns the byte value of the material type, as defined in table 2 of SMPTE S330M.
public static final MaterialType materialTypeFromCode(byte code)
Converts a byte code for a material type into a value of this enumeration, as defined in table 2 of SMPTE S330M.
code - Code to convert to an enumeration value.null if a match
could not be found.public long value()
MediaEnumerationValueReturns the unique integer value associated with an enumeration value, either according to the AAF specification and/or the current AAF meta dictionary.
value in interface MediaEnumerationValuepublic String symbol()
MediaEnumerationValueProvides a name for the enumeration value that can be used in XML serialisation. The name is unique within the namespace of the owning type.
As an example, the ChannelStatusModeType value ChannelStatusModeType.Fixed
value has the name "Fixed" and symbol "ChannelStatusMode_Fixed".
symbol in interface MediaEnumerationValue(c)2007-2016 Richard Cartwright, all rights reserved. Licensed under Apache 2 license and subject to the AMWA IPR policy.