Uses of Class
com.peterphi.std.types.Timebase
-
Uses of Timebase in com.peterphi.carbon.util.mediainfo
-
Uses of Timebase in com.peterphi.std.types
Modifier and TypeFieldDescriptionstatic final Timebase
Timebase.HZ_1
1 Hz (1 frame = 1 second)static final Timebase
Timebase.HZ_1000
1 kHz (1 frame = 1 millisecond.static final Timebase
Timebase.HZ_1000000
1 MHz (Vidispine transcoder default sampling rate)static final Timebase
Timebase.HZ_192000
static final Timebase
Timebase.HZ_24
static final Timebase
Timebase.HZ_25
static final Timebase
Timebase.HZ_27000000
27 MHz (sampling rate used by Carbon)static final Timebase
Timebase.HZ_30
static final Timebase
Timebase.HZ_44100
static final Timebase
Timebase.HZ_48000
static final Timebase
Timebase.HZ_50
static final Timebase
Timebase.HZ_60
static final Timebase
Timebase.HZ_96000
static final Timebase
Timebase.NTSC
29.97 Hz (NTSC.static final Timebase
Timebase.NTSC_24
23.976 Hz (24p).static final Timebase
Timebase.NTSC_60
59.94 Hz.Modifier and TypeMethodDescriptionstatic Timebase
Timebase.getInstance
(String rate) Deprecated.SampleCount.getRate()
TimecodeBuilder.getRate()
Timecode.getTimebase()
static Timebase
Parses an encoded timebase.Modifier and TypeMethodDescriptionstatic TimecodeBuilder
TimecodeBuilder.fromFrames
(long signedFrameNumber, Timebase rate) static TimecodeBuilder
TimecodeBuilder.fromFrames
(long signedFrameNumber, Timebase rate, boolean dropFrame) static final Timecode
Timecode.getInstance
(long frameNumber, boolean dropFrame, Timebase timebase) static final Timecode
Timecode.getInstance
(long frameNumber, boolean dropFrame, Timebase timebase, boolean supportDays) Deprecated.use method without supportDaysstatic final Timecode
Timecode.getInstance
(String smpte, Timebase timebase) Part a Timecode encoded in the SMPTE style ([dd:]hh:mm:ss:ff
- or[dd:]hh:mm:ss;ff
for drop-frame timecode) alongside a timebase.long
SampleCount.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.long
SampleCount.getSamplesPrecise
(Timebase newRate) Returns the number of samples represented by this SampleCount, converted tonewRate
.static final Timecode
Timecode.getSmpteTimecode
(String smpte, Timebase timebase) Deprecated.Resample this sample count to another ratedouble
Convert a sample count from one timebase to anotherlong
Convert a sample count from one timebase to another
Note that this may result in data loss due to rounding.long
Convert 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)
)long
Timebase.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 SampleCount
valueOf(String)
instead