Media Authoring
with Java API

tv.amwa.maj.enumeration
Enum LayoutType

java.lang.Object
  extended by java.lang.Enum<LayoutType>
      extended by tv.amwa.maj.enumeration.LayoutType
All Implemented Interfaces:
Serializable, Comparable<LayoutType>, AAFEnumerationValue

public enum LayoutType
extends Enum<LayoutType>
implements AAFEnumerationValue

Specifies whether all the data for a complete sample is in one frame or is split into more than one field.

Original C name: aafFrameLayout_e

Author:
Richard Cartwright
See Also:
DigitalImageDescriptor, TypeDefinitionEnumeration.LayoutType

Enum Constant Summary
FullFrame
          A progressive lattice from top to bottom, stored in progressive line order 1,2,3,4,5,6...
MixedFields
          An interlaced lattice as for SeparateFields above, stored as a single matrix of interleaved lines 1,2,3,4,5,6,...
OneField
          An interlaced lattice as for SeparateFields, except that only one field is scanned and retained in the stored data, as 1,3,5,...
SegmentedFrame
          An interlaced lattice divided into two fields.
SeparateFields
          An interlaced lattice divided into two fields, stored as two fields 1,3,5,...
 
Method Summary
 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 LayoutType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static LayoutType[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface tv.amwa.maj.enumeration.AAFEnumerationValue
name
 

Enum Constant Detail

FullFrame

public static final LayoutType FullFrame

A progressive lattice from top to bottom, stored in progressive line order 1,2,3,4,5,6... The duration of a sampled rectangle is a frame.


SeparateFields

public static final LayoutType SeparateFields

An interlaced lattice divided into two fields, stored as two fields 1,3,5,... and 2,4,6... Field 1 scans alternate lines from top to bottom, field 2 scans the intervening lines. The second field is scanned at a later time than the first field (one field later). Examples: NTSC, SMPTE 125M. The duration of a sampled rectangle is a field.


OneField

public static final LayoutType OneField

An interlaced lattice as for SeparateFields, except that only one field is scanned and retained in the stored data, as 1,3,5,... or 2,4,6,... or (1+2),(3+4),(5+6), ... For display, the second field is derived by line replication or interpolation. There are no examples of one field in broadcast use; however, this type of sub-sampling is often used as a simple compression for index frames. The duration of a sampled rectangle is a frame.


MixedFields

public static final LayoutType MixedFields

An interlaced lattice as for SeparateFields above, stored as a single matrix of interleaved lines 1,2,3,4,5,6,... It is not common to use mixed fields in broadcast; however, intermediate in-memory data structures sometimes use this format. The duration of a sampled rectangle is a frame.


SegmentedFrame

public static final LayoutType SegmentedFrame

An interlaced lattice divided into two fields. Field 1 scans alternate lines from top to bottom, field 2 scans the intervening lines. The lines are stored as two fields 1,3,5,... 2,4,6,... The two fields are taken from a single scan of the incoming image - i.e., they are coincident in time, except for the effects of shutter angle. Example: "1080P24 SF". The duration of a sampled rectangle is a field.

Method Detail

values

public static final LayoutType[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(LayoutType c : LayoutType.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static LayoutType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name

value

@Int64
public long value()
Description copied from interface: AAFEnumerationValue

Returns the unique integer value associated with an enumeration value, either according to the AAF specification and/or the current AAF meta dictionary.

Specified by:
value in interface AAFEnumerationValue
Returns:
Unique integer value associated with an enumeration constant.

Media Authoring
with Java API

(c) 2007-2008 Richard Cartwright, all rights reserved. Subject to the terms of the AAF SDK Public Source License.