libwebsockets
Lightweight C library for HTML5 websockets
|
Go to the source code of this file.
Data Structures | |
struct | lws_box |
struct | lws_surface_info |
struct | lws_greyscale_error |
struct | lws_colour_error |
union | lws_surface_error_t |
struct | lws_display |
struct | lws_display_state |
Typedefs | |
typedef int16_t | lws_display_list_coord_t |
typedef uint16_t | lws_display_scalar |
typedef uint16_t | lws_display_rotation_t |
typedef uint32_t | lws_display_colour_t |
typedef uint16_t | lws_display_palette_idx_t |
typedef struct lws_box | lws_box_t |
typedef struct lws_surface_info | lws_surface_info_t |
typedef struct lws_greyscale_error | lws_greyscale_error_t |
typedef struct lws_colour_error | lws_colour_error_t |
typedef struct lws_display | lws_display_t |
typedef struct lws_display_state | lws_display_state_t |
typedef int(* | lws_display_completion_t) (lws_display_state_t *lds, int a) |
Enumerations | |
enum | lws_surface_type_t { LWSSURF_TRUECOLOR32 , LWSSURF_565 , LWSSURF_PALETTE , LWSSURF_QUANTIZED_4BPP } |
enum | lws_display_controller_state { LWSDISPS_OFF , LWSDISPS_AUTODIMMED , LWSDISPS_BECOMING_ACTIVE , LWSDISPS_ACTIVE , LWSDISPS_GOING_OFF } |
struct lws_box |
struct lws_surface_info |
Definition at line 51 of file lws-display.h.
Data Fields | ||
---|---|---|
lws_fx_t | wh_px[2] | |
lws_fx_t | wh_mm[2] | |
const lws_display_colour_t * | palette | |
size_t | palette_depth | |
lws_surface_type_t | type | |
uint8_t | greyscale:1 | |
uint8_t | partial:1 | |
uint8_t | render_to_rgba:1 |
struct lws_greyscale_error |
Definition at line 62 of file lws-display.h.
Data Fields | ||
---|---|---|
int16_t | rgb[1] |
struct lws_colour_error |
Definition at line 66 of file lws-display.h.
Data Fields | ||
---|---|---|
int16_t | rgb[3] |
union lws_surface_error_t |
Definition at line 70 of file lws-display.h.
Data Fields | ||
---|---|---|
lws_greyscale_error_t | grey | |
lws_colour_error_t | colour |
struct lws_display_state |
Definition at line 139 of file lws-display.h.
Data Fields | ||
---|---|---|
lws_sorted_usec_list_t | sul_autodim | |
char | current_url[96] | |
const lws_display_t * | disp | |
struct lws_context * | ctx | |
void * | priv | |
int | autodim_ms | |
int | off_ms | |
struct lws_led_state * | bl_lcs | |
lws_led_state_chs_t | chs | |
enum lws_display_controller_state | state | |
char | display_busy |
typedef int16_t lws_display_list_coord_t |
Definition at line 28 of file lws-display.h.
typedef uint16_t lws_display_scalar |
Definition at line 29 of file lws-display.h.
typedef uint16_t lws_display_rotation_t |
Definition at line 30 of file lws-display.h.
typedef uint32_t lws_display_colour_t |
Definition at line 31 of file lws-display.h.
typedef uint16_t lws_display_palette_idx_t |
Definition at line 32 of file lws-display.h.
typedef struct lws_surface_info lws_surface_info_t |
typedef struct lws_greyscale_error lws_greyscale_error_t |
typedef struct lws_colour_error lws_colour_error_t |
typedef struct lws_display lws_display_t |
typedef struct lws_display_state lws_display_state_t |
typedef int(* lws_display_completion_t) (lws_display_state_t *lds, int a) |
Definition at line 165 of file lws-display.h.
enum lws_surface_type_t |
Enumerator | |
---|---|
LWSSURF_TRUECOLOR32 | |
LWSSURF_565 | |
LWSSURF_PALETTE | |
LWSSURF_QUANTIZED_4BPP |
Definition at line 44 of file lws-display.h.
Enumerator | |
---|---|
LWSDISPS_OFF | |
LWSDISPS_AUTODIMMED | |
LWSDISPS_BECOMING_ACTIVE | |
LWSDISPS_ACTIVE | |
LWSDISPS_GOING_OFF |
Definition at line 131 of file lws-display.h.
LWS_VISIBLE LWS_EXTERN void lws_surface_set_px | ( | const lws_surface_info_t * | ic, |
uint8_t * | line, | ||
int | x, | ||
const lws_display_colour_t * | c | ||
) |
LWS_VISIBLE LWS_EXTERN lws_display_palette_idx_t lws_display_palettize_grey | ( | const lws_surface_info_t * | ic, |
const lws_display_colour_t * | palette, | ||
size_t | pdepth, | ||
lws_display_colour_t | c, | ||
lws_greyscale_error_t * | ectx | ||
) |
LWS_VISIBLE LWS_EXTERN lws_display_palette_idx_t lws_display_palettize_col | ( | const lws_surface_info_t * | ic, |
const lws_display_colour_t * | palette, | ||
size_t | pdepth, | ||
lws_display_colour_t | c, | ||
lws_colour_error_t * | ectx | ||
) |
LWS_VISIBLE LWS_EXTERN void lws_display_state_init | ( | lws_display_state_t * | lds, |
struct lws_context * | ctx, | ||
int | autodim_ms, | ||
int | off_ms, | ||
struct lws_led_state * | bl_lcs, | ||
const lws_display_t * | disp | ||
) |
lws_display_state_init() - initialize display states
lds | the display state object |
ctx | the lws context |
autodim_ms | ms since last active report to dim display (<0 = never) |
off_ms | ms since dim to turn display off (<0 = never) |
bl_lcs | the led controller instance that has the backlight |
disp | generic display object we belong to |
This initializes a display's state, and sets up the optional screen auto-dim and blanking on inactive, and gradual brightness change timer.
LWS_VISIBLE LWS_EXTERN void lws_display_state_set_brightness | ( | lws_display_state_t * | lds, |
const lws_led_sequence_def_t * | pwmseq | ||
) |
lws_display_state_set_brightness() - gradually change the brightness
lds | the display state we are changing |
target | the target brightness to transition to |
Adjusts the brightness gradually twoards the target at 20Hz
LWS_VISIBLE LWS_EXTERN void lws_display_state_active | ( | lws_display_state_t * | lds | ) |
LWS_VISIBLE LWS_EXTERN void lws_display_state_off | ( | lws_display_state_t * | lds | ) |