Displaying 8 results from an estimated 8 matches for "swfdec_image_get_surfac".
Did you mean:
swfdec_image_get_surface
2007 Jan 26
0
libswfdec/swfdec_image.c libswfdec/swfdec_image.h libswfdec/swfdec_pattern.c
...}
image_data = g_malloc (4 * image->width * image->height);
@@ -513,7 +514,7 @@ swfdec_image_lossless_load (SwfdecImage
}
}
- swfdec_image_create_surface (image, image_data);
+ swfdec_image_create_surface (image, image_data, have_alpha);
}
int
@@ -626,3 +627,33 @@ swfdec_image_get_surface (SwfdecImage *i
return image->surface;
}
+cairo_surface_t *
+swfdec_image_get_surface_for_target (SwfdecImage *image, cairo_surface_t *target)
+{
+ cairo_surface_t *current, *similar;
+ cairo_t *copy;
+ cairo_content_t content;
+
+ current = swfdec_image_get_surface (image);
+ if (ca...
2007 Jan 29
0
Branch 'interpreter' - 18 commits - libswfdec/swfdec_image.c libswfdec/swfdec_image.h libswfdec/swfdec_js.c libswfdec/swfdec_js_color.c libswfdec/swfdec_js_sound.c libswfdec/swfdec_pattern.c libswfdec/swfdec_scriptable.c libswfdec/swfdec_script.c
...age->width);
SWFDEC_LOG (" height = %d", image->height);
@@ -487,7 +495,7 @@ swfdec_image_lossless_load (SwfdecImage
#endif
}
- swfdec_image_create_surface (image, image_data, have_alpha);
+ swfdec_image_create_surface (image, image_data);
}
int
@@ -611,11 +619,7 @@ swfdec_image_get_surface_for_target (Swf
/* FIXME: we might want to create multiple surfaces here if there's multiple
* live rendering sources. Right now, this is the quick fix, that transforms
* the cache to the most recent used type */
- if (cairo_surface_get_type (current) == CAIRO_SURFACE_TYPE_IMAGE &a...
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
...r_transform.aa, content->color_transform.ab);
}
swfdec_bits_syncbits (bits);
if (has_ratio) {
diff-tree 32e4b86c8fac7b199a4f2d210f0ec6d67347091c (from 2399ad61b0ffc8fcbd1c395dc841deec152e29e4)
Author: Benjamin Otte <otte@gnome.org>
Date: Sun Feb 4 14:53:42 2007 +0100
rename swfdec_image_get_surface* to swfdec_image_create_surface*
- The renamed functions give out a reference to the surface now.
- Ensure that surfaces created by those functions get unreffed properly
- Add an obvious optimization by not applying the color transform if the
transform is the identity transf...
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
...r_transform.aa, content->color_transform.ab);
}
swfdec_bits_syncbits (bits);
if (has_ratio) {
diff-tree 32e4b86c8fac7b199a4f2d210f0ec6d67347091c (from 2399ad61b0ffc8fcbd1c395dc841deec152e29e4)
Author: Benjamin Otte <otte@gnome.org>
Date: Sun Feb 4 14:53:42 2007 +0100
rename swfdec_image_get_surface* to swfdec_image_create_surface*
- The renamed functions give out a reference to the surface now.
- Ensure that surfaces created by those functions get unreffed properly
- Add an obvious optimization by not applying the color transform if the
transform is the identity transf...
2007 Jan 16
0
9 commits - libswfdec/js libswfdec/Makefile.am libswfdec/swfdec_audio_stream.c libswfdec/swfdec_audio_stream.h libswfdec/swfdec_cache.c libswfdec/swfdec_cached.c libswfdec/swfdec_cached.h libswfdec/swfdec_edittext_movie.c libswfdec/swfdec_image.c
...d_unload (SwfdecCached * cached);
void swfdec_cached_set_cache (SwfdecCached * cached,
SwfdecCache * cache);
diff --git a/libswfdec/swfdec_image.c b/libswfdec/swfdec_image.c
index 64daf19..6c2dcae 100644
--- a/libswfdec/swfdec_image.c
+++ b/libswfdec/swfdec_image.c
@@ -597,7 +597,7 @@ swfdec_image_get_surface (SwfdecImage *i
g_return_val_if_fail (SWFDEC_IS_IMAGE (image), NULL);
if (image->surface) {
- swfdec_cached_reload (SWFDEC_CACHED (image));
+ swfdec_cached_use (SWFDEC_CACHED (image));
return image->surface;
}
diff-tree 5f2def54b59ff4937c94f6366206aaf29933f682 (from 8...
2007 Jun 08
0
Changes to 'refs/tags/0.4.2'
...stream, too, not just with 0 action
Merge branch 'master' into interpreter
missing \n
s/SWF_COLOR/SWFDEC_COLOR/
update SwfdecColor format from RGBA to ARGB
rework images to be correctly color transformed
add swfdec_color_transform_is_identity
rename swfdec_image_get_surface* to swfdec_image_create_surface*
add debugging message when parsing color transforms
export images, too
Merge branch 'master' into interpreter
that should be == NULL, not != NULL
fix memleak
Fix refcounting issue
Add testing framework for drawing o...
2007 Apr 27
0
Changes to 'refs/tags/0.4.3'
...stream, too, not just with 0 action
Merge branch 'master' into interpreter
missing \n
s/SWF_COLOR/SWFDEC_COLOR/
update SwfdecColor format from RGBA to ARGB
rework images to be correctly color transformed
add swfdec_color_transform_is_identity
rename swfdec_image_get_surface* to swfdec_image_create_surface*
add debugging message when parsing color transforms
export images, too
Merge branch 'master' into interpreter
that should be == NULL, not != NULL
fix memleak
Fix refcounting issue
Add testing framework for drawing o...
2007 Apr 27
0
Changes to 'refs/tags/0.4.4'
...stream, too, not just with 0 action
Merge branch 'master' into interpreter
missing \n
s/SWF_COLOR/SWFDEC_COLOR/
update SwfdecColor format from RGBA to ARGB
rework images to be correctly color transformed
add swfdec_color_transform_is_identity
rename swfdec_image_get_surface* to swfdec_image_create_surface*
add debugging message when parsing color transforms
export images, too
Merge branch 'master' into interpreter
that should be == NULL, not != NULL
fix memleak
Fix refcounting issue
Add testing framework for drawing o...