Class DecimatedRecorder<T>

  • All Implemented Interfaces:
    nl.elec332.util.implementationmanager.api.IExtensionImplementation, IRecorder<T>

    public class DecimatedRecorder<T>
    extends AbstractDelegatedRecorder<T>
    Created by Elec332 on 12-4-2020
    • Constructor Detail

      • DecimatedRecorder

        public DecimatedRecorder​(IRecorder<T> parent,
                                 int maxFps)
    • Method Detail

      • getImplementationSpeed

        public int getImplementationSpeed()
        Specified by:
        getImplementationSpeed in interface nl.elec332.util.implementationmanager.api.IExtensionImplementation
        Overrides:
        getImplementationSpeed in class AbstractDelegatedRecorder<T>
      • startRecorder

        public void startRecorder​(int fps,
                                  int width,
                                  int height,
                                  java.io.File file)
      • stopRecorder

        public void stopRecorder()
      • isRecording

        public boolean isRecording()
      • encodeFrame

        public void encodeFrame​(T frame)
      • encodeFrame

        public void encodeFrame​(java.util.function.Supplier<T> frame)
      • convertFrame

        public java.util.function.Supplier<T> convertFrame​(java.awt.image.BufferedImage image)