You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/10/25 16:22:51 UTC

[GitHub] [incubator-nuttx] SPRESENSE commented on a diff in pull request #7416: drivers: video: Update some features

SPRESENSE commented on code in PR #7416:
URL: https://github.com/apache/incubator-nuttx/pull/7416#discussion_r1004701232


##########
drivers/video/isx019.c:
##########
@@ -1503,30 +1528,27 @@ static int isx019_start_capture(imgsensor_stream_type_t type,
     }
 
   switch (fmt[IMGSENSOR_FMT_MAIN].width)
-   {
-     case 1280:
-       regval |= FPGA_SCALE_1280_960;
-       activate_clip(type,
-                     fmt[IMGSENSOR_FMT_MAIN].width,
-                     fmt[IMGSENSOR_FMT_MAIN].height);
-       break;
-
-     case 640:
-       regval |= FPGA_SCALE_640_480;
-       activate_clip(type,
-                     fmt[IMGSENSOR_FMT_MAIN].width,
-                     fmt[IMGSENSOR_FMT_MAIN].height);
-       break;
-
-     case 320:
-       regval |= FPGA_SCALE_320_240;
-       break;
-
-     default: /* 160 */
-
-       regval |= FPGA_SCALE_160_120;
-       break;
-   }
+    {
+      case 1280:
+        regval |= FPGA_SCALE_1280_960;
+        break;
+
+      case 640:
+        regval |= FPGA_SCALE_640_480;
+        break;
+
+      case 320:
+        regval |= FPGA_SCALE_320_240;
+        break;
+
+      default: /* 160 */
+        regval |= FPGA_SCALE_160_120;
+        break;
+    }
+
+  activate_clip(type,
+               fmt[IMGSENSOR_FMT_MAIN].width,
+               fmt[IMGSENSOR_FMT_MAIN].height);

Review Comment:
   Fixed.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org