Uses of Class
com.peterphi.std.types.Timecode
Package
Description
-
Uses of Timecode in com.peterphi.carbon.util.mediainfo
-
Uses of Timecode in com.peterphi.std.guice.hibernate.usertype
Modifier and TypeMethodDescriptionTimecodeUserType.nullSafeGet
(ResultSet resultSet, String[] names, org.hibernate.engine.spi.SharedSessionContractImplementor session, Object owner) -
Uses of Timecode in com.peterphi.std.types
Modifier and TypeMethodDescriptionTimecode.add
(SampleCount samples) Add some samples to this timecodeTimecode.addPrecise
(SampleCount samples) Add some samples to this timecode, throwing an exception if precision would be lostTimecodeBuilder.build()
Constructs a Timecode instance with the fields defined in this builderTimecodeRange.getEnd()
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
(SampleCount samples) static final Timecode
Timecode.getInstance
(SampleCount samples, boolean dropFrame) static final Timecode
Timecode.getInstance
(SampleCount samples, boolean dropFrame, boolean supportDays) Deprecated.use method without supportDays (supportDays is now implicitly true) or dropFrame (drop frame timecode is not correctly supported currently)static final Timecode
Timecode.getInstance
(String encoded) Parse a Timecode encoded in the encoded style for this library ([-][dd:]hh:mm:ss:ff@timebase
).static 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.static final Timecode
Timecode.getSmpteTimecode
(String smpte, Timebase timebase) Deprecated.TimecodeRange.getStart()
static Timecode
Returns the larger of a number of timecodesstatic Timecode
Returns the smaller of some timecodesResample 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, seeTimebase.resample(double, Timebase, Timebase)
)Timecode.resamplePrecise
(Timebase toRate) ResamplesTimecode.subtract
(SampleCount samples) Subtract some samples from this timecodestatic final Timecode
Parse a Timecode encoded in the encoded style for this library ([-][dd:]hh:mm:ss:ff@timebase
).Modifier and TypeMethodDescriptionboolean
static boolean
Returns true iftest
is betweenstart
andend
(inclusive)static int
int
boolean
static boolean
static TimecodeBuilder
TimecodeBuilder.fromTimecode
(Timecode timecode) boolean
static boolean
Timecode.getSampleCount
(Timecode from) Returns a sample count as an offset from the provided timecode
The resulting timecode will be expressed in the same timebase asthis
objectTimecode.getSampleCountPrecise
(Timecode from) Returns a sample count as an offset from the provided timecode
The resulting timecode will be expressed in the same timebase asthis
objectboolean
static boolean
boolean
static boolean
boolean
static boolean
static Timecode
Returns the larger of a number of timecodesstatic Timecode
Returns the smaller of some timecodesConstructs a new TimecodeRange where the values are expressed as offsets fromreference
.boolean
Tests whether a timecode lies within (or on the boundaries of) this rangeTimecodeBuilder.withTimecode
(Timecode timecode) Reset this builder to the values in the provided TimecodeModifierConstructorDescriptionTimecodeRange
(Timecode start, SampleCount duration) TimecodeRange
(Timecode start, Timecode end)