A helper library to generate run-time configuration for the Raspberry Pi ISP (PiSP), consisting of the Frontend and Backend hardware components.
To build, setup the meson project as follows:
meson setup <build_dir>To optionally disable the Boost logging library, add -Dlogging=disabled as an argument to the meson setup command.
To compile and install the libpisp.so artefact:
meson compile -C <build_dir>
sudo meson install -C <build_dir>libpisp can be built and linked as a meson subproject by using an appropriate libpisp.wrap file and the following dependency declaration in the target project:
libpisp_dep = dependency('libpisp', fallback : ['libpisp', 'libpisp_dep'])Alternatively pkg-config can be used to locate libpisp.so installed in of the system directories for other build environments.
A simple command-line image converter that uses the PiSP Backend for hardware-accelerated format conversion and scaling.
pisp_convert input.yuv output.rgb \
--input-format 1920:1080:1920:YUV420P \
--output-format 1280:720:3840:RGB888Format strings use the form width:height:stride:format. Use --formats to list available formats, or --list to enumerate available PiSP devices.
libpisp includes a GStreamer element (pispconvert) that provides hardware-accelerated image scaling and format conversion using the PiSP Backend.
GStreamer support is enabled by default if the required dependencies are found. To explicitly enable or disable:
meson setup <build_dir> -Dgstreamer=enabled # require GStreamer support
meson setup <build_dir> -Dgstreamer=disabled # disable GStreamer supportAfter installation, the element will be available as pispconvert:
gst-inspect-1.0 pispconvertFor usage examples and supported formats, see src/gst/usage.md.
To test the plugin without installing:
GST_PLUGIN_PATH=<build_dir>/src/gst gst-inspect-1.0 pispconvertCopyright © 2023, Raspberry Pi Ltd. Released under the BSD-2-Clause License.