Commit Graph

179 Commits

Author SHA1 Message Date
Harald Welte 74d54fc0b3 add README.md (for gitea / github and the like) 2024-03-23 12:23:15 +01:00
Sylvain Munaut e02a2ea493 fosphor/cl: Fix init type in cl_queue_clear_buffers
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2023-08-26 12:26:56 +02:00
Sylvain Munaut 62855ff82a fosphor/axis: Fix warning in printf about possible buffer overrun
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2023-08-26 12:26:56 +02:00
Sylvain Munaut 39f4b52431 fosphor/gl_cmap_gen: Introduce a new 'prog' colormap
This color map was originally given to me by 'prog', the sdr# author,
then I tweaked it a bit.

Note that there is currently no way to select it other than changing
the code.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2023-08-26 12:26:56 +02:00
Sylvain Munaut 9d09c6b4c5 fosphor/gl_cmap_gen: Add new function to generate GL colormap from a PNG
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2023-08-26 12:26:56 +02:00
Sylvain Munaut ef5070200f gr-fosphor: Add the overlap block
This will probably be integrated as part of fosphor itself. But until
it is, then this block is useful to overlap several FFT windows.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2023-08-26 12:26:56 +02:00
Sylvain Munaut 974ab2fe54 gr-fosphor: Add 3.9 as supported version in MANIFEST
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2021-01-08 17:40:04 +01:00
Sylvain Munaut 9d722e8ce9 gr-fosphor: Add pybind11 bindings
Part of the GNURadio 3.9 transition

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2021-01-08 17:40:04 +01:00
Sylvain Munaut 7fbf9c2228 gr-fosphor: Use window type constant from gr:fft:window and not firdes
Part of GNURadio 3.9 migration

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2021-01-08 17:40:04 +01:00
Sylvain Munaut e651f9b9c1 gr-fosphor: Switch to std::shared_ptr instead of boost::shared_ptr
Part of GNURadio 3.9 migration

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2021-01-08 17:40:04 +01:00
Sylvain Munaut e914517110 gr-fosphor: Update main CMakeLists with 3.9 requirements/style
Part of GNURadio 3.9 migration

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2021-01-08 17:40:04 +01:00
Sylvain Munaut c1d5d7b63f gr-fosphor: Remove all SWIG stuff
Part of GNURadio 3.9 migration

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2021-01-08 17:40:04 +01:00
Sylvain Munaut 490eaca69d gr-fosphor: Update the whole Doxygen setup
Just taken from gr_modtool ...

Part of GNURadio 3.9 migration

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2021-01-08 17:33:09 +01:00
Sylvain Munaut 26f06ef630 gr-fosphor: Update all copyright notices headers
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2021-01-08 17:29:58 +01:00
Sylvain Munaut 65c7283981 fosphor: Update all copyright notices headers
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2021-01-08 17:29:58 +01:00
Sylvain Munaut 431afbf8d6 gr-fosphor: Use #pragma once instead of old guard style
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2021-01-08 17:29:58 +01:00
Sylvain Munaut 76c33d41f7 fosphor: Use #pragma once instead of old guard style
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2021-01-08 17:29:58 +01:00
Sylvain Munaut defdd4aca6 gr-fosphor: Set default visibility to false
We're hidden by default.

For Qt we'll get an expose event the first time we're shown.
Needed because we might be hidden by default (like in a tab
chooser) and this would create problems if we consider ourselves
shown by default.

And for GLFW we consider ourself visible after the first reshape,
which is forced at init.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2020-01-31 23:46:54 +01:00
Sylvain Munaut 6f3a8de592 gr-fosphor: Add 'freq' message port sending the frequency a user clicked
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2020-01-31 23:46:54 +01:00
Sylvain Munaut 152eb58e58 fosphor: Add position mapping helpers for {x,y} <-> {freq,pwr,samp}
This allows to know an application to know where the user clicked

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2020-01-31 23:46:54 +01:00
Sylvain Munaut 267b1f05a1 gr-fosphor: Update zoom function to the new {center,span} spec
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2020-01-31 23:46:54 +01:00
Sylvain Munaut 09b31b4acf fosphor: Review the GL frequency mapping and switch zoom to {center,span}
Previously we were hiding the extrema bin, now we display it "half" on
each side which sort of maps better to the concept of circular spectrum

