| Package | Description |
|---|---|
| com.peterphi.std.types |
| Modifier and Type | Field and Description |
|---|---|
static Timebase |
Timebase.HZ_1
1 Hz (1 frame = 1 second)
|
static Timebase |
Timebase.HZ_1000
1 kHz (1 frame = 1 millisecond.
|
static Timebase |
Timebase.HZ_1000000
1 MHz (Vidispine transcoder default sampling rate)
|
static Timebase |
Timebase.HZ_192000 |
static Timebase |
Timebase.HZ_25 |
static Timebase |
Timebase.HZ_27000000
27 MHz (sampling rate used by Carbon)
|
static Timebase |
Timebase.HZ_30 |
static Timebase |
Timebase.HZ_44100 |
static Timebase |
Timebase.HZ_48000 |
static Timebase |
Timebase.HZ_50 |
static Timebase |
Timebase.HZ_96000 |
static Timebase |
Timebase.NTSC
29.97 Hz (NTSC)
|
| Modifier and Type | Method and Description |
|---|---|
static Timebase |
Timebase.getInstance(java.lang.String rate)
Parses an encoded timebase.
|
Timebase |
TimecodeBuilder.getRate() |
Timebase |
SampleCount.getRate() |
Timebase |
Timecode.getTimebase() |
| Modifier and Type | Method and Description |
|---|---|
static TimecodeBuilder |
TimecodeBuilder.fromFrames(long signedFrameNumber,
boolean dropFrame,
Timebase rate) |
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(java.lang.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 to
newRate.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 to
newRate. |
static Timecode |
Timecode.getSmpteTimecode(java.lang.String smpte,
Timebase timebase)
Deprecated.
|
double |
Timebase.resample(double samples,
Timebase oldRate)
Convert a sample count from one timebase to another
|
long |
Timebase.resample(long samples,
Timebase oldRate)
Convert a sample count from one timebase to another
Note that this may result in data loss due to rounding. |
long |
Timebase.resample(long samples,
Timebase oldRate,
boolean failOnPrecisionLoss)
Convert a sample count from one timebase to another
Note that this may result in data loss due to rounding. |
Timecode |
Timecode.resample(Timebase toRate)
Resample this timecode to another timebase
|
SampleCount |
SampleCount.resample(Timebase newRate)
Resample this sample count to another rate
|
long |
Timebase.resamplePrecise(long samples,
Timebase oldRate)
Convert a sample count from one timebase to another, throwing an exception if precision is lost
|
Timecode |
Timecode.resamplePrecise(Timebase toRate)
Resamples
|
static SampleCount |
SampleCount.seconds(Timebase rate,
int seconds) |
TimecodeBuilder |
TimecodeBuilder.withRate(Timebase rate) |
| Constructor and Description |
|---|
SampleCount(long samples,
Timebase rate) |
Copyright © 2014. All Rights Reserved.