![]() |
Functions related to screenshot handling
|
TIEXPORT3 int TICALL ticalcs_screen_convert_bw_to_rgb888(const uint8_t * src, unsigned int width, unsigned int height, uint8_t * dst) |
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.
|
TIEXPORT3 int TICALL ticalcs_screen_convert_bw_to_blurry_rgb888(const uint8_t * src, unsigned int width, unsigned int height, uint8_t * dst) |
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.
|
TIEXPORT3 int TICALL ticalcs_screen_convert_gs4_to_rgb888(const uint8_t * src, unsigned int width, unsigned int height, uint8_t * dst) |
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.
|
TIEXPORT3 int TICALL ticalcs_screen_convert_rgb565le_to_rgb888(const uint8_t * src, unsigned int width, unsigned int height, uint8_t * dst) |
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.
|
TIEXPORT3 int TICALL ticalcs_screen_convert_native_to_rgb888(CalcPixelFormat format, const uint8_t * src, unsigned int width, unsigned int height, uint8_t * dst) |
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.
|
{ |
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.
|
{ |
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.
|