vg_lite.h
Defines
-
VGLITE_HEADER_VERSION
causes MSVC error C1189. Not needed because "The __inline keyword is equivalent to inline." See: https://learn.microsoft.com/en-us/cpp/cpp/inline-functions-cpp?view=msvc-170
-
VGLITE_VERSION_3_0
-
VGLITE_MAKE_VERSION(major, minor, patch)
-
VGLITE_VERSION_MAJOR(version)
-
VGLITE_VERSION_MINOR(version)
-
VGLITE_VERSION_PATCH(version)
-
VGLITE_API_VERSION_3_0
-
VGLITE_RELEASE_VERSION
-
VGL_FALSE
-
VGL_TRUE
-
VLC_OP_END
-
VLC_OP_CLOSE
-
VLC_OP_MOVE
-
VLC_OP_MOVE_REL
-
VLC_OP_LINE
-
VLC_OP_LINE_REL
-
VLC_OP_QUAD
-
VLC_OP_QUAD_REL
-
VLC_OP_CUBIC
-
VLC_OP_CUBIC_REL
-
VLC_OP_BREAK
-
VLC_OP_HLINE
-
VLC_OP_HLINE_REL
-
VLC_OP_VLINE
-
VLC_OP_VLINE_REL
-
VLC_OP_SQUAD
-
VLC_OP_SQUAD_REL
-
VLC_OP_SCUBIC
-
VLC_OP_SCUBIC_REL
-
VLC_OP_SCCWARC
-
VLC_OP_SCCWARC_REL
-
VLC_OP_SCWARC
-
VLC_OP_SCWARC_REL
-
VLC_OP_LCCWARC
-
VLC_OP_LCCWARC_REL
-
VLC_OP_LCWARC
-
VLC_OP_LCWARC_REL
-
VLM_PATH_ENABLE_UPLOAD(path)
-
VLM_PATH_DISABLE_UPLOAD(path)
-
VLM_PATH_GET_UPLOAD_BIT(path)
-
VLC_MAX_COLOR_RAMP_STOPS
-
VLC_MAX_GRADIENT_STOPS
-
VLC_GRADIENT_BUFFER_WIDTH
-
vg_lite_buffer_upload
-
vg_lite_path_append
-
vg_lite_path_calc_length
-
vg_lite_set_ts_buffer
-
vg_lite_set_draw_path_type
-
vg_lite_create_mask_layer
-
vg_lite_fill_mask_layer
-
vg_lite_blend_mask_layer
-
vg_lite_generate_mask_layer_by_path
-
vg_lite_set_mask_layer
-
vg_lite_destroy_mask_layer
-
vg_lite_enable_mask
-
vg_lite_enable_color_transformation
-
vg_lite_set_color_transformation
-
vg_lite_set_image_global_alpha
-
vg_lite_set_dest_global_alpha
-
vg_lite_clear_rad_grad
-
vg_lite_update_rad_grad
-
vg_lite_get_rad_grad_matrix
-
vg_lite_set_rad_grad
-
vg_lite_draw_linear_gradient
-
vg_lite_draw_radial_gradient
-
vg_lite_draw_gradient
-
vg_lite_mem_avail
-
vg_lite_set_update_stroke
-
vg_lite_buffer_image_mode_t
-
vg_lite_draw_path_type_t
-
vg_lite_linear_gradient_ext_t
-
vg_lite_buffer_transparency_mode_t
-
VG_LITE_ERROR
Typedefs
-
typedef unsigned char vg_lite_uint8_t
-
typedef char vg_lite_int8_t
-
typedef short vg_lite_int16_t
-
typedef unsigned short vg_lite_uint16_t
-
typedef int vg_lite_int32_t
-
typedef unsigned int vg_lite_uint32_t
-
typedef unsigned long long vg_lite_uint64_t
-
typedef float vg_lite_float_t
-
typedef double vg_lite_double_t
-
typedef char vg_lite_char
-
typedef char *vg_lite_string
-
typedef void *vg_lite_pointer
-
typedef void vg_lite_void
-
typedef unsigned int vg_lite_color_t
-
typedef enum vg_lite_error vg_lite_error_t
-
typedef enum vg_lite_feature vg_lite_feature_t
-
typedef enum vg_lite_quality vg_lite_quality_t
-
typedef enum vg_lite_format vg_lite_format_t
-
typedef enum vg_lite_buffer_format vg_lite_buffer_format_t
-
typedef enum vg_lite_swizzle vg_lite_swizzle_t
-
typedef enum vg_lite_yuv2rgb vg_lite_yuv2rgb_t
-
typedef enum vg_lite_buffer_layout vg_lite_buffer_layout_t
-
typedef enum vg_lite_image_mode vg_lite_image_mode_t
-
typedef enum vg_lite_transparency vg_lite_transparency_t
-
typedef enum vg_lite_blend vg_lite_blend_t
-
typedef enum vg_lite_fill vg_lite_fill_t
-
typedef enum vg_lite_global_alpha vg_lite_global_alpha_t
-
typedef enum vg_lite_filter vg_lite_filter_t
-
typedef enum vg_lite_pattern_mode vg_lite_pattern_mode_t
-
typedef enum vg_lite_paint_type vg_lite_paint_type_t
-
typedef enum vg_lite_compress_mode vg_lite_compress_mode_t
-
typedef enum vg_lite_path_type vg_lite_path_type_t
-
typedef enum vg_lite_cap_style vg_lite_cap_style_t
-
typedef enum vg_lite_join_style vg_lite_join_style_t
-
typedef enum vg_lite_mask_operation vg_lite_mask_operation_t
-
typedef enum vg_lite_orientation vg_lite_orientation_t
-
typedef enum vg_lite_gamma_conversion vg_lite_gamma_conversion_t
-
typedef enum vg_lite_index_endian vg_lite_index_endian_t
-
typedef enum vg_lite_map_flag vg_lite_map_flag_t
-
typedef enum vg_lite_param_type vg_lite_param_type_t
-
typedef struct vg_lite_info vg_lite_info_t
-
typedef struct vg_lite_point vg_lite_point_t
-
typedef vg_lite_point_t vg_lite_point4_t[4]
-
typedef struct vg_lite_rectangle vg_lite_rectangle_t
-
typedef struct vg_lite_matrix vg_lite_matrix_t
-
typedef struct vg_lite_yuvinfo vg_lite_yuvinfo_t
-
typedef struct vg_lite_path_point *vg_lite_path_point_ptr
-
typedef struct vg_lite_path_point vg_lite_path_point_t
-
typedef struct vg_lite_sub_path *vg_lite_sub_path_ptr
-
typedef struct vg_lite_sub_path vg_lite_sub_path_t
-
typedef struct vg_lite_path_list *vg_lite_path_list_ptr
-
typedef struct vg_lite_path_list vg_lite_path_list_t
-
typedef struct vg_lite_stroke vg_lite_stroke_t
-
typedef struct vg_lite_fc_buffer vg_lite_fc_buffer_t
-
typedef struct vg_lite_buffer vg_lite_buffer_t
-
typedef struct vg_lite_hw_memory vg_lite_hw_memory_t
-
typedef struct vg_lite_path vg_lite_path_t
-
typedef struct vg_lite_color_ramp vg_lite_color_ramp_t
-
typedef struct vg_lite_linear_gradient_parameter vg_lite_linear_gradient_parameter_t
-
typedef struct vg_lite_radial_gradient_parameter vg_lite_radial_gradient_parameter_t
-
typedef struct vg_lite_linear_gradient vg_lite_linear_gradient_t
-
typedef struct vg_lite_ext_linear_gradient vg_lite_ext_linear_gradient_t
-
typedef struct vg_lite_radial_gradient vg_lite_radial_gradient_t
-
typedef struct vg_lite_color_key vg_lite_color_key_t
-
typedef vg_lite_color_key_t vg_lite_color_key4_t[4]
-
typedef vg_lite_float_t vg_lite_pixel_matrix_t[20]
-
typedef struct vg_lite_pixel_channel_enable vg_lite_pixel_channel_enable_t
-
typedef struct vg_lite_color_transform vg_lite_color_transform_t
Enums
-
enum vg_lite_error
Values:
-
enumerator VG_LITE_SUCCESS
-
enumerator VG_LITE_INVALID_ARGUMENT
Success.
-
enumerator VG_LITE_OUT_OF_MEMORY
An invalid argument was specified.
-
enumerator VG_LITE_NO_CONTEXT
Out of memory.
-
enumerator VG_LITE_TIMEOUT
No context or an unintialized context specified.
-
enumerator VG_LITE_OUT_OF_RESOURCES
A timeout has occurred during a wait.
-
enumerator VG_LITE_GENERIC_IO
Out of system resources.
-
enumerator VG_LITE_NOT_SUPPORT
Cannot communicate with the kernel driver.
-
enumerator VG_LITE_ALREADY_EXISTS
Function call not supported.
-
enumerator VG_LITE_NOT_ALIGNED
Object already exists
-
enumerator VG_LITE_FLEXA_TIME_OUT
Data alignment error
-
enumerator VG_LITE_FLEXA_HANDSHAKE_FAIL
VG timeout requesting for segment buffer
-
enumerator VG_LITE_SUCCESS
-
enum vg_lite_feature
Values:
-
enumerator gcFEATURE_BIT_VG_IM_INDEX_FORMAT
-
enumerator gcFEATURE_BIT_VG_SCISSOR
-
enumerator gcFEATURE_BIT_VG_BORDER_CULLING
-
enumerator gcFEATURE_BIT_VG_RGBA2_FORMAT
-
enumerator gcFEATURE_BIT_VG_QUALITY_8X
-
enumerator gcFEATURE_BIT_VG_IM_FASTCLAER
-
enumerator gcFEATURE_BIT_VG_RADIAL_GRADIENT
-
enumerator gcFEATURE_BIT_VG_GLOBAL_ALPHA
-
enumerator gcFEATURE_BIT_VG_RGBA8_ETC2_EAC
-
enumerator gcFEATURE_BIT_VG_COLOR_KEY
-
enumerator gcFEATURE_BIT_VG_DOUBLE_IMAGE
-
enumerator gcFEATURE_BIT_VG_YUV_OUTPUT
-
enumerator gcFEATURE_BIT_VG_FLEXA
-
enumerator gcFEATURE_BIT_VG_24BIT
-
enumerator gcFEATURE_BIT_VG_DITHER
-
enumerator gcFEATURE_BIT_VG_USE_DST
-
enumerator gcFEATURE_BIT_VG_PE_CLEAR
-
enumerator gcFEATURE_BIT_VG_IM_INPUT
-
enumerator gcFEATURE_BIT_VG_DEC_COMPRESS
-
enumerator gcFEATURE_BIT_VG_LINEAR_GRADIENT_EXT
-
enumerator gcFEATURE_BIT_VG_MASK
-
enumerator gcFEATURE_BIT_VG_MIRROR
-
enumerator gcFEATURE_BIT_VG_GAMMA
-
enumerator gcFEATURE_BIT_VG_NEW_BLEND_MODE
-
enumerator gcFEATURE_BIT_VG_STENCIL
-
enumerator gcFEATURE_BIT_VG_SRC_PREMULTIPLIED
-
enumerator gcFEATURE_BIT_VG_HW_PREMULTIPLY
Valid only if gcFEATURE_BIT_VG_HW_PREMULTIPLY is 0
-
enumerator gcFEATURE_BIT_VG_COLOR_TRANSFORMATION
HW multiplier can accept either premultiplied or not
-
enumerator gcFEATURE_BIT_VG_LVGL_SUPPORT
-
enumerator gcFEATURE_BIT_VG_INDEX_ENDIAN
-
enumerator gcFEATURE_BIT_VG_24BIT_PLANAR
-
enumerator gcFEATURE_BIT_VG_PIXEL_MATRIX
-
enumerator gcFEATURE_BIT_VG_NEW_IMAGE_INDEX
-
enumerator gcFEATURE_BIT_VG_PARALLEL_PATHS
-
enumerator gcFEATURE_BIT_VG_STRIPE_MODE
-
enumerator gcFEATURE_BIT_VG_IM_DEC_INPUT
-
enumerator gcFEATURE_BIT_VG_GAUSSIAN_BLUR
-
enumerator gcFEATURE_BIT_VG_RECTANGLE_TILED_OUT
-
enumerator gcFEATURE_BIT_VG_TESSELLATION_TILED_OUT
-
enumerator gcFEATURE_BIT_VG_IM_REPEAT_REFLECT
-
enumerator gcFEATURE_BIT_VG_YUY2_INPUT
-
enumerator gcFEATURE_BIT_VG_YUV_INPUT
-
enumerator gcFEATURE_BIT_VG_YUV_TILED_INPUT
-
enumerator gcFEATURE_BIT_VG_AYUV_INPUT
-
enumerator gcFEATURE_BIT_VG_16PIXELS_ALIGN
-
enumerator gcFEATURE_BIT_VG_DEC_COMPRESS_2_0
-
enumerator gcFEATURE_COUNT
-
enumerator gcFEATURE_BIT_VG_IM_INDEX_FORMAT
-
enum vg_lite_quality
Values:
-
enumerator VG_LITE_HIGH
-
enumerator VG_LITE_UPPER
High quality 16x anti-aliasing path.
-
enumerator VG_LITE_MEDIUM
Upper quality 8x anti-aliasing path.
-
enumerator VG_LITE_LOW
Medium quality 4x anti-aliasing path.
-
enumerator VG_LITE_HIGH
-
enum vg_lite_format
Values:
-
enumerator VG_LITE_S8
-
enumerator VG_LITE_S16
Signed 8-bit coordinates.
-
enumerator VG_LITE_S32
Signed 16-bit coordinates.
-
enumerator VG_LITE_FP32
Signed 32-bit coordinates.
-
enumerator VG_LITE_S8
-
enum vg_lite_buffer_format
Values:
-
enumerator VG_sRGBX_8888
-
enumerator VG_sRGBA_8888
-
enumerator VG_sRGBA_8888_PRE
-
enumerator VG_sRGB_565
-
enumerator VG_sRGBA_5551
-
enumerator VG_sRGBA_4444
-
enumerator VG_sL_8
-
enumerator VG_lRGBX_8888
-
enumerator VG_lRGBA_8888
-
enumerator VG_lRGBA_8888_PRE
-
enumerator VG_lL_8
-
enumerator VG_A_8
-
enumerator VG_BW_1
-
enumerator VG_A_1
-
enumerator VG_A_4
-
enumerator VG_sRGBX_8888_PRE
-
enumerator VG_sRGB_565_PRE
-
enumerator VG_sRGBA_5551_PRE
-
enumerator VG_sRGBA_4444_PRE
-
enumerator VG_lRGBX_8888_PRE
-
enumerator VG_lRGB_565
-
enumerator VG_lRGB_565_PRE
-
enumerator VG_lRGBA_5551
-
enumerator VG_lRGBA_5551_PRE
-
enumerator VG_lRGBA_4444
-
enumerator VG_lRGBA_4444_PRE
-
enumerator VG_sXRGB_8888
-
enumerator VG_sARGB_8888
-
enumerator VG_sARGB_8888_PRE
-
enumerator VG_sARGB_1555
-
enumerator VG_sARGB_4444
-
enumerator VG_lXRGB_8888
-
enumerator VG_lARGB_8888
-
enumerator VG_lARGB_8888_PRE
-
enumerator VG_sBGRX_8888
-
enumerator VG_sBGRA_8888
-
enumerator VG_sBGRA_8888_PRE
-
enumerator VG_sBGR_565
-
enumerator VG_sBGRA_5551
-
enumerator VG_sBGRA_4444
-
enumerator VG_lBGRX_8888
-
enumerator VG_lBGRA_8888
-
enumerator VG_lBGRA_8888_PRE
-
enumerator VG_sXBGR_8888
-
enumerator VG_sABGR_8888
-
enumerator VG_sABGR_8888_PRE
-
enumerator VG_sABGR_1555
-
enumerator VG_sABGR_4444
-
enumerator VG_lXBGR_8888
-
enumerator VG_lABGR_8888
-
enumerator VG_lABGR_8888_PRE
-
enumerator VG_LITE_RGBA8888
-
enumerator VG_LITE_BGRA8888
-
enumerator VG_LITE_RGBX8888
-
enumerator VG_LITE_BGRX8888
-
enumerator VG_LITE_RGB565
-
enumerator VG_LITE_BGR565
-
enumerator VG_LITE_RGBA4444
-
enumerator VG_LITE_BGRA4444
-
enumerator VG_LITE_BGRA5551
-
enumerator VG_LITE_A4
-
enumerator VG_LITE_A8
-
enumerator VG_LITE_L8
-
enumerator VG_LITE_YUYV
-
enumerator VG_LITE_YUY2
-
enumerator VG_LITE_ANV12
-
enumerator VG_LITE_AYUY2
-
enumerator VG_LITE_NV12
-
enumerator VG_LITE_YV12
-
enumerator VG_LITE_YV24
-
enumerator VG_LITE_YV16
-
enumerator VG_LITE_NV16
-
enumerator VG_LITE_YUY2_TILED
-
enumerator VG_LITE_NV12_TILED
-
enumerator VG_LITE_ANV12_TILED
-
enumerator VG_LITE_AYUY2_TILED
-
enumerator VG_LITE_RGBA2222
-
enumerator VG_LITE_BGRA2222
-
enumerator VG_LITE_ABGR2222
-
enumerator VG_LITE_ARGB2222
-
enumerator VG_LITE_ABGR4444
-
enumerator VG_LITE_ARGB4444
-
enumerator VG_LITE_ABGR8888
-
enumerator VG_LITE_ARGB8888
-
enumerator VG_LITE_ABGR1555
-
enumerator VG_LITE_RGBA5551
-
enumerator VG_LITE_ARGB1555
-
enumerator VG_LITE_XBGR8888
-
enumerator VG_LITE_XRGB8888
-
enumerator VG_LITE_RGBA8888_ETC2_EAC
-
enumerator VG_LITE_RGB888
-
enumerator VG_LITE_BGR888
-
enumerator VG_LITE_ABGR8565
-
enumerator VG_LITE_BGRA5658
-
enumerator VG_LITE_ARGB8565
-
enumerator VG_LITE_RGBA5658
-
enumerator VG_LITE_ABGR8565_PLANAR
-
enumerator VG_LITE_BGRA5658_PLANAR
-
enumerator VG_LITE_ARGB8565_PLANAR
-
enumerator VG_LITE_RGBA5658_PLANAR
-
enumerator VG_LITE_INDEX_1
-
enumerator VG_LITE_INDEX_2
Indexed format.
-
enumerator VG_LITE_INDEX_4
-
enumerator VG_LITE_INDEX_8
-
enumerator VG_sRGBX_8888
-
enum vg_lite_image_mode
Values:
-
enumerator VG_LITE_ZERO
-
enumerator VG_LITE_NORMAL_IMAGE_MODE
-
enumerator VG_LITE_MULTIPLY_IMAGE_MODE
-
enumerator VG_LITE_STENCIL_MODE
-
enumerator VG_LITE_NONE_IMAGE_MODE
-
enumerator VG_LITE_RECOLOR_MODE
-
enumerator VG_LITE_ZERO
-
enum vg_lite_transparency
Values:
-
enumerator VG_LITE_IMAGE_OPAQUE
-
enumerator VG_LITE_IMAGE_TRANSPARENT
-
enumerator VG_LITE_IMAGE_OPAQUE
-
enum vg_lite_blend
Values:
-
enumerator VG_LITE_BLEND_NONE
-
enumerator VG_LITE_BLEND_SRC_OVER
S, No blend, Non-premultiplied
-
enumerator VG_LITE_BLEND_DST_OVER
S + (1 - Sa) * D , Non-premultiplied
-
enumerator VG_LITE_BLEND_SRC_IN
(1 - Da) * S + D , Non-premultiplied
-
enumerator VG_LITE_BLEND_DST_IN
Da * S , Non-premultiplied
-
enumerator VG_LITE_BLEND_MULTIPLY
Sa * D , Non-premultiplied
-
enumerator VG_LITE_BLEND_SCREEN
S * (1 - Da) + D * (1 - Sa) + S * D , Non-premultiplied
-
enumerator VG_LITE_BLEND_DARKEN
S + D - S * D , Non-premultiplied
-
enumerator VG_LITE_BLEND_LIGHTEN
min(SrcOver, DstOver) , Non-premultiplied
-
enumerator VG_LITE_BLEND_ADDITIVE
max(SrcOver, DstOver) , Non-premultiplied
-
enumerator VG_LITE_BLEND_SUBTRACT
S + D , Non-premultiplied
-
enumerator VG_LITE_BLEND_SUBTRACT_LVGL
D * (1 - Sa) , Non-premultiplied
-
enumerator VG_LITE_BLEND_NORMAL_LVGL
D - S , Non-premultiplied
-
enumerator VG_LITE_BLEND_ADDITIVE_LVGL
S * Sa + (1 - Sa) * D , Non-premultiplied
-
enumerator VG_LITE_BLEND_MULTIPLY_LVGL
(S + D) * Sa + D * (1 - Sa) , Non-premultiplied
-
enumerator VG_LITE_BLEND_PREMULTIPLY_SRC_OVER
(S * D) * Sa + D * (1 - Sa) , Non-premultiplied
-
enumerator OPENVG_BLEND_SRC
S * Sa + (1 - Sa) * D , Non-premultiplied
-
enumerator OPENVG_BLEND_SRC_OVER
Copy SRC, no blend, Premultiplied
-
enumerator OPENVG_BLEND_DST_OVER
Porter-Duff SRC_OVER blend, Premultiplied
-
enumerator OPENVG_BLEND_SRC_IN
Porter-Duff DST_OVER blend, Premultiplied
-
enumerator OPENVG_BLEND_DST_IN
Porter-Duff SRC_IN blend, Premultiplied
-
enumerator OPENVG_BLEND_MULTIPLY
Porter-Duff DST_IN blend, Premultiplied
-
enumerator OPENVG_BLEND_SCREEN
Porter-Duff MULTIPLY blend, Premultiplied
-
enumerator OPENVG_BLEND_DARKEN
Porter-Duff SCREEN blend, Premultiplied
-
enumerator OPENVG_BLEND_LIGHTEN
Porter-Duff DARKEN blend, Premultiplied
-
enumerator OPENVG_BLEND_ADDITIVE
Porter-Duff LIGHTEN blend, Premultiplied
-
enumerator VG_LITE_BLEND_NONE
-
enum vg_lite_fill
Values:
-
enumerator VG_LITE_FILL_EVEN_ODD
-
enumerator VG_LITE_FILL_NON_ZERO
A pixel is drawn it it crosses an odd number of path pixels.
-
enumerator VG_LITE_FILL_EVEN_ODD
-
enum vg_lite_global_alpha
Values:
-
enumerator VG_LITE_NORMAL
-
enumerator VG_LITE_GLOBAL
Use original src/dst alpha value.
-
enumerator VG_LITE_SCALED
Use global src/dst alpha value to replace original src/dst alpha value.
-
enumerator VG_LITE_NORMAL
-
enum vg_lite_filter
Values:
-
enumerator VG_LITE_FILTER_POINT
-
enumerator VG_LITE_FILTER_LINEAR
Fetch the nearest image pixel.
-
enumerator VG_LITE_FILTER_BI_LINEAR
Used for linear paint.
-
enumerator VG_LITE_FILTER_GAUSSIAN
Use a 2x2 box around the image pixel and perform an interpolation.
-
enumerator VG_LITE_FILTER_POINT
-
enum vg_lite_pattern_mode
Values:
-
enumerator VG_LITE_PATTERN_COLOR
-
enumerator VG_LITE_PATTERN_PAD
Pixel outside the bounds of sourceimage should be taken as the color
-
enumerator VG_LITE_PATTERN_REPEAT
Pixel outside the bounds of sourceimage should be taken as having the same color as the closest edge pixel
-
enumerator VG_LITE_PATTERN_REFLECT
Pixel outside the bounds of sourceimage should be repeated indefinitely in all directions
-
enumerator VG_LITE_PATTERN_COLOR
-
enum vg_lite_paint_type
Values:
-
enumerator VG_LITE_PAINT_ZERO
-
enumerator VG_LITE_PAINT_COLOR
-
enumerator VG_LITE_PAINT_LINEAR_GRADIENT
-
enumerator VG_LITE_PAINT_RADIAL_GRADIENT
-
enumerator VG_LITE_PAINT_PATTERN
-
enumerator VG_LITE_PAINT_ZERO
-
enum vg_lite_gradient_spreadmode_t
Values:
-
enumerator VG_LITE_GRADIENT_SPREAD_FILL
-
enumerator VG_LITE_GRADIENT_SPREAD_PAD
-
enumerator VG_LITE_GRADIENT_SPREAD_REPEAT
-
enumerator VG_LITE_GRADIENT_SPREAD_REFLECT
-
enumerator VG_LITE_GRADIENT_SPREAD_FILL
-
enum vg_lite_compress_mode
Values:
-
enumerator VG_LITE_DEC_DISABLE
-
enumerator VG_LITE_DEC_NON_SAMPLE
disable compress
-
enumerator VG_LITE_DEC_HSAMPLE
compress ratio is 1.6 if use ARGB8888, compress ratio is 2 if use XRGB8888
-
enumerator VG_LITE_DEC_HV_SAMPLE
compress ratio is 2 if use ARGB8888, compress ratio is 2.6 if use XRGB8888
-
enumerator VG_LITE_DEC_DISABLE
-
enum vg_lite_path_type
Values:
-
enumerator VG_LITE_DRAW_ZERO
-
enumerator VG_LITE_DRAW_STROKE_PATH
-
enumerator VG_LITE_DRAW_FILL_PATH
-
enumerator VG_LITE_DRAW_FILL_STROKE_PATH
-
enumerator VG_LITE_DRAW_ZERO
-
enum vg_lite_cap_style
Values:
-
enumerator VG_LITE_CAP_BUTT
-
enumerator VG_LITE_CAP_ROUND
-
enumerator VG_LITE_CAP_SQUARE
-
enumerator VG_LITE_CAP_BUTT
-
enum vg_lite_join_style
Values:
-
enumerator VG_LITE_JOIN_MITER
-
enumerator VG_LITE_JOIN_ROUND
-
enumerator VG_LITE_JOIN_BEVEL
-
enumerator VG_LITE_JOIN_MITER
-
enum vg_lite_mask_operation
Values:
-
enumerator VG_LITE_CLEAR_MASK
-
enumerator VG_LITE_FILL_MASK
Set all dest mask values to 0
-
enumerator VG_LITE_SET_MASK
Set all dest mask values to 1
-
enumerator VG_LITE_UNION_MASK
Copy from src masklayer to dest masklayer.
-
enumerator VG_LITE_INTERSECT_MASK
Replace dest masklayer by its union with src masklayer.
-
enumerator VG_LITE_SUBTRACT_MASK
Replace dest masklayer by its intersection with src masklayer.
-
enumerator VG_LITE_CLEAR_MASK
-
enum vg_lite_orientation
Values:
-
enumerator VG_LITE_ORIENTATION_TOP_BOTTOM
-
enumerator VG_LITE_ORIENTATION_BOTTOM_TOP
-
enumerator VG_LITE_ORIENTATION_TOP_BOTTOM
-
enum vg_lite_gamma_conversion
Values:
-
enumerator VG_LITE_GAMMA_NO_CONVERSION
-
enumerator VG_LITE_GAMMA_LINEAR
Leave color as is.
-
enumerator VG_LITE_GAMMA_NON_LINEAR
Convert from sRGB to linear space.
Convert from linear to sRGB space.
-
enumerator VG_LITE_GAMMA_NO_CONVERSION
-
enum vg_lite_index_endian
Values:
-
enumerator VG_LITE_INDEX_LITTLE_ENDIAN
-
enumerator VG_LITE_INDEX_BIG_ENDIAN
Parse the index pixel from low to high, ! when using index1, the parsing order is bit0~bit7. ! when using index2, the parsing order is bit0:1,bit2:3,bit4:5.bit6:7. ! when using index4, the parsing order is bit0:3,bit4:7.
-
enumerator VG_LITE_INDEX_LITTLE_ENDIAN
Functions
-
vg_lite_error_t vg_lite_init(vg_lite_int32_t tess_width, vg_lite_int32_t tess_height)
-
vg_lite_error_t vg_lite_close(void)
-
vg_lite_error_t vg_lite_get_info(vg_lite_info_t *info)
-
vg_lite_uint32_t vg_lite_get_product_info(vg_lite_char *name, vg_lite_uint32_t *chip_id, vg_lite_uint32_t *chip_rev)
-
vg_lite_uint32_t vg_lite_query_feature(vg_lite_feature_t feature)
-
vg_lite_error_t vg_lite_finish(void)
-
vg_lite_error_t vg_lite_flush(void)
-
vg_lite_error_t vg_lite_get_register(vg_lite_uint32_t address, vg_lite_uint32_t *result)
-
vg_lite_error_t vg_lite_get_transform_matrix(vg_lite_point4_t src, vg_lite_point4_t dst, vg_lite_matrix_t *mat)
-
vg_lite_error_t vg_lite_allocate(vg_lite_buffer_t *buffer)
-
vg_lite_error_t vg_lite_free(vg_lite_buffer_t *buffer)
-
vg_lite_error_t vg_lite_upload_buffer(vg_lite_buffer_t *buffer, vg_lite_uint8_t *data[3], vg_lite_uint32_t stride[3])
-
vg_lite_error_t vg_lite_map(vg_lite_buffer_t *buffer, vg_lite_map_flag_t flag, int32_t fd)
-
vg_lite_error_t vg_lite_unmap(vg_lite_buffer_t *buffer)
-
vg_lite_error_t vg_lite_flush_mapped_buffer(vg_lite_buffer_t *buffer)
-
vg_lite_error_t vg_lite_clear(vg_lite_buffer_t *target, vg_lite_rectangle_t *rect, vg_lite_color_t color)
-
vg_lite_error_t vg_lite_blit(vg_lite_buffer_t *target, vg_lite_buffer_t *source, vg_lite_matrix_t *matrix, vg_lite_blend_t blend, vg_lite_color_t color, vg_lite_filter_t filter)
-
vg_lite_error_t vg_lite_blit_rect(vg_lite_buffer_t *target, vg_lite_buffer_t *source, vg_lite_rectangle_t *rect, vg_lite_matrix_t *matrix, vg_lite_blend_t blend, vg_lite_color_t color, vg_lite_filter_t filter)
-
vg_lite_error_t vg_lite_blit2(vg_lite_buffer_t *target, vg_lite_buffer_t *source0, vg_lite_buffer_t *source1, vg_lite_matrix_t *matrix0, vg_lite_matrix_t *matrix1, vg_lite_blend_t blend, vg_lite_filter_t filter)
-
vg_lite_error_t vg_lite_copy_image(vg_lite_buffer_t *target, vg_lite_buffer_t *source, vg_lite_int32_t sx, vg_lite_int32_t sy, vg_lite_int32_t dx, vg_lite_int32_t dy, vg_lite_int32_t width, vg_lite_int32_t height)
-
vg_lite_error_t vg_lite_draw(vg_lite_buffer_t *target, vg_lite_path_t *path, vg_lite_fill_t fill_rule, vg_lite_matrix_t *matrix, vg_lite_blend_t blend, vg_lite_color_t color)
-
vg_lite_error_t vg_lite_set_stroke(vg_lite_path_t *path, vg_lite_cap_style_t cap_style, vg_lite_join_style_t join_style, vg_lite_float_t line_width, vg_lite_float_t miter_limit, vg_lite_float_t *dash_pattern, vg_lite_uint32_t pattern_count, vg_lite_float_t dash_phase, vg_lite_color_t color)
-
vg_lite_error_t vg_lite_update_stroke(vg_lite_path_t *path)
-
vg_lite_error_t vg_lite_set_path_type(vg_lite_path_t *path, vg_lite_path_type_t path_type)
-
vg_lite_error_t vg_lite_clear_path(vg_lite_path_t *path)
-
vg_lite_error_t vg_lite_upload_path(vg_lite_path_t *path)
-
vg_lite_error_t vg_lite_init_path(vg_lite_path_t *path, vg_lite_format_t format, vg_lite_quality_t quality, vg_lite_uint32_t length, vg_lite_pointer data, vg_lite_float_t min_x, vg_lite_float_t min_y, vg_lite_float_t max_x, vg_lite_float_t max_y)
-
vg_lite_error_t vg_lite_init_arc_path(vg_lite_path_t *path, vg_lite_format_t format, vg_lite_quality_t quality, vg_lite_uint32_t length, vg_lite_pointer data, vg_lite_float_t min_x, vg_lite_float_t min_y, vg_lite_float_t max_x, vg_lite_float_t max_y)
-
vg_lite_uint32_t vg_lite_get_path_length(vg_lite_uint8_t *opcode, vg_lite_uint32_t count, vg_lite_format_t format)
-
vg_lite_error_t vg_lite_append_path(vg_lite_path_t *path, vg_lite_uint8_t *opcode, vg_lite_pointer data, vg_lite_uint32_t seg_count)
-
vg_lite_error_t vg_lite_set_CLUT(vg_lite_uint32_t count, vg_lite_uint32_t *colors)
-
vg_lite_error_t vg_lite_draw_pattern(vg_lite_buffer_t *target, vg_lite_path_t *path, vg_lite_fill_t fill_rule, vg_lite_matrix_t *path_matrix, vg_lite_buffer_t *pattern_image, vg_lite_matrix_t *pattern_matrix, vg_lite_blend_t blend, vg_lite_pattern_mode_t pattern_mode, vg_lite_color_t pattern_color, vg_lite_color_t color, vg_lite_filter_t filter)
-
vg_lite_error_t vg_lite_init_grad(vg_lite_linear_gradient_t *grad)
-
vg_lite_error_t vg_lite_clear_grad(vg_lite_linear_gradient_t *grad)
-
vg_lite_error_t vg_lite_update_grad(vg_lite_linear_gradient_t *grad)
-
vg_lite_matrix_t *vg_lite_get_grad_matrix(vg_lite_linear_gradient_t *grad)
-
vg_lite_error_t vg_lite_set_grad(vg_lite_linear_gradient_t *grad, vg_lite_uint32_t count, vg_lite_uint32_t *colors, vg_lite_uint32_t *stops)
-
vg_lite_error_t vg_lite_draw_grad(vg_lite_buffer_t *target, vg_lite_path_t *path, vg_lite_fill_t fill_rule, vg_lite_matrix_t *matrix, vg_lite_linear_gradient_t *grad, vg_lite_blend_t blend)
-
vg_lite_error_t vg_lite_clear_linear_grad(vg_lite_ext_linear_gradient_t *grad)
-
vg_lite_error_t vg_lite_update_linear_grad(vg_lite_ext_linear_gradient_t *grad)
-
vg_lite_matrix_t *vg_lite_get_linear_grad_matrix(vg_lite_ext_linear_gradient_t *grad)
-
vg_lite_error_t vg_lite_set_linear_grad(vg_lite_ext_linear_gradient_t *grad, vg_lite_uint32_t count, vg_lite_color_ramp_t *color_ramp, vg_lite_linear_gradient_parameter_t grad_param, vg_lite_gradient_spreadmode_t spread_mode, vg_lite_uint8_t pre_mult)
-
vg_lite_error_t vg_lite_draw_linear_grad(vg_lite_buffer_t *target, vg_lite_path_t *path, vg_lite_fill_t fill_rule, vg_lite_matrix_t *path_matrix, vg_lite_ext_linear_gradient_t *grad, vg_lite_color_t paint_color, vg_lite_blend_t blend, vg_lite_filter_t filter)
-
vg_lite_error_t vg_lite_clear_radial_grad(vg_lite_radial_gradient_t *grad)
-
vg_lite_error_t vg_lite_update_radial_grad(vg_lite_radial_gradient_t *grad)
-
vg_lite_matrix_t *vg_lite_get_radial_grad_matrix(vg_lite_radial_gradient_t *grad)
-
vg_lite_error_t vg_lite_set_radial_grad(vg_lite_radial_gradient_t *grad, vg_lite_uint32_t count, vg_lite_color_ramp_t *color_ramp, vg_lite_radial_gradient_parameter_t grad_param, vg_lite_gradient_spreadmode_t spread_mode, vg_lite_uint8_t pre_mult)
-
vg_lite_error_t vg_lite_draw_radial_grad(vg_lite_buffer_t *target, vg_lite_path_t *path, vg_lite_fill_t fill_rule, vg_lite_matrix_t *path_matrix, vg_lite_radial_gradient_t *grad, vg_lite_color_t paint_color, vg_lite_blend_t blend, vg_lite_filter_t filter)
-
vg_lite_error_t vg_lite_identity(vg_lite_matrix_t *matrix)
-
vg_lite_error_t vg_lite_translate(vg_lite_float_t x, vg_lite_float_t y, vg_lite_matrix_t *matrix)
-
vg_lite_error_t vg_lite_scale(vg_lite_float_t scale_x, vg_lite_float_t scale_y, vg_lite_matrix_t *matrix)
-
vg_lite_error_t vg_lite_rotate(vg_lite_float_t degrees, vg_lite_matrix_t *matrix)
-
vg_lite_error_t vg_lite_set_scissor(vg_lite_int32_t x, vg_lite_int32_t y, vg_lite_int32_t right, vg_lite_int32_t bottom)
-
vg_lite_error_t vg_lite_scissor_rects(vg_lite_uint32_t nums, vg_lite_rectangle_t rect[])
-
vg_lite_error_t vg_lite_enable_scissor(void)
-
vg_lite_error_t vg_lite_disable_scissor(void)
-
vg_lite_error_t vg_lite_get_mem_size(vg_lite_uint32_t *size)
-
vg_lite_error_t vg_lite_source_global_alpha(vg_lite_global_alpha_t alpha_mode, vg_lite_uint8_t alpha_value)
-
vg_lite_error_t vg_lite_dest_global_alpha(vg_lite_global_alpha_t alpha_mode, vg_lite_uint8_t alpha_value)
-
vg_lite_error_t vg_lite_set_color_key(vg_lite_color_key4_t colorkey)
-
vg_lite_error_t vg_lite_enable_dither(void)
-
vg_lite_error_t vg_lite_disable_dither(void)
-
vg_lite_error_t vg_lite_set_tess_buffer(vg_lite_uint32_t physical, vg_lite_uint32_t size)
-
vg_lite_error_t vg_lite_set_command_buffer_size(vg_lite_uint32_t size)
-
vg_lite_error_t vg_lite_set_command_buffer(vg_lite_uint32_t physical, vg_lite_uint32_t size)
- vg_lite_error_t vg_lite_set_pixel_matrix