* Taeheon Kim <th908.kim@samsung.com>,
* YoungJun Cho <yj44.cho@samsung.com>,
* SooChan Lim <sc1.lim@samsung.com>,
- * Boram Park <sc1.lim@samsung.com>
+ * Boram Park <boram1288.park@samsung.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the
#include <tbm_surface.h>
+#include "tdm_common.h"
+
#ifdef __cplusplus
extern "C" {
#endif
* @endcode
*/
-#include <tdm_common.h>
-
typedef enum {
TDM_EVENT_LOOP_READABLE = (1 << 0),
TDM_EVENT_LOOP_WRITABLE = (1 << 1),
} tdm_event_loop_mask;
/**
+ * @brief The display capability enumeration
+ */
+typedef enum {
+ TDM_DISPLAY_CAPABILITY_PP = (1 << 0), /**< if hardware supports pp operation */
+ TDM_DISPLAY_CAPABILITY_CAPTURE = (1 << 1), /**< if hardware supports capture operation */
+} tdm_display_capability;
+
+/**
* @brief The output mode structure
*/
typedef struct _tdm_output_mode {
tdm_transform transform;
} tdm_hwc_window_info;
+typedef struct _tdm_hwc_region {
+ unsigned int num_rects;
+ tdm_pos const *rects;
+} tdm_hwc_region;
+
/**
* @brief The pp info structre
*/
* still permit the device to composite the layer. */
TDM_COMPOSITION_CURSOR = 4,
+ /** This type is for the VIDEO window which can be set to the reserved hw overlay
+ * which is assigned by the device.
+ *
+ * Normally, this VIDEO window displays under the primary hw overlayer of the output. */
+ TDM_COMPOSITION_VIDEO = 5,
} tdm_hwc_window_composition;
/**
+ * @brief The hwc window flag enumeration
+ * @since 2.0.0
+ */
+typedef enum {
+ TDM_HWC_WINDOW_FLAG_NONE = 0,
+} tdm_hwc_window_flag;
+
+/**
* @brief The tdm display object
*/
typedef void tdm_display;
/**
+ * @brief The tdm backend object
+ */
+typedef void tdm_module;
+
+/**
* @brief The tdm output object
*/
typedef void tdm_output;
typedef void tdm_vblank;
/**
+ * @brief The output change handler
+ * @details This handler will be called when the status of a output object is
+ * changed in runtime.
+ */
+typedef void (*tdm_output_change_handler)(tdm_output *output,
+ tdm_output_change_type type,
+ tdm_value value,
+ void *user_data);
+
+/**
* @brief The vblank handler
* @see output_set_vblank_handler() function of #tdm_func_display
*/
void *user_data);
/**
+ * @brief The hwc_window commit handler
+ */
+typedef void (*tdm_hwc_window_commit_handler)(tdm_hwc_window *hwc_window, unsigned int sequence,
+ unsigned int tv_sec, unsigned int tv_usec,
+ void *user_data);
+
+/**
+ * @brief The output target_buffer commit handler
+ */
+typedef void (*tdm_output_hwc_target_buffer_commit_handler)(tdm_output *output, unsigned int sequence,
+ unsigned int tv_sec, unsigned int tv_usec,
+ void *user_data);
+
+/**
* @brief The done handler of a pp object
*/
typedef void (*tdm_pp_done_handler)(tdm_pp *pp, tbm_surface_h src,