Package com.avpkit.core
Class IBufferSink
- java.lang.Object
-
- com.avpkit.ferry.RefCounted
-
- com.avpkit.core.IMediaFilter
-
- com.avpkit.core.IBufferSink
-
public class IBufferSink extends IMediaFilter
-
-
Field Summary
-
Fields inherited from class com.avpkit.ferry.RefCounted
swigCMemOwn
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedIBufferSink(long cPtr, boolean cMemoryOwn)Internal Only.protectedIBufferSink(long cPtr, boolean cMemoryOwn, java.util.concurrent.atomic.AtomicLong ref)Internal Only.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IBufferSinkcopyReference()Create a new IBufferSink object that is actually referring to the exact same underlying native object.booleanequals(java.lang.Object obj)Compares two values, returning true if the underlying objects in native code are the same object.intfillAudioSamples(IAudioSamples samples)Fills this audio samples with filtered data
intfillVideoPicture(IVideoPicture picture)Fills this video picture with filtered data
intgetChannels()Returns the channel number of output filtered samples.
static longgetCPtr(IBufferSink obj)Internal Only.IRationalgetFrameRate()Returns the frame rate output filtered picture.
intgetHeight()Returns the height of output filtered picture.
longgetMyCPtr()Internal Only.intgetSampleRate()Returns the sample rate of output filtered samples.
IRationalgetTimeBase()Returns the frame rate output filtered picture.
intgetWidth()Returns the width of output filtered picture.
inthashCode()Get a hashable value for this object.voidsetNumSamples(int frameSize)Sets the number of samples for each output filtered samples.
The last buffer will be padded with 0.
-
Methods inherited from class com.avpkit.core.IMediaFilter
addFilter, addSink, getCPtr, initFilter, setDoubleProperty, setIntProperty, setProperty, setRationalProperty
-
Methods inherited from class com.avpkit.ferry.RefCounted
acquire, delete, getCPtr, getCurrentRefCount, getJavaRefCount, release
-
-
-
-
Constructor Detail
-
IBufferSink
protected IBufferSink(long cPtr, boolean cMemoryOwn)
Internal Only.
-
IBufferSink
protected IBufferSink(long cPtr, boolean cMemoryOwn, java.util.concurrent.atomic.AtomicLong ref)
Internal Only.
-
-
Method Detail
-
getCPtr
public static long getCPtr(IBufferSink obj)
Internal Only. Not part of public API. Get the raw value of the native object that obj is proxying for.- Parameters:
obj- The java proxy object for a native object.- Returns:
- The raw pointer obj is proxying for.
-
getMyCPtr
public long getMyCPtr()
Internal Only. Not part of public API. Get the raw value of the native object that we're proxying for.- Overrides:
getMyCPtrin classIMediaFilter- Returns:
- The raw pointer we're proxying for.
-
copyReference
public IBufferSink copyReference()
Create a new IBufferSink object that is actually referring to the exact same underlying native object.- Overrides:
copyReferencein classIMediaFilter- Returns:
- the new Java object.
-
equals
public boolean equals(java.lang.Object obj)
Compares two values, returning true if the underlying objects in native code are the same object. That means you can have two different Java objects, but when you do a comparison, you'll find out they are the EXACT same object.- Overrides:
equalsin classIMediaFilter- Returns:
- True if the underlying native object is the same. False otherwise.
-
hashCode
public int hashCode()
Get a hashable value for this object.- Overrides:
hashCodein classIMediaFilter- Returns:
- the hashable value.
-
getSampleRate
public int getSampleRate()
Returns the sample rate of output filtered samples.
- Returns:
- the sample rate
-
getChannels
public int getChannels()
Returns the channel number of output filtered samples.
- Returns:
- the channel number
-
getWidth
public int getWidth()
Returns the width of output filtered picture.
- Returns:
- the width
-
getHeight
public int getHeight()
Returns the height of output filtered picture.
- Returns:
- the height
-
getFrameRate
public IRational getFrameRate()
Returns the frame rate output filtered picture.
- Returns:
- the frame rate
-
getTimeBase
public IRational getTimeBase()
Returns the frame rate output filtered picture.
- Returns:
- the frame rate
-
setNumSamples
public void setNumSamples(int frameSize)
Sets the number of samples for each output filtered samples.
The last buffer will be padded with 0.
- Parameters:
frameSize- the number of samples of output
-
fillAudioSamples
public int fillAudioSamples(IAudioSamples samples)
Fills this audio samples with filtered data
- Parameters:
samples- the audio samples filled with filtered data
- Returns:
- 0 on success or <0 if an error occurs
-
fillVideoPicture
public int fillVideoPicture(IVideoPicture picture)
Fills this video picture with filtered data
- Returns:
- 0 on success or <0 if an error occurs
-
-