vixid.library
Class Track

java.lang.Object
  extended by vixid.library.Track

public class Track
extends java.lang.Object


Constructor Summary
Track(Vixid v, int nb, boolean[] videoIn)
           
 
Method Summary
 void getGain()
           
 void getOpacity()
           
 void reset()
          Reset the track to it's default values.
 void selectVideoInput(int inputId)
          Select the video input for this track if there is video feed in.
 void setBCS(int b, int c, int s)
          Set brightness, contrast and saturation in the BCS effects.
 void setBkgAlpha(boolean transparent)
           
 void setBkgAlphaOff()
           
 void setBkgAlphaOn()
           
 void setBlackAndWhite(boolean bw)
           
 void setBlackAndWhiteOff()
           
 void setBlackAndWhiteOn()
           
 void setBlendMode(int mode)
          Set blend mode to be normal, additive, average,...
 void setBlueGain(int value)
          Set the blue gain in the RGB effects.
 void setBlueOffset(int value)
          Set the blue offset in the RGB effects.
 void setBrightness(int value)
          Set the brightness in the BCS effects.
 void setContrast(int value)
          Set the contrast in the BCS effects.
 void setCrop(boolean crop)
           
 void setCrop(float left, float right, float up, float down)
          Set crop to these L, R, U, D values between 0 and 100%
 void setCrop(float left, float right, float up, float down, int type)
          Set crop and crop type together.
 void setCropD(float value)
           
 void setCropL(float value)
           
 void setCropOff()
           
 void setCropOn()
           
 void setCropR(float value)
           
 void setCropType(int type)
           
 void setCropU(float value)
           
 void setFx(boolean fx)
           
 void setFxOff()
           
 void setFxOn()
           
 void setFxType(int type)
          Set the effects to be type of:
 void setGain()
           
 void setGreenGain(int value)
          Set the green gain in the RGB effects.
 void setGreenOffset(int value)
          Set the green offset in the RGB effects.
 void setInverse(boolean inverse)
           
 void setInverseOff()
          Switch off the keyer inverse
 void setInverseOn()
          Switch on the keyer inverse
 void setKeyer(boolean keyer)
           
 void setKeyerOff()
           
 void setKeyerOn()
           
 void setKeyerType(int type)
          Set the keyer type.
 void setLayer(int layerId)
           
 void setMosaicZoomX(int zoom)
          Set the x parameter for the mosaic zoom effect
 void setMosaicZoomXY(int x, int y)
           
 void setMosaicZoomY(int zoom)
          Set the y parameter for the mosaic zoom effect
 void setMute(boolean mute)
           
 void setMuteOff()
           
 void setMuteOn()
           
 void setNegative(boolean negative)
           
 void setNegativeOff()
           
 void setNegativeOn()
           
 void setOpacity()
           
 void setPickerState(boolean pickerState)
           
 void setPickerStateOff()
          Disable the keyer picker state
 void setPickerStateOn()
          Enable the keyer picker state
 void setPickMode(int mode)
          Set the keyer pick mode
 void setPrePost(int pp)
          Set Pre or Post Fx for the Keyer
 void setRedGain(int value)
          Set the red gain in the RGB effects.
 void setRedOffset(int value)
          Set the red offset in the RGB effects.
 void setRGBGain(int r, int g, int b)
          Set the RGB gain in the RGB effects.
 void setRGBOffset(int r, int g, int b)
          Set the RGB offset in the RGB effects.
 void setSaturation(int value)
          Set the saturation in the BCS effects.
 void setScrollX(int value)
           
 void setScrollXY(int x, int y)
           
 void setScrollY(int value)
           
 void setSolo(boolean solo)
           
 void setSoloOff()
           
 void setSoloOn()
           
 void setTolerance(int value)
           
 void setTrackIn(int trackId)
          Set the Track number for the keyer input
 void setTransition(int value)
           
 void setZoomX(int zoom)
          Set the x parameter for the zoom effect
 void setZoomXY(int x, int y)
           
 void setZoomY(int zoom)
          Set the y parameter for the zoom effect
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Track

public Track(Vixid v,
             int nb,
             boolean[] videoIn)
Method Detail

setCropL

public void setCropL(float value)

setCropR

public void setCropR(float value)

setCropU

public void setCropU(float value)

setCropD

public void setCropD(float value)

setScrollX

public void setScrollX(int value)

setScrollY

public void setScrollY(int value)

setScrollXY

public void setScrollXY(int x,
                        int y)

setTolerance

public void setTolerance(int value)

setTransition

public void setTransition(int value)

selectVideoInput

public void selectVideoInput(int inputId)
Select the video input for this track if there is video feed in.

Parameters:
inputId - 0 : input1 (COMP), 1 : input2 (COMP), 2 : input3 (S-VIDEO), 3 : input4 (S-VIDEO)

setSoloOn

public void setSoloOn()

setSoloOff

public void setSoloOff()

setSolo

public void setSolo(boolean solo)

setMuteOn

public void setMuteOn()

setMuteOff

public void setMuteOff()

setMute

public void setMute(boolean mute)

setNegativeOn

public void setNegativeOn()

setNegativeOff

public void setNegativeOff()

setNegative

public void setNegative(boolean negative)

setBlackAndWhiteOn

public void setBlackAndWhiteOn()

setBlackAndWhiteOff

public void setBlackAndWhiteOff()

setBlackAndWhite

public void setBlackAndWhite(boolean bw)

setBkgAlphaOn

public void setBkgAlphaOn()

setBkgAlphaOff

public void setBkgAlphaOff()

setBkgAlpha

public void setBkgAlpha(boolean transparent)

setOpacity

public void setOpacity()

getOpacity

public void getOpacity()

setGain

public void setGain()

getGain

public void getGain()

