| Functions related to screenshot handling

### ticalcs_screen_convert_bw_to_rgb888

int TICALL ticalcs_screen_convert_bw_to_rgb888(const uint8_t * src, unsigned int width, unsigned int height, uint8_t * dst)

Convert 1-bit B/W bitmap to RGB888, the output bitmap uses black and white pixels.

src : | source bitmap (1-bit pixels) to be converted.
width : | width of the bitmap in pixels, assumed to be be a multiple of 8.
height : | height of the bitmap in pixels
dst : | storage space for the converted bitmap, must be at least 3 * width * height bytes large
Return value : | 0 if successful, an error code otherwise.

### ticalcs_screen_convert_bw_to_blurry_rgb888

int TICALL ticalcs_screen_convert_bw_to_blurry_rgb888(const uint8_t * src, unsigned int width, unsigned int height, uint8_t * dst)

Convert 1-bit B/W bitmap to RGB888, the output bitmap uses a pair of colors mimicking old TI-Z80 / TI-68k screens.

src : | source bitmap (1-bit pixels) to be converted.
width : | width of the bitmap in pixels, assumed to be be a multiple of 8.
height : | height of the bitmap in pixels
dst : | storage space for the converted bitmap, must be at least 3 * width * height bytes large
Return value : | 0 if successful, an error code otherwise.

### ticalcs_screen_convert_gs4_to_rgb888

int TICALL ticalcs_screen_convert_gs4_to_rgb888(const uint8_t * src, unsigned int width, unsigned int height, uint8_t * dst)

Convert 4-bit grayscale bitmap to RGB888.

src : | source bitmap (4-bit pixels) to be converted.
width : | width of the bitmap in pixels, assumed to be even.
height : | height of the bitmap in pixels
dst : | storage space for the converted bitmap, must be at least 3 * width * height bytes large
Return value : | 0 if successful, an error code otherwise.

### ticalcs_screen_convert_rgb565le_to_rgb888

int TICALL ticalcs_screen_convert_rgb565le_to_rgb888(const uint8_t * src, unsigned int width, unsigned int height, uint8_t * dst)

Convert 16-bit little-endian RGB565 bitmap to RGB888.

src : | source bitmap (16-bit pixels) to be converted.
width : | width of the bitmap in pixels
height : | height of the bitmap in pixels
dst : | storage space for the converted bitmap, must be at least 3 * width * height bytes large
Return value : | 0 if successful, an error code otherwise.

### ticalcs_screen_convert_native_to_rgb888

int TICALL ticalcs_screen_convert_native_to_rgb888(CalcPixelFormat format, const uint8_t * src, unsigned int width, unsigned int height, uint8_t * dst)

Convert a bitmap in the calculator's native encoding to RGB888.

format : | pixel format of the input data.
src : | source bitmap (16-bit pixels) to be converted.
width : | width of the bitmap in pixels
height : | height of the bitmap in pixels
dst : | storage space for the converted bitmap, must be at least 3 * width * height bytes large
Return value : | 0 if successful, an error code otherwise.

### ticalcs_screen_nspire_rle_uncompress

{

Uncompress a RLE-compressed Nspire screenshot.

format : | pixel format of the input data.
src : | source bitmap to be converted.
input_size : | size of the input data.
dst : | storage space for the uncompressed bitmap, must be at least width * height / 2 bytes large for classic Nspire and 2 * width * height bytes large for color Nspire.
max_output_size : | size of the output data.
Return value : | 0 if successful, an error code otherwise.

### ticalcs_screen_84pcse_rle_uncompress

{

Uncompress a RLE-compressed 84+CSE screenshot.

src : | source bitmap to be converted.
src_length : | size of the input data.
dst : | storage space for the uncompressed bitmap, must be at least width * height / 2 bytes large for classic Nspire and 2 * width * height bytes large for color Nspire.
dst_length : | size of the output data.
Return value : | 0 if successful, an error code otherwise.

### Return to the main index