OSDN Git Service

Added resizeInput and setAttributes function declarations to overlay hal
authorBenny Wong <Benny.Wong@motorola.com>
Sat, 25 Jul 2009 00:28:26 +0000 (19:28 -0500)
committerRebecca Schultz Zavin <rebecca@android.com>
Thu, 30 Jul 2009 00:48:04 +0000 (17:48 -0700)
include/hardware/overlay.h

index 906215e..a8287bb 100644 (file)
@@ -186,13 +186,20 @@ struct overlay_data_device_t {
      * overlay data module to its control module */
     int (*initialize)(struct overlay_data_device_t *dev,
             overlay_handle_t handle);
-    
+
+    /* can be called to change the width and height of the overlay. */
+    int (*resizeInput)(struct overlay_data_device_t *dev,
+            uint32_t w, uint32_t h);
+
     int (*setCrop)(struct overlay_data_device_t *dev,
             uint32_t x, uint32_t y, uint32_t w, uint32_t h) ;
 
     int (*getCrop)(struct overlay_data_device_t *dev,
        uint32_t* x, uint32_t* y, uint32_t* w, uint32_t* h) ;
 
+    int (*setParameter)(struct overlay_data_device_t *dev,
+            int param, int value);
+
     /* blocks until an overlay buffer is available and return that buffer. */
     int (*dequeueBuffer)(struct overlay_data_device_t *dev,
                         overlay_buffer_t *buf);