VIGS: Modified the screen capture function
authorjinhyung.jo <jinhyung.jo@samsung.com>
Thu, 16 Apr 2015 03:08:47 +0000 (12:08 +0900)
committerjinhyung.jo <jinhyung.jo@samsung.com>
Thu, 16 Apr 2015 03:08:47 +0000 (12:08 +0900)
Added the brightness composite routine.

Change-Id: Ib81a032a07b8bae21c11bb63fc6cc94f7762466d
Signed-off-by: Jinhyung Jo <jinhyung.jo@samsung.com>
hw/vigs/vigs_server.c

index 13575b5..3da956a 100644 (file)
@@ -34,6 +34,7 @@
 #include "vigs_surface.h"
 #include "vigs_utils.h"
 #include "work_queue.h"
+#include "hw/pci/maru_brightness.h"
 
 struct vigs_server_work_item
 {
@@ -458,7 +459,9 @@ static void vigs_server_capture_work(struct work_queue_item *wq_item)
 
     if (pixels) {
         captured = server->capture(server, root_sfc, pixels);
-        /* TODO: brightness composite to pixels */
+        composite_brightness_image_to_pixel(pixels,
+                                            root_sfc->ws_sfc->width,
+                                            root_sfc->ws_sfc->height);
     }
 
     server->capture_ops->process_captured(captured,