23 #include <com/avpkit/core/IProperty.h>
24 #include <com/avpkit/core/IRational.h>
27 #include "FfmpegIncludes.h"
30 namespace com {
namespace avpkit {
namespace core {
37 VS_JNIUTILS_REFCOUNTED_OBJECT_PRIVATE_MAKE(
Property);
39 static Property *make(
const AVOption *start,
const AVOption *option);
100 static int32_t
setProperty(
void * context,
const char* name,
const char* value);
112 static int32_t
setProperty(
void * context,
const char* name,
double value);
124 static int32_t
setProperty(
void * context,
const char* name, int64_t value);
136 static int32_t
setProperty(
void * context,
const char* name,
bool value);
221 const AVOption *mOption;
222 const AVOption *mOptionStart;
Represents settable properties that effect how AVPKit objects operate.
Type
The different type of options that are supported by AVPKit.
This class wraps represents a Rational number for the AVPKit.
A wrapper for an FFMPEG AVOption value.
virtual const char * getHelp()
Get the (English) help string for this property.
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'.
virtual int32_t getFlags()
Get any set flags (a bitmask) for this option.
virtual int64_t getDefault()
Get the default setting this flag would have it not set.
static int32_t getNumProperties(void *context)
For internal use.
virtual IProperty * getFlagConstant(int32_t position)
If this IProperty is of the type Type#PROPERTY_FLAGS, this method will give you another IProperty rep...
static int64_t getPropertyAsLong(void *context, const char *name)
Gets the value of this property, and returns as an long;.
virtual Type getType()
Get the underlying native type of this property.
static IRational * getPropertyAsRational(void *context, const char *name)
Gets the value of this property, and returns as an IRational;.
static IProperty * getPropertyMetaData(void *context, int32_t propertyNo)
Returns the metadata for the numbered property.
virtual int32_t getNumFlagSettings()
If this IProperty is of the type Type#PROPERTY_FLAGS, this method will tell you how many different fl...
static double getPropertyAsDouble(void *context, const char *name)
Gets the value of this property, and returns as a double;.
static bool getPropertyAsBoolean(void *context, const char *name)
Gets the value of this property, and returns as a boolean.
static char * getPropertyAsString(void *context, const char *name)
Gets the value of this property, and returns as a new[]ed string.
virtual double getDefaultAsDouble()
Get the default setting this flag would have it not set.
virtual const char * getName()
IProperty implementation.
virtual const char * getUnit()
Get any sub-unit this option or constant belongs to.
WARNING: Do not use logging in this class, and do not set any static file variables to values other t...