Uses of Class
com.peterphi.std.types.Timecode
Packages that use Timecode
Package
Description
-
Uses of Timecode in com.peterphi.carbon.util.mediainfo
Methods in com.peterphi.carbon.util.mediainfo that return Timecode -
Uses of Timecode in com.peterphi.std.guice.hibernate.usertype
Methods in com.peterphi.std.guice.hibernate.usertype that return TimecodeModifier and TypeMethodDescriptionTimecodeUserType.nullSafeGet(ResultSet resultSet, String[] names, org.hibernate.engine.spi.SharedSessionContractImplementor session, Object owner) -
Uses of Timecode in com.peterphi.std.types
Methods in com.peterphi.std.types that return TimecodeModifier 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 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(SampleCount samples) static final TimecodeTimecode.getInstance(SampleCount samples, boolean dropFrame) static final TimecodeTimecode.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 TimecodeTimecode.getInstance(String encoded) Parse a Timecode encoded in the encoded style for this library ([-][dd:]hh:mm:ss:ff@timebase).static 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.static final TimecodeTimecode.getSmpteTimecode(String smpte, Timebase timebase) Deprecated.TimecodeRange.getStart()static TimecodeReturns the larger of a number of timecodesstatic TimecodeReturns 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 TimecodeParse a Timecode encoded in the encoded style for this library ([-][dd:]hh:mm:ss:ff@timebase).Methods in com.peterphi.std.types with parameters of type TimecodeModifier and TypeMethodDescriptionbooleanstatic booleanReturns true iftestis betweenstartandend(inclusive)static intintbooleanstatic booleanstatic TimecodeBuilderTimecodeBuilder.fromTimecode(Timecode timecode) booleanstatic booleanTimecode.getSampleCount(Timecode from) Returns a sample count as an offset from the provided timecode
The resulting timecode will be expressed in the same timebase asthisobjectTimecode.getSampleCountPrecise(Timecode from) Returns a sample count as an offset from the provided timecode
The resulting timecode will be expressed in the same timebase asthisobjectbooleanstatic booleanbooleanstatic booleanbooleanstatic booleanstatic TimecodeReturns the larger of a number of timecodesstatic TimecodeReturns the smaller of some timecodesConstructs a new TimecodeRange where the values are expressed as offsets fromreference.booleanTests whether a timecode lies within (or on the boundaries of) this rangeTimecodeBuilder.withTimecode(Timecode timecode) Reset this builder to the values in the provided TimecodeConstructors in com.peterphi.std.types with parameters of type TimecodeModifierConstructorDescriptionTimecodeRange(Timecode start, SampleCount duration) TimecodeRange(Timecode start, Timecode end)