AVPKit
com::avpkit::core::IBufferSink Class Referenceabstract
Inheritance diagram for com::avpkit::core::IBufferSink:
Collaboration diagram for com::avpkit::core::IBufferSink:

Public Member Functions

virtual int getSampleRate ()=0
 Returns the sample rate of output filtered samples. More...
 
virtual int getChannels ()=0
 Returns the channel number of output filtered samples. More...
 
virtual int getWidth ()=0
 Returns the width of output filtered picture. More...
 
virtual int getHeight ()=0
 Returns the height of output filtered picture. More...
 
virtual IRationalgetFrameRate ()=0
 Returns the frame rate output filtered picture. More...
 
virtual IRationalgetTimeBase ()=0
 Returns the frame rate output filtered picture. More...
 
virtual void setNumSamples (int frameSize)=0
 Sets the number of samples for each output filtered samples. More...
 
virtual int fillAudioSamples (IAudioSamples *samples)=0
 Fills this audio samples with filtered data. More...
 
virtual int fillVideoPicture (IVideoPicture *picture)=0
 Fills this video picture with filtered data. More...
 
- Public Member Functions inherited from com::avpkit::core::IMediaFilter
virtual int setIntProperty (const char *name, int value)=0
 Sets an integer parameter for this filter. More...
 
virtual int setDoubleProperty (const char *name, double value)=0
 Sets a double parameter for this filter. More...
 
virtual int setProperty (const char *name, const char *value)=0
 Sets a string parameter for this filter. More...
 
virtual int setRationalProperty (const char *name, IRational *value)=0
 Sets a rational parameter for this filter. More...
 
virtual int initFilter ()=0
 Initialize filter. More...
 
virtual int addFilter (IMediaFilter *filter)=0
 Add a filter as an output of this filter. More...
 
virtual int addSink (IBufferSink *filterSink)=0
 Add a filter as an output of this filter. More...
 
- Public Member Functions inherited from com::avpkit::ferry::RefCounted
virtual int32_t acquire ()
 Internal Only. More...
 
virtual int32_t release ()
 Internal Only. More...
 
virtual RefCountedcopyReference ()
 Create a new Java object that refers to the same native object. More...
 
virtual int32_t getCurrentRefCount ()
 Return the current reference count on this object. More...
 
void setJavaAllocator (void *allocator)
 This method is public but not part of the standard API. More...
 
void * getJavaAllocator ()
 This method is public but not part of the standard API. More...
 

Additional Inherited Members

- Protected Member Functions inherited from com::avpkit::ferry::RefCounted
virtual void destroy ()
 This method is called by RefCounted objects when their Ref Count reaches zero and they are about to be destroyed.
 
- Protected Attributes inherited from com::avpkit::ferry::RefCounted
AtomicIntegermRefCount
 This is the internal reference count, represented as an AtomicInteger to make sure it is thread safe.
 
void * mAllocator
 Not part of public API.
 

Detailed Description

Definition at line 25 of file IBufferSink.h.

Member Function Documentation

◆ fillAudioSamples()

virtual int com::avpkit::core::IBufferSink::fillAudioSamples ( IAudioSamples samples)
pure virtual

Fills this audio samples with filtered data.

Parameters
samplesthe audio samples filled with filtered data
Returns
0 on success or <0 if an error occurs

Implemented in com::avpkit::core::BufferSink.

◆ fillVideoPicture()

virtual int com::avpkit::core::IBufferSink::fillVideoPicture ( IVideoPicture picture)
pure virtual

Fills this video picture with filtered data.

Parameters
samplesthe video picture filled with filtered data
Returns
0 on success or <0 if an error occurs

Implemented in com::avpkit::core::BufferSink.

◆ getChannels()

virtual int com::avpkit::core::IBufferSink::getChannels ( )
pure virtual

Returns the channel number of output filtered samples.

Returns
the channel number

Implemented in com::avpkit::core::BufferSink.

◆ getFrameRate()

virtual IRational* com::avpkit::core::IBufferSink::getFrameRate ( )
pure virtual

Returns the frame rate output filtered picture.

Returns
the frame rate

Implemented in com::avpkit::core::BufferSink.

◆ getHeight()

virtual int com::avpkit::core::IBufferSink::getHeight ( )
pure virtual

Returns the height of output filtered picture.

Returns
the height

Implemented in com::avpkit::core::BufferSink.

◆ getSampleRate()

virtual int com::avpkit::core::IBufferSink::getSampleRate ( )
pure virtual

Returns the sample rate of output filtered samples.

Returns
the sample rate

Implemented in com::avpkit::core::BufferSink.

◆ getTimeBase()

virtual IRational* com::avpkit::core::IBufferSink::getTimeBase ( )
pure virtual

Returns the frame rate output filtered picture.

Returns
the frame rate

Implemented in com::avpkit::core::BufferSink.

◆ getWidth()

virtual int com::avpkit::core::IBufferSink::getWidth ( )
pure virtual

Returns the width of output filtered picture.

Returns
the width

Implemented in com::avpkit::core::BufferSink.

◆ setNumSamples()

virtual void com::avpkit::core::IBufferSink::setNumSamples ( int  frameSize)
pure virtual

Sets the number of samples for each output filtered samples.

The last buffer will be padded with 0.

Parameters
frameSizethe number of samples of output

Implemented in com::avpkit::core::BufferSink.


The documentation for this class was generated from the following file: