|
Media Authoring with Java API |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AAFFileDescriptor
Specifies a file descriptor that describes an essence source that is directly manipulated by an AAF application.
A source mob that contains a file descriptor is also known as an MXF file package or a file source mob.
EssenceDescriptor
,
SourceMob.getEssenceDescriptor()
Method Summary | |
---|---|
CodecDefinition |
getCodecDefinition()
Returns the codec of the described file, which identifies the mechanism used to compress and uncompress samples of essence or used to convert samples of essence from one format to another. |
ContainerDefinition |
getContainerFormat()
Returns the file format of the described file, which identifies the container mechanism used to store the essence. |
long |
getLength()
Returns the length of the essence in sample units (not edit units). |
int |
getLinkedSlotID()
Returns the linked slot id of this file descriptor, which specifies which mob slot of the associated source mob this descriptor describes when the source mob is described by a multiple descriptor. |
Rational |
getSampleRate()
Returns the sample rate of the essence. |
void |
setCodecDefinition(CodecDefinition codecDef)
Set the codec of the described file, which identifies the mechanism used to compress and uncompress samples of essence or used to convert samples of essence from one format to another. |
void |
setContainerFormat(ContainerDefinition format)
Specifies the file format of the described file, which identifies the container mechanism used to store the essence. |
void |
setLength(long length)
Sets the length of the essence in sample units (not edit units). |
void |
setLinkedSlotID(Integer linkedSlotId)
Set the linked slot id of this file descriptor, which specifies which mob slot of the associated source mob this descriptor describes when the source mob is described by a multiple descriptor. |
void |
setSampleRate(Rational rate)
Sets sample rate of the essence. |
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 |
Method Detail |
---|
void setLength(@LengthType long length) throws BadPropertyException, BadLengthException
Sets the length of the essence in sample units (not edit units).
length
- Length of the essence in samples.
BadPropertyException
- The length property is not present as this file
descriptor describes static essence.
BadLengthException
- The length of the described material is negative.@LengthType long getLength() throws BadPropertyException
Returns the length of the essence in sample units (not edit units).
BadPropertyException
- The length property is not present as this file
descriptor describes static essence.void setCodecDefinition(CodecDefinition codecDef)
Set the codec of the described file, which identifies the mechanism used to compress and uncompress samples of essence or used to convert samples of essence from one format to another.
codecDef
- Codec that was used for the file.
NullPointerException
- The given codec is null
.CodecDefinition.forName(String)
,
CodecConstant
CodecDefinition getCodecDefinition() throws PropertyNotPresentException
Returns the codec of the described file, which identifies the mechanism used to compress and uncompress samples of essence or used to convert samples of essence from one format to another.
PropertyNotPresentException
- The optional codec definition property is not present for
this file descriptor.void setSampleRate(Rational rate) throws NullPointerException, BadPropertyException
Sets sample rate of the essence.
rate
- Sample rate of the essence.
NullPointerException
- The given sample rate is null
.
BadPropertyException
- The sample rate property is not present as this file
descriptor describes static essence.Rational getSampleRate() throws BadPropertyException
Returns the sample rate of the essence.
BadPropertyException
- The sample rate property is not present as this file
descriptor describes static essence.void setContainerFormat(ContainerDefinition format)
Specifies the file format of the described file, which identifies the container mechanism used to store the essence.
The container format is defined as an optional property but version 1.1 of
the AAF object specification requires it to be specified for each file. The property
can be omitted by setting its value to null
for compatibility with
older versions of the specification.
format
- File format to set for this file descriptor.ContainerDefinition.forName(String)
,
ContainerConstant
ContainerDefinition getContainerFormat() throws PropertyNotPresentException
Returns the file format of the described file, which identifies the container mechanism used to store the essence.
The container format is defined as an optional property but version 1.1 of
the AAF object specification requires it to be specified for each file. However,
file descriptors created with tools supporting earlier versions of the AAF
specification may omit the property, in which case a PropertyNotPresentException
is thrown.
PropertyNotPresentException
- The (rarely) optional container format property
is not present in this file descriptor.void setLinkedSlotID(@SlotID Integer linkedSlotId) throws IllegalArgumentException
Set the linked slot id of this file descriptor, which specifies which
mob slot of the associated source mob
this descriptor describes when the source mob is described by a multiple descriptor. In this case, this file descriptor is one of the collection of file descriptors
that are part of a multiple descriptor, as returned by MultipleDescriptor.getFileDescriptors()
. If this
file descriptor is not part of a multiple descriptor collection, set this optional property to
null
to omit it.
linkedSlotId
- Linked slot id of this file descriptor.
IllegalArgumentException
- The linked slot id is negative.@SlotID int getLinkedSlotID() throws PropertyNotPresentException
Returns the linked slot id of this file descriptor, which specifies which mob slot of the associated source mob this descriptor describes when the source mob is described by a multiple descriptor. This is an optional property.
PropertyNotPresentException
- The optional linked slot id property is not
present in this file descriptor.
|
Media Authoring with Java API |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |