Even bigger scope buffer for full resolution

This commit is contained in:
Marek Ossowski 2025-08-06 23:56:04 +02:00
parent 5843c10907
commit e7621aa8bf
3 changed files with 5 additions and 5 deletions

View file

@ -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;

View file

@ -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

View file

@ -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);
}