public class Movie extends PImage implements PConstants
Modifier and Type | Field and Description |
---|---|
String |
filename |
float |
frameRate |
org.gstreamer.elements.PlayBin2 |
playbin |
static String[] |
supportedProtocols |
ALPHA_MASK, BLUE_MASK, format, GREEN_MASK, height, loaded, parent, pixelDensity, pixelHeight, pixels, pixelWidth, RED_MASK, width
ADD, ALPHA, ALT, AMBIENT, ARC, ARGB, ARROW, BACKSPACE, BASELINE, BEVEL, BEZIER_VERTEX, BLEND, BLUR, BOTTOM, BOX, BREAK, BURN, CENTER, CHATTER, CHORD, CLAMP, CLOSE, CODED, COMPLAINT, CONTROL, CORNER, CORNERS, CROSS, CURVE_VERTEX, CUSTOM, DARKEST, DEG_TO_RAD, DELETE, DIAMETER, DIFFERENCE, DILATE, DIRECTIONAL, DISABLE_ASYNC_SAVEFRAME, DISABLE_BUFFER_READING, DISABLE_DEPTH_MASK, DISABLE_DEPTH_SORT, DISABLE_DEPTH_TEST, DISABLE_KEY_REPEAT, DISABLE_NATIVE_FONTS, DISABLE_OPENGL_ERRORS, DISABLE_OPTIMIZED_STROKE, DISABLE_STROKE_PERSPECTIVE, DISABLE_STROKE_PURE, DISABLE_TEXTURE_MIPMAPS, DODGE, DOWN, DXF, ELLIPSE, ENABLE_ASYNC_SAVEFRAME, ENABLE_BUFFER_READING, ENABLE_DEPTH_MASK, ENABLE_DEPTH_SORT, ENABLE_DEPTH_TEST, ENABLE_KEY_REPEAT, ENABLE_NATIVE_FONTS, ENABLE_OPENGL_ERRORS, ENABLE_OPTIMIZED_STROKE, ENABLE_STROKE_PERSPECTIVE, ENABLE_STROKE_PURE, ENABLE_TEXTURE_MIPMAPS, ENTER, EPSILON, ERODE, ESC, EXCLUSION, FX2D, GIF, GRAY, GROUP, HALF_PI, HAND, HARD_LIGHT, HINT_COUNT, HSB, IMAGE, INVERT, JAVA2D, JPEG, LANDSCAPE, LEFT, LIGHTEST, LINE, LINE_LOOP, LINE_STRIP, LINES, LINUX, MACOSX, MAX_FLOAT, MAX_INT, MIN_FLOAT, MIN_INT, MITER, MODEL, MODELVIEW, MOVE, MULTIPLY, NORMAL, OPAQUE, OPEN, OPENGL, ORTHOGRAPHIC, OTHER, OVERLAY, P2D, P3D, PATH, PDF, PERSPECTIVE, PI, PIE, platformNames, POINT, POINTS, POLYGON, PORTRAIT, POSTERIZE, PROBLEM, PROJECT, PROJECTION, QUAD, QUAD_BEZIER_VERTEX, QUAD_STRIP, QUADRATIC_VERTEX, QUADS, QUARTER_PI, RAD_TO_DEG, RADIUS, RECT, REPEAT, REPLACE, RETURN, RGB, RIGHT, ROUND, SCREEN, SHAPE, SHIFT, SOFT_LIGHT, SPAN, SPHERE, SPOT, SQUARE, SUBTRACT, SVG, TAB, TARGA, TAU, TEXT, THIRD_PI, THRESHOLD, TIFF, TOP, TRIANGLE, TRIANGLE_FAN, TRIANGLE_STRIP, TRIANGLES, TWO_PI, UP, VERTEX, WAIT, WHITESPACE, WINDOWS, X, Y, Z
Constructor and Description |
---|
Movie(PApplet parent,
String filename)
Creates an instance of GSMovie loading the movie from filename.
|
Modifier and Type | Method and Description |
---|---|
boolean |
available()
( begin auto-generated from Movie_available.xml )
Returns "true" when a new movie frame is available to read.
|
void |
dispose()
Disposes all the native resources associated to this movie.
|
void |
disposeBuffer(Object buf)
NOTE: This is not official API and may/will be removed at any time.
|
float |
duration()
( begin auto-generated from Movie_duration.xml )
Returns the length of the movie in seconds.
|
void |
frameRate(float ifps)
( begin auto-generated from Movie_frameRate.xml )
Sets how often frames are read from the movie.
|
int |
get(int x,
int y) |
boolean |
hasBufferSink()
NOTE: This is not official API and may/will be removed at any time.
|
void |
jump(float where)
( begin auto-generated from Movie_jump.xml )
Jumps to a specific location within a movie.
|
void |
loadPixels() |
void |
loop()
( begin auto-generated from Movie_loop.xml )
Plays a movie continuously, restarting it when it's over.
|
void |
noLoop()
( begin auto-generated from Movie_noLoop.xml )
If a movie is looping, calling noLoop() will cause it to play until the
end and then stop on the last frame.
|
void |
pause()
( begin auto-generated from Movie_pause.xml )
Pauses a movie during playback.
|
void |
play()
( begin auto-generated from Movie_play.xml )
Plays a movie one time and stops at the last frame.
|
void |
post() |
void |
read()
( begin auto-generated from Movie_read.xml )
Reads the current frame of the movie.
|
void |
setBufferSink(Object sink)
Sets the object to use as destination for the frames read from the stream.
|
void |
setBufferSink(Object sink,
String mask)
Sets the object to use as destination for the frames read from the stream.
|
void |
speed(float irate)
( begin auto-generated from Movie_speed.xml )
Sets the relative playback speed of the movie.
|
void |
stop()
( begin auto-generated from Movie_stop.xml )
Stops a movie from continuing.
|
float |
time()
( begin auto-generated from Movie_time.xml )
Returns the location of the playback head in seconds.
|
void |
volume(float v)
Change the volume.
|
blend, blend, blendColor, clone, copy, copy, copy, filter, filter, get, get, getImage, getModifiedX1, getModifiedX2, getModifiedY1, getModifiedY2, getNative, init, init, isLoaded, isModified, mask, mask, resize, save, set, set, setLoaded, setLoaded, setModified, setModified, updatePixels, updatePixels
public static String[] supportedProtocols
public float frameRate
public String filename
public org.gstreamer.elements.PlayBin2 playbin
public void dispose()
public void frameRate(float ifps)
ifps
- speed of the movie in frames per secondpublic void speed(float irate)
irate
- speed multiplier for movie playbackpublic float duration()
public float time()
public void jump(float where)
where
- position to jump to specified in secondspublic boolean available()
public void play()
public void loop()
public void noLoop()
public void pause()
public void stop()
public void read()
public void volume(float v)
float
- vpublic void loadPixels()
loadPixels
in class PImage
public void setBufferSink(Object sink)
Object
- destpublic void setBufferSink(Object sink, String mask)
Object
- destString
- maskpublic boolean hasBufferSink()
public void disposeBuffer(Object buf)
public void post()
Processing video library by The Processing Foundation. (c) 2011-14