Package edu.wpi.first.util
Enum Class TimestampSource
- All Implemented Interfaces:
Serializable
,Comparable<TimestampSource>
,Constable
Options for where the timestamp an
RawFrame
was captured at can be measured relative to.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionwpi::Now when the new frame was dequeued by CSCore.unknown.End of Frame.Start of Exposure. -
Method Summary
Modifier and TypeMethodDescriptionstatic TimestampSource
getFromInt
(int timestampSource) Gets a TimestampSource enum value from its integer value.int
getValue()
Gets the integer value of the pixel format.static TimestampSource
Returns the enum constant of this class with the specified name.static TimestampSource[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
kUnknown
unknown. -
kFrameDequeue
wpi::Now when the new frame was dequeued by CSCore. Does not account for camera exposure time or V4L latency. -
kV4LEOF
End of Frame. Same as V4L2_BUF_FLAG_TSTAMP_SRC_EOF, translated into wpi::Now's timebase. -
kV4LSOE
Start of Exposure. Same as V4L2_BUF_FLAG_TSTAMP_SRC_SOE, translated into wpi::Now's timebase.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getValue
Gets the integer value of the pixel format.- Returns:
- Integer value
-
getFromInt
Gets a TimestampSource enum value from its integer value.- Parameters:
timestampSource
- integer value- Returns:
- Enum value
-