setBlendMode

public void setBlendMode(int mode)
Set blend mode to be normal, additive, average,...

Parameters:
mode - 0 : normal, 1 : additive, 2 : average, 3 : darken, 4 : lighten, 5 : stamp, 6 : diff, 7 : substract, 8 : negation, 9 : xor, 10 : red, 11 : green, 12 : blue
Any number out of this range will set mode to normal.

setLayer

public void setLayer(int layerId)

setRedGain

public void setRedGain(int value)
Set the red gain in the RGB effects.

Parameters:
value - set it to be between 0 and 255 or it will do nothing

setGreenGain

public void setGreenGain(int value)
Set the green gain in the RGB effects.

Parameters:
value - set it to be between 0 and 255 or it will do nothing

setBlueGain

public void setBlueGain(int value)
Set the blue gain in the RGB effects.

Parameters:
value - set it to be between 0 and 255 or it will do nothing

setRGBGain

public void setRGBGain(int r,
                       int g,
                       int b)
Set the RGB gain in the RGB effects.

Parameters:
r -
g -
b -

setRedOffset

public void setRedOffset(int value)
Set the red offset in the RGB effects.

Parameters:
value - set it to be between -255 and 255 or it will do nothing

setGreenOffset

public void setGreenOffset(int value)
Set the green offset in the RGB effects.

Parameters:
value - set it to be between -255 and 255 or it will do nothing

setBlueOffset

public void setBlueOffset(int value)
Set the blue offset in the RGB effects.

Parameters:
value - set it to be between -255 and 255 or it will do nothing

setRGBOffset

public void setRGBOffset(int r,
                         int g,
                         int b)
Set the RGB offset in the RGB effects.

Parameters:
r -
g -
b -

setBrightness

public void setBrightness(int value)
Set the brightness in the BCS effects.

Parameters:
value - set it to be between 0 and 255 or it will do nothing

setContrast

public void setContrast(int value)
Set the contrast in the BCS effects.

Parameters:
value - set it to be between 0 and 255 or it will do nothing

setSaturation

public void setSaturation(int value)
Set the saturation in the BCS effects.

Parameters:
value - set it to be between 0 and 255 or it will do nothing

setBCS

public void setBCS(int b,
                   int c,
                   int s)
Set brightness, contrast and saturation in the BCS effects.

Parameters:
b -
c -
s -

setCrop

public void setCrop(float left,
                    float right,
                    float up,
                    float down)
Set crop to these L, R, U, D values between 0 and 100%

Parameters:
left -
right -
up -
down -

setCrop

public void setCrop(float left,
                    float right,
                    float up,
                    float down,
                    int type)
Set crop and crop type together. L, R, U, D values are between 0 and 100%

Parameters:
left -
right -
up -
down -
type - 0 : crop, 1 : crop center

setCropOn

public void setCropOn()

setCropOff

public void setCropOff()

setCrop

public void setCrop(boolean crop)

setCropType

public void setCropType(int type)

setKeyerOn

public void setKeyerOn()

setKeyerOff

public void setKeyerOff()

setKeyer

public void setKeyer(boolean keyer)

setKeyerType

public void setKeyerType(int type)
Set the keyer type.

Parameters:
type - 0 : color key, 1 : chroma key, 2 : luma key, 3 : red key, 4 : green key, 5 : blue key

setTrackIn

public void setTrackIn(int trackId)
Set the Track number for the keyer input

Parameters:
trackId - 0 : track 1, 1 : track 2, 2 : track 3, 3 : track 4

setPrePost

public void setPrePost(int pp)
Set Pre or Post Fx for the Keyer

Parameters:
pp - 0 : Pre Fx, 1 : Post Fx

setInverseOn

public void setInverseOn()
Switch on the keyer inverse


setInverseOff

public void setInverseOff()
Switch off the keyer inverse


setInverse

public void setInverse(boolean inverse)

setPickMode

public void setPickMode(int mode)
Set the keyer pick mode

Parameters:
mode - 0 : Map mode, 1 : Picker Mode

setPickerStateOn

public void setPickerStateOn()
Enable the keyer picker state


setPickerStateOff

public void setPickerStateOff()
Disable the keyer picker state


setPickerState

public void setPickerState(boolean pickerState)

setFxOn

public void setFxOn()

setFxOff

public void setFxOff()

setFx

public void setFx(boolean fx)

setFxType

public void setFxType(int type)
Set the effects to be type of:

Parameters:
type - 0 : MirrorL, 1 : MirrorR, 2 : MirrorU, 3 : MirrorD, 4: FlipH, 5 : FlipV, 6 : Rot180, 7 : Blow, 8 : Scroll, 9 : Scrollwrap, 10 : ScrollX, 11 : ScrollY, 12 : ScrollXWrap, 13 : ScrollYWrap, 14 : Mosaic

setZoomX

public void setZoomX(int zoom)
Set the x parameter for the zoom effect

Parameters:
zoom - values are between 1 and 63

setZoomY

public void setZoomY(int zoom)
Set the y parameter for the zoom effect

Parameters:
zoom - values are between 1 and 63

setZoomXY

public void setZoomXY(int x,
                      int y)

setMosaicZoomX

public void setMosaicZoomX(int zoom)
Set the x parameter for the mosaic zoom effect

Parameters:
zoom - values are between 1 and 63

setMosaicZoomY

public void setMosaicZoomY(int zoom)
Set the y parameter for the mosaic zoom effect

Parameters:
zoom - values are between 1 and 63

setMosaicZoomXY

public void setMosaicZoomXY(int x,
                            int y)

reset

public void reset()
Reset the track to it's default values. Should be the same as pressing the reset button and track button together. Needs to be perfected...



processing library Vixid by Julien Deswaef (aka. Juego). (c) 2010