libsstvenc
Asynchronous Analogue SSTV encoder
|
Topics | |
Colour-space modes supported | |
Channel source | |
Macros | |
#define | SSTVENC_CSO_BIT_MODE (12) |
#define | SSTVENC_CSO_BIT_C(n) |
#define | SSTVENC_CSO_MASK_MODE (0170000) |
#define | SSTVENC_CSO_MASK_C(n) |
#define | SSTVENC_MODE_GET_CH(n, mode) |
#define | SSTVENC_MODE_ORDER(cs, c0, c1, c2, c3) |
Colour space and order definitions. A lot of SSTV modes may be characterised by what colour space they use (monochrome, RGB or YUV) and what order the channels are defined in.
For flexibility, a bitmap has been defined using a uint16_t
.
#define SSTVENC_CSO_BIT_C | ( | n | ) |
Return the bit number for the nth channel in the bitmap.
[in] | n | The channel number (0-3 inclusive) |
Definition at line 42 of file sstvmode.h.
#define SSTVENC_CSO_BIT_MODE (12) |
Definition at line 35 of file sstvmode.h.
#define SSTVENC_CSO_MASK_C | ( | n | ) |
Bit mask for the Nth colour channel.
[in] | n | The channel number (0-3 inclusive) |
Definition at line 52 of file sstvmode.h.
#define SSTVENC_CSO_MASK_MODE (0170000) |
Bit mask for the colour space mode bits
Definition at line 45 of file sstvmode.h.
Referenced by main(), show_modes(), sstvenc_encoder_next_channel_pulse(), sstvenc_encoder_next_image_pulse(), sstvenc_get_pixel_posn(), sstvenc_mode_get_fb_sz(), and sstvenc_mode_get_txtime().
#define SSTVENC_MODE_GET_CH | ( | n, | |
mode ) |
Return the source allocated to the given channel number.
[in] | n | The channel number being requested. |
[in] | mode | The mode colour space/order bitmap (i.e. sstvenc_mode::colour_space_order |
Definition at line 108 of file sstvmode.h.
Referenced by sstvenc_encoder_next_channel_pulse(), and sstvenc_mode_get_txtime().
#define SSTVENC_MODE_ORDER | ( | cs, | |
c0, | |||
c1, | |||
c2, | |||
c3 ) |
Pack the colour space and 4 channels' sources into a single uint16_t
for encoding sstvenc_mode::colour_space_order.
[in] | cs | Colour space, see Colour-space modes supported |
[in] | c0 | Channel source for the first channel, one of Channel source |
[in] | c1 | Channel source for the second channel, one of Channel source |
[in] | c2 | Channel source for the third channel, one of Channel source |
[in] | c3 | Channel source for the fourth channel, one of Channel source |
Definition at line 127 of file sstvmode.h.