public class RGBDataFileSink extends Bin
Bin.DO_LATENCY, Bin.ELEMENT_ADDED, Bin.ELEMENT_REMOVEDElement.NO_MORE_PADS, Element.PAD_ADDED, Element.PAD_REMOVEDGObject.GCallbackNativeObject.InitializerDEBUG_GRAPH_SHOW_ALL, DEBUG_GRAPH_SHOW_CAPS_DETAILS, DEBUG_GRAPH_SHOW_MEDIA_TYPE, DEBUG_GRAPH_SHOW_NON_DEFAULT_PARAMS, DEBUG_GRAPH_SHOW_STATESdefaultInit, ownsHandle| Constructor and Description |
|---|
RGBDataFileSink(java.lang.String name,
int width,
int height,
int fps,
java.lang.String encoderStr,
java.lang.String[] encoderPropertyNames,
java.lang.Object[] encoderPropertyData,
java.lang.String muxerStr,
java.io.File file)
Creates a new RGBDataFileSink.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getNumDroppedFrames()
Returns the number of dropped frames until now.
|
int |
getNumQueuedFrames()
Returns the number of frames currently stored in pre-encoding
queue, still not sent to the encoding pipeline.
|
int |
getPreQueueSize()
Returns the size of the pre-encoding queue.
|
int |
getSrcQueueSize()
Returns the current size of the AppSrc queue.
|
void |
pushRGBFrame(Buffer buf)
Pushes a buffer down the pipeline.
|
void |
setPreQueueSize(int nFrames)
Sets the size of the pre-encoding queue, which is stored on the Java side.
|
void |
setSrcQueueSize(int nFrames)
Sets the size of the AppSrc queue.
|
StateChangeReturn |
start()
Sets the state of the pipeline to PLAYING.
|
StateChangeReturn |
stop()
Sets the state of the pipeline to NULL and closes the stream.
|
add, addMany, connect, connect, connect, debugToDotFile, debugToDotFile, disconnect, disconnect, disconnect, getElementByInterface, getElementByName, getElementByNameRecurseUp, getElements, getElementsRecursive, getElementsSorted, getSinks, getSources, launch, remove, removeManyaddPad, connect, connect, connect, disconnect, disconnect, disconnect, getBaseTime, getBus, getClock, getFactory, getPad, getPads, getRequestPad, getSinkPads, getSrcPads, getStartTime, getState, getState, getState, getState, getStaticPad, isPlaying, link, link, linkMany, linkPads, linkPadsFiltered, makeRawElement, pause, play, postMessage, ready, releaseRequestPad, removePad, sendEvent, setBaseTime, setCaps, setLockedState, setStartTime, setState, syncStateWithParent, unlink, unlinkMany, unlinkPadsaddListenerProxy, getName, getParent, initializer, initializer, ref, removeListenerProxy, setName, steal, toString, unrefaddCallback, connect, connect, connect, disconnect, disconnect, disposeNativeHandle, emit, emit, g_signal_connect, get, getPointer, getPropertyDefaultValue, getPropertyMaximumValue, getPropertyMinimumValue, getType, invalidate, objectForX, removeCallback, setclassFor, disown, dispose, equals, finalize, getNativeAddress, handle, hashCode, initializer, instanceFor, isDisposed, nativeValue, objectFor, objectFor, objectFor, objectForpublic RGBDataFileSink(java.lang.String name,
int width,
int height,
int fps,
java.lang.String encoderStr,
java.lang.String[] encoderPropertyNames,
java.lang.Object[] encoderPropertyData,
java.lang.String muxerStr,
java.io.File file)
name - The name used to identify this RGBDataFileSink.width - The width of the buffers that will be sent.height - The height of the buffers that will be sent.fps - The framerate with which the buffers should be saved to file.encoderStr - The name of the encoder to use.encoderPropertyNames - Array of property names for the encoder.encoderPropertyData - Array of property values for the encoder.muxerStr - The name of the muxer to usefile - Output file where the stream is saved to.public void pushRGBFrame(Buffer buf)
buf - The buffer to push. Actually, it is not immediately pushed into
the gst pipeline, but it is added to a fifo linked list that holds the buffer
temporarily until the AppSrc requests more data for its internal queue.public StateChangeReturn start()
public StateChangeReturn stop()
public void setPreQueueSize(int nFrames)
nFrames - Size of the buffer expressed in number of frames.public int getPreQueueSize()
public int getNumQueuedFrames()
public void setSrcQueueSize(int nFrames)
nFrames - Size of the queue expressed in number of frames.public int getSrcQueueSize()
public int getNumDroppedFrames()