Skip to content

Commit 1177f8a

Browse files
committed
bump wpiformat
1 parent 56bbae1 commit 1177f8a

File tree

10 files changed

+23
-23
lines changed

10 files changed

+23
-23
lines changed

.github/workflows/lint-format.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
with:
3636
python-version: 3.13
3737
- name: Install wpiformat
38-
run: pip3 install wpiformat==2025.33
38+
run: pip3 install wpiformat==2025.69
3939
- name: Run
4040
run: wpiformat
4141
- name: Check output
File renamed without changes.
File renamed without changes.

CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,20 +50,20 @@ set(OPENCV_TYPE "")
5050

5151
# Download opencv, and save the path
5252
include(FetchContent)
53-
fetchcontent_declare(
53+
FetchContent_Declare(
5454
opencv_lib
5555
URL
5656
https://frcmaven.wpi.edu/artifactory/release/edu/wpi/first/thirdparty/${OPENCV_YEAR}/opencv/opencv-cpp/${OPENCV_VERSION}/opencv-cpp-${OPENCV_VERSION}-${OPENCV_ARCH}${OPENCV_TYPE}.zip
5757
)
58-
fetchcontent_makeavailable(opencv_lib)
58+
FetchContent_MakeAvailable(opencv_lib)
5959

6060
# download OpenCV headers
61-
fetchcontent_declare(
61+
FetchContent_Declare(
6262
opencv_header
6363
URL
6464
https://frcmaven.wpi.edu/artifactory/release/edu/wpi/first/thirdparty/${OPENCV_YEAR}/opencv/opencv-cpp/${OPENCV_VERSION}/opencv-cpp-${OPENCV_VERSION}-headers.zip
6565
)
66-
fetchcontent_makeavailable(opencv_header)
66+
FetchContent_MakeAvailable(opencv_header)
6767

6868
# This probably doesn't work great with shared libraries, but I don't care about those right now
6969
file(

src/main/native/cpp/rknn_jni.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020

2121
/* Header for class org_photonvision_rknn_RknnJNI */
2222

23-
#ifndef RKNN_JNI_SRC_MAIN_NATIVE_CPP_RKNN_JNI_H_
24-
#define RKNN_JNI_SRC_MAIN_NATIVE_CPP_RKNN_JNI_H_
23+
#ifndef RKNN_JNI__
24+
#define RKNN_JNI__
2525
#ifdef __cplusplus
2626
extern "C" {
2727
#endif
@@ -68,4 +68,4 @@ Java_org_photonvision_rknn_RknnJNI_isQuantized(JNIEnv *, jclass, jlong);
6868
#ifdef __cplusplus
6969
} // extern "C"
7070
#endif
71-
#endif // RKNN_JNI_SRC_MAIN_NATIVE_CPP_RKNN_JNI_H_
71+
#endif // RKNN_JNI__

src/main/native/include/model_zoo/common.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
* along with this program. If not, see <https://www.gnu.org/licenses/>.
1616
*/
1717

18-
#ifndef RKNN_JNI_SRC_MAIN_NATIVE_INCLUDE_MODEL_ZOO_COMMON_H_
19-
#define RKNN_JNI_SRC_MAIN_NATIVE_INCLUDE_MODEL_ZOO_COMMON_H_
18+
#ifndef RKNN_JNI__
19+
#define RKNN_JNI__
2020

2121
/**
2222
* @brief Image pixel format
@@ -56,4 +56,4 @@ typedef struct {
5656
int bottom;
5757
} image_rect_t;
5858

59-
#endif // RKNN_JNI_SRC_MAIN_NATIVE_INCLUDE_MODEL_ZOO_COMMON_H_
59+
#endif // RKNN_JNI__

src/main/native/include/preprocess.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
* along with this program. If not, see <https://www.gnu.org/licenses/>.
1616
*/
1717

18-
#ifndef RKNN_JNI_SRC_MAIN_NATIVE_INCLUDE_PREPROCESS_H_
19-
#define RKNN_JNI_SRC_MAIN_NATIVE_INCLUDE_PREPROCESS_H_
18+
#ifndef RKNN_JNI__
19+
#define RKNN_JNI__
2020

2121
#include <cstdio>
2222

@@ -33,4 +33,4 @@ void letterbox(const cv::Mat &image, cv::Mat &padded_image, BOX_RECT &pads,
3333
int resize_rga(rga_buffer_t &src, rga_buffer_t &dst, const cv::Mat &image,
3434
cv::Mat &resized_image, const cv::Size &target_size);
3535

36-
#endif // RKNN_JNI_SRC_MAIN_NATIVE_INCLUDE_PREPROCESS_H_
36+
#endif // RKNN_JNI__

src/main/native/include/rga_func.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
* along with this program. If not, see <https://www.gnu.org/licenses/>.
1616
*/
1717

18-
#ifndef RKNN_JNI_SRC_MAIN_NATIVE_INCLUDE_RGA_FUNC_H_
19-
#define RKNN_JNI_SRC_MAIN_NATIVE_INCLUDE_RGA_FUNC_H_
18+
#ifndef RKNN_JNI__
19+
#define RKNN_JNI__
2020

2121
#include <dlfcn.h>
2222

@@ -50,4 +50,4 @@ int RGA_deinit(rga_context *rga_ctx);
5050
#ifdef __cplusplus
5151
} // extern "C"
5252
#endif
53-
#endif // RKNN_JNI_SRC_MAIN_NATIVE_INCLUDE_RGA_FUNC_H_
53+
#endif // RKNN_JNI__

src/main/native/include/yolov5/postprocess_v5.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
* along with this program. If not, see <https://www.gnu.org/licenses/>.
1616
*/
1717

18-
#ifndef RKNN_JNI_SRC_MAIN_NATIVE_INCLUDE_YOLOV5_POSTPROCESS_V5_H_
19-
#define RKNN_JNI_SRC_MAIN_NATIVE_INCLUDE_YOLOV5_POSTPROCESS_V5_H_
18+
#ifndef RKNN_JNI__
19+
#define RKNN_JNI__
2020

2121
#include <stdint.h>
2222

@@ -55,4 +55,4 @@ int post_process_v5(int8_t *input0, int8_t *input1, int8_t *input2,
5555
std::vector<float> &qnt_scales,
5656
detect_result_group_t *group, int numClasses);
5757

58-
#endif // RKNN_JNI_SRC_MAIN_NATIVE_INCLUDE_YOLOV5_POSTPROCESS_V5_H_
58+
#endif // RKNN_JNI__

src/main/native/include/yolov8_11/postprocess_v8_11.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
* along with this program. If not, see <https://www.gnu.org/licenses/>.
1616
*/
1717

18-
#ifndef RKNN_JNI_SRC_MAIN_NATIVE_INCLUDE_YOLOV8_11_POSTPROCESS_V8_11_H_
19-
#define RKNN_JNI_SRC_MAIN_NATIVE_INCLUDE_YOLOV8_11_POSTPROCESS_V8_11_H_
18+
#ifndef RKNN_JNI__
19+
#define RKNN_JNI__
2020

2121
#include <stdint.h>
2222

@@ -44,4 +44,4 @@ int post_process_v8_11(cv::Size modelSize, rknn_output *outputs,
4444
std::vector<rknn_tensor_attr> &output_attrs,
4545
bool is_quant, int n_outputs);
4646

47-
#endif // RKNN_JNI_SRC_MAIN_NATIVE_INCLUDE_YOLOV8_11_POSTPROCESS_V8_11_H_
47+
#endif // RKNN_JNI__

0 commit comments

Comments
 (0)