Commit Graph

155 Commits

Author SHA1 Message Date
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
Sylvain Munaut 0c4bd380ef gr-fosphor: Rely on the system-wide FindFreetype
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2016-05-22 22:34:22 +02:00
Sylvain Munaut e1eb11b2d8 gr-fosphor: Use FindOpenCL from cmake git master
Author: Martin Hauke <mardnh@gmx.de>
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2016-01-25 16:27:00 +01:00
Sylvain Munaut 3a35735409 fosphor/cl: Allow to use APIs deprecated in CL >= 1.2
Really this fixes a2d35f201843c10cceddfbb64c6ed58bdeb03a88 ...

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2016-01-25 16:27:00 +01:00
Sylvain Munaut b17258f1fc fosphor: Don't redefine gettimeofday in mingw build
Thanks to Martin Hauke <mardnh@gmx.de> for reporting

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2016-01-25 16:27:00 +01:00
Sylvain Munaut acdddf6e90 fosphor: Use lowercase for WIN32 includes
Apparently needed for mingw build and doesn't affect the MSVC ones.

Thanks to Martin Hauke <mardnh@gmx.de> for reporting

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2016-01-25 16:27:00 +01:00
Sylvain Munaut 12c1a6d3f8 Revert "fosphor/gl_cmap_gen: Add new function to generate GL colormap from a PNG"
This reverts commit 585bac0316983286830f3bc50fce8247bad142f9.

This is causing issue with Ubuntu and its lack of libpng 1.6 ... so
removed for now.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2015-11-21 00:19:58 +01:00
Sylvain Munaut 4ae2f539df gr-fosphor: Add key bindings to the GRC blocks documentation tab
Thanks to Chris Kuethe for writing theses :p

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2015-10-25 21:41:23 +01:00
Sylvain Munaut 44465b9186 fosphor/cl: Retry context creation without CL/GL sharing if needed
This happens commonly on optimus laptop when CL is Nvidia and the GL
is the Intel card. They can't share data ...

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2015-10-25 21:41:23 +01:00
Sylvain Munaut a969e7fbb0 fosphor/cl: Don't fail fatally if a platform fails to return devices
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2015-10-25 21:41:23 +01:00
Sylvain Munaut 436b966b76 fosphor/mkresources: Don't generate string longer than 64k
Turns out some fucked up compilers (MSVC I'm looking at you) don't
support strings that are very long.

So in the resource compiler:
 - Change binary encoding to use a separate declaration and use array
   rather than string encoding
 - If a text file is > 64k, use the binary encoding method rather than
   string

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2015-10-25 21:41:22 +01:00
Sylvain Munaut 48b7e9242c gr-fosphor: Make use of proper cmake commands to copy header in binary dir
This way it doesn't depend on platform specific 'cp' and 'mkdir' that
obviously won't work on WIN32.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2015-10-25 21:41:22 +01:00
Sylvain Munaut 6d20a8f367 fosphor/gl_cmap_gen: Remove 'inline' qualifiers
Theses are not in header, and we don't really care about inlining, and
the compiler will most likely do it if it thinks its appropriate anyway.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2015-10-25 21:41:22 +01:00
Sylvain Munaut af9de650ac fosphor/gl_cmap_gen: Spacing fix in _set_rgba_from_hsv
Not sure where this came from ...

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2015-10-25 21:41:22 +01:00
Sylvain Munaut 7944d0d976 fosphor/cl_compat: Fix goofs with calling convention
Doesn't matter on linux/osx because CL_API is nothing, but on Win32, it
changes things.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2015-10-25 21:41:22 +01:00
Sylvain Munaut f33ebdd28b fosphor/gl_cmap_gen: Add new function to generate GL colormap from a PNG
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2015-10-25 21:41:22 +01:00
Sylvain Munaut 1780d4b43b fosphor/gl_cmap: Add a return value and void* arg to the generate func
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2015-10-25 21:41:22 +01:00
Sylvain Munaut 773442b170 fosphor: Fix typo in headers MAXOSX vs MACOSX
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2015-10-25 21:41:22 +01:00
Sylvain Munaut 484be3ccaa gr-fosphor: Remove shebang from wx_sink_c.py
Since this is not actually executable, don't need it and it apparently
creates some warning when making RPM packages ...

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2015-10-25 21:41:22 +01:00
Sylvain Munaut 38c79bca9c fosphor/gl: Don't require a glFinish()
Since we always call swap buffer between a call to draw and
the next call to process(), we don't need it. In the future,
make this an option in case there is some usecase that require
it.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2015-10-25 21:41:22 +01:00
Sylvain Munaut 3fdfe7cf81 gr-fopshor: Add a MANIFEST for CGRAN
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2015-04-02 22:59:40 +02:00
Sylvain Munaut 985c78ffa7 fosphor/cl: Handle invalid (infinite/nan) data better so it recovers
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2015-01-20 21:54:52 +01:00
Sylvain Munaut 1603497411 fosphor/gl: Use the right cmap when drawing the histogram intensity scale
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2015-01-20 21:54:52 +01:00
Sylvain Munaut 7e195eea1b fosphor/cl: Allow to use APIs deprecated in 2.0 without warnings
This app is CL 1.1 compatible and so we're forced to use some API
that were deprecated in 2.0, no need to be constantly reminded of
it

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2015-01-20 21:54:52 +01:00
Sylvain Munaut 5aa7c2f7bd build: Fix CMake 3.x.x warnings
Corresponding commit in the cmake git tree :
2509c7678feb2efab79a384fd0b0b35cee8d02b0

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2015-01-20 21:54:52 +01:00