Mobile native Wearable native

TBM Surface

The Tizen Buffer Manager (TBM) surface provides functions for the graphic buffer in Tizen. It provides the abstraction interface for the graphic buffer and the user interface for the TBM surface. It supports the RGB and YUV graphic formats, as well as multiple plane graphic buffers.

The TBM surface provides the following main features:

  • Creating a surface with defined width, height, and format
  • Getting a format list
  • Accessing the surface
  • Getting surface and plane information

The TBM surface provides various format typedefs. However, check that the system supports the graphic format in question.

Get surface and plane information using the tbm_surface_map() or the tbm_surface_get_info() function. The information of surface is assigned in the struct of tbm_surface_info_s.

Get a plane pointer in the surface and store data in the low level graphic buffer using the pointer of each plane.

Table: Surface information
Information Description
width Surface width
height Surface height
bpp Surface BPP
size Surface size
num_planes Number of planes
Table: Plane information
Information Description
size Plane size
offset Plane offset
stride Plane stride
ptr Plane pointer
Go to top