From 71ed3dccaf9452d35d74635af21e40c62d0499b4 Mon Sep 17 00:00:00 2001 From: Kumataro Date: Sun, 8 Feb 2026 06:43:01 +0900 Subject: [PATCH] videoio(obsensor): replace unnecessary get() usage with integer types --- modules/videoio/src/cap_obsensor_liborbbec.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/videoio/src/cap_obsensor_liborbbec.cpp b/modules/videoio/src/cap_obsensor_liborbbec.cpp index d8b44cf196..345fa691db 100644 --- a/modules/videoio/src/cap_obsensor_liborbbec.cpp +++ b/modules/videoio/src/cap_obsensor_liborbbec.cpp @@ -42,9 +42,9 @@ VideoCapture_obsensor::VideoCapture_obsensor(int, const cv::VideoCaptureParamete alignFilter = std::make_shared(OB_STREAM_COLOR); #endif - int color_width = params.get(CAP_PROP_FRAME_WIDTH, OB_WIDTH_ANY); - int color_height = params.get(CAP_PROP_FRAME_HEIGHT, OB_HEIGHT_ANY); - int color_fps = params.get(CAP_PROP_FPS, OB_FPS_ANY); + int color_width = params.get(CAP_PROP_FRAME_WIDTH, OB_WIDTH_ANY); + int color_height = params.get(CAP_PROP_FRAME_HEIGHT, OB_HEIGHT_ANY); + int color_fps = params.get(CAP_PROP_FPS, OB_FPS_ANY); auto colorProfiles = pipe->getStreamProfileList(OB_SENSOR_COLOR); if (color_width == OB_WIDTH_ANY && color_height == OB_HEIGHT_ANY && color_fps == OB_FPS_ANY) @@ -60,9 +60,9 @@ VideoCapture_obsensor::VideoCapture_obsensor(int, const cv::VideoCaptureParamete config->enableStream(colorProfile->as()); } - int depth_width = params.get(CAP_PROP_OBSENSOR_DEPTH_WIDTH, OB_WIDTH_ANY); - int depth_height = params.get(CAP_PROP_OBSENSOR_DEPTH_HEIGHT, OB_HEIGHT_ANY); - int depth_fps = params.get(CAP_PROP_OBSENSOR_DEPTH_FPS, OB_FPS_ANY); + int depth_width = params.get(CAP_PROP_OBSENSOR_DEPTH_WIDTH, OB_WIDTH_ANY); + int depth_height = params.get(CAP_PROP_OBSENSOR_DEPTH_HEIGHT, OB_HEIGHT_ANY); + int depth_fps = params.get(CAP_PROP_OBSENSOR_DEPTH_FPS, OB_FPS_ANY); auto depthProfiles = pipe->getStreamProfileList(OB_SENSOR_DEPTH); if (depth_width == OB_WIDTH_ANY && depth_height == OB_HEIGHT_ANY && depth_fps == OB_FPS_ANY)