| Package | Description |
|---|---|
| com.peterphi.std.types |
| Modifier and Type | Method and Description |
|---|---|
SampleCount |
SampleCount.add(SampleCount that) |
SampleCount |
SampleCount.addPrecise(SampleCount that) |
SampleCount |
TimecodeRange.getDuration() |
SampleCount |
Timecode.getSampleCount()
Returns a sample count as a delta from the timecode 00:00:00:00
|
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 |
static SampleCount |
SampleCount.parseVidispine(String countAndRate)
Deprecated.
|
SampleCount |
SampleCount.resample(Timebase newRate)
Resample this sample count to another rate
|
static SampleCount |
SampleCount.seconds(Timebase rate,
long seconds) |
SampleCount |
SampleCount.subtract(SampleCount that) |
SampleCount |
SampleCount.subtractPrecise(SampleCount that) |
static SampleCount |
SampleCount.valueOf(String countAndRate)
Parse a sample count & timebase as
samples@[str_timebase|nom[:denom]]
N.B. |
| Modifier and Type | Method and Description |
|---|---|
TimecodeRange |
TimecodeRange.add(SampleCount samples)
Move the range right by the specified number of samples
|
Timecode |
Timecode.add(SampleCount samples)
Add some samples to this timecode
|
SampleCount |
SampleCount.add(SampleCount that) |
Timecode |
Timecode.addPrecise(SampleCount samples)
Add some samples to this timecode, throwing an exception if precision would be lost
|
SampleCount |
SampleCount.addPrecise(SampleCount that) |
static TimecodeBuilder |
TimecodeBuilder.fromSamples(SampleCount samples,
boolean dropFrame) |
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)
|
TimecodeRange |
TimecodeRange.subtract(SampleCount samples)
Move the range left by the specified number of samples
|
Timecode |
Timecode.subtract(SampleCount samples)
Subtract some samples from this timecode
|
SampleCount |
SampleCount.subtract(SampleCount that) |
SampleCount |
SampleCount.subtractPrecise(SampleCount that) |
| Constructor and Description |
|---|
TimecodeRange(Timecode start,
SampleCount duration) |
Copyright © 2016. All rights reserved.