legacy.resource
Interface VideoCodecToolkit

All Known Implementing Classes:
VideoAdapter

public interface VideoCodecToolkit

VideoCodecToolkit.class allows access to functions wich would not otherwize be accessable to Codecs

Author:
Benjamin Tarrant

Method Summary
 int getClosetColor(int r, int g, int b)
          Returns the closest color in the existing pallet
 int getClosetColor(RGB rgb)
          Returns the closest color in the existing pallet
 RGB getPalletIndex(int index)
          getPalletIndex(int) returns the color currently set for the pallet at index of
 void setPalletIndex(int Index, RGB color)
          setPalletIndex(int, RGB) sets a color in this pallet at index to a specific color
 

Method Detail

setPalletIndex

void setPalletIndex(int Index,
                    RGB color)
setPalletIndex(int, RGB) sets a color in this pallet at index to a specific color

Parameters:
index - index of coloe
color - color to set

getPalletIndex

RGB getPalletIndex(int index)
getPalletIndex(int) returns the color currently set for the pallet at index of

Parameters:
index - of color
Returns:
the RGB for a pallet index

getClosetColor

int getClosetColor(RGB rgb)
Returns the closest color in the existing pallet

Parameters:
rgb - the RGB triplet to match
Returns:
the index in this pallet of the closest color

getClosetColor

int getClosetColor(int r,
                   int g,
                   int b)
Returns the closest color in the existing pallet

Parameters:
r - Red component to match
g - Green component to match
b - Blue component to match
Returns:
the index in this pallet of the closest color