public class SensorFrameRate extends Object implements IUasDatalinkValue
From ST:
The Sensor Frame Rate Pack consists of two unsigned integers used to compute the frame rate. The ratio of the two integers provides the capability to compute both integer and drop-frame frame rates. For example, typical integer frame rates of 30, 60 are the ratio of 30/1 and 60/1, respectively. While drop-frame rates of 29.97 and 59.94 are the ratio of 30000/1001 and 60000/1001, respectively.The Sensor Frame Rate Pack is a two-element truncation pack where the first element is the numerator in BER-OID format, and the second element is the denominator in BER-OID format.
Constructor and Description |
---|
SensorFrameRate(byte[] bytes)
Create from encoded bytes.
|
SensorFrameRate(int numerator)
Create from value.
|
SensorFrameRate(int numerator,
int denominator)
Create from values.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getBytes()
Get the encoded bytes.
|
int |
getDenominator()
Get the denominator part of the frame rate.
|
String |
getDisplayableValue()
Return a string of the displayable value.
|
String |
getDisplayName()
Get the human-readable name for the value.
|
double |
getFrameRate()
Get the resulting frame rate.
|
int |
getNumerator()
Get the numerator part of the frame rate.
|
public SensorFrameRate(int numerator, int denominator)
numerator
- the numerator part of the rate.denominator
- the denominator part of the rate.public SensorFrameRate(int numerator)
numerator
- the numerator part of the rate.public SensorFrameRate(byte[] bytes)
bytes
- encoded valuepublic byte[] getBytes()
IUasDatalinkValue
getBytes
in interface IUasDatalinkValue
public double getFrameRate()
public int getNumerator()
public int getDenominator()
public String getDisplayableValue()
IKlvValue
getDisplayableValue
in interface IKlvValue
public final String getDisplayName()
IKlvValue
getDisplayName
in interface IKlvValue
Copyright © 2022 West Ridge Systems. All rights reserved.