| Package | Description |
|---|---|
| com.peterphi.std.types |
| Modifier and Type | Method and Description |
|---|---|
Timecode |
Timecode.add(SampleCount samples)
Add some samples to this timecode
|
Timecode |
Timecode.addPrecise(SampleCount samples)
Add some samples to this timecode, throwing an exception if precision would be lost
|
Timecode |
TimecodeBuilder.build()
Constructs a Timecode instance with the fields defined in this builder
|
Timecode |
TimecodeRange.getEnd() |
static Timecode |
Timecode.getInstance(long frameNumber,
boolean dropFrame,
Timebase timebase) |
static Timecode |
Timecode.getInstance(long frameNumber,
boolean dropFrame,
Timebase timebase,
boolean supportDays)
Deprecated.
use method without supportDays
|
static Timecode |
Timecode.getInstance(SampleCount samples) |
static Timecode |
Timecode.getInstance(SampleCount samples,
boolean dropFrame)
Deprecated.
drop frame timecode is not correctly supported currently
|
static 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 Timecode |
Timecode.getInstance(String encoded)
Parse a Timecode encoded in the encoded style for this library (
[-][dd:]hh:mm:ss:ff@timebase). |
static 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 Timecode |
Timecode.getSmpteTimecode(String smpte,
Timebase timebase)
Deprecated.
|
Timecode |
TimecodeRange.getStart() |
static Timecode |
TimecodeComparator.max(Timecode... timecodes)
Returns the larger of a number of timecodes
|
static Timecode |
TimecodeComparator.min(Timecode... timecodes)
Returns the smaller of some timecodes
|
Timecode |
Timecode.resample(Timebase toRate)
Resample this timecode to another timebase
|
Timecode |
Timecode.resamplePrecise(Timebase toRate)
Resamples
|
Timecode |
Timecode.subtract(SampleCount samples)
Subtract some samples from this timecode
|
static Timecode |
Timecode.valueOf(String encoded)
Parse a Timecode encoded in the encoded style for this library (
[-][dd:]hh:mm:ss:ff@timebase). |
| Modifier and Type | Method and Description |
|---|---|
boolean |
Timecode.between(Timecode start,
Timecode end) |
static boolean |
TimecodeComparator.between(Timecode test,
Timecode start,
Timecode end)
Returns true if
test is between start and end (inclusive) |
static int |
TimecodeComparator.cmp(Timecode a,
Timecode b) |
int |
TimecodeComparator.compare(Timecode a,
Timecode b) |
boolean |
Timecode.eq(Timecode that) |
static boolean |
TimecodeComparator.eq(Timecode a,
Timecode b) |
static TimecodeBuilder |
TimecodeBuilder.fromTimecode(Timecode timecode) |
boolean |
Timecode.ge(Timecode that) |
static boolean |
TimecodeComparator.ge(Timecode a,
Timecode b) |
SampleCount |
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 as this object |
SampleCount |
Timecode.getSampleCountPrecise(Timecode from)
Returns a sample count as an offset from the provided timecode
The resulting timecode will be expressed in the same timebase as this object |
boolean |
Timecode.gt(Timecode that) |
static boolean |
TimecodeComparator.gt(Timecode a,
Timecode b) |
boolean |
Timecode.le(Timecode that) |
static boolean |
TimecodeComparator.le(Timecode a,
Timecode b) |
boolean |
Timecode.lt(Timecode that) |
static boolean |
TimecodeComparator.lt(Timecode a,
Timecode b) |
static Timecode |
TimecodeComparator.max(Timecode... timecodes)
Returns the larger of a number of timecodes
|
static Timecode |
TimecodeComparator.min(Timecode... timecodes)
Returns the smaller of some timecodes
|
TimecodeRange |
TimecodeRange.toOffset(Timecode reference)
Constructs a new TimecodeRange where the values are expressed as offsets from
reference. |
boolean |
TimecodeRange.within(Timecode test)
Tests whether a timecode lies within (or on the boundaries of) this range
|
TimecodeBuilder |
TimecodeBuilder.withTimecode(Timecode timecode)
Reset this builder to the values in the provided Timecode
|
| Constructor and Description |
|---|
TimecodeRange(Timecode start,
SampleCount duration) |
TimecodeRange(Timecode start,
Timecode end) |
Copyright © 2016. All rights reserved.