Media Authoring
with Java API

tv.amwa.maj.record
Interface RGBAComponent

All Known Implementing Classes:
RGBAComponent

public interface RGBAComponent

Specifies an element of an array representing the order and size of the component values within a pixel value as part of an RGBA Layout. The RGB layout type type is a fixed-size 8 element array, where each element consists of an RGBA component value. Each RGBA component has with the following fields:

A fill component indicates unused bits. After the components have been specified, the remaining code and size fields should be set to RGBAComponentKind.None and 0 respectively.

Author:
Richard Cartwright
See Also:
TypeDefinitionRecord.RGBAComponent, RGBADescriptor

Method Summary
 RGBAComponentKind getCode()
          Returns the type of an RGBA component.
 byte getSize()
          Returns the size, measured in bits, of the RGBA component.
 void setCode(RGBAComponentKind code)
          Sets the type of an RGBA component.
 void setSize(byte size)
          Sets the size, measured in bits, of the RGBA component.
 

Method Detail

getCode

RGBAComponentKind getCode()

Returns the type of an RGBA component.

Returns:
Type of an RGBA component.

setCode

void setCode(RGBAComponentKind code)
             throws NullPointerException

Sets the type of an RGBA component.

Parameters:
code - Type of an RGBA component.
Throws:
NullPointerException - The given component kind is null.

getSize

@UInt8
byte getSize()

Returns the size, measured in bits, of the RGBA component.

Returns:
Size of the RGBA component.

setSize

void setSize(@UInt8
             byte size)
             throws IllegalArgumentException

Sets the size, measured in bits, of the RGBA component.

Parameters:
size - Size of the RGBA component.
Throws:
IllegalArgumentException - The size value is negative.

Media Authoring
with Java API

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