|
AVPKit
|


Public Member Functions | |
| virtual int32_t | getInputWidth () |
| Get the width in pixels we expect on the input frame to the resampler. More... | |
| virtual int32_t | getInputHeight () |
| Get the height in pixels we expect on the input frame to the resampler. More... | |
| virtual IPixelFormat::Type | getInputPixelFormat () |
| Get the input pixel format. More... | |
| virtual int32_t | getOutputWidth () |
| Get the output width, in pixels. More... | |
| virtual int32_t | getOutputHeight () |
| Get the output height, in pixels. More... | |
| virtual IPixelFormat::Type | getOutputPixelFormat () |
| Get the output pixel format. More... | |
| virtual int32_t | resample (IVideoPicture *pOutFrame, IVideoPicture *pInFrame) |
| Resample in to out based on the resampler parameters. More... | |
| virtual int32_t | getNumProperties () |
| Returns the total number of settable properties on this object. More... | |
| virtual IProperty * | getPropertyMetaData (int32_t propertyNo) |
| Returns the name of the numbered property. More... | |
| virtual IProperty * | getPropertyMetaData (const char *name) |
| Returns the name of the numbered property. More... | |
| virtual int32_t | setProperty (const char *name, const char *value) |
| Sets a property on this Object. More... | |
| virtual int32_t | setProperty (const char *name, double value) |
| 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) |
| Looks up the property 'name' and sets the value of the property to 'value'. More... | |
| virtual int32_t | setProperty (const char *name, bool value) |
| Looks up the property 'name' and sets the value of the property to 'value'. More... | |
| virtual int32_t | setProperty (const char *name, IRational *value) |
| Looks up the property 'name' and sets the value of the property to 'value'. More... | |
| virtual char * | getPropertyAsString (const char *name) |
| Gets a property on this Object. More... | |
| virtual double | getPropertyAsDouble (const char *name) |
| Gets the value of this property, and returns as a double;. More... | |
| virtual int64_t | getPropertyAsLong (const char *name) |
| Gets the value of this property, and returns as an long;. More... | |
| virtual IRational * | getPropertyAsRational (const char *name) |
| Gets the value of this property, and returns as an IRational;. More... | |
| virtual bool | getPropertyAsBoolean (const char *name) |
| Gets the value of this property, and returns as a boolean. More... | |
| virtual int32_t | setProperty (IMetaData *valuesToSet, IMetaData *valuesNotFound) |
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 VideoResampler * | make (int32_t outputWidth, int32_t outputHeight, IPixelFormat::Type outputFmt, int32_t inputWidth, int32_t inputHeight, IPixelFormat::Type inputFmt) |
Static Public Member Functions inherited from com::avpkit::core::IVideoResampler | |
| 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 | |
Public Types inherited from com::avpkit::core::IVideoResampler | |
| enum | Feature { FEATURE_IMAGERESCALING , FEATURE_COLORSPACECONVERSION } |
| Features that the VideoResampler may optionally support. | |
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. | |
Definition at line 36 of file VideoResampler.h.
|
virtual |
Get the height in pixels we expect on the input frame to the resampler.
Implements com::avpkit::core::IVideoResampler.
Definition at line 64 of file VideoResampler.cpp.
|
virtual |
Get the input pixel format.
Implements com::avpkit::core::IVideoResampler.
Definition at line 88 of file VideoResampler.cpp.
|
virtual |
Get the width in pixels we expect on the input frame to the resampler.
Implements com::avpkit::core::IVideoResampler.
Definition at line 70 of file VideoResampler.cpp.
|
virtual |
Returns the total number of settable properties on this object.
Implements com::avpkit::core::IVideoResampler.
Definition at line 298 of file VideoResampler.cpp.
|
virtual |
Get the output height, in pixels.
Implements com::avpkit::core::IVideoResampler.
Definition at line 76 of file VideoResampler.cpp.
|
virtual |
Get the output pixel format.
Implements com::avpkit::core::IVideoResampler.
Definition at line 94 of file VideoResampler.cpp.
|
virtual |
Get the output width, in pixels.
Implements com::avpkit::core::IVideoResampler.
Definition at line 82 of file VideoResampler.cpp.
|
virtual |
Gets the value of this property, and returns as a boolean.
| name | name of option |
Implements com::avpkit::core::IVideoResampler.
Definition at line 379 of file VideoResampler.cpp.
|
virtual |
Gets the value of this property, and returns as a double;.
| name | name of option |
Implements com::avpkit::core::IVideoResampler.
Definition at line 361 of file VideoResampler.cpp.
|
virtual |
Gets the value of this property, and returns as an long;.
| name | name of option |
Implements com::avpkit::core::IVideoResampler.
Definition at line 367 of file VideoResampler.cpp.
|
virtual |
Gets the value of this property, and returns as an IRational;.
| name | name of option |
Implements com::avpkit::core::IVideoResampler.
Definition at line 373 of file VideoResampler.cpp.
|
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 |
Implements com::avpkit::core::IVideoResampler.
Definition at line 355 of file VideoResampler.cpp.
|
virtual |
Returns the name of the numbered property.
| name | The property name. |
Implements com::avpkit::core::IVideoResampler.
Definition at line 310 of file VideoResampler.cpp.
|
virtual |
Returns the name of the numbered property.
| propertyNo | The property number in the options list. |
Implements com::avpkit::core::IVideoResampler.
Definition at line 304 of file VideoResampler.cpp.
|
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. |
Implements com::avpkit::core::IVideoResampler.
Definition at line 100 of file VideoResampler.cpp.
References com::avpkit::core::VideoPicture::getAVFrame(), com::avpkit::core::VideoPicture::getHeight(), com::avpkit::core::VideoPicture::getPixelType(), com::avpkit::core::VideoPicture::getPts(), com::avpkit::core::VideoPicture::getQuality(), com::avpkit::core::VideoPicture::getWidth(), com::avpkit::core::VideoPicture::isComplete(), com::avpkit::core::VideoPicture::setComplete(), and com::avpkit::core::VideoPicture::setQuality().
|
virtual |
Looks up the property 'name' and sets the value of the property to 'value'.
| name | name of option |
| value | Value of option |
Implements com::avpkit::core::IVideoResampler.
Definition at line 341 of file VideoResampler.cpp.
|
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. |
Implements com::avpkit::core::IVideoResampler.
Definition at line 323 of file VideoResampler.cpp.
|
virtual |
Looks up the property 'name' and sets the value of the property to 'value'.
| name | name of option |
| value | Value of option |
Implements com::avpkit::core::IVideoResampler.
Definition at line 329 of file VideoResampler.cpp.
|
virtual |
Looks up the property 'name' and sets the value of the property to 'value'.
| name | name of option |
| value | Value of option |
Implements com::avpkit::core::IVideoResampler.
Definition at line 335 of file VideoResampler.cpp.
|
virtual |
Looks up the property 'name' and sets the value of the property to 'value'.
| name | name of option |
| value | Value of option |
Implements com::avpkit::core::IVideoResampler.
Definition at line 348 of file VideoResampler.cpp.