At the same time we move the zoom spec to {center,span} rather than
{start,stop} since it makes more sense and matches the channel specs

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2020-01-31 23:46:54 +01:00
Sylvain Munaut e8a64b7297 fosphor/cl: Remove spurious debug fprintf
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2020-01-31 23:46:53 +01:00
Sylvain Munaut 2d4fe78b43 gr-fosphor/build: Update all CMake files
Part of GNURadio 3.8 migration

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2019-12-08 15:22:38 +01:00
Sylvain Munaut 2f1b0a8793 gr-fosphor/build: Update CMakeLists.txt copyright header
Part of GNURadio 3.8 migration

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2019-12-08 15:22:38 +01:00
Sylvain Munaut 5d8751ee41 gr-fopshor/docs: Misc cleanup in Doxyfile.in
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2019-12-08 15:22:38 +01:00
Sylvain Munaut 095f2d651d gr-fosphor/docs: Update docs template to the latest from GNURadio
Part of GNURadio 3.8 migration

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2019-12-08 15:22:38 +01:00
Sylvain Munaut 5e427ffc41 gr-fosphor/build: Remove GNURadio cmake modules
Part of GNURadio 3.8 migration

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2019-12-08 15:22:38 +01:00
Sylvain Munaut f9aa89ce7f gr-fosphor/grc: Convert GRC blocks to YAML for 3.8
Part of GNURadio 3.8 migration

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2019-12-08 15:22:38 +01:00
Sylvain Munaut d7c472ec47 gr-fopshor: Remove WX support
This doesn't exist anymore in 3.8

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2019-12-08 15:22:38 +01:00
Sylvain Munaut 6fd953942f fosphor: Convert mkresources to Python 3
Py3 only ... upgrade your system folks !

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2019-12-08 15:22:38 +01:00
Sylvain Munaut fa6761afbf gr-fosphor/qt: Qt5 - Track visibility of the widget
When not visible, doing GL operations is not supported

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2019-12-08 15:22:38 +01:00
Sylvain Munaut caa88f0a31 gr-fosphor/qt: Qt5 - Associate GL context to the worker thread
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2019-12-08 15:22:38 +01:00
Sylvain Munaut ef55b4f5af gr-fosphor/qt: Qt5 - Switch to linking to Qt5
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2019-12-08 15:22:38 +01:00
Sylvain Munaut 2e4089a1d1 gr-fosphor: Add concept of visibility to the base block implementation
If we're not visible, don't do any GL calls

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2019-12-08 15:22:38 +01:00
Sylvain Munaut ffe4a1d7bd gr-fosphor: Missing namespace for thread::mutex
For consistency ...

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2019-12-08 15:22:38 +01:00
Sylvain Munaut 423431bdbd gr-fosphor: Fix block name for QT sink
Obvious typo is obvious.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2019-12-08 15:22:38 +01:00
Sylvain Munaut 3c000bf88a gr-fosphor: Indent (tab/space) fixes
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2019-12-08 15:22:38 +01:00
Sylvain Munaut 0c658dd3dd fosphor/cl: Make sure to unlocking the GL objects during CL release
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2019-12-08 15:22:38 +01:00
Sylvain Munaut 51af8dd083 fosphor/cl: Declare the target OpenCL version to avoid warning
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2019-12-08 15:22:38 +01:00
Sylvain Munaut 15f7a07909 fosphor/cl: Display all devices and allow selection with env var
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2019-12-08 15:22:38 +01:00
Sylvain Munaut 4aef701e40 fosphor/cl: Check for image support when filtering CL devices
Thanks to Ethan Trewhitt for original patch

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2019-12-08 15:22:38 +01:00
Sylvain Munaut 0b8390e1c2 fosphor/gl: Fix memory leak when releasing color map
Thanks to Emil Berg for reporting

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2019-12-08 15:22:38 +01:00
Sylvain Munaut 306f197108 fosphor/gl: Remove redundant initial clear of buffers
The buffers will end up being initialized from the CL result anyway.
(and CL has its own clear).

Apparently the clear of the VBO was causing CL/GL share failur on recent
NVidia driver so get rid of all of it.

Thanks a lot to Aaron Giles <gilesam73@gmail.com> for finding the root
cause of the issue.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2019-11-30 20:55:37 +01:00
Sylvain Munaut f5e8890139 fosphor/cl: Fix return type/value of cl_queue_clear_buffers
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2019-11-30 20:55:37 +01:00
Sylvain Munaut b06234e0fc fosphor/cl: Cleanup shared object lock/unlocking code paths
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2019-11-30 20:55:37 +01:00
Sylvain Munaut 7b6b9961bc fosphor/gl_font: Don't use the format __attribute__ when using MSVC
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2016-05-22 22:34:22 +02:00
Sylvain Munaut 1e4598ff34 gr-fosphor: On WIN32 platform, link and use GLEW to find GL extensions
The FindGLEW is included because it seems the one shipping by CMake by
default fails to find it on windows (which is the only platform where we
use it ...)

This is based on a patch from Geof Nieboer <gnieboer@corpcomm.net>

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2016-05-22 22:34:22 +02:00
Sylvain Munaut dbe239380f gr-fosphor: Improve cleanup path of the worker thread in case of init fail
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2016-05-22 22:34:22 +02:00
Sylvain Munaut 249434d020 gr-fosphor: Minor tweaks to FindGLFW3
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2016-05-22 22:34:22 +02:00