Screen content mode types

Updated: April 19, 2023

Types of content modes

Synopsis:

#include <screen/screen.h>
enum {
    SCREEN_CBABC_MODE_NONE = 0x7671,
    SCREEN_CBABC_MODE_VIDEO = 0x7672,
    SCREEN_CBABC_MODE_UI = 0x7673,
    SCREEN_CBABC_MODE_PHOTO = 0x7674
};

Data:

SCREEN_CBABC_MODE_NONE
The window content is not video, UI or photo.
SCREEN_CBABC_MODE_VIDEO
The window content is video.
SCREEN_CBABC_MODE_UI
The window content is UI.
SCREEN_CBABC_MODE_PHOTO
The window content is a photographic image.

Library:

libscreen

Description:

The CBABC (content-based automatic brightness control) refers to the brightness control that's based on content, not ambient light. However, this enumeration is used mainly to describe the content type of the window, rather than the brightness control. If not set, the type defaults to the mode of the display framebuffer.