|
AVPKit
|


Public Member Functions | |
| virtual int32_t | getNumKeys () |
| Get the total number of keys currently in this IMetaData object. More... | |
| virtual const char * | getKey (int32_t position) |
| Get the key at the given position, or null if no such key at that position. More... | |
| virtual const char * | getValue (const char *key, Flags flag) |
| Get the value for the given key. More... | |
| virtual int32_t | setValue (const char *key, const char *value) |
| Sets the value for the given key to value. More... | |
| virtual int32_t | setValue (const char *key, const char *value, Flags flag) |
| Sets the value for the given key to value. More... | |
| int32_t | copy (IMetaData *copy) |
| Destroys the current data, and copies all data from copy. | |
| int32_t | copy (AVDictionary *copy) |
| Destroys the current data and copies all data from copy. | |
| AVDictionary * | getDictionary () |
| Returns the AVDictionary for passing to FFmpeg calls. 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 MetaData * | make (AVDictionary **metaDataToReference) |
| Create a MetaData object using metaDataToReference. More... | |
| static MetaData * | make (AVDictionary *metaDataToCopy) |
| Copies all meta data currently in metaDataToCopy and returns a new object. | |
Static Public Member Functions inherited from com::avpkit::core::IMetaData | |
| static IMetaData * | make () |
| Create a new IMetaData bag of properties with no values set. | |
Additional Inherited Members | |
Public Types inherited from com::avpkit::core::IMetaData | |
| enum | Flags { METADATA_NONE =0 , METADATA_MATCH_CASE =1 , METADATA_DONT_OVERWRITE =16 , META_DATA_APPEND =32 } |
| Different types of flags that can be passed to IMetaData#getValue. 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. | |
Definition at line 34 of file MetaData.h.
|
inline |
Returns the AVDictionary for passing to FFmpeg calls.
Definition at line 76 of file MetaData.h.
Referenced by copy(), com::avpkit::core::Container::open(), com::avpkit::core::StreamCoder::open(), and com::avpkit::core::Property::setProperty().
|
virtual |
Get the key at the given position, or null if no such key at that position.
Note: positions of keys may change between calls to setValue(String, String) and should be requiried.
| position | The position. Must be >=0 and < getNumKeys(). |
Implements com::avpkit::core::IMetaData.
Definition at line 67 of file MetaData.cpp.
|
virtual |
Get the total number of keys currently in this IMetaData object.
Implements com::avpkit::core::IMetaData.
Definition at line 50 of file MetaData.cpp.
|
virtual |
Get the value for the given key.
| key | The key |
| flag | A flag for how to search |
Implements com::avpkit::core::IMetaData.
Definition at line 86 of file MetaData.cpp.
|
static |
Create a MetaData object using metaDataToReference.
Once this is done, this MetaData object is responsible for calling av_dict_free(*metaDataToReference), so take care.
Definition at line 112 of file MetaData.cpp.
References com::avpkit::core::IMetaData::make().
|
virtual |
Sets the value for the given key to value.
This overrides any prior setting for key, or adds key to the meta-data if appropriate.
| key | The key to set. |
| value | The value to set. |
Implements com::avpkit::core::IMetaData.
Definition at line 98 of file MetaData.cpp.
References com::avpkit::core::IMetaData::METADATA_NONE.
|
virtual |
Sets the value for the given key to value.
This overrides any prior setting for key, or adds key to the meta-data if appropriate.
| key | The key to set. |
| value | The value to set. |
| flag | A flag on how this should be set. |
Implements com::avpkit::core::IMetaData.
Definition at line 104 of file MetaData.cpp.