|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcodeanticode.gsvideo.GSMovieMaker
public class GSMovieMaker
This class makes movies from a running program.
Field Summary | |
---|---|
static int |
BEST
|
static int |
DIRAC
|
static int |
HIGH
|
static int |
LOW
|
static int |
MEDIUM
|
static int |
MJPEG
|
static int |
MJPEG2K
|
static int |
THEORA
|
static int |
WORST
|
static int |
X264
|
static int |
XVID
|
Constructor Summary | |
---|---|
GSMovieMaker(processing.core.PApplet parent,
int requestWidth,
int requestHeight,
java.lang.String filename)
Constructor that sets the codec to THEORA, MEDIUM quality and 30 fps. |
|
GSMovieMaker(processing.core.PApplet parent,
int requestWidth,
int requestHeight,
java.lang.String filename,
int codecType,
int ifps)
Constructor that allows to set codec type and fps. |
|
GSMovieMaker(processing.core.PApplet parent,
int requestWidth,
int requestHeight,
java.lang.String filename,
int codecType,
int codecQuality,
int ifps)
Constructor that allows to set codec type, encoding quality and fps. |
|
GSMovieMaker(processing.core.PApplet parent,
int requestWidth,
int requestHeight,
java.lang.String filename,
java.lang.String encoder,
java.lang.String muxer,
int ifps)
Constructor that allows to set the gstreamer encoder and muxer by name. |
|
GSMovieMaker(processing.core.PApplet parent,
int requestWidth,
int requestHeight,
java.lang.String filename,
java.lang.String encoder,
java.lang.String muxer,
java.lang.String[] propNames,
java.lang.Object[] propValues,
int ifps)
Constructor that allows to set the gstreamer encoder and muxer by name, as well as the properties. |
Method Summary | |
---|---|
void |
addFrame(int[] pixels)
Adds a new frame to the video being recorded.. |
void |
delete()
Releases the gstreamer resources associated to this movie maker object. |
void |
dispose()
Same as delete. |
void |
finish()
Finishes recording. |
int |
getDroppedFrames()
Returns the number of frames dropped until now. |
int |
getQueuedFrames()
Returns the number of frames currently in the pre-encoding queue, waiting to be encoded. |
boolean |
isRecording()
Returns true or false depending on whether recording is going on right now or not. |
void |
setQueueSize(int npre,
int nenc)
Sets the maximum size of the pre-encoding and encoding queues. |
void |
start()
Starts recording. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int THEORA
public static final int XVID
public static final int X264
public static final int DIRAC
public static final int MJPEG
public static final int MJPEG2K
public static final int WORST
public static final int LOW
public static final int MEDIUM
public static final int HIGH
public static final int BEST
Constructor Detail |
---|
public GSMovieMaker(processing.core.PApplet parent, int requestWidth, int requestHeight, java.lang.String filename)
public GSMovieMaker(processing.core.PApplet parent, int requestWidth, int requestHeight, java.lang.String filename, int codecType, int ifps)
public GSMovieMaker(processing.core.PApplet parent, int requestWidth, int requestHeight, java.lang.String filename, int codecType, int codecQuality, int ifps)
public GSMovieMaker(processing.core.PApplet parent, int requestWidth, int requestHeight, java.lang.String filename, java.lang.String encoder, java.lang.String muxer, int ifps)
public GSMovieMaker(processing.core.PApplet parent, int requestWidth, int requestHeight, java.lang.String filename, java.lang.String encoder, java.lang.String muxer, java.lang.String[] propNames, java.lang.Object[] propValues, int ifps)
Method Detail |
---|
public void delete()
public void dispose()
public void addFrame(int[] pixels)
pixels
- int[]public void start()
public void finish()
public int getQueuedFrames()
public int getDroppedFrames()
public void setQueueSize(int npre, int nenc)
public boolean isRecording()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |