Browse Source

Fix ppp rear camera modes

Luis Garcia 8 months ago
parent
commit
e2ee7d2ac1
1 changed files with 23 additions and 24 deletions
  1. 23 24
      config/pine64,pinephone-pro.conf

+ 23 - 24
config/pine64,pinephone-pro.conf

@@ -53,31 +53,30 @@ Rear: {
         #         {Type: "Mode", Entity: "rkisp1_resizer_mainpath", Pad: 1}
         #     );
         # },
-        # { # Doesn't work in megapixels yet
-        #     Width: 1048;
-        #     Height: 780;
-        #     Rate: 30;
-        #     Format: "YUYV";
-        #     Rotate: 270;
-        #     FocalLength: 3.33;
-        #     FNumber: 3.0;
+        {
+            Width: 1048;
+            Height: 780;
+            Rate: 30;
+            Format: "RGGB8";
+            Rotate: 270;
+            FocalLength: 3.33;
+            FNumber: 3.0;
 
-        #     Pipeline: (
-        #         {Type: "Link", From: "imx258", 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: "imx258", Format: "RGGB10P"},
-        #         {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: "Crop", Entity: "rkisp1_resizer_selfpath"}, # Cropped by default
-        #         {Type: "Mode", Entity: "rkisp1_resizer_selfpath", Pad: 1},
-        #         {Type: "Mode", Entity: "rkisp1_resizer_mainpath", Pad: 1} # Needed, because otherwise STREAMON fails when validating mainpath, despite mainpath not being used
-        #     );
-        # }
+            Pipeline: (
+                {Type: "Link", From: "imx258", 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: "imx258", Format: "RGGB10P"},
+                {Type: "Mode", Entity: "rkisp1_csi", Pad: 0},
+                {Type: "Mode", Entity: "rkisp1_isp", Pad: 0},
+                {Type: "Mode", Entity: "rkisp1_isp", Pad: 2, Format: "RGGB8"},
+                {Type: "Mode", Entity: "rkisp1_resizer_mainpath", Pad: 0},
+                {Type: "Mode", Entity: "rkisp1_resizer_mainpath", Pad: 1},
+                {Type: "Crop", Entity: "rkisp1_isp", Pad: 0},
+                {Type: "Crop", Entity: "rkisp1_isp", Pad: 2},
+                {Type: "Crop", Entity: "rkisp1_resizer_mainpath", Pad: 0},
+            );
+        },
     );
 };