Uses of Class
com.avpkit.core.IRational
-
Packages that use IRational Package Description com.avpkit.core An advanced API for reading, decoding, re-sampling, encoding and writing of most media files.com.avpkit.mediatool A simple API for to decoding, viewing and encoding media: tutorial here; start withToolFactory. -
-
Uses of IRational in com.avpkit.core
Methods in com.avpkit.core that return IRational Modifier and Type Method Description IRationalIRational. add(IRational arg)Adds arg to this rationalIRationalIRational. copy()Creates a new IRational object by copying (by value) this object.
IRationalIRational. copyReference()Create a new IRational object that is actually referring to the exact same underlying native object.IRationalIRational. divide(IRational arg)Divides this rational by arg.IRationalISimpleMediaFile. getAudioTimeBase()Get the time base used when encoding or decoding audio.IRationalSimpleMediaFile. getAudioTimeBase()Get the time base used when encoding or decoding audio.IRationalIBufferSink. getFrameRate()Returns the frame rate output filtered picture.
IRationalIStream. getFrameRate()Get the (sometimes estimated) frame rate of this container.
For variable frame-rate containers (they do exist) this is just
an approimation.IRationalIStreamCoder. getFrameRate()Get the frame-rate the attached stream claims to be using when
DECODING, or the frame-rate we'll claim we're using when ENCODING.
IRationalIConfigurable. getPropertyAsRational(java.lang.String name)Gets the value of this property, and returns as an IRational;IRationalIContainer. getPropertyAsRational(java.lang.String name)Gets the value of this property, and returns as an IRational;
IRationalIStreamCoder. getPropertyAsRational(java.lang.String name)Gets the value of this property, and returns as an IRational;
IRationalIVideoResampler. getPropertyAsRational(java.lang.String name)Gets the value of this property, and returns as an IRational;
IRationalIStream. getSampleAspectRatio()Gets the sample aspect ratio.
IRationalICodec. getSupportedVideoFrameRate(int index)Return the supported frame rate at the given index.
IRationalIBufferSink. getTimeBase()Returns the frame rate output filtered picture.
IRationalIMediaData. getTimeBase()Get the time base that time stamps of this object are represented in.
Caller must release the returned value.
IRationalIStream. getTimeBase()The time base in which all timestamps (e.g.IRationalIStreamCoder. getTimeBase()Get the time base this stream will ENCODE in, or the time base we
detect while DECODING.
Caller must call release() on the returned value.
IRationalISimpleMediaFile. getVideoFrameRate()Get the Video Frame RateIRationalSimpleMediaFile. getVideoFrameRate()Get the Video Frame RateIRationalISimpleMediaFile. getVideoTimeBase()Get the timebase that packets should be encoded with.IRationalSimpleMediaFile. getVideoTimeBase()Get the timebase that packets should be encoded with.static IRationalIRational. make()Get a new rational that will be set to 0/0.
The rational will not have {#init()} called
and hence will be modifiable by {#setValue(double)}
until {#init()} is called.static IRationalIRational. make(double d)Converts a double precision floating point number to a rational.static IRationalIRational. 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 IRationalIRational. make(IRational src)Creates deep copy of a Rational from another Rational.
IRationalIRational. multiply(IRational arg)Multiplies this number by argstatic IRationalIRational. sAdd(IRational a, IRational b)Adds a to b.static IRationalIRational. sDivide(IRational a, IRational b)Divides a by b.static IRationalIRational. sMultiply(IRational a, IRational b)Multiples a by b.static IRationalIRational. sSubtract(IRational a, IRational b)Subtracts a from b.IRationalIRational. subtract(IRational arg)Subtracts arg from this rationalMethods in com.avpkit.core that return types with arguments of type IRational Modifier and Type Method Description java.util.List<IRational>ICodec. getSupportedVideoFrameRates()Returns a list of supported frame-rates this codec can encode video to.Methods in com.avpkit.core with parameters of type IRational Modifier and Type Method Description IRationalIRational. add(IRational arg)Adds arg to this rationalintIRational. compareTo(IRational other)Compare a rational to this rationalIBufferSourceIFilterChain. createSource(IAudioSamples.Format format, int channels, int sample_rate, IRational time_base)IBufferSourceIFilterChain. createSource(IAudioSamples.Format format, int channels, int sample_rate, IRational time_base, IAudioSamples.ChannelLayout channel_layout)IBufferSourceIFilterChain. createVideoSource(IPixelFormat.Type format, int width, int height, IRational frame_rate, IRational time_base)IBufferSourceIFilterChain. createVideoSource(IVideoPicture picture, IRational frame_rate)IRationalIRational. divide(IRational arg)Divides this rational by arg.static longIRational. getCPtr(IRational obj)Internal Only.static intAVPKitJNI. IContainer_setProperty__SWIG_4(long jarg1, IContainer jarg1_, java.lang.String jarg2, long jarg3, IRational jarg3_)static longAVPKitJNI. IFilterChain_createSource__SWIG_0(long jarg1, IFilterChain jarg1_, int jarg2, int jarg3, int jarg4, long jarg5, IRational jarg5_, int jarg6)static longAVPKitJNI. IFilterChain_createSource__SWIG_1(long jarg1, IFilterChain jarg1_, int jarg2, int jarg3, int jarg4, long jarg5, IRational jarg5_)static longAVPKitJNI. IFilterChain_createVideoSource__SWIG_0(long jarg1, IFilterChain jarg1_, int jarg2, int jarg3, int jarg4, long jarg5, IRational jarg5_, long jarg6, IRational jarg6_)static longAVPKitJNI. IFilterChain_createVideoSource__SWIG_1(long jarg1, IFilterChain jarg1_, long jarg2, IVideoPicture jarg2_, long jarg3, IRational jarg3_)static voidAVPKitJNI. IMediaData_setTimeBase(long jarg1, IMediaData jarg1_, long jarg2, IRational jarg2_)static intAVPKitJNI. IMediaFilter_setRationalProperty(long jarg1, IMediaFilter jarg1_, java.lang.String jarg2, long jarg3, IRational jarg3_)static longAVPKitJNI. IRational_add(long jarg1, IRational jarg1_, long jarg2, IRational jarg2_)static intAVPKitJNI. IRational_compareTo(long jarg1, IRational jarg1_, long jarg2, IRational jarg2_)static longAVPKitJNI. IRational_copy(long jarg1, IRational jarg1_)static longAVPKitJNI. IRational_divide(long jarg1, IRational jarg1_, long jarg2, IRational jarg2_)static intAVPKitJNI. IRational_getDenominator(long jarg1, IRational jarg1_)static doubleAVPKitJNI. IRational_getDouble(long jarg1, IRational jarg1_)static intAVPKitJNI. IRational_getNumerator(long jarg1, IRational jarg1_)static doubleAVPKitJNI. IRational_getValue(long jarg1, IRational jarg1_)static voidAVPKitJNI. IRational_init(long jarg1, IRational jarg1_)static booleanAVPKitJNI. IRational_isFinalized(long jarg1, IRational jarg1_)static longAVPKitJNI. IRational_make__SWIG_2(long jarg1, IRational jarg1_)static longAVPKitJNI. IRational_multiply(long jarg1, IRational jarg1_, long jarg2, IRational jarg2_)static intAVPKitJNI. IRational_reduce(long jarg1, IRational jarg1_, long jarg2, long jarg3, long jarg4)static longAVPKitJNI. IRational_rescale__SWIG_0(long jarg1, IRational jarg1_, long jarg2, long jarg3, IRational jarg3_)static longAVPKitJNI. IRational_rescale__SWIG_1(long jarg1, IRational jarg1_, long jarg2, long jarg3, IRational jarg3_, int jarg4)static longAVPKitJNI. IRational_sAdd(long jarg1, IRational jarg1_, long jarg2, IRational jarg2_)static intAVPKitJNI. IRational_sCompareTo(long jarg1, IRational jarg1_, long jarg2, IRational jarg2_)static longAVPKitJNI. IRational_sDivide(long jarg1, IRational jarg1_, long jarg2, IRational jarg2_)static voidAVPKitJNI. IRational_setDenominator(long jarg1, IRational jarg1_, int jarg2)static voidAVPKitJNI. IRational_setNumerator(long jarg1, IRational jarg1_, int jarg2)static voidAVPKitJNI. IRational_setValue(long jarg1, IRational jarg1_, double jarg2)static longAVPKitJNI. IRational_sMultiply(long jarg1, IRational jarg1_, long jarg2, IRational jarg2_)static intAVPKitJNI. IRational_sReduce(long jarg1, IRational jarg1_, long jarg2, long jarg3, long jarg4)static longAVPKitJNI. IRational_sRescale__SWIG_0(long jarg1, long jarg2, IRational jarg2_, long jarg3, IRational jarg3_)static longAVPKitJNI. IRational_sRescale__SWIG_1(long jarg1, long jarg2, IRational jarg2_, long jarg3, IRational jarg3_, int jarg4)static longAVPKitJNI. IRational_sSubtract(long jarg1, IRational jarg1_, long jarg2, IRational jarg2_)static longAVPKitJNI. IRational_subtract(long jarg1, IRational jarg1_, long jarg2, IRational jarg2_)static voidAVPKitJNI. IStream_setSampleAspectRatio(long jarg1, IStream jarg1_, long jarg2, IRational jarg2_)static voidAVPKitJNI. IStreamCoder_setFrameRate(long jarg1, IStreamCoder jarg1_, long jarg2, IRational jarg2_)static intAVPKitJNI. IStreamCoder_setProperty__SWIG_4(long jarg1, IStreamCoder jarg1_, java.lang.String jarg2, long jarg3, IRational jarg3_)static voidAVPKitJNI. IStreamCoder_setTimeBase(long jarg1, IStreamCoder jarg1_, long jarg2, IRational jarg2_)static intAVPKitJNI. IVideoResampler_setProperty__SWIG_4(long jarg1, IVideoResampler jarg1_, java.lang.String jarg2, long jarg3, IRational jarg3_)static IRationalIRational. make(IRational src)Creates deep copy of a Rational from another Rational.
IRationalIRational. multiply(IRational arg)Multiplies this number by argstatic booleanIRational. negative(IRational num)Is this number not null and negative.static booleanIRational. positive(IRational num)Is this number not null and positive.longIRational. rescale(long origValue, IRational origBase)Takes a value scaled in increments of origBase and gives the
equivalent value scaled in terms of this Rational.
longIRational. rescale(long origValue, IRational origBase, IRational.Rounding rounding)Takes a value scaled in increments of origBase and gives the
equivalent value scaled in terms of this Rational.
static IRationalIRational. sAdd(IRational a, IRational b)Adds a to b.static intIRational. sCompareTo(IRational a, IRational b)Compare two rationalsstatic IRationalIRational. sDivide(IRational a, IRational b)Divides a by b.voidISimpleMediaFile. setAudioTimeBase(IRational aTimeBase)Set the time base to use when encoding or decoding audiovoidSimpleMediaFile. setAudioTimeBase(IRational aTimeBase)Set the time base to use when encoding or decoding audiovoidIStreamCoder. setFrameRate(IRational newFrameRate)Set the frame rate we'll set in the headers of this stream while
ENCODING.intIConfigurable. setProperty(java.lang.String name, IRational value)Looks up the property 'name' and sets the value of the property to 'value'.intIContainer. setProperty(java.lang.String name, IRational value)Looks up the property 'name' and sets the
value of the property to 'value'.
intIStreamCoder. setProperty(java.lang.String name, IRational value)Looks up the property 'name' and sets the
value of the property to 'value'.
intIVideoResampler. setProperty(java.lang.String name, IRational value)Looks up the property 'name' and sets the
value of the property to 'value'.
intIMediaFilter. setRationalProperty(java.lang.String name, IRational value)Sets a rational parameter for this filter
voidIStream. setSampleAspectRatio(IRational newRatio)Sets the sample aspect ratio.
voidIMediaData. setTimeBase(IRational aBase)Set the time base that time stamps of this object are represented in.
voidIStreamCoder. setTimeBase(IRational newTimeBase)Set the time base we'll use to ENCODE with.voidISimpleMediaFile. setVideoFrameRate(IRational frameRate)Set the Video Frame Rate as a rational.voidSimpleMediaFile. setVideoFrameRate(IRational frameRate)Set the Video Frame Rate as a rational.voidISimpleMediaFile. setVideoTimeBase(IRational timeBase)Set the TimeBase that video packets are encoded with.voidSimpleMediaFile. setVideoTimeBase(IRational timeBase)Set the TimeBase that video packets are encoded with.static IRationalIRational. sMultiply(IRational a, IRational b)Multiples a by b.static intIRational. sReduce(IRational dst, long num, long den, long max)Reduce a fraction to it's lowest common denominators.
This is useful for framerate calculations.static longIRational. sRescale(long origValue, IRational origBase, IRational newBase)Takes a value scaled in increments of origBase and gives the
equivalent value scaled in terms of this Rational.
static longIRational. sRescale(long origValue, IRational origBase, IRational newBase, IRational.Rounding rounding)Takes a value scaled in increments of origBase and gives the
equivalent value scaled in terms of this Rational.
static IRationalIRational. sSubtract(IRational a, IRational b)Subtracts a from b.IRationalIRational. subtract(IRational arg)Subtracts arg from this rational -
Uses of IRational in com.avpkit.mediatool
Methods in com.avpkit.mediatool that return IRational Modifier and Type Method Description IRationalIMediaWriter. getDefaultTimebase()Get the default time base we'll use on our encoders if one is not specified by the codec.Methods in com.avpkit.mediatool with parameters of type IRational Modifier and Type Method Description intIMediaWriter. addVideoStream(int inputIndex, int streamId, ICodec.ID codecId, IRational frameRate, int width, int height)Add a video stream that will later have data encoded withIMediaWriter.encodeVideo(int, IVideoPicture).intIMediaWriter. addVideoStream(int inputIndex, int streamId, ICodec codec, IRational frameRate, int width, int height)Add a video stream that will later have data encoded withIMediaWriter.encodeVideo(int, IVideoPicture).intIMediaWriter. addVideoStream(int inputIndex, int streamId, IRational frameRate, int width, int height)Add a video stream with a codec guessed based onIMediaCoder.getUrl()of thisIMediaWriter.
-