Package com.avpkit.core
Class IProperty
- java.lang.Object
-
- com.avpkit.ferry.RefCounted
-
- com.avpkit.core.IProperty
-
public class IProperty extends RefCounted
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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIProperty.Flagsstatic classIProperty.SearchHow to search options when looking for different values.static classIProperty.TypeThe different type of options that are supported by AVPKit.
Well, actually by FFMPEG, but you get the idea.
-
Field Summary
-
Fields inherited from class com.avpkit.ferry.RefCounted
swigCMemOwn
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IPropertycopyReference()Create a new IProperty object that is actually referring to the exact same underlying native object.booleanequals(java.lang.Object obj)Compares two values, returning true if the underlying objects in native code are the same object.static longgetCPtr(IProperty obj)Internal Only.longgetDefault()Get the default setting this flag would have it not set.
doublegetDefaultAsDouble()Get the default setting this flag would have it not set.
IPropertygetFlagConstant(int 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.
IPropertygetFlagConstant(java.lang.String 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.
intgetFlags()Get any set flags (a bitmask) for this option.
java.lang.StringgetHelp()Get the (English) help string for this property.
longgetMyCPtr()Internal Only.java.lang.StringgetName()Get the name for this property.
intgetNumFlagSettings()If this IProperty is of the type {Type#PROPERTY_FLAGS}, this method will
tell you how many different flag settings it takes.
IProperty.TypegetType()Get the underlying native type of this property.
java.lang.StringgetUnit()Get any sub-unit this option or constant belongs to.
inthashCode()Get a hashable value for this object.-
Methods inherited from class com.avpkit.ferry.RefCounted
acquire, delete, getCPtr, getCurrentRefCount, getJavaRefCount, release
-
-
-
-
Method Detail
-
getCPtr
public static long getCPtr(IProperty obj)
Internal Only. Not part of public API. Get the raw value of the native object that obj is proxying for.- Parameters:
obj- The java proxy object for a native object.- Returns:
- The raw pointer obj is proxying for.
-
getMyCPtr
public long getMyCPtr()
Internal Only. Not part of public API. Get the raw value of the native object that we're proxying for.- Overrides:
getMyCPtrin classRefCounted- Returns:
- The raw pointer we're proxying for.
-
copyReference
public IProperty copyReference()
Create a new IProperty object that is actually referring to the exact same underlying native object.- Overrides:
copyReferencein classRefCounted- Returns:
- the new Java object.
-
equals
public boolean equals(java.lang.Object obj)
Compares two values, returning true if the underlying objects in native code are the same object. That means you can have two different Java objects, but when you do a comparison, you'll find out they are the EXACT same object.- Overrides:
equalsin classjava.lang.Object- Returns:
- True if the underlying native object is the same. False otherwise.
-
hashCode
public int hashCode()
Get a hashable value for this object.- Overrides:
hashCodein classjava.lang.Object- Returns:
- the hashable value.
-
getName
public java.lang.String getName()
Get the name for this property.
- Returns:
- the name.
-
getHelp
public java.lang.String getHelp()
Get the (English) help string for this property.
- Returns:
- the help string
-
getUnit
public java.lang.String getUnit()
Get any sub-unit this option or constant belongs to.
- Returns:
- the unit, or null if none.
-
getType
public IProperty.Type getType()
Get the underlying native type of this property.
- Returns:
- the type
-
getFlags
public int getFlags()
Get any set flags (a bitmask) for this option.
- Returns:
- the flags
-
getDefault
public long getDefault()
Get the default setting this flag would have it not set.
- Returns:
- the default
-
getDefaultAsDouble
public double getDefaultAsDouble()
Get the default setting this flag would have it not set.
- Returns:
- the default
-
getNumFlagSettings
public int getNumFlagSettings()
If this IProperty is of the type {Type#PROPERTY_FLAGS}, this method will
tell you how many different flag settings it takes.
- Returns:
- Number of flag settings, or <0 if not a FLAGS value
-
getFlagConstant
public IProperty getFlagConstant(int 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.
- Parameters:
position- The position number for the flag; Must be in range 0 <= position <= #getNumFlagSettings().
- Returns:
- An IProperty object for the flag setting, or null if not available.
-
getFlagConstant
public IProperty getFlagConstant(java.lang.String 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.
- Parameters:
name- The name of the constant.
- Returns:
- An IProperty object for the flag setting, or null if not available.
-
-