-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
90 additions
and
143 deletions.
There are no files selected for viewing
48 changes: 48 additions & 0 deletions
48
app/src/main/java/com/particlesdevs/photoncamera/WrapperGPU.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
package com.particlesdevs.photoncamera; | ||
|
||
import android.annotation.SuppressLint; | ||
import android.util.Log; | ||
|
||
import com.particlesdevs.photoncamera.app.PhotonCamera; | ||
|
||
import java.io.File; | ||
import java.io.FileInputStream; | ||
import java.io.FileOutputStream; | ||
import java.io.IOException; | ||
import java.io.InputStream; | ||
import java.io.OutputStream; | ||
import java.nio.ByteBuffer; | ||
|
||
//PhotonCamera | ||
//Copyright (C) 2020-2021 Eszdman | ||
//https://github.com/eszdman/PhotonCamera | ||
//Using this file when changing the main application package is prohibited | ||
public class WrapperGPU { | ||
static { | ||
System.loadLibrary("hdrxgpu"); | ||
} | ||
/** | ||
* Function to create pointers for image buffers. | ||
* | ||
* @param rows Image rows. | ||
* @param cols Image cols. | ||
* @param frames Image count. | ||
*/ | ||
public static native void init(int rows, int cols, int frames); | ||
public static native void initAlignments(int rows, int cols, int frames); | ||
|
||
/** | ||
* Function to load images. | ||
* | ||
* @param bufferptr Image buffer. | ||
*/ | ||
public static native void loadFrame(ByteBuffer bufferptr, float Exposure); | ||
public static native void loadFrameAlignments(ByteBuffer bufferptr, float Exposure); | ||
|
||
public static native void loadInterpolatedGainMap(ByteBuffer GainMap); | ||
|
||
public static native void outputBuffer(ByteBuffer outputBuffer); | ||
public static native void processFrame(float NoiseS, float NoiseO,float Smooth, float ElFactor, float BLr,float BLg,float BLb, float WLFactor, | ||
float wpR,float wpG, float wpB,int CfaPattern); | ||
public static native ByteBuffer processFrameAlignments(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
#Sun May 01 16:39:30 MSK 2022 | ||
VERSION_BUILD=14949 | ||
#Fri Jun 03 08:04:23 MSK 2022 | ||
VERSION_BUILD=15200 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters