|
AVPKit
|


Public Member Functions | |
| virtual int | getSampleRate () |
| Returns the sample rate of output filtered samples. More... | |
| virtual int | getChannels () |
| Returns the channel number of output filtered samples. More... | |
| virtual int | getWidth () |
| Returns the width of output filtered picture. More... | |
| virtual int | getHeight () |
| Returns the height of output filtered picture. More... | |
| virtual IRational * | getFrameRate () |
| Returns the frame rate output filtered picture. More... | |
| virtual IRational * | getTimeBase () |
| Returns the frame rate output filtered picture. More... | |
| virtual void | setNumSamples (int frameSize) |
| Sets the number of samples for each output filtered samples. More... | |
| virtual int | fillAudioSamples (IAudioSamples *samples) |
| Fills this audio samples with filtered data. More... | |
| virtual int | fillVideoPicture (IVideoPicture *picture) |
| Fills this video picture with filtered data. More... | |
| virtual void | setReady () |
Public Member Functions inherited from com::avpkit::ferry::RefCounted | |
| virtual int32_t | acquire () |
| Internal Only. More... | |
| virtual int32_t | release () |
| Internal Only. More... | |
| virtual RefCounted * | copyReference () |
| 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... | |
Public Member Functions inherited from com::avpkit::core::MediaFilter | |
| virtual int | setIntProperty (const char *name, int value) |
| Sets an integer parameter for this filter. More... | |
| virtual int | setDoubleProperty (const char *name, double value) |
| Sets a double parameter for this filter. More... | |
| virtual int | setProperty (const char *name, const char *value) |
| Sets a string parameter for this filter. More... | |
| virtual int | setRationalProperty (const char *name, IRational *value) |
| Sets a rational parameter for this filter. More... | |
| virtual int | initFilter () |
| Initialize filter. More... | |
| virtual int | addFilter (IMediaFilter *filter) |
| Add a filter as an output of this filter. More... | |
| virtual int | addSink (IBufferSink *filterSink) |
| Add a filter as an output of this filter. More... | |
Static Public Member Functions | |
| static BufferSink * | make (AVFilterGraph *, IAudioSamples::ChannelLayout channel_layout) |
| static BufferSink * | make (AVFilterGraph *, IPixelFormat::Type pixel_type) |
Static Public Member Functions inherited from com::avpkit::core::MediaFilter | |
| static MediaFilter * | make (AVFilterGraph *graph, const char *name) |
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 Member Functions inherited from com::avpkit::core::MediaFilter | |
| int | getAvailableInput () |
| int | getAvailableOutput () |
| AVFilterContext * | getAVFilter () |
Protected Attributes inherited from com::avpkit::ferry::RefCounted | |
| AtomicInteger * | mRefCount |
| This is the internal reference count, represented as an AtomicInteger to make sure it is thread safe. | |
| void * | mAllocator |
| Not part of public API. | |
Protected Attributes inherited from com::avpkit::core::MediaFilter | |
| const AVFilter * | mFilter |
| AVFilterContext * | mFilterContext |
| bool | ready |
Definition at line 41 of file BufferSink.h.
|
virtual |
Fills this audio samples with filtered data.
| samples | the audio samples filled with filtered data |
Implements com::avpkit::core::IBufferSink.
Definition at line 76 of file BufferSink.cpp.
References com::avpkit::core::AudioSamples::ensureCapacity(), com::avpkit::core::IAudioSamples::FMT_S16, com::avpkit::core::AudioSamples::getChannels(), com::avpkit::core::AudioSamples::getSampleRate(), com::avpkit::core::AudioSamples::getTimeBase(), com::avpkit::core::IRational::rescale(), and com::avpkit::core::AudioSamples::setComplete().
|
virtual |
Fills this video picture with filtered data.
| samples | the video picture filled with filtered data |
Implements com::avpkit::core::IBufferSink.
Definition at line 113 of file BufferSink.cpp.
References com::avpkit::core::VideoPicture::copyAVFrame(), com::avpkit::core::VideoPicture::getHeight(), com::avpkit::core::VideoPicture::getTimeBase(), com::avpkit::core::VideoPicture::getWidth(), com::avpkit::core::IRational::rescale(), and com::avpkit::core::VideoPicture::setComplete().
|
virtual |
Returns the channel number of output filtered samples.
Implements com::avpkit::core::IBufferSink.
Definition at line 41 of file BufferSink.cpp.
|
virtual |
Returns the frame rate output filtered picture.
Implements com::avpkit::core::IBufferSink.
Definition at line 57 of file BufferSink.cpp.
References com::avpkit::core::IRational::make().
|
virtual |
Returns the height of output filtered picture.
Implements com::avpkit::core::IBufferSink.
Definition at line 53 of file BufferSink.cpp.
|
virtual |
Returns the sample rate of output filtered samples.
Implements com::avpkit::core::IBufferSink.
Definition at line 45 of file BufferSink.cpp.
|
virtual |
Returns the frame rate output filtered picture.
Implements com::avpkit::core::IBufferSink.
Definition at line 62 of file BufferSink.cpp.
References com::avpkit::core::IRational::make().
|
virtual |
Returns the width of output filtered picture.
Implements com::avpkit::core::IBufferSink.
Definition at line 49 of file BufferSink.cpp.
|
virtual |
Sets the number of samples for each output filtered samples.
The last buffer will be padded with 0.
| frameSize | the number of samples of output |
Implements com::avpkit::core::IBufferSink.
Definition at line 67 of file BufferSink.cpp.