|
Media Authoring with Java API |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objecttv.amwa.maj.entity.InterchangeObject
tv.amwa.maj.entity.EssenceDescriptor
tv.amwa.maj.entity.AAFFileDescriptor
tv.amwa.maj.entity.DigitalImageDescriptor
tv.amwa.maj.entity.CDCIDescriptor
@AAFClass(uuid1=218169601,
uuid2=257,
uuid3=10240,
uuid4={6,14,43,52,2,6,1,1},
definedName="CDCIDescriptor",
description="The CDCIDescriptor class specifies that a file SourceMob is associated with video essence formatted with one luminance component and two color-difference components as specified in this document.")
public class CDCIDescriptor
Implements the description of a file of video essence formatted with one luminance component and two color-difference components, as specified according to the AAF object specification v1.1. This format is also known as "YCbCr".
THE COMMENTS FOR THIS CLASS ARE INCOMPLETE.
| Nested Class Summary | |
|---|---|
static class |
CDCIDescriptor.XMLHandler
|
| Nested classes/interfaces inherited from class tv.amwa.maj.entity.DigitalImageDescriptor |
|---|
DigitalImageDescriptor.DigitalImageDescriptorXMLHandler, DigitalImageDescriptor.VideoLineMapXMLHandler |
| Nested classes/interfaces inherited from class tv.amwa.maj.entity.AAFFileDescriptor |
|---|
AAFFileDescriptor.FileDescriptorXMLHandler |
| Nested classes/interfaces inherited from class tv.amwa.maj.entity.EssenceDescriptor |
|---|
EssenceDescriptor.EssenceDescriptorXMLHandler, EssenceDescriptor.LocatorXMLHandler, EssenceDescriptor.SubDescriptorXMLHandler |
| Nested classes/interfaces inherited from class tv.amwa.maj.entity.InterchangeObject |
|---|
InterchangeObject.InterchangeObjectXMLHandler |
| Field Summary | |
|---|---|
static String |
CDCIDESCRIPTOR_TAG
|
| Fields inherited from class tv.amwa.maj.entity.DigitalImageDescriptor |
|---|
DIGITALIMAGEDESCRIPTOR_ITEM |
| Fields inherited from class tv.amwa.maj.entity.AAFFileDescriptor |
|---|
FILEDESCRIPTOR_ITEM |
| Fields inherited from class tv.amwa.maj.entity.EssenceDescriptor |
|---|
ESSENCEDESCRIPTOR_ITEM |
| Fields inherited from interface tv.amwa.maj.iface.CDCIDescriptor |
|---|
ALPHASAMPLINGWIDTH_DEFAULT, BLACKREFERENCELEVEL_DEFAULT, COLORSITING_DEFAULT, PADDINGBITS_DEFAULT, REVERSEDBYTEORDER_DEFAULT, VERTICALSUBSAMPLING_DEFAULT |
| Fields inherited from interface tv.amwa.maj.iface.DigitalImageDescriptor |
|---|
ALPHATRANSPARENCY_DEFAULT, DISPLAYF2OFFSET_DEFAULT, FIELDENDOFFSET_DEFAULT, FIELDSTARTOFFSET_DEFAULT, IMAGEALIGNMENTFACTOR_DEFAULT, STOREDF2OFFSET_DEFAULT, Uncompressed |
| Constructor Summary | |
|---|---|
CDCIDescriptor(ContainerDefinition containerFormat,
int storedHeight,
int storedWidth,
LayoutType frameLayout,
int[] videoLineMap,
Rational imageAspectRatio,
int horizontalSubsampling,
int componentWidth)
Creates and initializes a new CDCI descriptor, which specifies that a file source mob is associated with video essence that is formatted
with one luminance component and two color-difference components. |
|
| Method Summary | |
|---|---|
void |
appendXMLChildren(Node parent)
Append child elements to the given parent node to serialize the value of an object to an XML fragment. |
CDCIDescriptor |
clone()
Creates a cloned copy of this entity. |
boolean |
equals(Object o)
Tests to see if the given object is equal to this interchange object. |
int |
getAlphaSamplingWidth()
Returns the alpha sampling width property of the CDCI descriptor, which specifies the number of bits used to store the alpha component. |
int |
getBlackReferenceLevel()
Returns the black reference level property for this CDCI descriptor, which specifies the digital luminance component value associated with black. |
int |
getColorRange()
Returns the color range property for this CDCI descriptor, which specifies the range of allowable digital chrominance component values. |
ColorSitingType |
getColorSiting()
Returns the color siting property of the CDCI descriptor, which specifies how to compute subsampled chrominance values. |
int |
getComponentWidth()
Returns the component width property of this CDCI descriptor, which specifies the number of bits used to store each component. |
int |
getHorizontalSubsampling()
Returns the horizontal subsampling property for this CDCI descriptor, which specifies the ratio of luminance sampling to chrominance sampling in the horizontal direction. |
short |
getPaddingBits()
Returns the padding bits property of the CDCI descriptor, which specifies the number of bits padded to each pixel. |
boolean |
getReversedByteOrder()
Sets the reversed byte order property of the CDCI descriptor, which specifies whether the luma and chroma sample order is reversed relative to the order defined by ITU-R BT.601. |
int |
getVerticalSubsampling()
Returns the vertical subsampling property of the CDCI descriptor, which specifies the ratio of luminance sampling to chrominance sampling in the vertical direction. |
int |
getWhiteReferenceLevel()
Sets the white reference level property of this CDCI descriptor, which specifies the digital luminance component component value associated with white. |
int |
hashCode()
Returns a hash code value for this interchange object. |
void |
setAlphaSamplingWidth(Integer alphaSamplingWidth)
Sets the alpha sampling width property of the CDCI descriptor, which specifies the number of bits used to store the alpha component. |
void |
setBlackReferenceLevel(Integer blackReferenceLevel)
Sets the black reference level property for this CDCI descriptor, which specifies the digital luminance component value associated with black. |
void |
setColorRange(Integer colorRange)
Sets the color range property for this CDCI descriptor, which specifies the range of allowable digital chrominance component values. |
void |
setColorSiting(ColorSitingType colorSiting)
Sets the color siting property of the CDCI descriptor, which specifies how to compute subsampled chrominance values. |
void |
setComponentWidth(int componentWidth)
Sets the component width property of this CDCI descriptor, which specifies the number of bits used to store each component. |
void |
setHorizontalSubsampling(int horizontalSubsampling)
Sets the horizontal subsampling property for this CDCI descriptor, which specifies the ratio of luminance sampling to chrominance sampling in the horizontal direction. |
void |
setPaddingBits(Short paddingBits)
Sets the padding bits property of this CDCI descriptor, which specifies the number of bits padded to each pixel. |
void |
setPropertiesFromInterface(CDCIDescriptor castFrom)
|
void |
setReversedByteOrder(Boolean reversedByteOrder)
Sets the reversed byte order property of the CDCI descriptor, which specifies whether the luma and chroma sample order is reversed relative to the order defined by ITU-R BT.601. |
void |
setVerticalSubsampling(Integer verticalSubsampling)
Sets the vertical subsampling property of the CDCI descriptor, which specifies the ratio of luminance sampling to chrominance sampling in the vertical direction. |
void |
setWhiteReferenceLevel(Integer whiteReferenceLevel)
Sets the white reference level property of this CDCI descriptor, which specifies the digital luminance component component value associated with white. |
| Methods inherited from class tv.amwa.maj.entity.AAFFileDescriptor |
|---|
describesStaticEssence, getCodecDefinition, getContainerFormat, getLength, getLinkedSlotID, getSampleRate, setCodecDefinition, setContainerFormat, setDescribesStaticEssence, setDescribesTimeVaryingEssence, setLength, setLinkedSlotID, setPropertiesFromInterface, setSampleRate |
| Methods inherited from class tv.amwa.maj.entity.EssenceDescriptor |
|---|
appendLocator, appendSubDescriptor, countLocators, countSubDescriptors, getLocatorAt, getLocators, getSubDescriptorAt, getSubDescriptors, insertLocatorAt, insertSubDescriptorAt, prependLocator, prependSubDescriptor, removeLocatorAt, removeSubDescriptorAt, setPropertiesFromInterface |
| Methods inherited from class tv.amwa.maj.entity.InterchangeObject |
|---|
castFromInterface, countProperties, createOptionalPropertyValue, disableGenerationTracking, enableGenerationTracking, getDefinition, getGeneration, getGenerationAUID, getProperties, getPropertyValue, isGenerationTracked, isPropertyPresent, omitOpionalProperty, registerImplementation, setPropertiesFromInterface, setPropertyValue, toString |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface tv.amwa.maj.iface.AAFFileDescriptor |
|---|
getCodecDefinition, getContainerFormat, getLength, getLinkedSlotID, getSampleRate, setCodecDefinition, setContainerFormat, setLength, setLinkedSlotID, setSampleRate |
| Methods inherited from interface tv.amwa.maj.iface.EssenceDescriptor |
|---|
appendLocator, appendSubDescriptor, countLocators, countSubDescriptors, getLocatorAt, getLocators, getSubDescriptorAt, getSubDescriptors, insertLocatorAt, insertSubDescriptorAt, prependLocator, prependSubDescriptor, removeLocatorAt, removeSubDescriptorAt |
| Methods inherited from interface tv.amwa.maj.iface.InterchangeObject |
|---|
countProperties, createOptionalPropertyValue, disableGenerationTracking, enableGenerationTracking, getDefinition, getGeneration, getGenerationAUID, getProperties, getPropertyValue, isGenerationTracked, isPropertyPresent, omitOpionalProperty, setPropertyValue |
| Methods inherited from interface tv.amwa.maj.entity.MAJCommon |
|---|
toString |
| Field Detail |
|---|
public static final String CDCIDESCRIPTOR_TAG
| Constructor Detail |
|---|
public CDCIDescriptor(ContainerDefinition containerFormat,
@UInt32
int storedHeight,
@UInt32
int storedWidth,
LayoutType frameLayout,
@VideoLineMap
int[] videoLineMap,
Rational imageAspectRatio,
@UInt32
int horizontalSubsampling,
@UInt32
int componentWidth)
throws NullPointerException,
IllegalArgumentException
Creates and initializes a new CDCI descriptor, which specifies that a
file source mob is associated with video essence that is formatted
with one luminance component and two color-difference components. This format is commonly
known as "YCbCr".
containerFormat - Container mechanism used to store the essence.storedHeight - Number of pixels in vertical dimension of the stored view.storedWidth - Number of pixels in horizontal dimension of the stored view.frameLayout - Describes whether all data for a complete sample is in one
frame or is split into more than one field.videoLineMap - The scan line in the analog source that corresponds to the
beginning of each digitized field. For single-field video, there is 1 value in
the array; for interlaced video, there are 2 values in the array.imageAspectRatio - Describes the ratio between the horizontal size and the vertical
size in the intended final image.horizontalSubsampling - Ratio of luminance sampling to chrominance sampling in the
horizontal direction. For 4:2:2 video, the value is 2, which means that there are twice as
many luminance values as there are color-difference values. Legal values are 1,
2 and 4.componentWidth - Number of bits used to store each component. Can have a value of
8, 10, or 16. Each component in a sample is
packed contiguously; the sample is filled with the number of bits specified by the optional
padding bits property. If the padding bits property is omitted, samples are packed contiguously.
NullPointerException - One or more of arguments is null.
IllegalArgumentException - The given values are not of the permintted ranges.| Method Detail |
|---|
public final void setPropertiesFromInterface(CDCIDescriptor castFrom)
InterchangeObject.setPropertiesFromInterface(tv.amwa.maj.iface.InterchangeObject)
@AAFProperty(uuid1=67175683,
uuid2=1792,
uuid3=0,
uuid4={6,14,43,52,1,1,1,2},
definedName="AlphaSamplingWidth",
typeName="UInt32",
optional=true,
uniqueIdentifier=false,
pid=13065)
public int getAlphaSamplingWidth()
CDCIDescriptorReturns the alpha sampling width property of the CDCI descriptor, which specifies the number of bits used to store the alpha component.
If this optional property is not present, its default value is returned.
getAlphaSamplingWidth in interface CDCIDescriptorCDCIDescriptor.ALPHASAMPLINGWIDTH_DEFAULT
public void setAlphaSamplingWidth(Integer alphaSamplingWidth)
throws IllegalArgumentException
CDCIDescriptorSets the alpha sampling width property of the CDCI descriptor, which specifies the number of bits used to store the alpha component.
This property is optional and has a default value of 0. To omit
this optional property, call this method with null.
setAlphaSamplingWidth in interface CDCIDescriptoralphaSamplingWidth - Alpha sampling width property of the
CDCI descriptor.
IllegalArgumentException - The giv en alpha sampling width value is negative.CDCIDescriptor.ALPHASAMPLINGWIDTH_DEFAULT
@AAFProperty(uuid1=67175683,
uuid2=768,
uuid3=0,
uuid4={6,14,43,52,1,1,1,1},
definedName="BlackReferenceLevel",
typeName="UInt32",
optional=true,
uniqueIdentifier=false,
pid=13060)
public int getBlackReferenceLevel()
CDCIDescriptorReturns the black reference level property for this CDCI descriptor, which specifies the digital luminance component value associated with black.
For CCIR-601/2, the value is 16 for 8-bit video and 64 for 10-bit video. For YUV, the value is 0. These are typical values; other values will not be disallowed by the MAJ API implementation.
The same value is used in CDCI and RGBA when standard colorspace conversion is used.
If the property is omitted, its default value will be returned.
getBlackReferenceLevel in interface CDCIDescriptorCDCIDescriptor.BLACKREFERENCELEVEL_DEFAULT
public void setBlackReferenceLevel(Integer blackReferenceLevel)
throws IllegalArgumentException
CDCIDescriptorSets the black reference level property for this CDCI descriptor, which specifies the digital luminance component value associated with black.
For CCIR-601/2, the value is 16 for 8-bit video and 64 for 10-bit video. For YUV, the value is 0. These are typical values; other values will not be disallowed by the MAJ API implementation.
The same value is used in CDCI and RGBA when standard colorspace conversion is used.
This property is optional and has a default value of 0.
To omit the property, call this method with null.
setBlackReferenceLevel in interface CDCIDescriptorblackReferenceLevel - Black reference level of the CDCI descriptor.
IllegalArgumentException - The given black reference level is negative.CDCIDescriptor.BLACKREFERENCELEVEL_DEFAULT
@AAFProperty(uuid1=67175683,
uuid2=1280,
uuid3=0,
uuid4={6,14,43,52,1,1,1,2},
definedName="ColorRange",
typeName="UInt32",
optional=true,
uniqueIdentifier=false,
pid=13062)
public int getColorRange()
CDCIDescriptorReturns the color range property for this CDCI descriptor, which specifies the range of allowable digital chrominance component values. Chrominance values are unsigned and the range is centered on 128 for 8-bit video and 512 for 10-bit video. This value is used for both chrominance components.
For CCIR-601/2, the range is 225 for 8-bit video and 897 for 10-bit video. For YUV, the range is 255 for 8-bit video and 1023 for 10-bit video. These are typical values; other values will not be disallowed by the MAJ API implementation.
If this optional property is not present, the default value is returned. The default value is the maximum unsigned integer value for the component size.
getColorRange in interface CDCIDescriptorCDCIDescriptor.getComponentWidth()
public void setColorRange(Integer colorRange)
throws IllegalArgumentException
CDCIDescriptorSets the color range property for this CDCI descriptor, which specifies the range of allowable digital chrominance component values. Chrominance values are unsigned and the range is centered on 128 for 8-bit video and 512 for 10-bit video. This value is used for both chrominance components.
For CCIR-601/2, the range is 225 for 8-bit video and 897 for 10-bit video. For YUV, the range is 255 for 8-bit video and 1023 for 10-bit video. hese are typical values; other values will not be disallowed by the MAJ API implementation.
This property is optional. The default value is the maximum
unsigned integer value for the component size. To omit this optional
property, call this method with null.
setColorRange in interface CDCIDescriptorcolorRange - Color range for the CDCI descriptor.
IllegalArgumentException - Cannot set the color range property of
this CDCI descriptor to a negative value.CDCIDescriptor.getComponentWidth()
@AAFProperty(uuid1=67175681,
uuid2=1536,
uuid3=0,
uuid4={6,14,43,52,1,1,1,1},
definedName="ColorSiting",
typeName="ColorSitingType",
optional=true,
uniqueIdentifier=false,
pid=13059)
public ColorSitingType getColorSiting()
CDCIDescriptorReturns the color siting property of the CDCI descriptor, which specifies how to compute subsampled chrominance values.
Valid values are:
ColorSitingType.CoSiting - To calculate subsampled pixels, take the
preceding's pixels color value, discard the other color values and cosite the
color with the first luminance value.ColorSitingType.Averaging - To calculate subsampled pixels, take the
average of the two adjacent pixels' color values and site the color in the
center of the luminance pixels.ColorSitingType.ThreeTap - To calculate subsampled pixels, take
25 percent of the the previous pixel's color value, 50 percent of the first
value and 25 percent of the second value. For the first value in a row, use
75 percent of that value since there is no previous value. The
ThreeTap value is only meaningful when the horizontal subsampling
property has a value of 2.The color siting property is optional and has a default value of
ColorSitingType.CoSiting. The default value will be returned if the
property is not present.
getColorSiting in interface CDCIDescriptorCDCIDescriptor.COLORSITING_DEFAULTpublic void setColorSiting(ColorSitingType colorSiting)
CDCIDescriptorSets the color siting property of the CDCI descriptor, which specifies how to compute subsampled chrominance values.
Valid values are:
ColorSitingType.CoSiting - To calculate subsampled pixels, take the
preceding's pixels color value, discard the other color values and cosite the
color with the first luminance value.ColorSitingType.Averaging - To calculate subsampled pixels, take the
average of the two adjacent pixels' color values and site the color in the
center of the luminance pixels.ColorSitingType.ThreeTap - To calculate subsampled pixels, take
25 percent of the the previous pixel's color value, 50 percent of the first
value and 25 percent of the second value. For the first value in a row, use
75 percent of that value since there is no previous value. The
ThreeTap value is only meaningful when the horizontal subsampling
property has a value of 2.The color siting property is optional and has a default value of
ColorSitingType.CoSiting. Calling this method with null to
omit this property.
setColorSiting in interface CDCIDescriptorcolorSiting - Color siting for the CDCI descriptor.CDCIDescriptor.COLORSITING_DEFAULT
@AAFProperty(uuid1=67175683,
uuid2=2560,
uuid3=0,
uuid4={6,14,43,52,1,1,1,2},
definedName="ComponentWidth",
typeName="UInt32",
optional=false,
uniqueIdentifier=false,
pid=13057)
public int getComponentWidth()
CDCIDescriptorReturns the component width property of this CDCI descriptor, which specifies the number of bits used to store each component. Typical values can be 8, 10, 12, 14, or 16, but others are permitted by the MAJ API implementation. Each component in a sample is packed contiguously; the sample is filled with the number of bits specified by the optional padding bits property. If the padding bits property is omitted, samples are packed contiguously.
getComponentWidth in interface CDCIDescriptorCDCIDescriptor.getPaddingBits()
public void setComponentWidth(int componentWidth)
throws IllegalArgumentException
CDCIDescriptorSets the component width property of this CDCI descriptor, which specifies the number of bits used to store each component. Typical values can be 8, 10, 12, 14, or 16, but others are permitted by the MAJ API implementation. Each component in a sample is packed contiguously; the sample is filled with the number of bits specified by the optional padding bits property. If the padding bits property is omitted, samples are packed contiguously.
setComponentWidth in interface CDCIDescriptorcomponentWidth - Component width for the CDCI descriptor.
IllegalArgumentException - The given component width is negative.CDCIDescriptor.getPaddingBits()
@AAFProperty(uuid1=67175681,
uuid2=1280,
uuid3=0,
uuid4={6,14,43,52,1,1,1,1},
definedName="HorizontalSubsampling",
typeName="UInt32",
optional=false,
uniqueIdentifier=false,
pid=13058)
public int getHorizontalSubsampling()
CDCIDescriptorReturns the horizontal subsampling property for this CDCI descriptor, which specifies the ratio of luminance sampling to chrominance sampling in the horizontal direction.
For 4:2:2 video, the value is 2, which means that there are twice as many luminance values as there are color-difference values. Another typical value is 1; however other values are permitted by the MAJ API implementation.
getHorizontalSubsampling in interface CDCIDescriptor
public void setHorizontalSubsampling(int horizontalSubsampling)
throws IllegalArgumentException
CDCIDescriptorSets the horizontal subsampling property for this CDCI descriptor, which specifies the ratio of luminance sampling to chrominance sampling in the horizontal direction.
For 4:2:2 video, the value is 2, which means that there are twice as many luminance values as there are color-difference values. Another typical value is 1; however other values are permitted by the MAJ API implementation.
setHorizontalSubsampling in interface CDCIDescriptorhorizontalSubsampling - Horizontal subsampling of the CDCI descriptor.
IllegalArgumentException
@AAFProperty(uuid1=68681988,
uuid2=0,
uuid3=0,
uuid4={6,14,43,52,1,1,1,2},
definedName="PaddingBits",
typeName="Int16",
optional=true,
uniqueIdentifier=false,
pid=13063)
public short getPaddingBits()
CDCIDescriptorReturns the padding bits property of the CDCI descriptor, which specifies the number of bits padded to each pixel.
If this optional property is not present, its default value is returned.
getPaddingBits in interface CDCIDescriptorCDCIDescriptor.PADDINGBITS_DEFAULTpublic void setPaddingBits(Short paddingBits)
CDCIDescriptorSets the padding bits property of this CDCI descriptor, which specifies the number of bits padded to each pixel.
This is an optional property with a default value of 0. To
omit this optional property, call this method with null.
setPaddingBits in interface CDCIDescriptorpaddingBits - Padding bits of the CDCI descriptor.CDCIDescriptor.PADDINGBITS_DEFAULT
@AAFProperty(uuid1=50397697,
uuid2=2560,
uuid3=0,
uuid4={6,14,43,52,1,1,1,5},
definedName="ReversedByteOrder",
typeName="Boolean",
optional=true,
uniqueIdentifier=false,
pid=13067)
public boolean getReversedByteOrder()
CDCIDescriptorSets the reversed byte order property of the CDCI descriptor, which
specifies whether the luma and chroma sample order is reversed relative to
the order defined by ITU-R BT.601. The value is false if the sample order
conforms conforms to ITU-R BT.601, or true if the order is reversed (i.e. the
luma sample precedes the chroma).
If this optional property is not present, its default value is returned.
getReversedByteOrder in interface CDCIDescriptorCDCIDescriptor.REVERSEDBYTEORDER_DEFAULT,
ColorSitingType.Rec601public void setReversedByteOrder(Boolean reversedByteOrder)
CDCIDescriptorSets the reversed byte order property of the CDCI descriptor, which
specifies whether the luma and chroma sample order is reversed relative to
the order defined by ITU-R BT.601. The value is false if the sample order
conforms conforms to ITU-R BT.601, or true if the order is reversed (i.e. the
luma sample precedes the chroma).
This property is optional and has a default value of false.
To omit this optional property, call this method with null.
setReversedByteOrder in interface CDCIDescriptorreversedByteOrder - Is the byte order reversed?CDCIDescriptor.REVERSEDBYTEORDER_DEFAULT,
ColorSitingType.Rec601
@AAFProperty(uuid1=67175681,
uuid2=4096,
uuid3=0,
uuid4={6,14,43,52,1,1,1,2},
definedName="VerticalSubsampling",
typeName="UInt32",
optional=true,
uniqueIdentifier=false,
pid=13064)
public int getVerticalSubsampling()
CDCIDescriptorReturns the vertical subsampling property of the CDCI descriptor, which specifies the ratio of luminance sampling to chrominance sampling in the vertical direction.
For 4:2:2 video, the value is 2, which means that there are twice as many luminance values as there are color-difference values. Another typical value is 1; however other values are permitted by the MAJ API implementation.
The default value of this optional property will be returned if it is not present.
getVerticalSubsampling in interface CDCIDescriptorCDCIDescriptor.VERTICALSUBSAMPLING_DEFAULT
public void setVerticalSubsampling(Integer verticalSubsampling)
throws IllegalArgumentException
CDCIDescriptorSets the vertical subsampling property of the CDCI descriptor, which specifies the ratio of luminance sampling to chrominance sampling in the vertical direction.
For 4:2:2 video, the value is 2, which means that there are twice as many luminance values as there are color-difference values. Another typical value is 1; however other values are permitted by the MAJ API implementation.
To omit this optional property, call ths method with null.
setVerticalSubsampling in interface CDCIDescriptorverticalSubsampling - Vertical subsampling of the CDCI descriptor.
IllegalArgumentException - The given vertical subsampling property is negative.CDCIDescriptor.VERTICALSUBSAMPLING_DEFAULT
@AAFProperty(uuid1=67175683,
uuid2=1024,
uuid3=0,
uuid4={6,14,43,52,1,1,1,1},
definedName="WhiteReferenceLevel",
typeName="UInt32",
optional=true,
uniqueIdentifier=false,
pid=13061)
public int getWhiteReferenceLevel()
CDCIDescriptorSets the white reference level property of this CDCI descriptor, which specifies the digital luminance component component value associated with white.
For CCIR-601/2, the value is 235 for 8-bit video and 940 for 10-bit video. For YUV, the value is 255 for 8-bit video and 1023 for 10-bit video. These are typical values; other values will not be disallowed by the MAJ API implementation.
If the property is not present, its default value will be returned. The default value is the maximum unsigned integer value for the component size.
getWhiteReferenceLevel in interface CDCIDescriptorCDCIDescriptor.getComponentWidth()
public void setWhiteReferenceLevel(Integer whiteReferenceLevel)
throws IllegalArgumentException
CDCIDescriptorSets the white reference level property of this CDCI descriptor, which specifies the digital luminance component component value associated with white.
For CCIR-601/2, the value is 235 for 8-bit video and 940 for 10-bit video. For YUV, the value is 255 for 8-bit video and 1023 for 10-bit video. These are typical values; other values will not be disallowed by the MAJ API implementation.
This property is optional. The default value is the maximum
unsigned integer value for the component size. To omit this optional property,
call this method with null.
setWhiteReferenceLevel in interface CDCIDescriptorwhiteReferenceLevel - White reference level for the CDCI descriptor.
IllegalArgumentException - Cannot set the white reference level of
this CDCI descriptor to a negative value.CDCIDescriptor.getComponentWidth()public boolean equals(Object o)
MAJCommonTests to see if the given object is equal to this interchange object. To be equal, the given value must be not null, share the same interface to its value and each of the properties of the value must each be equal.
equals in interface MAJCommonequals in class DigitalImageDescriptoro - Object to test for equality with.
Object.equals(Object)public int hashCode()
MAJCommonReturns a hash code value for this interchange object.
hashCode in interface MAJCommonhashCode in class DigitalImageDescriptorObject.hashCode()public CDCIDescriptor clone()
MAJCommonCreates a cloned copy of this entity. The clone will be initialized to have the same value as this value but exists independently from then on. Changes to this value will not effect the clone and changes to the clone will not effect this. MAJ API clones are true deep clones with no shared references to areas of memory within the original.
This method does not throw a CloneNotSupportedException as all
entity values must implement the Cloneable interface. If a cloning
error does occur, a null value will be returned but this is very unlikely
to happen.
clone in interface MAJCommonclone in class EssenceDescriptorObject.clone()public void appendXMLChildren(Node parent)
XMLSerializableAppend child elements to the given parent node to serialize the value of an object
to an XML fragment. Methods of the XMLBuilder class are provided to help with this
process.
appendXMLChildren in interface XMLSerializableappendXMLChildren in class DigitalImageDescriptorparent - XML parent element to append child nodes to.
|
Media Authoring with Java API |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||