tdm_error tdm_display_get_pp_capabilities(tdm_display *dpy, tdm_pp_capability *capabilities);
tdm_error tdm_display_get_pp_available_formats(tdm_display *dpy, const tbm_format **formats, int *count);
tdm_error tdm_display_get_pp_available_size(tdm_display *dpy, int *min_w, int *min_h, int *max_w, int *max_h, int *preferred_align);
-tdm_error tdm_display_get_pp_available_properties(tdm_display *dpy, const tdm_prop **props, int *count);
tdm_error tdm_display_get_capture_capabilities(tdm_display *dpy, tdm_capture_capability *capabilities);
tdm_error tdm_display_get_catpure_available_formats(tdm_display *dpy, const tbm_format **formats, int *count);
tdm_error tdm_display_get_output_count(tdm_display *dpy, int *count);
///////////////////////////////////////////////////////////////////////////////
void tdm_pp_destroy(tdm_pp *pp);
-tdm_error tdm_pp_set_property(tdm_pp *pp, unsigned int id, tdm_value value);
-tdm_error tdm_pp_get_property(tdm_pp *pp, unsigned int id, tdm_value *value);
tdm_error tdm_pp_set_info(tdm_pp *pp, tdm_info_pp *info);
tdm_error tdm_pp_attach(tdm_pp *pp, tdm_buffer *src, tdm_buffer *dst);
tdm_error tdm_pp_commit(tdm_pp *pp);
unsigned int format_count;
tbm_format *formats;
- unsigned int prop_count;
- tdm_prop *props;
-
/* -1: not defined */
int min_w;
int min_h;
typedef struct _tdm_func_pp
{
void (*pp_destroy)(tdm_pp *pp); /* init */
- tdm_error (*pp_set_property)(tdm_pp *pp, unsigned int id, tdm_value value);
- tdm_error (*pp_get_property)(tdm_pp *pp, unsigned int id, tdm_value *value);
tdm_error (*pp_set_info)(tdm_pp *pp, tdm_info_pp *info);
tdm_error (*pp_attach)(tdm_pp *pp, tbm_surface_h src, tbm_surface_h dst);
tdm_error (*pp_commit)(tdm_pp *pp); /* init */
tdm_info_config dst_config;
tdm_transform transform;
int sync;
+ int flags;
} tdm_info_pp;
typedef struct _tdm_info_capture
tdm_transform transform;
int oneshot;
int frequency;
+ int flags;
} tdm_info_capture;
typedef void tdm_display;
}
EXTERN tdm_error
-tdm_display_get_pp_available_properties(tdm_display *dpy, const tdm_prop **props, int *count)
-{
- DISPLAY_FUNC_ENTRY();
-
- TDM_RETURN_VAL_IF_FAIL(props != NULL, TDM_ERROR_INVALID_PARAMETER);
- TDM_RETURN_VAL_IF_FAIL(count != NULL, TDM_ERROR_INVALID_PARAMETER);
-
- pthread_mutex_lock(&private_display->lock);
-
- *props = (const tdm_prop*)private_display->caps_pp.props;
- *count = private_display->caps_pp.prop_count;
-
- pthread_mutex_unlock(&private_display->lock);
-
- return ret;
-}
-
-EXTERN tdm_error
tdm_display_get_capture_capabilities(tdm_display *dpy, tdm_capture_capability *capabilities)
{
DISPLAY_FUNC_ENTRY();
}
EXTERN tdm_error
-tdm_pp_set_property(tdm_pp *pp, unsigned int id, tdm_value value)
-{
- PP_FUNC_ENTRY();
-
- pthread_mutex_lock(&private_display->lock);
-
- if (!func_pp->pp_set_property)
- {
- pthread_mutex_unlock(&private_display->lock);
- return TDM_ERROR_NONE;
- }
-
- ret = func_pp->pp_set_property(private_pp->pp, id, value);
-
- pthread_mutex_unlock(&private_display->lock);
-
- return ret;
-}
-
-EXTERN tdm_error
-tdm_pp_get_property(tdm_pp *pp, unsigned int id, tdm_value *value)
-{
- PP_FUNC_ENTRY();
-
- TDM_RETURN_VAL_IF_FAIL(value != NULL, TDM_ERROR_INVALID_PARAMETER);
-
- pthread_mutex_lock(&private_display->lock);
-
- if (!func_pp->pp_get_property)
- {
- pthread_mutex_unlock(&private_display->lock);
- return TDM_ERROR_NONE;
- }
-
- ret = func_pp->pp_get_property(private_pp->pp, id, value);
-
- pthread_mutex_unlock(&private_display->lock);
-
- return ret;
-}
-
-EXTERN tdm_error
tdm_pp_set_info(tdm_pp *pp, tdm_info_pp *info)
{
PP_FUNC_ENTRY();