sp500_letterbox_params Struct Reference#
|
Mobilint REGULUS v4.1
SP500 DSP API
|
Letterbox geometry and options. More...
#include <sp500/letterbox.h>
Data Fields | |
| int32_t | src_w |
| int32_t | src_h |
| int32_t | dst_w |
| int32_t | dst_h |
| int32_t | channels |
| int32_t | interp |
| uint8_t | pad_value |
| uint8_t | center |
| uint8_t | scale_up |
| uint8_t | swap_rb |
| uint32_t | reserved [4] |
Detailed Description
Letterbox geometry and options.
Fill this with sp500_letterbox_params_init() and then set the fields you care about. src_w and src_h have no useful default and must be set. Every dimension must be in 1..65535.
Definition at line 66 of file letterbox.h.
Field Documentation
◆ src_w
| int32_t sp500_letterbox_params::src_w |
source width in pixels (required)
Definition at line 68 of file letterbox.h.
◆ src_h
| int32_t sp500_letterbox_params::src_h |
source height in pixels (required)
Definition at line 69 of file letterbox.h.
◆ dst_w
| int32_t sp500_letterbox_params::dst_w |
destination width in pixels; default 640
Definition at line 70 of file letterbox.h.
◆ dst_h
| int32_t sp500_letterbox_params::dst_h |
destination height in pixels; default 640
Definition at line 71 of file letterbox.h.
◆ channels
| int32_t sp500_letterbox_params::channels |
interleaved channels, BGR or RGB = 3; default 3
Definition at line 72 of file letterbox.h.
◆ interp
| int32_t sp500_letterbox_params::interp |
one of SP500_RESIZE_*; default SP500_RESIZE_BILINEAR
Definition at line 73 of file letterbox.h.
◆ pad_value
| uint8_t sp500_letterbox_params::pad_value |
border fill, applied to every channel; default 114
Definition at line 74 of file letterbox.h.
◆ center
| uint8_t sp500_letterbox_params::center |
1: split the border evenly; 0: pad bottom-right only. Default 1
Definition at line 75 of file letterbox.h.
◆ scale_up
| uint8_t sp500_letterbox_params::scale_up |
1: allow upscaling a smaller source; 0: never scale above 1.0. Default 1
Definition at line 77 of file letterbox.h.
◆ swap_rb
| uint8_t sp500_letterbox_params::swap_rb |
1: swap channels 0 and 2 while writing, turning BGR into RGB or back. Requires channels == 3. Default 0
Definition at line 79 of file letterbox.h.
◆ reserved
| uint32_t sp500_letterbox_params::reserved[4] |
must be zero
Definition at line 81 of file letterbox.h.
The documentation for this struct was generated from the following file:
- sp500/letterbox.h
Generated by