FPGA Image Signal Processor - GStreamer Pipelines - Debayer

From RidgeRun Developer Connection
Jump to: navigation, search


Previous: GStreamer_Pipelines Index Next: GStreamer_Pipelines/AutoWhiteBalance




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


Previous: GStreamer_Pipelines Index Next: GStreamer_Pipelines/AutoWhiteBalance