|
AVPKit
|
A wrapper for an FFMPEG AVOption value. More...
#include <Property.h>


Public Member Functions | |
| virtual const char * | getName () |
| IProperty implementation. | |
| virtual const char * | getHelp () |
| Get the (English) help string for this property. More... | |
| virtual const char * | getUnit () |
| Get any sub-unit this option or constant belongs to. More... | |
| virtual Type | getType () |
| Get the underlying native type of this property. More... | |
| virtual int64_t | getDefault () |
| Get the default setting this flag would have it not set. More... | |
| virtual double | getDefaultAsDouble () |
| Get the default setting this flag would have it not set. More... | |
| virtual int32_t | getFlags () |
| Get any set flags (a bitmask) for this option. More... | |
| virtual int32_t | getNumFlagSettings () |
| If this IProperty is of the type Type#PROPERTY_FLAGS, this method will tell you how many different flag settings it takes. More... | |
| virtual IProperty * | getFlagConstant (int32_t position) |
| If this IProperty is of the type Type#PROPERTY_FLAGS, this method will give you another IProperty representing a constant setting for that flag. More... | |
| virtual IProperty * | getFlagConstant (const char *name) |
| If this IProperty is of the type Type#PROPERTY_FLAGS, this method will give you another IProperty representing a constant setting for that flag. 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 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 Property * | make (const AVOption *start, const AVOption *option) |
| static int32_t | getNumProperties (void *context) |
| For internal use. More... | |
| static IProperty * | getPropertyMetaData (void *context, int32_t propertyNo) |
| Returns the metadata for the numbered property. More... | |
| static IProperty * | getPropertyMetaData (void *context, const char *name) |
| Returns the metadata for the named property. More... | |
| static int32_t | setProperty (void *context, const char *name, const char *value) |
| Looks up the property 'name' in 'context' and sets the value of the property to 'value'. More... | |
| static int32_t | setProperty (void *context, const char *name, double value) |
| Looks up the property 'name' in 'context' and sets the value of the property to 'value'. More... | |
| static int32_t | setProperty (void *context, const char *name, int64_t value) |
| Looks up the property 'name' in 'context' and sets the value of the property to 'value'. More... | |
| static int32_t | setProperty (void *context, const char *name, bool value) |
| Looks up the property 'name' in 'context' and sets the value of the property to 'value'. More... | |
| static int32_t | setProperty (void *context, const char *name, IRational *value) |
| Looks up the property 'name' in 'context' and sets the value of the property to 'value'. More... | |
| static char * | getPropertyAsString (void *context, const char *name) |
| Gets the value of this property, and returns as a new[]ed string. More... | |
| static double | getPropertyAsDouble (void *context, const char *name) |
| Gets the value of this property, and returns as a double;. More... | |
| static int64_t | getPropertyAsLong (void *context, const char *name) |
| Gets the value of this property, and returns as an long;. More... | |
| static IRational * | getPropertyAsRational (void *context, const char *name) |
| Gets the value of this property, and returns as an IRational;. More... | |
| static bool | getPropertyAsBoolean (void *context, const char *name) |
| Gets the value of this property, and returns as a boolean. More... | |
| static int32_t | setProperty (void *context, IMetaData *valuesToSet, IMetaData *valuesNotFound) |
| Sets all properties in valuesToSet on object context. More... | |
Additional Inherited Members | |
Public Types inherited from com::avpkit::core::IProperty | |
| enum | Type { PROPERTY_FLAGS , PROPERTY_INT , PROPERTY_INT64 , PROPERTY_DOUBLE , PROPERTY_FLOAT , PROPERTY_STRING , PROPERTY_RATIONAL , PROPERTY_BINARY , PROPERTY_DICT , PROPERTY_UINT64 , PROPERTY_CONST , PROPERTY_IMAGE_SIZE , PROPERTY_PIXEL_FMT , PROPERTY_SAMPLE_FMT , PROPERTY_VIDEO_RATE , PROPERTY_DURATION , PROPERTY_COLOR , PROPERTY_CHANNEL_LAYOUT , PROPERTY_BOOL , PROPERTY_UNKNOWN =-1 } |
| The different type of options that are supported by AVPKit. More... | |
| enum | Flags { FLAG_ENCODING_PARAM =1 , FLAG_DECODING_PARAM =2 , FLAG_METADATA =4 , FLAG_AUDIO_PARAM =8 , FLAG_VIDEO_PARAM =16 , FLAG_SUBTITLE_PARAM =32 , FLAG_EXPORT =64 , FLAG_READONLY =128 , FLAG_FILTERING_PARAM =(1<<16) } |
| enum | Search { PROPERTY_SEARCH_DEFAULT =0x0000 , PROPERTY_SEARCH_CHILDREN =0x0001 } |
| How to search options when looking for different values. More... | |
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. | |
A wrapper for an FFMPEG AVOption value.
Definition at line 35 of file Property.h.
|
virtual |
Get the default setting this flag would have it not set.
Implements com::avpkit::core::IProperty.
Definition at line 96 of file Property.cpp.
References getDefaultAsDouble().
|
virtual |
Get the default setting this flag would have it not set.
Implements com::avpkit::core::IProperty.
Definition at line 102 of file Property.cpp.
Referenced by getDefault().
|
virtual |
If this IProperty is of the type Type#PROPERTY_FLAGS, this method will give you another IProperty representing a constant setting for that flag.
| name | The name of the constant. |
Implements com::avpkit::core::IProperty.
Definition at line 383 of file Property.cpp.
|
virtual |
If this IProperty is of the type Type#PROPERTY_FLAGS, this method will give you another IProperty representing a constant setting for that flag.
| position | The position number for the flag; Must be in range 0 <= position <= getNumFlagSettings(). |
Implements com::avpkit::core::IProperty.
Definition at line 332 of file Property.cpp.
|
virtual |
Get any set flags (a bitmask) for this option.
Implements com::avpkit::core::IProperty.
Definition at line 108 of file Property.cpp.
|
virtual |
Get the (English) help string for this property.
Implements com::avpkit::core::IProperty.
Definition at line 78 of file Property.cpp.
|
virtual |
If this IProperty is of the type Type#PROPERTY_FLAGS, this method will tell you how many different flag settings it takes.
Implements com::avpkit::core::IProperty.
Definition at line 292 of file Property.cpp.
|
static |
For internal use.
Returns the total number of settable properties on this object
| context | AVClass to search for options in |
Definition at line 114 of file Property.cpp.
|
static |
Gets the value of this property, and returns as a boolean.
| context | AVClass context to search for option in. |
| name | name of option |
Definition at line 491 of file Property.cpp.
References getPropertyAsLong().
|
static |
Gets the value of this property, and returns as a double;.
| context | AVClass context to search for option in. |
| name | name of option |
Definition at line 422 of file Property.cpp.
|
static |
Gets the value of this property, and returns as an long;.
| context | AVClass context to search for option in. |
| name | name of option |
Definition at line 446 of file Property.cpp.
Referenced by getPropertyAsBoolean().
|
static |
Gets the value of this property, and returns as an IRational;.
| context | AVClass context to search for option in. |
| name | name of option |
Definition at line 467 of file Property.cpp.
References com::avpkit::core::IRational::make().
|
static |
Gets the value of this property, and returns as a new[]ed string.
Caller must call delete[] on string.
| context | AVClass context to search for option in. |
| name | name of option |
Definition at line 238 of file Property.cpp.
|
static |
Returns the metadata for the named property.
| context | AVClass to search for options in |
| name | The property number in the options list. |
Definition at line 170 of file Property.cpp.
|
static |
Returns the metadata for the numbered property.
Note that a property number is guaranteed to stay constant during this run of AVPKit, but the property number may change if the process restarts.
| context | AVClass to search for options in |
| propertyNo | The property number in the options list. |
Definition at line 133 of file Property.cpp.
|
virtual |
Get the underlying native type of this property.
Implements com::avpkit::core::IProperty.
Definition at line 90 of file Property.cpp.
Referenced by getFlagConstant(), and getNumFlagSettings().
|
virtual |
Get any sub-unit this option or constant belongs to.
Implements com::avpkit::core::IProperty.
Definition at line 84 of file Property.cpp.
Referenced by getFlagConstant(), and getNumFlagSettings().
|
static |
Looks up the property 'name' in 'context' and sets the value of the property to 'value'.
| context | AVClass to search for option in. |
| name | name of option |
| value | Value of option |
Definition at line 540 of file Property.cpp.
References setProperty().
|
static |
Looks up the property 'name' in 'context' and sets the value of the property to 'value'.
| context | AVClass to search for option in. |
| name | name of option |
| value | Value of option |
Definition at line 201 of file Property.cpp.
References com::avpkit::core::IProperty::PROPERTY_SEARCH_CHILDREN.
Referenced by setProperty().
|
static |
Looks up the property 'name' in 'context' and sets the value of the property to 'value'.
| context | AVClass to search for option in. |
| name | name of option |
| value | Value of option |
Definition at line 497 of file Property.cpp.
References com::avpkit::core::IProperty::PROPERTY_SEARCH_CHILDREN.
|
static |
Looks up the property 'name' in 'context' and sets the value of the property to 'value'.
| context | AVClass to search for option in. |
| name | name of option |
| value | Value of option |
Definition at line 518 of file Property.cpp.
References com::avpkit::core::IProperty::PROPERTY_SEARCH_CHILDREN.
|
static |
Looks up the property 'name' in 'context' and sets the value of the property to 'value'.
| context | AVClass to search for option in. |
| name | name of option |
| value | Value of option |
Definition at line 546 of file Property.cpp.
References com::avpkit::core::IRational::getDenominator(), com::avpkit::core::IRational::getNumerator(), and com::avpkit::core::IProperty::PROPERTY_SEARCH_CHILDREN.
|
static |
Sets all properties in valuesToSet on object context.
| context | AVClass context to set options on |
| valuesToSet | The set of key-value pairs to try to set |
| valuesNotFound | If non null will contain all key-values pairs in valuesToSet that were not found in context. |
Definition at line 574 of file Property.cpp.
References com::avpkit::core::MetaData::copy(), and com::avpkit::core::MetaData::getDictionary().