Video SDL Sink: Difference between revisions

From GNU Radio
Jump to navigation Jump to search
(Start a Documentation for the Video SDL Sink.)
 
Line 25: Line 25:
; Channels
; Channels
: Number of channels
: Number of channels
:: 1: Map the 0-256 (byte) or 0-2¹⁶ (short) range to black to white
:: 1: Map the 0-256 (both for byte and short!) range to black to white
:: 2: Interleaved: First input's samples are Y (ca. "gray"), second input's samples alternate between U and V (how bluegreenish or redpurplish a pixel is)
:: 2: Interleaved: First input's samples are Y (ca. "gray"), second input's samples alternate between U and V (how bluegreenish or redpurplish a pixel is)
:: 3: Y, U, V as separate inputs
:: 3: Y, U, V as separate inputs

Revision as of 18:02, 26 September 2023


Shows incoming samples as frames on a screen.

Parameters

Input Type
Byte or Short. Byte is unsigned chars, shorts is 16 bit integers
Input Width
number of samples per row
Input Height
number of rows per screen update
Display Width
After scaling: display width


Display Height
After scaling: display height
Framerate
Number of updates per second. If set to 0, make a new screen every (Input Width) · (Input Height) samples. (Recommended: set to 0, use modern Throttle with a maximum wait time low enough and as sample rate (Input Width) · (Input Height) · (desired frames per second))
Channels
Number of channels
1: Map the 0-256 (both for byte and short!) range to black to white
2: Interleaved: First input's samples are Y (ca. "gray"), second input's samples alternate between U and V (how bluegreenish or redpurplish a pixel is)
3: Y, U, V as separate inputs

Example Flowgraph

Media:Demonstrate sdl.grc

Demonstrate sdl.png

Source Files

C++ files
Short-consuming version
unsigned byte-consuming version
Header files
Short-consuming version
unsigned byte-consuming version


Public header files
Short-consuming version
unsigned byte-consuming version
Block definition
Block YAML