FPGA Image Signal Processor - GStreamer Pipelines - Debayer
FPGA Image Signal Processor |
---|
Introduction |
FPGA ISP Accelerators/Modules |
Getting the Code |
Examples |
GStreamer Pipelines |
Tested Platforms |
Contact Us |
Overview
FPGA-ISP Debayer accelerator currently supports RAW8 formats: bggr, rggb, grbg, gbrg. If you have a camera with V4L2 support and it delivers the data in Bayer RAW8 format, this accelerator is suitable to perform the picture demosaicing. On this page, there are some GStreamer pipelines that you can use for testing the accelerator and tentatively, use in your application.
GStreamer Pipelines
With a videotestsrc
The rgb2bayer
element is capable to deliver RAW8 samples in order to test the FPGA-ISP debayer accelerator. Also, it is possible to visualize the results through a videosink, given that the output image is in ARGB format.
Source
This pipeline generates the RAW8 samples and sends them to the accelerator.
gst-launch-1.0 videotestsrc ! video/x-raw,format=ARGB,width=320,height=240 ! queue ! rgb2bayer ! "video/x-bayer,format=bggr" ! queue ! v4l2sink device=/dev/video2 -v
Sink
This pipeline receives the ARGB stream from the accelerator and displays it into a videosink.
gst-launch-1.0 v4l2src device=/dev/video1 ! "video/x-raw, width=320, height=240,format=ARGB" ! perf ! videoconvert ! xvimagesink
Please, pay attention to the devices:
/dev/video1: output port device /dev/video2: input port device