[wpiutil] Rename TimestampSource constants to all caps

This commit is contained in:
Peter Johnson
2026-03-15 22:31:46 -07:00
parent 9ce9918763
commit c913b27a27
2 changed files with 5 additions and 5 deletions

View File

@@ -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() {

View File

@@ -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;