search for: cairo_image_surface_get_data

Displaying 13 results from an estimated 13 matches for "cairo_image_surface_get_data".

2007 Feb 06
0
Branch 'interpreter' - 15 commits - configure.ac libswfdec/swfdec_audio_event.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_color.c libswfdec/swfdec_color.h libswfdec/swfdec_compiler.c libswfdec/swfdec_image.c libswfdec/swfdec_sprite_movie.c
...= (guint) data[SWFDEC_COLOR_INDEX_BLUE] * data[SWFDEC_COLOR_INDEX_ALPHA] / 255; - } - } -} - static gboolean swfdec_image_has_alpha (SwfdecImage *image) { @@ -635,7 +617,6 @@ swfdec_image_create_surface (SwfdecImage /* FIXME: only works if rowstride == image->width * 4 */ data = cairo_image_surface_get_data (surface); memcpy (data, image->data, image->width * image->height * 4); - swfdec_image_premultiply (data, image->width * image->height); return surface; } else { image->surface = cairo_image_surface_create_for_data (image->data, @@ -674,11 +655,10 @@ swfde...
2008 Jun 06
1
Getting R and x11 to work
...was (finally) able to install it (after installing blas and gcc-fortran). I can start an R session and do computations. When I try to do any graphics using x11, I get the message: unable to load shared library '/usr/lib/R/modules//R_X11.so': /usr/lib/R/modules//R_X11.so: undefined symbol: cairo_image_surface_get_data Does anyone have an idea on how to fix this? Rick B.
2007 Mar 16
1
0.4.2 compile error on FC5
...iro-1.0.4 2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 /home/eric/Desktop/swfdec-0.4.2/libswfdec/.libs/libswfdec-0.4.so -lpangocairo-1.0 -lpango-1.0 -lcairo -lgmodule-2.0 -loil-0.3 -lgobject-2.0 -lglib-2.0 -lz -lasound -lm -ldl -lpthread ../libswfdec/.libs/libswfdec-0.4.so: undefined reference to `cairo_image_surface_get_data' collect2: ld returned 1 exit status Please advise. thanks, eric kolve
2007 Nov 07
1
thumbnailer/swfdec-thumbnailer.c
thumbnailer/swfdec-thumbnailer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) New commits: commit a31d0686b78df2da96b9d8d1e3220e63978bba30 Author: Benjamin Otte <otte at gnome.org> Date: Wed Nov 7 20:02:04 2007 +0100 s/swfdec_player_get_image_size/swfdec_player_get_default_size/ diff --git a/thumbnailer/swfdec-thumbnailer.c b/thumbnailer/swfdec-thumbnailer.c index
2008 Jan 08
0
4 commits - test/.gitignore test/image test/Makefile.am test/swfdec_test_function.c test/swfdec_test_image.c test/swfdec_test_image.h test/swfdec_test_initialize.as test/swfdec_test_initialize.h test/swfdec_test_test.c test/trace
...goto dump; - } - diff = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, w, h); - g_assert (cairo_image_surface_get_stride (surface) == 4 * w); - g_assert (cairo_image_surface_get_stride (image) == 4 * w); - g_assert (cairo_image_surface_get_stride (diff) == 4 * w); - if (!buffer_diff_core (cairo_image_surface_get_data (surface), - cairo_image_surface_get_data (image), - cairo_image_surface_get_data (diff), - w, h, 4 * w) != 0) { - g_print (" ERROR: images differ\n"); - goto dump; - } - - cairo_surface_destroy (image); - cairo_surface_destroy (diff); - return TRUE; - -dump: - cairo_surfac...
2007 Feb 06
0
21 commits - configure.ac libswfdec/swfdec_audio_event.c libswfdec/swfdec_bits.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_color.c libswfdec/swfdec_color.h libswfdec/swfdec_compiler.c libswfdec/swfdec_edittext.c libswfdec/swfdec_image.c
...= (guint) data[SWFDEC_COLOR_INDEX_BLUE] * data[SWFDEC_COLOR_INDEX_ALPHA] / 255; - } - } -} - static gboolean swfdec_image_has_alpha (SwfdecImage *image) { @@ -635,7 +617,6 @@ swfdec_image_create_surface (SwfdecImage /* FIXME: only works if rowstride == image->width * 4 */ data = cairo_image_surface_get_data (surface); memcpy (data, image->data, image->width * image->height * 4); - swfdec_image_premultiply (data, image->width * image->height); return surface; } else { image->surface = cairo_image_surface_create_for_data (image->data, @@ -674,11 +655,10 @@ swfde...
2007 Nov 10
1
3 commits - libswfdec/swfdec_image.c libswfdec/swfdec_image.h
...rn image->surface; - } - - if (swfdec_image_has_alpha (image)) { - cairo_surface_t *surface; - guint8 *data; - surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, - image->width, image->height); - /* FIXME: only works if rowstride == image->width * 4 */ - data = cairo_image_surface_get_data (surface); - memcpy (data, image->data, image->width * image->height * 4); - return surface; - } else { - image->surface = cairo_image_surface_create_for_data (image->data, - CAIRO_FORMAT_RGB24, image->width, image->height, image->rowstride); - cairo_surface_set...
2008 Jan 19
0
11 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_sprite_movie_as.c libswfdec/swfdec_xml.c libswfdec/swfdec_xml.h libswfdec/swfdec_xml_node.c libswfdec/swfdec_xml_node.h test/image test/swfdec_test.c test/swfdec_test_image.c test/trace
...ace_get_height (image->surface); if (h != cairo_image_surface_get_height (compare->surface)) return; - diff = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, w, h); + diff = SWFDEC_TEST_IMAGE (swfdec_test_image_new (cx, w, h)); + if (!diff) + return; if (!buffer_diff_core (cairo_image_surface_get_data (image->surface), cairo_image_surface_get_data (compare->surface), - cairo_image_surface_get_data (diff), + cairo_image_surface_get_data (diff->surface), w, h, cairo_image_surface_get_stride (image->surface), cairo_image_surface_get_stride (compare->surface), - cairo_ima...
2007 Dec 19
1
some questions about swfdec
...ents: for (walk = priv->roots; walk; walk = walk->next) { swfdec_movie_render (walk->data, cr, &trans, &real); } SWFDEC_INFO ("=== %p: END RENDER ===", player); cairo_restore (cr); // new stuff cairo_surface_t surf=cairo_get_target(cr); memcpy(imgbuf,cairo_image_surface_get_data(surf),bufsize); Presumably one could also hide the cairo window, so that the content could be displayed by an external app. is there a better way of doing it ? Regards, salsaman, http://lives.sf.net
2007 Dec 10
0
5 commits - libswfdec/jpeg libswfdec/swfdec_as_interpret.c libswfdec/swfdec_bits.c libswfdec/swfdec_cached.c libswfdec/swfdec_codec_adpcm.c libswfdec/swfdec_codec_audio.c libswfdec/swfdec_flash_security.c libswfdec/swfdec_image.c
...nt8 *sdata; + guint32 *tdata; + const guint32 *sdata; guint i, n; gboolean has_alpha = FALSE; @@ -653,15 +656,16 @@ swfdec_image_create_surface_transformed (SwfdecImage *image, const SwfdecColorTr return NULL; } /* FIXME: This code assumes a rowstride of 4 * width */ - sdata = cairo_image_surface_get_data (source); + /* FIXME: This code assumes an alignment of 4 */ + sdata = (void *) cairo_image_surface_get_data (source); n = image->width * image->height; for (i = 0; i < n; i++) { - ((guint32 *) tdata)[i] = swfdec_color_apply_transform_premultiplied (((guint32 *) sdata)[i], trans...
2008 Feb 25
4
New version of X11, png and jpeg
R-devel has new versions of the X11(), png() and jpeg() devices on Unix-alikes. The intention is that these are used identically to the previous versions (which remain available) but will produce higher-quality output with more features. Pros: Antialiasing of text and lines (can be turned off) but no blurring of fills. Buffering of the X11 display and fast repainting from a backing image.
2007 Feb 06
0
Branch 'interpreter' - 8 commits - libswfdec/swfdec_bits.c libswfdec/swfdec_color.c libswfdec/swfdec_color.h libswfdec/swfdec_edittext.c libswfdec/swfdec_image.c libswfdec/swfdec_image.h libswfdec/swfdec_pattern.c libswfdec/swfdec_sprite.c test/dump.c
...ot_reached (); - break; + if (swfdec_image_has_alpha (image)) { + cairo_surface_t *surface; + guint8 *data; + surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, + image->width, image->height); + /* FIXME: only works if rowstride == image->width * 4 */ + data = cairo_image_surface_get_data (surface); + memcpy (data, image->data, image->width * image->height * 4); + swfdec_image_premultiply (data, image->width * image->height); + return surface; + } else { + image->surface = cairo_image_surface_create_for_data (image->data, + CAIRO_FORMAT_RGB24, image...
2007 Oct 18
0
18 commits - doc/swfdec-sections.txt libswfdec/Makefile.am libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_strings.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_event.c libswfdec/swfdec_event.h libswfdec/swfdec_flash_security.c
...t) cairo_image_surface_get_width (input->surface) || + input->video->height < (guint) cairo_image_surface_get_height (input->surface)) { + static cairo_user_data_key_t key; + cairo_surface_t *old = input->surface; + input->surface = cairo_image_surface_create_for_data ( + cairo_image_surface_get_data (old), cairo_image_surface_get_format (old), + input->video->width, input->video->height, + cairo_image_surface_get_stride (old)); + cairo_surface_set_user_data (input->surface, &key, old, + (cairo_destroy_func_t) cairo_surface_destroy); + } + } + input-&g...