Skip to content

Commit

Permalink
Update LibcameraGpuFrameProvider.java
Browse files Browse the repository at this point in the history
  • Loading branch information
BytingBulldogs3539 committed Dec 29, 2023
1 parent ece521c commit 3740553
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,7 @@ public Frame get() {

@Override
public void requestFrameThresholdType(FrameThresholdType type) {
if (settables.getModel() == SensorModel.OV9281 && type.equals(FrameThresholdType.GREYSCALE))
LibCameraJNI.setGpuProcessType(settables.r_ptr, 4); // 4 = Grayscale pass through.
else LibCameraJNI.setGpuProcessType(settables.r_ptr, type.ordinal());
LibCameraJNI.setGpuProcessType(settables.r_ptr, type.ordinal());
}

@Override
Expand Down

0 comments on commit 3740553

Please sign in to comment.