Sfoglia il codice sorgente

Improve PPP config, notably the preview mode for front camera

Kristian Vos 8 mesi fa
parent
commit
4da88c662b
1 ha cambiato i file con 31 aggiunte e 30 eliminazioni
  1. 31 30
      config/pine64,pinephone-pro.conf

+ 31 - 30
config/pine64,pinephone-pro.conf

@@ -5,6 +5,7 @@ Model: "PinePhone Pro";
 Rear: {
     SensorDriver: "imx258";
     BridgeDriver: "rkisp1";
+    FlashPath: "/sys/class/leds/white:flash";
 
     Modes: (
         {
@@ -30,7 +31,7 @@ Rear: {
                 {Type: "Mode", Entity: "rkisp1_resizer_mainpath", Pad: 1}
             );
         },
-        # { # Doesn't work in megapixels yet
+        # { # Doesn't work well in Megapixels yet
         #     Width: 4208;
         #     Height: 3120;
         #     Rate: 30;
@@ -67,14 +68,14 @@ Rear: {
                 {Type: "Link", From: "rkisp1_csi", FromPad: 1, To: "rkisp1_isp", ToPad: 0},
                 {Type: "Link", From: "rkisp1_isp", FromPad: 2, To: "rkisp1_resizer_mainpath", ToPad: 0},
                 {Type: "Mode", Entity: "imx258", Format: "RGGB10P"},
-                {Type: "Mode", Entity: "rkisp1_csi", Pad: 0},
-                {Type: "Mode", Entity: "rkisp1_isp", Pad: 0},
+                {Type: "Mode", Entity: "rkisp1_csi"},
+                {Type: "Mode", Entity: "rkisp1_isp"},
                 {Type: "Mode", Entity: "rkisp1_isp", Pad: 2, Format: "RGGB8"},
-                {Type: "Mode", Entity: "rkisp1_resizer_mainpath", Pad: 0},
+                {Type: "Mode", Entity: "rkisp1_resizer_mainpath"},
                 {Type: "Mode", Entity: "rkisp1_resizer_mainpath", Pad: 1},
-                {Type: "Crop", Entity: "rkisp1_isp", Pad: 0},
+                {Type: "Crop", Entity: "rkisp1_isp"},
                 {Type: "Crop", Entity: "rkisp1_isp", Pad: 2},
-                {Type: "Crop", Entity: "rkisp1_resizer_mainpath", Pad: 0},
+                {Type: "Crop", Entity: "rkisp1_resizer_mainpath"}
             );
         },
     );
@@ -108,12 +109,12 @@ Front: {
                 {Type: "Mode", Entity: "rkisp1_resizer_mainpath", Pad: 1}
             );
         },
-        # { # Doesn't work in megapixels yet
+        # { # Doesn't work well in Megapixels yet
         #     Width: 3264;
         #     Height: 2448;
         #     Rate: 30;
         #     Format: "BGGR10";
-        #     Rotate: 270;
+        #     Rotate: 90;
         #     FocalLength: 3.33;
         #     FNumber: 3.0;
 
@@ -131,28 +132,28 @@ Front: {
         #         {Type: "Mode", Entity: "rkisp1_resizer_mainpath", Pad: 1}
         #     );
         # },
-        # { # Doesn't work in megapixels yet
-        #     Width: 1632;
-        #     Height: 1224;
-        #     Rate: 30;
-        #     Format: "YUYV";
-        #     Rotate: 270;
-        #     FocalLength: 3.33;
-        #     FNumber: 3.0;
+        {
+            Width: 1048;
+            Height: 780;
+            Rate: 30;
+            Format: "BGGR8";
+            Rotate: 90;
+            FocalLength: 3.33;
+            FNumber: 3.0;
 
-        #     Pipeline: (
-        #         {Type: "Link", From: "ov8858", FromPad: 0, To: "rkisp1_csi", ToPad: 0},
-        #         {Type: "Link", From: "rkisp1_csi", FromPad: 1, To: "rkisp1_isp", ToPad: 0},
-        #         {Type: "Link", From: "rkisp1_isp", FromPad: 2, To: "rkisp1_resizer_selfpath", ToPad: 0},
-        #         {Type: "Mode", Entity: "ov8858", Format: "BGGR10"},
-        #         {Type: "Mode", Entity: "rkisp1_csi"},
-        #         {Type: "Mode", Entity: "rkisp1_isp"},
-        #         {Type: "Mode", Entity: "rkisp1_isp", Pad: 2, Format: "YUYV"},
-        #         {Type: "Crop", Entity: "rkisp1_isp"}, # Cropped by default
-        #         {Type: "Crop", Entity: "rkisp1_isp", Pad: 2}, # Cropped by default
-        #         {Type: "Mode", Entity: "rkisp1_resizer_selfpath"},
-        #         {Type: "Mode", Entity: "rkisp1_resizer_selfpath", Pad: 1}
-        #     );
-        # }
+            Pipeline: (
+                {Type: "Link", From: "ov8858", FromPad: 0, To: "rkisp1_csi", ToPad: 0},
+                {Type: "Link", From: "rkisp1_csi", FromPad: 1, To: "rkisp1_isp", ToPad: 0},
+                {Type: "Link", From: "rkisp1_isp", FromPad: 2, To: "rkisp1_resizer_mainpath", ToPad: 0},
+                {Type: "Mode", Entity: "ov8858", Format: "BGGR10", Width: 1632, Height: 1224},
+                {Type: "Mode", Entity: "rkisp1_csi"},
+                {Type: "Mode", Entity: "rkisp1_isp"},
+                {Type: "Mode", Entity: "rkisp1_isp", Pad: 2, Format: "BGGR8", Width: 1048, Height: 780},
+                {Type: "Crop", Entity: "rkisp1_isp"}, # Cropped by default
+                {Type: "Crop", Entity: "rkisp1_isp", Pad: 2}, # Cropped by default
+                {Type: "Mode", Entity: "rkisp1_resizer_mainpath"},
+                {Type: "Mode", Entity: "rkisp1_resizer_mainpath", Pad: 1}
+            );
+        }
     );
 };