]> granicus.if.org Git - graphviz/commitdiff
getting closer....
authorJohn Ellson <ellson@research.att.com>
Thu, 12 Jan 2012 03:33:31 +0000 (22:33 -0500)
committerJohn Ellson <ellson@research.att.com>
Thu, 12 Jan 2012 03:33:31 +0000 (22:33 -0500)
plugin/webp/gvloadimage_webp.c

index 87992a1e5e09f5946a8c11a31f9f1530df2e4c22..51bbb013ec1ec60c2260cfd3d2e7ed5e280ea46a 100644 (file)
@@ -95,14 +95,24 @@ end:
        return NULL;
     }
 
-    // FIXME - convert data to cairo surface ...
-
 #if 1
     fprintf(stderr, "Info: WebP file %s can be decoded (dimensions: %d x %d)%s.\n",
        in_file, output_buffer->width, output_buffer->height,
        bitstream->has_alpha ? " (with alpha)" : "");
 #endif
 
+#if 0
+
+    // FIXME - this statement dies....
+    
+    surface = cairo_image_surface_create_for_data (
+           output_buffer->u.RGBA.rgba,
+           CAIRO_FORMAT_ARGB32,
+           output_buffer->width,
+           output_buffer->height,
+           output_buffer->u.RGBA.stride);
+#endif
+
     return surface;
 }