|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectprocessing.core.PImage
codeanticode.gsvideo.GSPipeline
public class GSPipeline
This class allows to create a custom GStreamer pipeline.
Field Summary | |
---|---|
byte[] |
data
|
java.lang.String |
dataCaps
|
Fields inherited from class processing.core.PImage |
---|
format, height, parent, pixels, width |
Fields inherited from interface processing.core.PConstants |
---|
A, AB, ADD, AG, ALPHA, ALPHA_MASK, ALT, AMBIENT, AR, ARC, ARGB, ARROW, B, BACKSPACE, BASELINE, BEEN_LIT, BEVEL, BILINEAR, BLEND, BLUE_MASK, BLUR, BOTTOM, BOX, BURN, CENTER, CENTER_DIAMETER, CENTER_RADIUS, CHATTER, CLAMP, CLOSE, CMYK, CODED, COMPLAINT, CONTROL, CORNER, CORNERS, CROSS, CUSTOM, DA, DARKEST, DB, DEG_TO_RAD, DELETE, DG, DIAMETER, DIFFERENCE, DILATE, DIRECTIONAL, DISABLE_ACCURATE_TEXTURES, DISABLE_DEPTH_MASK, DISABLE_DEPTH_SORT, DISABLE_DEPTH_TEST, DISABLE_NATIVE_FONTS, DISABLE_OPENGL_2X_SMOOTH, DISABLE_OPENGL_ERROR_REPORT, DODGE, DOWN, DR, DXF, DYNAMIC, EB, EDGE, EG, ELLIPSE, ENABLE_ACCURATE_TEXTURES, ENABLE_DEPTH_MASK, ENABLE_DEPTH_SORT, ENABLE_DEPTH_TEST, ENABLE_NATIVE_FONTS, ENABLE_OPENGL_2X_SMOOTH, ENABLE_OPENGL_4X_SMOOTH, ENABLE_OPENGL_ERROR_REPORT, ENTER, EPSILON, ER, ERODE, ERROR_BACKGROUND_IMAGE_FORMAT, ERROR_BACKGROUND_IMAGE_SIZE, ERROR_PUSHMATRIX_OVERFLOW, ERROR_PUSHMATRIX_UNDERFLOW, ERROR_TEXTFONT_NULL_PFONT, ESC, EXCLUSION, FIXED, G, GIF, GRAY, GREEN_MASK, HALF_PI, HAND, HARD_LIGHT, HAS_NORMAL, HINT_COUNT, HSB, IMAGE, INVERT, JAVA2D, JPEG, LEFT, LIGHTEST, LINE, LINE_LOOP, LINE_STRIP, LINEAR, LINES, LINUX, MACOSX, MAX_FLOAT, MAX_INT, MIN_FLOAT, MIN_INT, MITER, MODEL, MODELVIEW, MOVE, MULTIPLY, NORMAL, NORMALIZED, NX, NY, NZ, OPAQUE, OPEN, OPENGL, OPENGL2, ORTHOGRAPHIC, OTHER, OVERLAY, P2D, P3D, PATH, PDF, PERSPECTIVE, PI, platformNames, POINT, POINT_SPRITES, POINTS, POLYGON, POSTERIZE, PROBLEM, PROG_GL2, PROG_GL3, PROG_GL4, PROJECT, PROJECTION, QUAD, QUAD_STRIP, QUADRATIC, QUADS, QUARTER_PI, R, RAD_TO_DEG, RADIUS, RECT, RED_MASK, REPEAT, REPLACE, RETURN, RGB, RIGHT, ROUND, SA, SB, SCREEN, SG, SHAPE, SHIFT, SHINE, SOFT_LIGHT, SPB, SPG, SPHERE, SPOT, SPR, SQUARE, SR, STATIC, STREAM, SUBTRACT, SW, TAB, TARGA, TEXT, TEXTURE2D, THIRD_PI, THRESHOLD, TIFF, TOP, TRIANGLE, TRIANGLE_FAN, TRIANGLE_STRIP, TRIANGLES, TRILINEAR, TWO_PI, TX, TY, TZ, U, UP, V, VERTEX_FIELD_COUNT, VW, VX, VY, VZ, WAIT, WHITESPACE, WINDOWS, X, Y, Z |
Constructor Summary | |
---|---|
GSPipeline(processing.core.PApplet parent,
java.lang.String pstr)
Creates an instance of GSPipeline using the provided pipeline string. |
|
GSPipeline(processing.core.PApplet parent,
java.lang.String pstr,
int type)
Creates an instance of GSPipeline using the provided pipeline string. |
Method Summary | |
---|---|
boolean |
available()
Return the true or false depending on whether there is a new frame ready to be read. |
void |
delete()
Releases the gstreamer resources associated to this pipeline object. |
void |
dispose()
Same as delete. |
void |
disposeBuffer(java.lang.Object buf)
|
float |
duration()
Get the full length of this movie (in seconds). |
java.lang.String |
getPipeline()
Returns the text string used to build the pipeline. |
float |
getProperty(java.lang.String name)
Get a float-value property from the pipeline. |
void |
goToBeginning()
Goes to the first frame of the stream. |
void |
goToEnd()
Goes to the last frame of the stream. |
boolean |
isLooping()
Returns whether the stream is looping or not. |
boolean |
isPaused()
Returns whether the stream is paused or not. |
boolean |
isPlaying()
Returns whether the stream is playing or not. |
boolean |
isSeeking()
Returns true if stream is completing a seeking (jump) operation. |
void |
jump(float where)
Jump to a specific location (in seconds). |
void |
loop()
Begin playing the stream, with repeat. |
boolean |
newFrame()
Returns true if a new frame has been read to the pixels array with the read() method. |
void |
noLoop()
Shut off the repeating loop. |
void |
oldFrame()
Sets the new frame flag to false. |
void |
pause()
Pause the stream at its current time. |
void |
play()
Begin playing the stream, with no repeat. |
void |
read()
Reads the current video frame. |
boolean |
ready()
Returns true if the stream is already producing frames. |
void |
setEventHandlerObject(java.lang.Object obj)
Uses a generic object as handler of the pipeline. |
void |
setPixelDest(java.lang.Object dest)
Sets the object to use as destination for the frames read from the stream. |
void |
setPixelDest(java.lang.Object dest,
boolean copy)
Sets the object to use as destination for the frames read from the stream. |
void |
setPixelDest(java.lang.Object dest,
java.lang.String mask,
boolean copy)
Sets the object to use as destination for the frames read from the stream. |
void |
setProperty(java.lang.String name,
float v)
Set a float-value property in the pipeline. |
void |
stop()
Stop the stream, and rewind. |
float |
time()
Return the current time in seconds. |
void |
volume(float v)
Change the volume. |
Methods inherited from class processing.core.PImage |
---|
blend, blend, blendColor, clone, copy, copy, filter, filter, get, get, get, getCache, getImage, getModifiedX1, getModifiedX2, getModifiedY1, getModifiedY2, getParams, init, isModified, loadPixels, mask, mask, removeCache, removeParams, resize, save, set, set, setCache, setModified, setModified, setParams, updatePixels, updatePixels |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public byte[] data
public java.lang.String dataCaps
Constructor Detail |
---|
public GSPipeline(processing.core.PApplet parent, java.lang.String pstr)
parent
- PAppletpstr
- Stringpublic GSPipeline(processing.core.PApplet parent, java.lang.String pstr, int type)
parent
- PAppletpstr
- Stringtype
- intMethod Detail |
---|
public void delete()
delete
in class processing.core.PImage
public void dispose()
public void setPixelDest(java.lang.Object dest)
Object
- destpublic void setPixelDest(java.lang.Object dest, boolean copy)
Object
- destboolean
- copypublic void setPixelDest(java.lang.Object dest, java.lang.String mask, boolean copy)
Object
- destString
- maskboolean
- copypublic void setEventHandlerObject(java.lang.Object obj)
public float duration()
public float time()
public void jump(float where)
float
- wherepublic boolean ready()
public boolean newFrame()
public void oldFrame()
public boolean available()
public boolean isPlaying()
public boolean isPaused()
public boolean isLooping()
public boolean isSeeking()
public void play()
public void loop()
public void noLoop()
public void pause()
public void stop()
public void read()
public void goToBeginning()
public void goToEnd()
public float getProperty(java.lang.String name)
String
- name
public void setProperty(java.lang.String name, float v)
String
- namefloat
- vpublic void volume(float v)
float
- vpublic java.lang.String getPipeline()
public void disposeBuffer(java.lang.Object buf)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |