43 Commits

Author SHA1 Message Date
Josh Blum
3f5e373ee4 replace off_t with size_t to match system pointer size
I was having an issue with size of off_t on a multi-gigabit file.
This may have been related to long being a signed 32 bits on MSVC.
But I think there is good reason to use size_t here in general:

https://stackoverflow.com/questions/10634629/what-are-the-usage-differences-between-size-t-and-off-t
2017-11-25 16:06:08 -06:00
Josh Blum
40890e46ab Remove mmap dependencies with QFile
QFile implements cross platform file mapping and removes this dependency entirely.
Also simplifies the file size and error to string handling logic.
2017-11-25 15:54:13 -06:00
Clayton Smith
e31be08f04 Use a DC offset of 127.4 to match the RTL-SDR. 2017-10-31 08:20:53 -04:00
Jared Boone
0d09e12bb8 Add extension support for 8.3 filenames (c16, c8). 2016-09-07 17:13:16 -07:00
Jared Boone
45362009e9 Case-insensitive file extension comparison. 2016-09-07 17:13:16 -07:00
schneider
a487862559 fix(inputsource): Fix off-by-one in getSamples() 2016-09-01 22:49:13 +01:00
Mike Walters
2bf0b1a5c7 input: Print fopen error 2016-04-23 13:59:27 +01:00
Mike Walters
9b774f0845 input: Default to cf32 file type if extension is unknown 2016-03-27 16:48:15 +01:00
Tobias Schneider
3dbfaf1bd1 feat(inputsource.cpp): Recognize more file suffixes 2016-03-21 06:58:52 +00:00
Tobias Schneider
220bdf0226 feat(inputsource): Add cs16 file format. 2016-03-20 20:08:42 +01:00
Jared Boone
3a5428b4ab Access samples, sample size through SampleAdapter. 2016-03-18 11:05:14 -07:00
Jared Boone
396330053b UI for file type selection, mapping to SampleAdapters. 2016-03-18 11:04:39 -07:00
Jared Boone
f8d6e9cda5 SampleAdapter classes for CF32, CS8, CU8. 2016-03-18 11:03:13 -07:00
Mike Walters
fffefbe4be samplesource: Add sample rate property 2016-03-04 17:03:25 +00:00
Mike Walters
fb7a892149 input: Hook up file opening & invalidationEvent 2016-03-04 13:15:25 +00:00
Mike Walters
2135e03c01 input: Start refactoring InputSource to be able to open/close files 2016-03-04 13:15:25 +00:00
Mike Walters
3aec698450 WIP Style 2016-01-11 02:04:39 +00:00
Mike Walters
ceac834103 Refactor getSamples to return a unique_ptr 2015-12-29 20:42:32 +00:00
Mike Walters
c83892d432 Convert InputSource to SampleSource interface 2015-12-04 01:16:58 +00:00
Mike Walters
9f7b53e402 Add GPLv3+ headers to everything 2015-10-04 16:34:09 +01:00
Tobias Schneider
103726ff61 fix(spectrogram, inputsource): Use off_t where necessary 2015-10-03 23:10:11 +02:00
Mathieu Rene
d8d529e284 Fix missing includes 2015-08-16 14:47:05 -04:00
Mike Walters
4f87b0b0a1 Move FFT processing to Spectrogram 2015-08-02 23:00:28 +01:00
Mike Walters
407c60db85 Wrap fftw calls in a class 2015-08-02 15:16:23 +01:00
Mike Walters
35bd613d0d Add method for getting raw samples from InputSource 2015-08-01 20:55:12 +01:00
Mike Walters
c2018ba7ec Don't force height to be a multiple of FFT stride
This was the wrong fix for an earlier bug that ended up sticking around
Fixes #19
2015-07-23 18:05:38 +01:00
Mike Walters
a0d4a066cd Soem style cleanup 2015-07-23 17:34:57 +01:00
Mike
5bdaff1329 Change inputsource to allow for changing fft size on the fly 2015-07-14 22:50:07 +01:00
Mike Walters
205ceef8f9 Get rid of old caching stuff 2015-07-13 00:41:52 +01:00
Philpax
063279d601 Fixed #14 - replaced use of string exceptions with runtime_error 2015-07-11 15:51:36 +10:00
Philpax
ad6759e993 Fixed #12 - no longer segfaults from small file sizes 2015-07-10 13:42:29 +10:00
Mike Walters
d206146fe1 I don't even want to know what problems this was causing 2015-06-28 23:55:57 +01:00
Mike
1b234b7870 Add some basic error checking on file open, fixes #11 2015-06-25 21:29:25 +01:00
Mike Walters
cb79ef1131 Add missing free 2015-06-25 12:27:52 +01:00
Mike Walters
53b8dabe73 Cache current view for reuse on next paint 2015-06-25 00:04:27 +01:00
Mike Walters
b5142ce761 Rename GetOverlap to GetFFTStride for clarity 2015-06-24 21:44:00 +01:00
Mike Walters
a9152be753 log10 + contrast tweaks 2015-06-24 21:19:44 +01:00
Philpax
3e42ad1736 Replaced m_window with a unique_ptr 2015-06-23 21:33:59 +10:00
Philpax
c0b3049141 Some basic C++ style tweaks 2015-06-23 21:22:23 +10:00
Mike Walters
c934f1952a Fix zoom limiting 2015-06-22 21:29:00 +01:00
Mike
0d6831110c Make zoom functions return whether they were successful 2015-06-22 02:38:39 +01:00
Mike Walters
d740c0d8fb Add zoom functionality 2015-06-21 23:42:00 +01:00
Mike Walters
c8940932fb Abstract out data loading/processing
Current super naive, eats all your CPU on repaint
ref #7
2015-06-21 22:42:24 +01:00