Package com.avpkit.core
Class IBufferSource
- java.lang.Object
-
- com.avpkit.ferry.RefCounted
-
- com.avpkit.core.IMediaFilter
-
- com.avpkit.core.IBufferSource
-
public class IBufferSource extends IMediaFilter
-
-
Field Summary
-
Fields inherited from class com.avpkit.ferry.RefCounted
swigCMemOwn
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedIBufferSource(long cPtr, boolean cMemoryOwn)Internal Only.protectedIBufferSource(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 intaddAudioSamples(IAudioSamples samples)Adds audio samples to this filter
intaddVideoPicture(IVideoPicture picture)Adds picture to this filter
IBufferSourcecopyReference()Create a new IBufferSource 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.static longgetCPtr(IBufferSource obj)Internal Only.longgetMyCPtr()Internal Only.inthashCode()Get a hashable value for this object.-
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
-
IBufferSource
protected IBufferSource(long cPtr, boolean cMemoryOwn)
Internal Only.
-
IBufferSource
protected IBufferSource(long cPtr, boolean cMemoryOwn, java.util.concurrent.atomic.AtomicLong ref)
Internal Only.
-
-
Method Detail
-
getCPtr
public static long getCPtr(IBufferSource 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 IBufferSource copyReference()
Create a new IBufferSource 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.
-
addAudioSamples
public int addAudioSamples(IAudioSamples samples)
Adds audio samples to this filter
- Parameters:
samples- the audio samples to add- Returns:
- 0 on success or <0 if an error occurs
-
addVideoPicture
public int addVideoPicture(IVideoPicture picture)
Adds picture to this filter
- Parameters:
picture- the picture to add- Returns:
- 0 on success or <0 if an error occurs
-
-