search for: cairo_image_surface_get_width

Displaying 11 results from an estimated 11 matches for "cairo_image_surface_get_width".

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
...(cairo_surface_status (image)) { - g_print (" 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),...
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
...(cairo_surface_status (image)) { + g_print (" 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),...
2007 Nov 12
0
13 commits - libswfdec/Makefile.am libswfdec/swfdec_decoder.c libswfdec/swfdec_decoder.h libswfdec/swfdec_flv_decoder.c libswfdec/swfdec_flv_decoder.h libswfdec/swfdec_image.c libswfdec/swfdec_image_decoder.c libswfdec/swfdec_image_decoder.h
...oaded; + return 0; +} + +/* FIXME: move this to swfdec_image API? */ +static gboolean +swfdec_image_get_size (SwfdecImage *image, guint *w, guint *h) +{ + cairo_surface_t *surface; + + surface = swfdec_image_create_surface (image); + if (surface == NULL) + return FALSE; + + if (w) + *w = cairo_image_surface_get_width (surface); + if (h) + *h = cairo_image_surface_get_width (surface); + + return TRUE; +} + +static SwfdecStatus +swfdec_image_decoder_eof (SwfdecDecoder *dec) +{ + SwfdecImageDecoder *image = SWFDEC_IMAGE_DECODER (dec); + SwfdecBuffer *buffer; + + if (image->queue == NULL) + return 0;...
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
...(cairo_surface_status (image)) { + g_print (" 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),...
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
...&dec->width, &dec->height)) { - swfdec_video_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 10064...
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
...5:38:08 2007 +0200 fix memleak diff --git a/libswfdec/swfdec_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 adede979b9...
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->current_frame); + } else { + if (input->surface) + cairo_surface_destroy (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 (ol...
2007 Jul 18
0
12 commits - configure.ac doc/swfdec-sections.txt libswfdec-gtk/swfdec_playback_alsa.c libswfdec/jpeg libswfdec/Makefile.am libswfdec/swfdec_amf.c libswfdec/swfdec_as_array.c libswfdec/swfdec_as_boolean.h libswfdec/swfdec_as_context.c
...oder_new (t->format); if (decoder == NULL) return SWFDEC_STATUS_OK; - surface = swfdec_video_decoder_decode (decoder, tag->buffer); + surface = swfdec_video_decoder_decode (decoder, t->buffer); if (surface == NULL) return SWFDEC_STATUS_OK; dec->width = cairo_image_surface_get_width (surface); @@ -640,7 +640,8 @@ swfdec_flv_decoder_eof (SwfdecFlvDecoder SwfdecMovie * swfdec_flv_decoder_add_movie (SwfdecFlvDecoder *flv, SwfdecMovie *parent) { - g_assert_not_reached (); + //g_assert_not_reached (); + return NULL; #if 0 SwfdecContent *content = swfdec_content_new (0);...
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
...wfdec/swfdec_image.c +++ b/libswfdec/swfdec_image.c @@ -582,6 +582,10 @@ 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:...
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
...5:38:08 2007 +0200 fix memleak diff --git a/libswfdec/swfdec_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 adede979b9...