From 71e48c0526cc95bf2ed7c39429e59f6a8a045260 Mon Sep 17 00:00:00 2001 From: Junseok Kim Date: Wed, 31 Jan 2024 17:58:47 +0900 Subject: [PATCH] headers: Remove version branching by profile Change-Id: Ib401f650a0703eddf74975f2559bf860e8cb3a32 --- include/tbm_bo.h | 34 ++++++------ include/tbm_bufmgr.h | 4 +- include/tbm_surface.h | 30 +++++------ include/tbm_surface_internal.h | 18 +++---- include/tbm_type.h | 118 ++++++++++++++++++++--------------------- include/tbm_type_common.h | 18 +++---- 6 files changed, 111 insertions(+), 111 deletions(-) diff --git a/include/tbm_bo.h b/include/tbm_bo.h index 05f508a..5f504b7 100644 --- a/include/tbm_bo.h +++ b/include/tbm_bo.h @@ -56,7 +56,7 @@ extern "C" { * #TBM_BO_NONCACHABLE indicates non-cachable memory\n * #TBM_BO_WC indicates write-combine memory\n * #TBM_BO_VENDOR indicates vendor specific memory: it depends on the tbm backend - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @param[in] bufmgr : the buffer manager * @param[in] size : the size of buffer object * @param[in] flags : the flags of memory type @@ -88,7 +88,7 @@ tbm_bo tbm_bo_alloc(tbm_bufmgr bufmgr, int size, int flags); /** * @brief Increases the reference count of bo. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @param[in] bo : the buffer object * @return a buffer object * @retval #tbm_bo @@ -117,7 +117,7 @@ tbm_bo tbm_bo_ref(tbm_bo bo); /** * @brief Decreases the reference count of bo - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @param[in] bo : the buffer object * @see tbm_bo_ref() * @see tbm_bo_alloc() @@ -155,7 +155,7 @@ void tbm_bo_unref(tbm_bo bo); * #TBM_OPTION_READ indicates the accss option to read.\n * #TBM_OPTION_WRITE indicates the access option to write.\n * #TBM_OPTION_VENDOR indicates the vendor specific option that depends on the backend. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @param[in] bo : the buffer object * @param[in] device : the device type to get a handle * @param[in] opt : the option to access the buffer object @@ -198,7 +198,7 @@ tbm_bo_handle tbm_bo_map(tbm_bo bo, int device, int opt); /** * @brief Unmaps the buffer object. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @param[in] bo : the buffer object * @return 1 if this function succeeds, otherwise 0. * @see tbm_bo_map() @@ -236,7 +236,7 @@ int tbm_bo_unmap(tbm_bo bo); * #TBM_DEVICE_3D indicates the 3D memory handle.\n * #TBM_DEVICE_CPU indicates the virtual memory handle.\n * #TBM_DEVICE_MM indicates the multimedia handle. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @param[in] bo : the buffer object * @param[in] device : the device type to get a handle * @return the handle of the buffer object @@ -274,7 +274,7 @@ tbm_bo_handle tbm_bo_get_handle(tbm_bo bo, int device); /** * @brief Exports the buffer object by key. * @details The tbm_bo can be exported to the anther process with the unique key associated with the the tbm_bo. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @param[in] bo : the buffer object * @return key associated with the buffer object * @retval #tbm_key @@ -309,7 +309,7 @@ tbm_key tbm_bo_export(tbm_bo bo); /** * @brief Exports the buffer object by fd. * @details The tbm_bo can be exported to the anther process with the unique fd associated with the the tbm_bo. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @remarks You must release the fd using close(). * @param[in] bo : the buffer object * @return fd associated with the buffer object @@ -345,7 +345,7 @@ tbm_fd tbm_bo_export_fd(tbm_bo bo); /** * @brief Imports the buffer object associated with the key. * @details The reference count of the tbm_bo is 1. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @param[in] bufmgr : the buffer manager * @param[in] key : the key associated with the buffer object * @return a buffer object @@ -382,7 +382,7 @@ tbm_bo tbm_bo_import(tbm_bufmgr bufmgr, tbm_key key); /** * @brief Imports the buffer object associated with the fd. * @details The reference count of the tbm_bo is 1. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @remarks You must release the fd using close(). * @param[in] bufmgr : the buffer manager * @param[in] fd : the fd associated with the buffer object @@ -419,7 +419,7 @@ tbm_bo tbm_bo_import_fd(tbm_bufmgr bufmgr, tbm_fd fd); /** * @brief Gets the size of a bo. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @param[in] bo : the buffer object * @return 1 if this function succeeds, otherwise 0. * @see tbm_bo_alloc() @@ -446,7 +446,7 @@ int tbm_bo_size(tbm_bo bo); /** * @brief Gets the state where the buffer object is locked. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @param[in] bo : the buffer object * @return 1 if this bo is locked, otherwise 0. * @see tbm_bo_map() @@ -477,7 +477,7 @@ int tbm_bo_locked(tbm_bo bo); /** * @brief Swaps the buffer object. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @param[in] bo1 : the buffer object * @param[in] bo2 : the buffer object * @return 1 if this function succeeds, otherwise 0. @@ -516,7 +516,7 @@ int tbm_bo_swap(tbm_bo bo1, tbm_bo bo2); /** * @brief Adds a user_data to the buffer object. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @param[in] bo : the buffer object * @param[in] key : the key associated with the user_data * @param[in] data_free_func : the function pointer to free the user_data @@ -572,7 +572,7 @@ int tbm_bo_add_user_data(tbm_bo bo, unsigned long key, /** * @brief Deletes the user_data in the buffer object. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @param[in] bo : the buffer object * @param[in] key : the key associated with the user_date * @return 1 if this function succeeds, otherwise 0. @@ -623,7 +623,7 @@ int tbm_bo_delete_user_data(tbm_bo bo, unsigned long key); /** * @brief Sets a user_date to the buffer object. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @param[in] bo : the buffer object * @param[in] key : the key associated with the user_date * @param[in] data : a pointer of the user_data @@ -675,7 +675,7 @@ int tbm_bo_set_user_data(tbm_bo bo, unsigned long key, void *data); /** * @brief Gets a user_data from the buffer object with the key. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @param[in] bo : the buffer object * @param[in] key : the key associated with the user_date * @param[out] data : to get the user data diff --git a/include/tbm_bufmgr.h b/include/tbm_bufmgr.h index 250274e..10e8669 100644 --- a/include/tbm_bufmgr.h +++ b/include/tbm_bufmgr.h @@ -61,7 +61,7 @@ extern "C" { * BUFMGR_MAP_CACHE default is true\n * true : use map cache flushing\n * false : to use map cache flushing - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @param[in] fd : file descripter of the system buffer manager * @return a buffer manager * @retval #tbm_bufmgr @@ -86,7 +86,7 @@ tbm_bufmgr tbm_bufmgr_init(int fd); /** * @brief Deinitializes the buffer manager. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @param[in] bufmgr : the buffer manager * @see tbm_bufmgr_init() * @par Example diff --git a/include/tbm_surface.h b/include/tbm_surface.h index cde34a8..b1607cb 100644 --- a/include/tbm_surface.h +++ b/include/tbm_surface.h @@ -47,7 +47,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. /** * @brief Enumeration for tbm_surface error type. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ typedef enum { TBM_SURFACE_ERROR_NONE = TIZEN_ERROR_NONE, /**< Successful */ @@ -57,25 +57,25 @@ typedef enum { /** * @brief Definition for the max number of TBM surface plane. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ #define TBM_SURF_PLANE_MAX 4 /* option to map the tbm_surface */ /** * @brief Definition for the access option to read. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ #define TBM_SURF_OPTION_READ (1 << 0) /** * @brief Definition for the access option to write. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ #define TBM_SURF_OPTION_WRITE (1 << 1) /** * @brief Definition for the TBM plane struct. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ typedef struct _tbm_surface_plane { unsigned char *ptr; /**< Plane pointer */ @@ -90,7 +90,7 @@ typedef struct _tbm_surface_plane { /** * @brief Definition for the TBM surface information struct. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ typedef struct _tbm_surface_info { uint32_t width; /**< TBM surface width */ @@ -113,7 +113,7 @@ extern "C" { /** * @brief Queries surface format list and number of format supported by the system. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * * @remarks You must release the formats using free(). * @@ -153,7 +153,7 @@ int tbm_surface_query_formats(uint32_t **formats, uint32_t *num); * @brief Creates the tbm_surface. * @details This function creates the tbm_surface with the given width, height, and format. * - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * * @remark The specific error code can be obtained using the get_last_result() method. Error codes are described in Exception section. * @@ -189,7 +189,7 @@ tbm_surface_h tbm_surface_create(int width, int height, tbm_format format); /** * @brief Destroys the tbm_surface. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * * @param[in] surface The #tbm_surface_h * @@ -224,7 +224,7 @@ int tbm_surface_destroy(tbm_surface_h surface); * #TBM_SURF_OPTION_READ indicates access option to read. \n * #TBM_SURF_OPTION_WRITE indicates access option to write. * - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * * @param[in] surface The #tbm_surface_h * @param[in] opt The option to access the tbm_surface @@ -260,7 +260,7 @@ int tbm_surface_map(tbm_surface_h surface, int opt, tbm_surface_info_s *info); /** * @brief Unmaps the tbm_surface. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * * @param[in] surface The #tbm_surface_h * @@ -297,7 +297,7 @@ int tbm_surface_unmap(tbm_surface_h surface); * The information of tbm_surface has width, height, format, bpp, size, number of planes and information of planes. \n * The information of planes has stride, offset, size and pointer of plane. * - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * * @param[in] surface The #tbm_surface_h * @param[out] info The information of the tbm_surface @@ -331,7 +331,7 @@ int tbm_surface_get_info(tbm_surface_h surface, tbm_surface_info_s *info); /** * @brief Gets the width of the tbm_surface. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * * @param[in] surface The #tbm_surface_h * @@ -362,7 +362,7 @@ int tbm_surface_get_width(tbm_surface_h surface); /** * @brief Gets the height of the tbm_surface. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * * @param[in] surface The #tbm_surface_h * @@ -393,7 +393,7 @@ int tbm_surface_get_height(tbm_surface_h surface); /** * @brief Gets the format of the tbm_surface. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * * @remark The specific error code can be obtained using the get_last_result() method. Error codes are described in Exception section. * diff --git a/include/tbm_surface_internal.h b/include/tbm_surface_internal.h index bd1813e..0d26b0d 100644 --- a/include/tbm_surface_internal.h +++ b/include/tbm_surface_internal.h @@ -42,7 +42,7 @@ extern "C" { /** * @brief Queries formats which the system can support. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @remarks The formats must be released using free(). * @param[in] bufmgr : the buffer manager * @param[out] *formats : format array which the system can support. This pointer has to be freed by user. @@ -71,7 +71,7 @@ int tbm_surface_internal_query_supported_formats(uint32_t **formats, /** * @brief Creates the tbm_surface with memory type. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @details * #TBM_BO_DEFAULT is default memory: it depends on the backend\n * #TBM_BO_SCANOUT is scanout memory\n @@ -110,7 +110,7 @@ tbm_surface_h tbm_surface_internal_create_with_flags(int width, int height, /** * @brief Creates the tbm_surface with buffer objects. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @param[in] bufmgr : the buffer manager * @param[in] width : the width of surface * @param[in] height : the height of surface @@ -177,7 +177,7 @@ void tbm_surface_internal_unref(tbm_surface_h surface); /** * @brief Gets the number of buffer objects associated with the tbm_surface. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @param[in] surface : the tbm_surface_h * @return the number of buffer objects associated with the tbm_surface_h, otherwise 0. * @par Example @@ -200,7 +200,7 @@ int tbm_surface_internal_get_num_bos(tbm_surface_h surface); /** * @brief Gets the buffor object by the bo_index. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @param[in] surface : the tbm_surface_h * @param[in] bo_idx : the bo index in the the tbm_surface * @return the buffer object, otherwise NULL. @@ -230,7 +230,7 @@ tbm_bo tbm_surface_internal_get_bo(tbm_surface_h surface, int bo_idx); /** * @brief Gets the size of the surface. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @param[in] surface : the tbm_surface_h * @return the size of tbm_surface, otherwise 0. * @par Example @@ -251,7 +251,7 @@ unsigned int tbm_surface_internal_get_size(tbm_surface_h surface); /** * @brief Gets size, offset and pitch data of plane by the plane_index. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @param[in] surface : the tbm_surface_h * @param[in] plane_idx : the bo index in the the tbm_surface * @param[out] size : the size of plane in tbm_surface @@ -280,7 +280,7 @@ int tbm_surface_internal_get_plane_data(tbm_surface_h surface, int plane_idx, /** * @brief Gets number of planes by the format. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @param[in] format : the format of surface * @return number of planes by the format, otherwise 0. * @par Example @@ -300,7 +300,7 @@ int tbm_surface_internal_get_num_planes(tbm_format format); /** * @brief Gets bpp by the format. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @param[in] format : the format of surface * @return bpp by the format, otherwise 0. * @par Example diff --git a/include/tbm_type.h b/include/tbm_type.h index d1ce3f0..88a3bdf 100644 --- a/include/tbm_type.h +++ b/include/tbm_type.h @@ -43,12 +43,12 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. /** * @brief Definition for the Tizen buffer surface. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ typedef struct _tbm_surface *tbm_surface_h; /** * @brief Definition for the Tizen buffer surface format. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ typedef uint32_t tbm_format; @@ -58,240 +58,240 @@ typedef uint32_t tbm_format; /* color index */ /** * @brief Definition for the TBM surface format C8 ([7:0] C). - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ #define TBM_FORMAT_C8 __tbm_fourcc_code('C', '8', ' ', ' ') /* 8 bpp RGB */ /** * @brief Definition for the TBM surface format RGB322 ([7:0] R:G:B 3:3:2). - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ #define TBM_FORMAT_RGB332 __tbm_fourcc_code('R', 'G', 'B', '8') /** * @brief Definition for the TBM surface format RGB233 ([7:0] B:G:R 2:3:3). - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ #define TBM_FORMAT_BGR233 __tbm_fourcc_code('B', 'G', 'R', '8') /* 16 bpp RGB */ /** * @brief Definition for the TBM surface format XRGB4444 ([15:0] x:R:G:B 4:4:4:4 little endian). - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ #define TBM_FORMAT_XRGB4444 __tbm_fourcc_code('X', 'R', '1', '2') /** * @brief Definition for the TBM surface format XBRG4444 ([15:0] x:B:G:R 4:4:4:4 little endian). - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ #define TBM_FORMAT_XBGR4444 __tbm_fourcc_code('X', 'B', '1', '2') /** * @brief Definition for the TBM surface format RGBX4444 ([15:0] R:G:B:x 4:4:4:4 little endian). - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ #define TBM_FORMAT_RGBX4444 __tbm_fourcc_code('R', 'X', '1', '2') /** * @brief Definition for the TBM surface format BGRX4444 ([15:0] B:G:R:x 4:4:4:4 little endian). - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ #define TBM_FORMAT_BGRX4444 __tbm_fourcc_code('B', 'X', '1', '2') /** * @brief Definition for the TBM surface format ARGB4444 ([15:0] A:R:G:B 4:4:4:4 little endian). - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ #define TBM_FORMAT_ARGB4444 __tbm_fourcc_code('A', 'R', '1', '2') /** * @brief Definition for the TBM surface format ABGR4444 ([15:0] A:B:G:R 4:4:4:4 little endian). - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ #define TBM_FORMAT_ABGR4444 __tbm_fourcc_code('A', 'B', '1', '2') /** * @brief Definition for the TBM surface format RGBA4444 ([15:0] R:G:B:A 4:4:4:4 little endian). - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ #define TBM_FORMAT_RGBA4444 __tbm_fourcc_code('R', 'A', '1', '2') /** * @brief Definition for the TBM surface format BGRA4444 ([15:0] B:G:R:A 4:4:4:4 little endian). - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ #define TBM_FORMAT_BGRA4444 __tbm_fourcc_code('B', 'A', '1', '2') /** * @brief Definition for the TBM surface format XRGB1555 ([15:0] x:R:G:B 1:5:5:5 little endian). - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ #define TBM_FORMAT_XRGB1555 __tbm_fourcc_code('X', 'R', '1', '5') /** * @brief Definition for the TBM surface format XBGR1555 ([15:0] x:B:G:R 1:5:5:5 little endian). - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ #define TBM_FORMAT_XBGR1555 __tbm_fourcc_code('X', 'B', '1', '5') /** * @brief Definition for the TBM surface format RGBX5551 ([15:0] R:G:B:x 5:5:5:1 little endian). - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ #define TBM_FORMAT_RGBX5551 __tbm_fourcc_code('R', 'X', '1', '5') /** * @brief Definition for the TBM surface format BGRX5551 ([15:0] B:G:R:x 5:5:5:1 little endian). - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ #define TBM_FORMAT_BGRX5551 __tbm_fourcc_code('B', 'X', '1', '5') /** * @brief Definition for the TBM surface format ARGB1555 ([15:0] A:R:G:B 1:5:5:5 little endian). - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ #define TBM_FORMAT_ARGB1555 __tbm_fourcc_code('A', 'R', '1', '5') /** * @brief Definition for the TBM surface format ABGR1555 ([15:0] A:B:G:R 1:5:5:5 little endian). - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ #define TBM_FORMAT_ABGR1555 __tbm_fourcc_code('A', 'B', '1', '5') /** * @brief Definition for the TBM surface format RGBA5551 ([15:0] R:G:B:A 5:5:5:1 little endian). - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ #define TBM_FORMAT_RGBA5551 __tbm_fourcc_code('R', 'A', '1', '5') /** * @brief Definition for the TBM surface format BGRA5551 ([15:0] B:G:R:A 5:5:5:1 little endian). - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ #define TBM_FORMAT_BGRA5551 __tbm_fourcc_code('B', 'A', '1', '5') /** * @brief Definition for the TBM surface format RGB565 ([15:0] R:G:B 5:6:5 little endian). - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ #define TBM_FORMAT_RGB565 __tbm_fourcc_code('R', 'G', '1', '6') /** * @brief Definition for the TBM surface format BGR565 ([15:0] B:G:R 5:6:5 little endian). - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ #define TBM_FORMAT_BGR565 __tbm_fourcc_code('B', 'G', '1', '6') /* 24 bpp RGB */ /** * @brief Definition for the TBM surface format RGB888 ([23:0] R:G:B little endian). - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ #define TBM_FORMAT_RGB888 __tbm_fourcc_code('R', 'G', '2', '4') /** * @brief Definition for the TBM surface format BGR888 ([23:0] B:G:R little endian). - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ #define TBM_FORMAT_BGR888 __tbm_fourcc_code('B', 'G', '2', '4') /* 32 bpp RGB */ /** * @brief Definition for the TBM surface format XRGB8888 ([31:0] x:R:G:B 8:8:8:8 little endian). - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ #define TBM_FORMAT_XRGB8888 __tbm_fourcc_code('X', 'R', '2', '4') /** * @brief Definition for the TBM surface format XBGR8888 ([31:0] x:B:G:R 8:8:8:8 little endian). - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ #define TBM_FORMAT_XBGR8888 __tbm_fourcc_code('X', 'B', '2', '4') /** * @brief Definition for the TBM surface format RGBX8888 ([31:0] R:G:B:x 8:8:8:8 little endian). - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ #define TBM_FORMAT_RGBX8888 __tbm_fourcc_code('R', 'X', '2', '4') /** * @brief Definition for the TBM surface format BGRX8888 ([31:0] B:G:R:x 8:8:8:8 little endian). - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ #define TBM_FORMAT_BGRX8888 __tbm_fourcc_code('B', 'X', '2', '4') /** * @brief Definition for the TBM surface format ARGB8888 ([31:0] A:R:G:B 8:8:8:8 little endian). - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ #define TBM_FORMAT_ARGB8888 __tbm_fourcc_code('A', 'R', '2', '4') /** * @brief Definition for the TBM surface format ABGR8888 ([31:0] [31:0] A:B:G:R 8:8:8:8 little endian). - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ #define TBM_FORMAT_ABGR8888 __tbm_fourcc_code('A', 'B', '2', '4') /** * @brief Definition for the TBM surface format RGBA8888 ([31:0] R:G:B:A 8:8:8:8 little endian). - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ #define TBM_FORMAT_RGBA8888 __tbm_fourcc_code('R', 'A', '2', '4') /** * @brief Definition for the TBM surface format BGRA8888 ([31:0] B:G:R:A 8:8:8:8 little endian). - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ #define TBM_FORMAT_BGRA8888 __tbm_fourcc_code('B', 'A', '2', '4') /** * @brief Definition for the TBM surface format XRGB2101010 ([31:0] x:R:G:B 2:10:10:10 little endian). - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ #define TBM_FORMAT_XRGB2101010 __tbm_fourcc_code('X', 'R', '3', '0') /** * @brief Definition for the TBM surface format XBGR2101010 ([31:0] x:B:G:R 2:10:10:10 little endian). - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ #define TBM_FORMAT_XBGR2101010 __tbm_fourcc_code('X', 'B', '3', '0') /** * @brief Definition for the TBM surface format RGBX1010102 ([31:0] R:G:B:x 10:10:10:2 little endian). - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ #define TBM_FORMAT_RGBX1010102 __tbm_fourcc_code('R', 'X', '3', '0') /** * @brief Definition for the TBM surface format BGRX1010102 ([31:0] B:G:R:x 10:10:10:2 little endian). - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ #define TBM_FORMAT_BGRX1010102 __tbm_fourcc_code('B', 'X', '3', '0') /** * @brief Definition for the TBM surface format ARGB2101010 ([31:0] A:R:G:B 2:10:10:10 little endian). - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ #define TBM_FORMAT_ARGB2101010 __tbm_fourcc_code('A', 'R', '3', '0') /** * @brief Definition for the TBM surface format ABGR2101010 ([31:0] A:B:G:R 2:10:10:10 little endian). - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ #define TBM_FORMAT_ABGR2101010 __tbm_fourcc_code('A', 'B', '3', '0') /** * @brief Definition for the TBM surface format RGBA1010102 ([31:0] R:G:B:A 10:10:10:2 little endian). - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ #define TBM_FORMAT_RGBA1010102 __tbm_fourcc_code('R', 'A', '3', '0') /** * @brief Definition for the TBM surface format BGRA1010102 ([31:0] B:G:R:A 10:10:10:2 little endian). - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ #define TBM_FORMAT_BGRA1010102 __tbm_fourcc_code('B', 'A', '3', '0') /* */ /* packed YCbCr */ /** * @brief Definition for the TBM surface format YUYV ([31:0] Cr0:Y1:Cb0:Y0 8:8:8:8 little endian). - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ #define TBM_FORMAT_YUYV __tbm_fourcc_code('Y', 'U', 'Y', 'V') /** * @brief Definition for the TBM surface format YVYU ([31:0] Cb0:Y1:Cr0:Y0 8:8:8:8 little endian). - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ #define TBM_FORMAT_YVYU __tbm_fourcc_code('Y', 'V', 'Y', 'U') /* */ /** * @brief Definition for the TBM surface format UYVY ([31:0] Y1:Cr0:Y0:Cb0 8:8:8:8 little endian). - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ #define TBM_FORMAT_UYVY __tbm_fourcc_code('U', 'Y', 'V', 'Y') /** * @brief Definition for the TBM surface format VYUY ([31:0] Y1:Cb0:Y0:Cr0 8:8:8:8 little endian). - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ #define TBM_FORMAT_VYUY __tbm_fourcc_code('V', 'Y', 'U', 'Y') /** * @brief Definition for the TBM surface format AYUV ([31:0] A:Y:Cb:Cr 8:8:8:8 little endian). - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ #define TBM_FORMAT_AYUV __tbm_fourcc_code('A', 'Y', 'U', 'V') @@ -304,22 +304,22 @@ typedef uint32_t tbm_format; */ /** * @brief Definition for the TBM surface format NV12 (2x2 subsampled Cr:Cb plane). - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ #define TBM_FORMAT_NV12 __tbm_fourcc_code('N', 'V', '1', '2') /** * @brief Definition for the TBM surface format NV21 (2x2 subsampled Cb:Cr plane). - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ #define TBM_FORMAT_NV21 __tbm_fourcc_code('N', 'V', '2', '1') /* */ /** * @brief Definition for the TBM surface format NV16 (2x1 subsampled Cr:Cb plane). - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ #define TBM_FORMAT_NV16 __tbm_fourcc_code('N', 'V', '1', '6') /** * @brief Definition for the TBM surface format NV61 (2x1 subsampled Cb:Cr plane). - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ #define TBM_FORMAT_NV61 __tbm_fourcc_code('N', 'V', '6', '1') @@ -338,47 +338,47 @@ typedef uint32_t tbm_format; #define TBM_FORMAT_YUV410 __tbm_fourcc_code('Y', 'U', 'V', '9') /** * @brief Definition for the TBM surface format YVU410 (4x4 subsampled Cr (1) and Cb (2) planes). - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ #define TBM_FORMAT_YVU410 __tbm_fourcc_code('Y', 'V', 'U', '9') /** * @brief Definition for the TBM surface format YUV411 (4x1 subsampled Cb (1) and Cr (2) planes). - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ #define TBM_FORMAT_YUV411 __tbm_fourcc_code('Y', 'U', '1', '1') /** * @brief Definition for the TBM surface format YVU411 (4x1 subsampled Cr (1) and Cb (2) planes). - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ #define TBM_FORMAT_YVU411 __tbm_fourcc_code('Y', 'V', '1', '1') /** * @brief Definition for the TBM surface format YUV420 (2x2 subsampled Cb (1) and Cr (2) planes). - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ #define TBM_FORMAT_YUV420 __tbm_fourcc_code('Y', 'U', '1', '2') /** * @brief Definition for the TBM surface format YVU420 (2x2 subsampled Cr (1) and Cb (2) planes). - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ #define TBM_FORMAT_YVU420 __tbm_fourcc_code('Y', 'V', '1', '2') /** * @brief Definition for the TBM surface format YUV422 (2x1 subsampled Cb (1) and Cr (2) planes). - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ #define TBM_FORMAT_YUV422 __tbm_fourcc_code('Y', 'U', '1', '6') /** * @brief Definition for the TBM surface format YVU422 (2x1 subsampled Cr (1) and Cb (2) planes). - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ #define TBM_FORMAT_YVU422 __tbm_fourcc_code('Y', 'V', '1', '6') /** * @brief Definition for the TBM surface format YUV444 (non-subsampled Cb (1) and Cr (2) planes). - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ #define TBM_FORMAT_YUV444 __tbm_fourcc_code('Y', 'U', '2', '4') /** * @brief Definition for the TBM surface format YVU444 (non-subsampled Cr (1) and Cb (2) planes). - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ #define TBM_FORMAT_YVU444 __tbm_fourcc_code('Y', 'V', '2', '4') diff --git a/include/tbm_type_common.h b/include/tbm_type_common.h index 9831e88..bb023fd 100644 --- a/include/tbm_type_common.h +++ b/include/tbm_type_common.h @@ -47,25 +47,25 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. /** * @brief Definition for the tizen buffer manager - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ typedef struct _tbm_bufmgr *tbm_bufmgr; /** * @brief Definition for the tizen buffer object - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ typedef struct _tbm_bo *tbm_bo; /** * @brief Definition for the key associated with the buffer object - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ typedef uint32_t tbm_key; /** * @brief Definition for the file descripter of the system buffer manager - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ typedef int32_t tbm_fd; @@ -145,7 +145,7 @@ enum TBM_BUFMGR_CAPABILITY { /** * @brief Definition for the device type to access tbm_bo - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ typedef enum { TBM_DEVICE_DEFAULT = 0, /**< the device type to get the default handle */ @@ -158,7 +158,7 @@ typedef enum { /** * @brief Definition for the optoin to access tbm_bo - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ typedef enum { TBM_OPTION_NONE = (1 << 0), /**< the option is none */ @@ -169,7 +169,7 @@ typedef enum { /** * @brief tbm_bo_handle abstraction of the memory handle by TBM_DEVICE_TYPE - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ typedef union _tbm_bo_handle { void *ptr; @@ -181,7 +181,7 @@ typedef union _tbm_bo_handle { /** * @brief Enumeration of bo memory type - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 */ enum TBM_BO_FLAGS { TBM_BO_DEFAULT = 0, /**< default memory: it depends on the backend */ @@ -207,7 +207,7 @@ typedef struct _tbm_surface_buffer_data { /** * @brief Called when the user data is deleted in buffer object. - * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif + * @since_tizen 2.3 * @param[in] user_data User_data to be passed to callback function * @pre The callback must be registered using tbm_bo_add_user_data().\n * tbm_bo_delete_user_data() must be called to invoke this callback. -- 2.7.4