search for: cairo_image_surface_get_height

Displaying 10 results from an estimated 10 matches for "cairo_image_surface_get_height".

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
..." ERROR: Could not load %s: %s\n", real, - cairo_status_to_string (cairo_surface_status (image))); - g_free (real); - goto dump; - } - g_free (real); - g_assert (cairo_surface_get_type (surface) == CAIRO_SURFACE_TYPE_IMAGE); - w = cairo_image_surface_get_width (surface); - h = cairo_image_surface_get_height (surface); - if (w != cairo_image_surface_get_width (image) || - h != cairo_image_surface_get_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);...
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
..." ERROR: Could not load %s: %s\n", real, + cairo_status_to_string (cairo_surface_status (image))); + g_free (real); + goto dump; + } + g_free (real); + g_assert (cairo_surface_get_type (surface) == CAIRO_SURFACE_TYPE_IMAGE); + w = cairo_image_surface_get_width (surface); + h = cairo_image_surface_get_height (surface); + if (w != cairo_image_surface_get_width (image) || + h != cairo_image_surface_get_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);...
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
..." ERROR: Could not load %s: %s\n", real, + cairo_status_to_string (cairo_surface_status (image))); + g_free (real); + goto dump; + } + g_free (real); + g_assert (cairo_surface_get_type (surface) == CAIRO_SURFACE_TYPE_IMAGE); + w = cairo_image_surface_get_width (surface); + h = cairo_image_surface_get_height (surface); + if (w != cairo_image_surface_get_width (image) || + h != cairo_image_surface_get_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);...
2007 Apr 06
0
3 commits - libswfdec-gtk/swfdec_gtk_loader.c libswfdec/Makefile.am libswfdec/swfdec_codec.c libswfdec/swfdec_codec_ffmpeg.c libswfdec/swfdec_codec_gst.c libswfdec/swfdec_codec.h libswfdec/swfdec_codec_screen.c libswfdec/swfdec_codec_video.c
..._codec_finish (codec, decoder); + surface = swfdec_video_decoder_decode (decoder, tag->buffer); + if (surface == NULL) return SWFDEC_STATUS_OK; - } - swfdec_video_codec_finish (codec, decoder); + dec->width = cairo_image_surface_get_width (surface); + dec->height = cairo_image_surface_get_height (surface); + swfdec_video_decoder_free (decoder); return SWFDEC_STATUS_INIT; } else { return SWFDEC_STATUS_IMAGE; diff --git a/libswfdec/swfdec_flv_decoder.h b/libswfdec/swfdec_flv_decoder.h index 7bb9c72..c26b169 100644 --- a/libswfdec/swfdec_flv_decoder.h +++ b/libswfdec/swfdec_fl...
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
...N (retval, FALSE); + SWFDEC_AS_VALUE_SET_OBJECT (retval, SWFDEC_AS_OBJECT (image)); if (!SWFDEC_TEST_IMAGE_IS_VALID (image) || !SWFDEC_TEST_IMAGE_IS_VALID (compare)) return; @@ -167,21 +166,21 @@ swfdec_test_image_compare (SwfdecAsContext *cx, SwfdecAsObject *object, guint ar h = cairo_image_surface_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_su...
2007 Aug 20
0
15 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame_internal.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_as_super.c libswfdec/swfdec_as_with.c
...dec_flv_decoder.c b/libswfdec/swfdec_flv_decoder.c index df8054b..43c6b15 100644 --- a/libswfdec/swfdec_flv_decoder.c +++ b/libswfdec/swfdec_flv_decoder.c @@ -281,6 +281,7 @@ swfdec_flv_decoder_parse_video_tag (Swfd dec->width = cairo_image_surface_get_width (surface); dec->height = cairo_image_surface_get_height (surface); swfdec_video_decoder_free (decoder); + cairo_surface_destroy (surface); return SWFDEC_STATUS_INIT; } else { return SWFDEC_STATUS_IMAGE; diff-tree 5a49ab2a34b19609ae57ac301cb0f3a3af41f140 (from adede979b9a128b32eb3c911e1ffa51858a8b312) Author: Benjamin Otte <otte a...
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
...(input->surface); + input->surface = swfdec_video_decoder_decode (input->decoder, buffer); + if (input->surface == NULL) + return; + if (input->video->width < (guint) 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->hei...
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
...swfdec_image_png_load (SwfdecImage *image) swfdec_bits_init (&bits, image->raw_data); image->surface = cairo_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...
2007 Aug 20
0
Branch 'vivi' - 60 commits - libswfdec-gtk/swfdec_gtk_loader.c libswfdec/Makefile.am libswfdec/swfdec_as_array.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame_internal.h libswfdec/swfdec_as_interpret.c
...dec_flv_decoder.c b/libswfdec/swfdec_flv_decoder.c index df8054b..43c6b15 100644 --- a/libswfdec/swfdec_flv_decoder.c +++ b/libswfdec/swfdec_flv_decoder.c @@ -281,6 +281,7 @@ swfdec_flv_decoder_parse_video_tag (Swfd dec->width = cairo_image_surface_get_width (surface); dec->height = cairo_image_surface_get_height (surface); swfdec_video_decoder_free (decoder); + cairo_surface_destroy (surface); return SWFDEC_STATUS_INIT; } else { return SWFDEC_STATUS_IMAGE; diff-tree 5a49ab2a34b19609ae57ac301cb0f3a3af41f140 (from adede979b9a128b32eb3c911e1ffa51858a8b312) Author: Benjamin Otte <otte a...