mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[wpiutil] Rename TimestampSource constants to all caps
This commit is contained in:
@@ -19,7 +19,7 @@ public class RawFrame implements AutoCloseable {
|
||||
private int m_stride;
|
||||
private PixelFormat m_pixelFormat = PixelFormat.UNKNOWN;
|
||||
private long m_time;
|
||||
private TimestampSource m_timeSource = TimestampSource.kUnknown;
|
||||
private TimestampSource m_timeSource = TimestampSource.UNKNOWN;
|
||||
|
||||
/** Construct a new empty RawFrame. */
|
||||
public RawFrame() {
|
||||
|
||||
@@ -9,18 +9,18 @@ package org.wpilib.util;
|
||||
*/
|
||||
public enum TimestampSource {
|
||||
/** unknown. */
|
||||
kUnknown(0),
|
||||
UNKNOWN(0),
|
||||
/**
|
||||
* wpi::Now when the new frame was dequeued by CSCore. Does not account for camera exposure time
|
||||
* or V4L latency.
|
||||
*/
|
||||
kFrameDequeue(1),
|
||||
FRAME_DEQUEUE(1),
|
||||
/** End of Frame. Same as V4L2_BUF_FLAG_TSTAMP_SRC_EOF, translated into wpi::Now's timebase. */
|
||||
kV4LEOF(2),
|
||||
V4L_EOF(2),
|
||||
/**
|
||||
* Start of Exposure. Same as V4L2_BUF_FLAG_TSTAMP_SRC_SOE, translated into wpi::Now's timebase.
|
||||
*/
|
||||
kV4LSOE(3);
|
||||
V4L_SOE(3);
|
||||
|
||||
private final int value;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user