search for: cairo_image_surface_get_strid

Displaying 7 results from an estimated 7 matches for "cairo_image_surface_get_strid".

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
..._height (image)) { - g_print (" ERROR: sizes don't match. Should be %ux%u, but is %ux%u\n", - cairo_image_surface_get_width (image), cairo_image_surface_get_height (image), - w, h); - 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,...
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
...face, const char *filename) { - cairo_surface_t *image; + cairo_surface_t *image, *diff = NULL; int w, h; char *real; @@ -49,28 +106,45 @@ image_diff (cairo_surface_t *surface, co w, h); 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); - if (memcmp (cairo_image_surface_get_data (surface), - cairo_image_surface_get_data (image), 4 * w * h) != 0) { + g_assert (cairo_image_surface_get_stride (diff) == 4 * w); + if (!buffer_diff_core (cairo_image...
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
...(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_image_surface_get_stride (diff)) != 0) { - cairo_surface_destroy (diff); - return; + cairo_image_surface_get_stride (diff->surface)) != 0) { + SWFDEC_AS_VALUE_SET_OBJECT (retval, SWFDEC_AS_OBJECT (diff...
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
...face, const char *filename) { - cairo_surface_t *image; + cairo_surface_t *image, *diff = NULL; int w, h; char *real; @@ -49,28 +106,45 @@ image_diff (cairo_surface_t *surface, co w, h); 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); - if (memcmp (cairo_image_surface_get_data (surface), - cairo_image_surface_get_data (image), 4 * w * h) != 0) { + g_assert (cairo_image_surface_get_stride (diff) == 4 * w); + if (!buffer_diff_core (cairo_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
...;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->current_frame++; + } } static void @@ -104,7 +129,15 @@ swfdec_video_input_disconnect (SwfdecVideoMovieInput *input_, SwfdecVideoMovie...
2007 Nov 20
0
19 commits - libswfdec/swfdec_audio_event.c libswfdec/swfdec_bits.c libswfdec/swfdec_color.c libswfdec/swfdec_color.h libswfdec/swfdec_flv_decoder.c libswfdec/swfdec_image.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h
..._image_surface_create_from_png_stream ( swfdec_image_png_read, &bits); + image->width = cairo_image_surface_get_width (image->surface); + image->height = cairo_image_surface_get_height (image->surface); + swfdec_cached_load (SWFDEC_CACHED (image), image->height * + cairo_image_surface_get_stride (image->surface)); } cairo_surface_t * commit 16ee8e2a743f5dcdfaf179d8f8e077a566b4d6d9 Author: Benjamin Otte <otte at gnome.org> Date: Fri Nov 16 17:42:59 2007 +0100 Make PNG files work 0.5.4 claims they work, but nobody tested it. :o diff --git a/libswfdec/swfdec_ima...