|
AVPKit
|
Converts IVideoPicture objects of a given width, height and format to a new width, height or format. More...
#include <IVideoResampler.h>


Public Types | |
| enum | Feature { FEATURE_IMAGERESCALING , FEATURE_COLORSPACECONVERSION } |
| Features that the VideoResampler may optionally support. | |
Public Member Functions | |
| virtual int32_t | getInputWidth ()=0 |
| Get the width in pixels we expect on the input frame to the resampler. More... | |
| virtual int32_t | getInputHeight ()=0 |
| Get the height in pixels we expect on the input frame to the resampler. More... | |
| virtual IPixelFormat::Type | getInputPixelFormat ()=0 |
| Get the input pixel format. More... | |
| virtual int32_t | getOutputWidth ()=0 |
| Get the output width, in pixels. More... | |
| virtual int32_t | getOutputHeight ()=0 |
| Get the output height, in pixels. More... | |
| virtual IPixelFormat::Type | getOutputPixelFormat ()=0 |
| Get the output pixel format. More... | |
| virtual int32_t | resample (IVideoPicture *outVideoPicture, IVideoPicture *inVideoPicture)=0 |
| Resample in to out based on the resampler parameters. More... | |
| virtual int32_t | getNumProperties ()=0 |
| Returns the total number of settable properties on this object. More... | |
| virtual IProperty * | getPropertyMetaData (int32_t propertyNo)=0 |
| Returns the name of the numbered property. More... | |
| virtual IProperty * | getPropertyMetaData (const char *name)=0 |
| Returns the name of the numbered property. More... | |
| virtual int32_t | setProperty (const char *name, const char *value)=0 |
| Sets a property on this Object. More... | |
| virtual int32_t | setProperty (const char *name, double value)=0 |
| Looks up the property 'name' and sets the value of the property to 'value'. More... | |
| virtual int32_t | setProperty (const char *name, int64_t value)=0 |
| Looks up the property 'name' and sets the value of the property to 'value'. More... | |
| virtual int32_t | setProperty (const char *name, bool value)=0 |
| Looks up the property 'name' and sets the value of the property to 'value'. More... | |
| virtual int32_t | setProperty (const char *name, IRational *value)=0 |
| Looks up the property 'name' and sets the value of the property to 'value'. More... | |
| virtual char * | getPropertyAsString (const char *name)=0 |
| Gets a property on this Object. More... | |
| virtual double | getPropertyAsDouble (const char *name)=0 |
| Gets the value of this property, and returns as a double;. More... | |
| virtual int64_t | getPropertyAsLong (const char *name)=0 |
| Gets the value of this property, and returns as an long;. More... | |
| virtual IRational * | getPropertyAsRational (const char *name)=0 |
| Gets the value of this property, and returns as an IRational;. More... | |
| virtual bool | getPropertyAsBoolean (const char *name)=0 |
| Gets the value of this property, and returns as a boolean. More... | |
| virtual int32_t | setProperty (IMetaData *valuesToSet, IMetaData *valuesNotFound)=0 |
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... | |
Static Public Member Functions | |
| static IVideoResampler * | make (int32_t outputWidth, int32_t outputHeight, IPixelFormat::Type outputFmt, int32_t inputWidth, int32_t inputHeight, IPixelFormat::Type inputFmt) |
| Get a new video resampler. More... | |
| static bool | isSupported (Feature feature) |
| Returns true if the asked for feature is supported. 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 | |
| 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. | |
Converts IVideoPicture objects of a given width, height and format to a new width, height or format.
Definition at line 36 of file IVideoResampler.h.
|
pure virtual |
Get the height in pixels we expect on the input frame to the resampler.
Implemented in com::avpkit::core::VideoResampler.
|
pure virtual |
Get the input pixel format.
Implemented in com::avpkit::core::VideoResampler.
|
pure virtual |
Get the width in pixels we expect on the input frame to the resampler.
Implemented in com::avpkit::core::VideoResampler.
|
pure virtual |
Returns the total number of settable properties on this object.
Implemented in com::avpkit::core::VideoResampler.
|
pure virtual |
Get the output height, in pixels.
Implemented in com::avpkit::core::VideoResampler.
|
pure virtual |
Get the output pixel format.
Implemented in com::avpkit::core::VideoResampler.
|
pure virtual |
Get the output width, in pixels.
Implemented in com::avpkit::core::VideoResampler.
|
pure virtual |
Gets the value of this property, and returns as a boolean.
| name | name of option |
Implemented in com::avpkit::core::VideoResampler.
|
pure virtual |
Gets the value of this property, and returns as a double;.
| name | name of option |
Implemented in com::avpkit::core::VideoResampler.
|
pure virtual |
Gets the value of this property, and returns as an long;.
| name | name of option |
Implemented in com::avpkit::core::VideoResampler.
|
pure virtual |
Gets the value of this property, and returns as an IRational;.
| name | name of option |
Implemented in com::avpkit::core::VideoResampler.
|
pure virtual |
Gets a property on this Object.
Note for C++ callers; you must free the returned array with delete[] in order to avoid a memory leak. Other language folks need not worry.
| name | property name |
Implemented in com::avpkit::core::VideoResampler.
|
pure virtual |
Returns the name of the numbered property.
| name | The property name. |
Implemented in com::avpkit::core::VideoResampler.
|
pure virtual |
Returns the name of the numbered property.
| propertyNo | The property number in the options list. |
Implemented in com::avpkit::core::VideoResampler.
|
static |
Returns true if the asked for feature is supported.
| feature | The feature you want to find out is supported. |
Definition at line 48 of file IVideoResampler.cpp.
|
static |
Get a new video resampler.
Returns null if isSupported(Feature) returns false.
| outputWidth | The width in pixels you want to output frame to have. |
| outputHeight | The height in pixels you want to output frame to have. |
| outputFmt | The pixel format of the output frame. |
| inputWidth | The width in pixels the input frame will be in. |
| inputHeight | The height in pixels the input frame will be in. |
| inputFmt | The pixel format of the input frame. |
Definition at line 36 of file IVideoResampler.cpp.
References com::avpkit::core::Global::init().
|
pure virtual |
Resample in to out based on the resampler parameters.
Resamples the in picture based on the parameters set when this resampler was constructed.
| outVideoPicture | The picture we'll resample to. Check IVideoPicture#isComplete() after the call. |
| inVideoPicture | The picture we'll resample from. |
Implemented in com::avpkit::core::VideoResampler.
|
pure virtual |
Looks up the property 'name' and sets the value of the property to 'value'.
| name | name of option |
| value | Value of option |
Implemented in com::avpkit::core::VideoResampler.
|
pure virtual |
Sets a property on this Object.
All AVOptions supported by the underlying AVClass are supported.
| name | The property name. For example "b" for bit-rate. |
| value | The value of the property. |
Implemented in com::avpkit::core::VideoResampler.
|
pure virtual |
Looks up the property 'name' and sets the value of the property to 'value'.
| name | name of option |
| value | Value of option |
Implemented in com::avpkit::core::VideoResampler.
|
pure virtual |
Looks up the property 'name' and sets the value of the property to 'value'.
| name | name of option |
| value | Value of option |
Implemented in com::avpkit::core::VideoResampler.
|
pure virtual |
Looks up the property 'name' and sets the value of the property to 'value'.
| name | name of option |
| value | Value of option |
Implemented in com::avpkit::core::VideoResampler.