Uses of Class
com.peterphi.std.types.Timebase
Packages that use Timebase
-
Uses of Timebase in com.peterphi.carbon.util.mediainfo
Methods in com.peterphi.carbon.util.mediainfo that return Timebase -
Uses of Timebase in com.peterphi.std.types
Fields in com.peterphi.std.types declared as TimebaseModifier and TypeFieldDescriptionstatic final TimebaseTimebase.HZ_11 Hz (1 frame = 1 second)static final TimebaseTimebase.HZ_10001 kHz (1 frame = 1 millisecond.static final TimebaseTimebase.HZ_10000001 MHz (Vidispine transcoder default sampling rate)static final TimebaseTimebase.HZ_192000static final TimebaseTimebase.HZ_24static final TimebaseTimebase.HZ_25static final TimebaseTimebase.HZ_2700000027 MHz (sampling rate used by Carbon)static final TimebaseTimebase.HZ_30static final TimebaseTimebase.HZ_44100static final TimebaseTimebase.HZ_48000static final TimebaseTimebase.HZ_50static final TimebaseTimebase.HZ_60static final TimebaseTimebase.HZ_96000static final TimebaseTimebase.NTSC29.97 Hz (NTSC.static final TimebaseTimebase.NTSC_2423.976 Hz (24p).static final TimebaseTimebase.NTSC_6059.94 Hz.Methods in com.peterphi.std.types that return TimebaseModifier and TypeMethodDescriptionstatic TimebaseTimebase.getInstance(String rate) Deprecated.SampleCount.getRate()TimecodeBuilder.getRate()Timecode.getTimebase()static TimebaseParses an encoded timebase.Methods in com.peterphi.std.types with parameters of type TimebaseModifier and TypeMethodDescriptionstatic TimecodeBuilderTimecodeBuilder.fromFrames(long signedFrameNumber, Timebase rate) static TimecodeBuilderTimecodeBuilder.fromFrames(long signedFrameNumber, Timebase rate, boolean dropFrame) static final TimecodeTimecode.getInstance(long frameNumber, boolean dropFrame, Timebase timebase) static final TimecodeTimecode.getInstance(long frameNumber, boolean dropFrame, Timebase timebase, boolean supportDays) Deprecated.use method without supportDaysstatic final TimecodeTimecode.getInstance(String smpte, Timebase timebase) Part a Timecode encoded in the SMPTE style ([dd:]hh:mm:ss:ff- or[dd:]hh:mm:ss;fffor drop-frame timecode) alongside a timebase.longSampleCount.getSamples(Timebase newRate) Returns the number of samples represented by this SampleCount, converted tonewRate.
This method can lose precision if the samples cannot be precisely represented.longSampleCount.getSamplesPrecise(Timebase newRate) Returns the number of samples represented by this SampleCount, converted tonewRate.static final TimecodeTimecode.getSmpteTimecode(String smpte, Timebase timebase) Deprecated.Resample this sample count to another ratedoubleConvert a sample count from one timebase to anotherlongConvert a sample count from one timebase to another
Note that this may result in data loss due to rounding.longConvert a sample count from one timebase to another
Note that this may result in data loss due to rounding.Resample this timecode to another timebase.Resample this timecode to another timebase.
If source+destination timecodes are non-drop frame then this is achieved by resampling the frames part of the timecode. If either side uses drop-frame then the resample works by converting this timecode into an amount of time (with half-up rounding rules, seeresample(double, Timebase, Timebase))longTimebase.resamplePrecise(long samples, Timebase oldRate) Convert a sample count from one timebase to another, throwing an exception if precision is lostTimecode.resamplePrecise(Timebase toRate) Resamplesstatic SampleCountConstructors in com.peterphi.std.types with parameters of type Timebase
valueOf(String)instead