From a130103063054273484248fd913f478e899d9ea9 Mon Sep 17 00:00:00 2001 From: Boram Park Date: Mon, 25 Apr 2016 10:58:49 +0900 Subject: [PATCH] add TDM_LAYER_CAPABILITY_NO_CROP Change-Id: I78bbf9b71353426beb3aa69f675b0167be52fc97 --- include/tdm.h | 4 +++- include/tdm_types.h | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/include/tdm.h b/include/tdm.h index 04cbcb5..1c38b52 100644 --- a/include/tdm.h +++ b/include/tdm.h @@ -539,7 +539,9 @@ tdm_layer_get_property(tdm_layer *layer, unsigned int id, tdm_value *value); /** * @brief Set the geometry information to a layer object * @details The geometry information will be applied when the output object - * of a layer object is committed. + * of a layer object is committed. If a layer has TDM_LAYER_CAPABILITY_NO_CROP + * capability, a layer will ignore the pos(crop) information of #tdm_info_layer's + * src_config. * @param[in] layer A layer object * @param[in] info The geometry information * @return #TDM_ERROR_NONE if success. Otherwise, error value. diff --git a/include/tdm_types.h b/include/tdm_types.h index 6ca3c83..f6fc5c4 100755 --- a/include/tdm_types.h +++ b/include/tdm_types.h @@ -167,6 +167,7 @@ typedef enum { TDM_LAYER_CAPABILITY_TRANSFORM = (1 << 9), /**< if a layer has transform capability */ TDM_LAYER_CAPABILITY_SCANOUT = (1 << 10), /**< if a layer allows a scanout buffer only */ TDM_LAYER_CAPABILITY_RESEVED_MEMORY = (1 << 11), /**< if a layer allows a reserved buffer only */ + TDM_LAYER_CAPABILITY_NO_CROP = (1 << 12), /**< if a layer has no cropping capability */ } tdm_layer_capability; /** -- 2.7.4