|
AVPKit
|
Represents settable properties that effect how AVPKit objects operate. More...
#include <IProperty.h>


Public Types | |
| 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... | |
Public Member Functions | |
| virtual const char * | getName ()=0 |
| Get the name for this property. More... | |
| virtual const char * | getHelp ()=0 |
| Get the (English) help string for this property. More... | |
| virtual const char * | getUnit ()=0 |
| Get any sub-unit this option or constant belongs to. More... | |
| virtual Type | getType ()=0 |
| Get the underlying native type of this property. More... | |
| virtual int32_t | getFlags ()=0 |
| Get any set flags (a bitmask) for this option. More... | |
| virtual int64_t | getDefault ()=0 |
| Get the default setting this flag would have it not set. More... | |
| virtual double | getDefaultAsDouble ()=0 |
| Get the default setting this flag would have it not set. More... | |
| virtual int32_t | getNumFlagSettings ()=0 |
| 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)=0 |
| 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)=0 |
| 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... | |
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. | |
Represents settable properties that effect how AVPKit objects operate.
For example, setting the "b" property on an IStreamCoder sets the bit-rate the coder will attempt to encode at.
Definition at line 36 of file IProperty.h.
How to search options when looking for different values.
| Enumerator | |
|---|---|
| PROPERTY_SEARCH_DEFAULT | Do not search child options. |
| PROPERTY_SEARCH_CHILDREN | Search children first. |
Definition at line 82 of file IProperty.h.
The different type of options that are supported by AVPKit.
Well, actually by FFMPEG, but you get the idea. see opt.h
Definition at line 44 of file IProperty.h.
|
pure virtual |
Get the default setting this flag would have it not set.
Implemented in com::avpkit::core::Property.
|
pure virtual |
Get the default setting this flag would have it not set.
Implemented in com::avpkit::core::Property.
|
pure 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. |
Implemented in com::avpkit::core::Property.
|
pure 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(). |
Implemented in com::avpkit::core::Property.
|
pure virtual |
Get any set flags (a bitmask) for this option.
Implemented in com::avpkit::core::Property.
|
pure virtual |
Get the (English) help string for this property.
Implemented in com::avpkit::core::Property.
|
pure virtual |
|
pure virtual |
If this IProperty is of the type Type#PROPERTY_FLAGS, this method will tell you how many different flag settings it takes.
Implemented in com::avpkit::core::Property.
|
pure virtual |
Get the underlying native type of this property.
Implemented in com::avpkit::core::Property.
|
pure virtual |
Get any sub-unit this option or constant belongs to.
Implemented in com::avpkit::core::Property.