Displaying 2 results from an estimated 2 matches for "swfdec_type_test_imag".
Did you mean:
swfdec_type_test_image
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
...>surface) == CAIRO_STATUS_SUCCESS)
+
+SwfdecAsObject *
+swfdec_test_image_new (SwfdecAsContext *context, guint width, guint height)
+{
+ SwfdecAsValue val;
+ SwfdecAsObject *ret;
+
+ if (!swfdec_as_context_use_mem (context, sizeof (SwfdecTestImage)))
+ return NULL;
+
+ ret = g_object_new (SWFDEC_TYPE_TEST_IMAGE, NULL);
+ swfdec_as_object_add (ret, context, sizeof (SwfdecTestImage));
+ swfdec_as_object_get_variable (context->global,
+ swfdec_as_context_get_string (context, "Image"), &val);
+ if (SWFDEC_AS_VALUE_IS_OBJECT (&val))
+ swfdec_as_object_set_constructor (ret, SWF...
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
...16 +144,15 @@ void
swfdec_test_image_compare (SwfdecAsContext *cx, SwfdecAsObject *object, guint argc,
SwfdecAsValue *argv, SwfdecAsValue *retval)
{
- SwfdecTestImage *image, *compare;
+ SwfdecTestImage *image, *compare, *diff;
int w, h;
- cairo_surface_t *diff;
SWFDEC_AS_CHECK (SWFDEC_TYPE_TEST_IMAGE, &image, "O", &compare);
if (!SWFDEC_IS_TEST_IMAGE (compare))
return;
- SWFDEC_AS_VALUE_SET_BOOLEAN (retval, FALSE);
+ SWFDEC_AS_VALUE_SET_OBJECT (retval, SWFDEC_AS_OBJECT (image));
if (!SWFDEC_TEST_IMAGE_IS_VALID (image) ||
!SWFDEC_TEST_IMAGE_IS_VALID (co...