SCRIPT Run java package replacements

This commit is contained in:
PJ Reiniger
2025-11-07 19:55:43 -05:00
committed by Peter Johnson
parent 12823a003d
commit f0a3c64121
1590 changed files with 8469 additions and 8469 deletions

View File

@@ -2,9 +2,9 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.cscore;
package org.wpilib.vision.camera;
import edu.wpi.first.util.CombinedRuntimeLoader;
import org.wpilib.util.runtime.CombinedRuntimeLoader;
public final class DevMain {
/** Main method. */

View File

@@ -2,7 +2,7 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.cscore;
package org.wpilib.vision.camera;
/**
* A source that represents an Axis IP camera.

View File

@@ -2,10 +2,10 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.cscore;
package org.wpilib.vision.camera;
import edu.wpi.first.util.RawFrame;
import edu.wpi.first.util.RuntimeLoader;
import org.wpilib.util.RawFrame;
import org.wpilib.util.runtime.RuntimeLoader;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.util.concurrent.atomic.AtomicBoolean;

View File

@@ -2,11 +2,11 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.cscore;
package org.wpilib.vision.camera;
import edu.wpi.first.util.PixelFormat;
import edu.wpi.first.util.RawFrame;
import edu.wpi.first.util.TimestampSource;
import org.wpilib.util.PixelFormat;
import org.wpilib.util.RawFrame;
import org.wpilib.util.TimestampSource;
import java.nio.ByteBuffer;
import org.opencv.core.CvType;
import org.opencv.core.Mat;

View File

@@ -2,9 +2,9 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.cscore;
package org.wpilib.vision.camera;
import edu.wpi.first.util.PixelFormat;
import org.wpilib.util.PixelFormat;
import org.opencv.core.Mat;
/**

View File

@@ -2,7 +2,7 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.cscore;
package org.wpilib.vision.camera;
/** A source that represents a MJPEG-over-HTTP (IP) camera. */
public class HttpCamera extends VideoCamera {

View File

@@ -2,7 +2,7 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.cscore;
package org.wpilib.vision.camera;
/** A base class for single image reading sinks. */
public abstract class ImageSink extends VideoSink {

View File

@@ -2,7 +2,7 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.cscore;
package org.wpilib.vision.camera;
/** A base class for single image providing sources. */
public abstract class ImageSource extends VideoSource {

View File

@@ -2,7 +2,7 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.cscore;
package org.wpilib.vision.camera;
/** A sink that acts as a MJPEG-over-HTTP network server. */
public class MjpegServer extends VideoSink {

View File

@@ -2,9 +2,9 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.cscore;
package org.wpilib.vision.camera;
import edu.wpi.first.util.RuntimeLoader;
import org.wpilib.util.runtime.RuntimeLoader;
import java.io.IOException;
import java.util.concurrent.atomic.AtomicBoolean;
import org.opencv.core.Core;

View File

@@ -2,7 +2,7 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.cscore;
package org.wpilib.vision.camera;
/** A source that represents a USB camera. */
public class UsbCamera extends VideoCamera {

View File

@@ -2,7 +2,7 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.cscore;
package org.wpilib.vision.camera;
/** USB camera information. */
@SuppressWarnings("MemberName")

View File

@@ -2,7 +2,7 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.cscore;
package org.wpilib.vision.camera;
/** A source that represents a video camera. */
public class VideoCamera extends VideoSource {

View File

@@ -2,7 +2,7 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.cscore;
package org.wpilib.vision.camera;
/** Video event. */
@SuppressWarnings("MemberName")

View File

@@ -2,7 +2,7 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.cscore;
package org.wpilib.vision.camera;
/** An exception raised by the camera server. */
public class VideoException extends RuntimeException {

View File

@@ -2,7 +2,7 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.cscore;
package org.wpilib.vision.camera;
import java.util.HashMap;
import java.util.Map;

View File

@@ -2,9 +2,9 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.cscore;
package org.wpilib.vision.camera;
import edu.wpi.first.util.PixelFormat;
import org.wpilib.util.PixelFormat;
import java.util.Objects;
/** Video mode. */

View File

@@ -2,7 +2,7 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.cscore;
package org.wpilib.vision.camera;
/** A source or sink property. */
public class VideoProperty {

View File

@@ -2,7 +2,7 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.cscore;
package org.wpilib.vision.camera;
/**
* A sink for video that accepts a sequence of frames. Each frame may consist of multiple images

View File

@@ -2,9 +2,9 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.cscore;
package org.wpilib.vision.camera;
import edu.wpi.first.util.PixelFormat;
import org.wpilib.util.PixelFormat;
/**
* A source for video that provides a sequence of frames. Each frame may consist of multiple images

View File

@@ -2,11 +2,11 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.cscore.raw;
package org.wpilib.vision.camera.raw;
import edu.wpi.first.cscore.CameraServerJNI;
import edu.wpi.first.cscore.ImageSink;
import edu.wpi.first.util.RawFrame;
import org.wpilib.vision.camera.CameraServerJNI;
import org.wpilib.vision.camera.ImageSink;
import org.wpilib.util.RawFrame;
/**
* A sink for user code to accept video frames as raw bytes.

View File

@@ -2,13 +2,13 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.cscore.raw;
package org.wpilib.vision.camera.raw;
import edu.wpi.first.cscore.CameraServerJNI;
import edu.wpi.first.cscore.ImageSource;
import edu.wpi.first.cscore.VideoMode;
import edu.wpi.first.util.PixelFormat;
import edu.wpi.first.util.RawFrame;
import org.wpilib.vision.camera.CameraServerJNI;
import org.wpilib.vision.camera.ImageSource;
import org.wpilib.vision.camera.VideoMode;
import org.wpilib.util.PixelFormat;
import org.wpilib.util.RawFrame;
import java.nio.ByteBuffer;
/**

File diff suppressed because it is too large Load Diff

View File

@@ -2,7 +2,7 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.cscore;
package org.wpilib.vision.camera;
import org.junit.jupiter.api.Test;

View File

@@ -2,7 +2,7 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.cscore;
package org.wpilib.vision.camera;
import static org.junit.jupiter.api.Assertions.assertThrows;
import static org.junit.jupiter.api.Assertions.assertTimeoutPreemptively;

View File

@@ -2,12 +2,12 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.cscore;
package org.wpilib.vision.camera;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotEquals;
import edu.wpi.first.util.PixelFormat;
import org.wpilib.util.PixelFormat;
import org.junit.jupiter.api.Test;
class VideoModeTest {