| Package | Description |
|---|---|
| io.humble.video |
The Humble Video library for decoding and encoding audio and pictures (i.e.
|
| Modifier and Type | Method and Description |
|---|---|
Rational |
Rational.add(Rational arg)
Adds arg to this rational
|
Rational |
Rational.copy()
Creates a new IRational object by copying (by value) this object.
|
Rational |
Rational.copyReference()
Create a new Rational object that is actually referring to the
exact same underlying native object.
|
Rational |
Rational.divide(Rational arg)
Divides this rational by arg.
|
static Rational |
Global.getDefaultTimeBase()
The default timebase used by media if not otherwise specified.
|
Rational |
ContainerStream.getFrameRate()
Get the (sometimes estimated) average frame rate of this container.
For variable frame-rate containers (they do exist) this is just an approximation. |
Rational |
FilterLink.getPixelAspectRatio() |
Rational |
Configurable.getPropertyAsRational(String name)
Gets the value of this property, and returns as an Rational;
|
Rational |
ContainerStream.getSampleAspectRatio()
Gets the sample aspect ratio.
|
Rational |
Codec.getSupportedVideoFrameRate(int index)
Return the supported frame rate at the given index.
|
Rational |
ContainerStream.getTimeBase()
The time base in which all timestamps (e.g.
|
Rational |
Media.getTimeBase()
Get the time base that time stamps of this object are represented in.
Caller must release the returned value. |
Rational |
Coder.getTimeBase()
Get the time base this stream will ENCODE in, or the time base we
detect while DECODING. |
Rational |
FilterLink.getTimeBase()
Define the time base used by the PTS of the frames/samples
which will pass through this link. During the configuration stage, each filter is supposed to change only the output timebase, while the timebase of the input link is assumed to be an unchangeable property. |
Rational |
MediaAudioResampler.getTimeBase()
Get the timebase used when outputting time stamps for audio.
Defaults to 1 / (the lowest common multiple of getInputSampleRate() and getOutputSampleRate()) in order to ensure that no rounding of time stamps occur. For example, if the input sample rate is 22050 and the output sample rate is 44100, then the output time base will be (1/44100). |
Rational |
MediaRaw.getTimeBase()
Get the time base that time stamps of this object are represented in.
|
static Rational |
Rational.make()
Get a new rational that will be set to 0/1.
The rational will not have #init() called and hence will be modifiable by #setValue(double) until #init() is called. |
static Rational |
Rational.make(double d)
Converts a double precision floating point number to a rational.
|
static Rational |
Rational.make(int num,
int den)
Create a rational from a numerator and denominator.
We will always reduce this to the lowest num/den pair we can, but never having den exceed what was passed in. |
static Rational |
Rational.make(Rational src)
Creates deep copy of a Rational from another Rational.
|
Rational |
Rational.multiply(Rational arg)
Multiplies this number by arg
|
static Rational |
Rational.sAdd(Rational a,
Rational b)
Adds a to b.
|
static Rational |
Rational.sDivide(Rational a,
Rational b)
Divides a by b.
|
static Rational |
Rational.sMultiply(Rational a,
Rational b)
Multiples a by b.
|
static Rational |
Rational.sSubtract(Rational a,
Rational b)
Subtracts a from b.
|
Rational |
Rational.subtract(Rational arg)
Subtracts arg from this rational
|
| Modifier and Type | Method and Description |
|---|---|
Collection<Rational> |
Codec.getSupportedVideoFrameRates()
Returns a list of supported frame-rates this codec can encode
video to.
|
| Modifier and Type | Method and Description |
|---|---|
Rational |
Rational.add(Rational arg)
Adds arg to this rational
|
FilterAudioSource |
FilterGraph.addAudioSource(String name,
int sampleRate,
AudioChannel.Layout channelLayout,
AudioFormat.Type format,
Rational timeBase)
Add a FilterAudioSource.
|
FilterPictureSource |
FilterGraph.addPictureSource(String name,
int width,
int height,
PixelFormat.Type format,
Rational timeBase,
Rational pixelAspectRatio)
Add a FilterPictureSource.
|
static void |
VideoJNI.Coder_setTimeBase(long jarg1,
Coder jarg1_,
long jarg2,
Rational jarg2_) |
int |
Rational.compareTo(Rational other)
Compare a rational to this rational
|
static void |
VideoJNI.Configurable_setProperty__SWIG_4(long jarg1,
Configurable jarg1_,
String jarg2,
long jarg3,
Rational jarg3_) |
Rational |
Rational.divide(Rational arg)
Divides this rational by arg.
|
static long |
VideoJNI.FilterGraph_addAudioSource(long jarg1,
FilterGraph jarg1_,
String jarg2,
int jarg3,
int jarg4,
int jarg5,
long jarg6,
Rational jarg6_) |
static long |
VideoJNI.FilterGraph_addPictureSource(long jarg1,
FilterGraph jarg1_,
String jarg2,
int jarg3,
int jarg4,
int jarg5,
long jarg6,
Rational jarg6_,
long jarg7,
Rational jarg7_) |
static Rational |
Rational.make(Rational src)
Creates deep copy of a Rational from another Rational.
|
static void |
VideoJNI.MediaAudioResampler_setTimeBase(long jarg1,
MediaAudioResampler jarg1_,
long jarg2,
Rational jarg2_) |
static void |
VideoJNI.MediaEncoded_setTimeBase(long jarg1,
MediaEncoded jarg1_,
long jarg2,
Rational jarg2_) |
static void |
VideoJNI.MediaRaw_setTimeBase(long jarg1,
MediaRaw jarg1_,
long jarg2,
Rational jarg2_) |
Rational |
Rational.multiply(Rational arg)
Multiplies this number by arg
|
static boolean |
Rational.negative(Rational num)
Is this number not null and negative.
|
static boolean |
Rational.positive(Rational num)
Is this number not null and positive.
|
static long |
VideoJNI.Rational_add(long jarg1,
Rational jarg1_,
long jarg2,
Rational jarg2_) |
static int |
VideoJNI.Rational_compareTo(long jarg1,
Rational jarg1_,
long jarg2,
Rational jarg2_) |
static long |
VideoJNI.Rational_copy(long jarg1,
Rational jarg1_) |
static long |
VideoJNI.Rational_divide(long jarg1,
Rational jarg1_,
long jarg2,
Rational jarg2_) |
static int |
VideoJNI.Rational_getDenominator(long jarg1,
Rational jarg1_) |
static double |
VideoJNI.Rational_getDouble(long jarg1,
Rational jarg1_) |
static int |
VideoJNI.Rational_getNumerator(long jarg1,
Rational jarg1_) |
static double |
VideoJNI.Rational_getValue(long jarg1,
Rational jarg1_) |
static void |
VideoJNI.Rational_init(long jarg1,
Rational jarg1_) |
static boolean |
VideoJNI.Rational_isFinalized(long jarg1,
Rational jarg1_) |
static long |
VideoJNI.Rational_make__SWIG_2(long jarg1,
Rational jarg1_) |
static long |
VideoJNI.Rational_multiply(long jarg1,
Rational jarg1_,
long jarg2,
Rational jarg2_) |
static int |
VideoJNI.Rational_reduce(long jarg1,
Rational jarg1_,
long jarg2,
long jarg3,
long jarg4) |
static long |
VideoJNI.Rational_rescale__SWIG_0(long jarg1,
Rational jarg1_,
long jarg2,
long jarg3,
Rational jarg3_) |
static long |
VideoJNI.Rational_rescale__SWIG_1(long jarg1,
Rational jarg1_,
long jarg2,
long jarg3,
Rational jarg3_,
int jarg4) |
static long |
VideoJNI.Rational_sAdd(long jarg1,
Rational jarg1_,
long jarg2,
Rational jarg2_) |
static int |
VideoJNI.Rational_sCompareTo(long jarg1,
Rational jarg1_,
long jarg2,
Rational jarg2_) |
static long |
VideoJNI.Rational_sDivide(long jarg1,
Rational jarg1_,
long jarg2,
Rational jarg2_) |
static void |
VideoJNI.Rational_setDenominator(long jarg1,
Rational jarg1_,
int jarg2) |
static void |
VideoJNI.Rational_setNumerator(long jarg1,
Rational jarg1_,
int jarg2) |
static void |
VideoJNI.Rational_setValue(long jarg1,
Rational jarg1_,
double jarg2) |
static long |
VideoJNI.Rational_sMultiply(long jarg1,
Rational jarg1_,
long jarg2,
Rational jarg2_) |
static int |
VideoJNI.Rational_sReduce(long jarg1,
Rational jarg1_,
long jarg2,
long jarg3,
long jarg4) |
static long |
VideoJNI.Rational_sRescale__SWIG_0(long jarg1,
long jarg2,
Rational jarg2_,
long jarg3,
Rational jarg3_) |
static long |
VideoJNI.Rational_sRescale__SWIG_1(long jarg1,
long jarg2,
Rational jarg2_,
long jarg3,
Rational jarg3_,
int jarg4) |
static long |
VideoJNI.Rational_sSubtract(long jarg1,
Rational jarg1_,
long jarg2,
Rational jarg2_) |
static long |
VideoJNI.Rational_subtract(long jarg1,
Rational jarg1_,
long jarg2,
Rational jarg2_) |
long |
Rational.rescale(long origValue,
Rational origBase)
Takes a value scaled in increments of origBase and gives the
equivalent value scaled in terms of this Rational. |
long |
Rational.rescale(long origValue,
Rational origBase,
Rational.Rounding rounding)
Takes a value scaled in increments of origBase and gives the
equivalent value scaled in terms of this Rational. |
static Rational |
Rational.sAdd(Rational a,
Rational b)
Adds a to b.
|
static int |
Rational.sCompareTo(Rational a,
Rational b)
Compare two rationals
|
static Rational |
Rational.sDivide(Rational a,
Rational b)
Divides a by b.
|
void |
Configurable.setProperty(String name,
Rational value)
Looks up the property 'name' and sets the
value of the property to 'value'. |
void |
Coder.setTimeBase(Rational newTimeBase)
Set the time base we'll use to ENCODE with.
|
void |
MediaAudioResampler.setTimeBase(Rational rational)
Set the timebase to use for timestamps on output audio.
|
void |
MediaRaw.setTimeBase(Rational timeBase)
Sets the timebase on this object.
Note: This will NOT automatically rescale the timestamp set -- so if you change the timebase, you almost definitely want to change the timestamp as well. |
void |
MediaEncoded.setTimeBase(Rational aBase)
Set the time base that time stamps of this object are represented in.
|
static Rational |
Rational.sMultiply(Rational a,
Rational b)
Multiples a by b.
|
static int |
Rational.sReduce(Rational dst,
long num,
long den,
long max)
Reduce a fraction to it's lowest common denominators.
This is useful for framerate calculations. |
static long |
Rational.sRescale(long origValue,
Rational origBase,
Rational newBase)
Takes a value scaled in increments of origBase and gives the
equivalent value scaled in terms of this Rational. |
static long |
Rational.sRescale(long origValue,
Rational origBase,
Rational newBase,
Rational.Rounding rounding)
Takes a value scaled in increments of origBase and gives the
equivalent value scaled in terms of this Rational. |
static Rational |
Rational.sSubtract(Rational a,
Rational b)
Subtracts a from b.
|
Rational |
Rational.subtract(Rational arg)
Subtracts arg from this rational
|
Copyright © 2018 Humble Software. All rights reserved.