Class LibcameraGpuSource.FPSRatedVideoMode

java.lang.Object
edu.wpi.first.cscore.VideoMode
org.photonvision.vision.camera.LibcameraGpuSource.FPSRatedVideoMode
Enclosing class:
LibcameraGpuSource

public static class LibcameraGpuSource.FPSRatedVideoMode extends edu.wpi.first.cscore.VideoMode
On the OV5649 the actual FPS we want to request from the GPU can be higher than the FPS that we can do after processing. On the IMX219 these FPSes match pretty closely, except for the 1280x720 mode. We use this to present a rated FPS to the user that's lower than the actual FPS we request from the GPU. This is important for setting user expectations, and is also used by the frontend to detect and explain FPS drops. This class should ONLY be used by Picam video modes! This is to make sure it shows up nice in the frontend
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final double
     
    final int
     

    Fields inherited from class edu.wpi.first.cscore.VideoMode

    fps, height, pixelFormat, width
  • Constructor Summary

    Constructors
    Constructor
    Description
    FPSRatedVideoMode(edu.wpi.first.util.PixelFormat pixelFormat, int width, int height, int ratedFPS, int actualFPS, double fovMultiplier)
     
  • Method Summary

    Methods inherited from class edu.wpi.first.cscore.VideoMode

    equals, hashCode

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • fpsActual

      public final int fpsActual
    • fovMultiplier

      public final double fovMultiplier
  • Constructor Details

    • FPSRatedVideoMode

      public FPSRatedVideoMode(edu.wpi.first.util.PixelFormat pixelFormat, int width, int height, int ratedFPS, int actualFPS, double fovMultiplier)