mirror of
https://github.com/xdsopl/robot36.git
synced 2026-01-04 23:39:59 +01:00
Even bigger scope buffer for full resolution
This commit is contained in:
parent
5843c10907
commit
e7621aa8bf
|
|
@ -55,7 +55,7 @@ public class Decoder {
|
|||
this.scopeBuffer = scopeBuffer;
|
||||
this.imageBuffer = imageBuffer;
|
||||
imageBuffer.line = -1;
|
||||
pixelBuffer = new PixelBuffer(800, 2);
|
||||
pixelBuffer = new PixelBuffer(2000, 2);
|
||||
demodulator = new Demodulator(sampleRate);
|
||||
double pulseFilterSeconds = 0.0025;
|
||||
int pulseFilterSamples = (int) Math.round(pulseFilterSeconds * sampleRate) | 1;
|
||||
|
|
|
|||
|
|
@ -32,12 +32,12 @@ public class HFFax implements Mode {
|
|||
|
||||
@Override
|
||||
public int getWidth() {
|
||||
return -1;
|
||||
return 1808;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getHeight() {
|
||||
return -1;
|
||||
return 1200;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -568,7 +568,7 @@ public class MainActivity extends AppCompatActivity {
|
|||
fgColor = getColor(R.color.fg);
|
||||
thinColor = getColor(R.color.thin);
|
||||
tintColor = getColor(R.color.tint);
|
||||
scopeBuffer = new PixelBuffer(640 * 2, 2 * 1280 * 2);
|
||||
scopeBuffer = new PixelBuffer(640 * 3, 2 * 1280 * 3);
|
||||
waterfallPlotBuffer = new PixelBuffer(256, 2 * 256);
|
||||
peakMeterBuffer = new PixelBuffer(1, 16);
|
||||
imageBuffer = new PixelBuffer(800, 616);
|
||||
|
|
@ -845,7 +845,7 @@ public class MainActivity extends AppCompatActivity {
|
|||
int offset = stride * scopeBuffer.line;
|
||||
Bitmap bmp = Bitmap.createBitmap(scopeBuffer.pixels, offset, stride, width, height, Bitmap.Config.ARGB_8888);
|
||||
if (currentMode == null || !currentMode.equals("HF Fax")) {
|
||||
bmp = Bitmap.createScaledBitmap(bmp, width / 2, height / 2, true);
|
||||
bmp = Bitmap.createScaledBitmap(bmp, width / 3, height / 3, true);
|
||||
}
|
||||
storeBitmap(bmp);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue