diff --git a/libhwcomposer/Android.mk b/libhwcomposer/Android.mk index 5d71065..59b81e3 100644 --- a/libhwcomposer/Android.mk +++ b/libhwcomposer/Android.mk @@ -17,7 +17,7 @@ LOCAL_C_INCLUDES += hardware/qcom/display/liboverlay LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr ifeq ($(TARGET_HAVE_HDMI_OUT),true) -#LOCAL_CFLAGS += -DHDMI_DUAL_DISPLAY +LOCAL_CFLAGS += -DHDMI_DUAL_DISPLAY endif ifeq ($(TARGET_HAVE_BYPASS),true) #LOCAL_CFLAGS += -DCOMPOSITION_BYPASS diff --git a/liboverlay/overlayLib.h b/liboverlay/overlayLib.h index fcb4904..aebb075 100755 --- a/liboverlay/overlayLib.h +++ b/liboverlay/overlayLib.h @@ -110,6 +110,20 @@ struct overlay_buffer_info { int size; }; +/* values for copybit_set_parameter(OVERLAY_TRANSFORM) */ +enum { + /* flip source image horizontally */ + OVERLAY_TRANSFORM_FLIP_H = HAL_TRANSFORM_FLIP_H, + /* flip source image vertically */ + OVERLAY_TRANSFORM_FLIP_V = HAL_TRANSFORM_FLIP_V, + /* rotate source image 90 degrees */ + OVERLAY_TRANSFORM_ROT_90 = HAL_TRANSFORM_ROT_90, + /* rotate source image 180 degrees */ + OVERLAY_TRANSFORM_ROT_180 = HAL_TRANSFORM_ROT_180, + /* rotate source image 270 degrees */ + OVERLAY_TRANSFORM_ROT_270 = HAL_TRANSFORM_ROT_270 +}; + namespace overlay { enum {