<cahute/picture.h>
– Picture format related utilities for Cahute¶
Macro definitions¶
CAHUTE_PICTURE_FORMAT_*
are constants representing how a given
picture’s data is encoded.
-
CAHUTE_PICTURE_FORMAT_1BIT_MONO¶
Constant representing the 1bpp monochrome picture format.
-
CAHUTE_PICTURE_FORMAT_1BIT_MONO_CAS50¶
Constant representing the 1bpp monochrome picture format with CAS50 order.
-
CAHUTE_PICTURE_FORMAT_1BIT_DUAL¶
Constant representing the Dual 1bpp gray picture format.
-
CAHUTE_PICTURE_FORMAT_1BIT_TRIPLE_CAS50¶
Constant representing the Multiple 1bpp picture format with CAS50 order and palette prefix.
-
CAHUTE_PICTURE_FORMAT_4BIT_RGB_PACKED¶
Constant representing the 4bpp packed RGB picture format.
-
CAHUTE_PICTURE_FORMAT_16BIT_R5G6B5¶
Constant representing the R5G6B5 picture format.
-
CAHUTE_PICTURE_FORMAT_32BIT_ARGB_HOST¶
Constant representing the 32bpp ARGB picture format using host endianness.
Type definitions¶
-
struct cahute_frame¶
Screenstreaming frame details for screenstreaming.
-
int cahute_frame_width¶
Width of the frame, in pixels.
-
int cahute_frame_height¶
Height of the frame, in pixels.
-
int cahute_frame_format¶
Format of the frame, as a
CAHUTE_PICTURE_FORMAT_*
constant. See <cahute/picture.h> – Picture format related utilities for Cahute for more information.
-
int cahute_frame_width¶
Function declarations¶
-
int cahute_convert_picture(void *dest, int dest_format, void const *src, int src_format, int width, int height)¶
Convert picture data from a source to a destination format.
- Parameters:
dest – Destination picture data.
dest_format – Format to write picture data in on the destination.
src – Source picture data.
src_format – Format of the source picture data.
width – Picture width.
height – Picture height.
- Returns:
Error, or 0 if the operation was successful.
-
int cahute_convert_picture_from_frame(void *dest, int dest_format, cahute_frame const *frame)¶
Convert picture data from a frame to a destination format.
- Parameters:
dest – Destination picture data.
dest_format – Format to write picture data in on the destination.
frame – Frame to get source picture data and metadata from.
- Returns:
Error, or 0 if the operation was successful.