search for: has_name

Displaying 15 results from an estimated 15 matches for "has_name".

2007 Jun 18
0
Branch 'as' - 8 commits - libswfdec/swfdec_movie.c libswfdec/swfdec_sprite.c libswfdec/swfdec_sprite.h libswfdec/swfdec_sprite_movie.c libswfdec/swfdec_sprite_movie.h libswfdec/swfdec_swf_decoder.c libswfdec/swfdec_swf_decoder.h
...- return content; -} - -static cairo_operator_t -swfdec_sprite_convert_operator (guint operator) -{ - return CAIRO_OPERATOR_OVER; -} - -int -swfdec_spriteseg_place_object (SwfdecSwfDecoder *s, guint tag) -{ - SwfdecBits *bits = &s->b; - int has_clip_actions; - int has_clip_depth; - int has_name; - int has_ratio; - int has_color_transform; - int has_matrix; - int has_character; - int move; - int depth; - int cache; - int has_blend_mode = 0; - int has_filter = 0; - SwfdecContent *content; - - has_clip_actions = swfdec_bits_getbit (bits); - has_clip_depth = swfdec_bits_getbit (bi...
2011 Mar 17
8
[Bug 8020] New: --acls does not honor --numeric-ids if UIDs do not match
https://bugzilla.samba.org/show_bug.cgi?id=8020 Summary: --acls does not honor --numeric-ids if UIDs do not match Product: rsync Version: 3.0.7 Platform: x86 OS/Version: Linux Status: NEW Severity: normal Priority: P5 Component: core AssignedTo: wayned at samba.org
2007 Jun 13
0
Branch 'as' - 6 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_morph_movie.c libswfdec/swfdec_movie_asprops.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_player.c libswfdec/swfdec_sprite.c
...text; + SwfdecMovieClass *klass; - /* FIXME: implement this function in a smarter way, not if (IS_FOO_MOVIE (x)) */ - g_assert (movie->name == NULL); - if (movie->content->name) { - movie->name = swfdec_as_context_get_string (context, movie->content->name); - movie->has_name = TRUE; - } else if (SWFDEC_IS_SPRITE_MOVIE (movie)) { - SwfdecPlayer *player = SWFDEC_PLAYER (SWFDEC_AS_OBJECT (movie)->context); - movie->name = swfdec_as_context_give_string (context, - g_strdup_printf ("instance%u", ++player->unnamed_count)); - movie->has_name =...
2007 Mar 09
0
17 commits - libswfdec/js libswfdec/swfdec_js.c libswfdec/swfdec_js_global.c libswfdec/swfdec_js.h libswfdec/swfdec_js_movie.c libswfdec/swfdec_movie.c libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h libswfdec/swfdec_root_movie.c
...@@ const JSClass movieclip_class = { JSCLASS_NO_OPTIONAL_MEMBERS }; +static void +swfdec_js_movie_add_property (SwfdecMovie *movie) +{ + SwfdecScriptable *script = SWFDEC_SCRIPTABLE (movie); + jsval val; + JSObject *jsobj; + JSContext *cx; + JSBool found = JS_FALSE; + + if (!movie->has_name) + return; + jsobj = swfdec_scriptable_get_object (script); + val = OBJECT_TO_JSVAL (jsobj); + cx = script->jscx; + if (movie->parent) { + jsobj = SWFDEC_SCRIPTABLE (movie->parent)->jsobj; + if (jsobj == NULL) + return; + SWFDEC_LOG ("setting %s as property for...
2007 Mar 07
0
11 commits - libswfdec/swfdec_event.c libswfdec/swfdec_event.h libswfdec/swfdec_js_movie.c libswfdec/swfdec_movie.c libswfdec/swfdec_scriptable.c libswfdec/swfdec_scriptable.h libswfdec/swfdec_script.c libswfdec/swfdec_sprite.c libswfdec/swfdec_sprite.h
...CTION_ADD, content); return content; } @@ -349,8 +349,7 @@ swfdec_spriteseg_place_object_2 (SwfdecS depth -= 16384; /* new name always means new object */ - content = swfdec_contents_create (s->parse_sprite, - s->parse_sprite->parse_frame, depth, move, has_character || has_name); + content = swfdec_contents_create (s->parse_sprite, depth, move, has_character || has_name); if (has_character) { int id = swfdec_bits_get_u16 (bits); content->graphic = swfdec_swf_decoder_get_character (s, id); @@ -460,8 +459,7 @@ swfdec_spriteseg_remove_object (SwfdecSw...
2007 Jun 28
0
Branch 'as' - 4 commits - libswfdec/swfdec_debugger.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_sprite_movie.c test/image
...2104 100644 --- a/libswfdec/swfdec_sprite_movie.c +++ b/libswfdec/swfdec_sprite_movie.c @@ -165,7 +165,7 @@ swfdec_sprite_movie_perform_place (Swfde ratio = swfdec_bits_get_u16 (bits); SWFDEC_LOG (" ratio = %d", ratio); } else { - ratio = 0; + ratio = -1; } if (has_name) { diff-tree 8667de8f3c4c44801a950f58aae4b3a6bd0a5c17 (from 81472f980827d624a88339abd8db0e40c8aaf453) Author: Benjamin Otte <otte at gnome.org> Date: Wed Jun 27 19:20:18 2007 +0200 allow creating movies in depths < 16384 createEmptyMovieClip allows this diff --git a/libswf...
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
...FDEC_LOG ("created JSObject %p for movie %p", movie->jsobj, movie); - g_object_ref (movie); - JS_SetPrivate (cx, movie->jsobj, movie); - /* add all children */ - for (walk = movie->list; walk; walk = walk->next) { - SwfdecMovie *child = walk->data; - if (child->has_name) - swfdec_js_movie_add_property (child); - } - return TRUE; -} - -/** - * swfdec_js_val_to_movie: - * @cx: the relevant #JSContext - * @val: value hat might reference a #SwfdecMovie - * - * Extracts the #SwfdecMovie referenced by @val and returns it. This function - * performs all the necess...
2007 Nov 22
0
5 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_debugger.c libswfdec/swfdec_movie.c libswfdec/swfdec_script.c libswfdec/swfdec_sprite_movie.c libswfdec/swfdec_tag.c libswfdec/swfdec_text_field.c
...diff --git a/libswfdec/swfdec_sprite_movie.c b/libswfdec/swfdec_sprite_movie.c index 6ffdc67..1a7b6d5 100644 --- a/libswfdec/swfdec_sprite_movie.c +++ b/libswfdec/swfdec_sprite_movie.c @@ -229,7 +229,7 @@ swfdec_sprite_movie_perform_place (SwfdecSpriteMovie *movie, SwfdecBits *bits, g } if (has_name) { - char *s = swfdec_bits_get_string_with_version (bits, version); + char *s = swfdec_bits_get_string (bits, version); name = swfdec_as_context_give_string (SWFDEC_AS_CONTEXT (player), s); SWFDEC_LOG (" name = %s", name); } else { @@ -425,7 +425,7 @@ swfdec_sprite_mov...
2007 Mar 05
0
11 commits - configure.ac libswfdec/swfdec_js_movie.c libswfdec/swfdec_root_movie.c libswfdec/swfdec_root_movie.h libswfdec/swfdec_script.c libswfdec/swfdec_sprite.c libswfdec/swfdec_sprite.h libswfdec/swfdec_sprite_movie.c libswfdec/swfdec_swf_decoder.c
...s_movie.c b/libswfdec/swfdec_js_movie.c index dcf119d..855d002 100644 --- a/libswfdec/swfdec_js_movie.c +++ b/libswfdec/swfdec_js_movie.c @@ -1154,7 +1154,8 @@ swfdec_js_movie_remove_property (SwfdecM JSContext *cx; JSBool found = JS_FALSE; - if (script->jsobj == NULL) + if (!movie->has_name || + script->jsobj == NULL) return; cx = script->jscx; diff-tree efce7d9c8c83c94695264ad55902cd78130141df (from f7b8a791525df2b8f431ce233219f25cd694428a) Author: Benjamin Otte <otte@gnome.org> Date: Sun Mar 4 23:35:07 2007 +0100 implement Delete2 also chan...
2007 Mar 22
0
7 commits - configure.ac doc/swfdec-docs.sgml libswfdec/js libswfdec/swfdec_buffer.c libswfdec/swfdec_buffer.h libswfdec/swfdec_js_movie.c test/trace
...bject *ob SwfdecMovie *movie; JSString *string; - movie = JS_GetPrivate (cx, obj); - g_assert (movie); + movie = swfdec_scriptable_from_object (cx, obj, SWFDEC_TYPE_MOVIE); + if (movie == NULL) { + SWFDEC_WARNING ("not a movie"); + return JS_TRUE; + } if (movie->has_name) string = JS_NewStringCopyZ (cx, movie->name); @@ -856,8 +943,11 @@ mc_name_set (JSContext *cx, JSObject *ob SwfdecMovie *movie; const char *str; - movie = JS_GetPrivate (cx, obj); - g_assert (movie); + movie = swfdec_scriptable_from_object (cx, obj, SWFDEC_TYPE_MOVIE); + if (mo...
2007 Apr 13
0
5 commits - libswfdec/Makefile.am libswfdec/swfdec_color.c libswfdec/swfdec_color.h libswfdec/swfdec_font.c libswfdec/swfdec_loadertarget.c libswfdec/swfdec_movie.h libswfdec/swfdec_pattern.c libswfdec/swfdec_pattern.h libswfdec/swfdec_player.c
...lter = swfdec_bits_getbit (bits); + SWFDEC_LOG (" has filter = %d", has_filter); + SWFDEC_LOG (" has blend mode = %d", has_blend_mode); + } + /* new name always means new object */ content = swfdec_contents_create (s->parse_sprite, depth, move, has_character || has_name); if (has_character) { @@ -402,6 +421,19 @@ swfdec_spriteseg_place_object_2 (SwfdecS content->clip_depth = swfdec_bits_get_u16 (bits) - 16384; SWFDEC_LOG (" clip_depth = %d (=> %d)", content->clip_depth + 16384, content->clip_depth); } + if (has_filter) { +...
2007 Apr 16
0
7 commits - libswfdec/swfdec_codec_gst.c libswfdec/swfdec_font.c libswfdec/swfdec_js_movie.c libswfdec/swfdec_morph_movie.c libswfdec/swfdec_pattern.c libswfdec/swfdec_pattern.h libswfdec/swfdec_shape.c libswfdec/swfdec_shape.h libswfdec/swfdec_sprite.c
...= %d", has_blend_mode); } + depth = swfdec_bits_get_u16 (bits); + SWFDEC_LOG (" depth = %d (=> %d)", depth, depth - 16384); + depth -= 16384; + /* new name always means new object */ content = swfdec_contents_create (s->parse_sprite, depth, move, has_character || has_name); if (has_character) { diff-tree 4997a85872e08b16e9a0283cd60242285cb51674 (from ab7ac15f7e1f4290125e5bd938541fc28ade5aed) Author: Benjamin Otte <otte@gnome.org> Date: Sat Apr 14 00:13:33 2007 +0200 implement the Flash 8 linestyle reading This includes some shuffling around...
2007 Apr 04
0
Branch 'as' - 17 commits - configure.ac doc/Makefile.am doc/swfdec-docs.sgml doc/swfdec-sections.txt doc/swfdec.types libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec-gtk.h libswfdec-gtk/swfdec_gtk_loader.c libswfdec-gtk/swfdec_gtk_loader.h
...{ + swfdec_as_object_add (SWFDEC_AS_OBJECT (ret), + SWFDEC_AS_CONTEXT (player), sizeof (SwfdecRootMovie)); + g_object_ref (ret); + } else { + SWFDEC_AS_OBJECT (ret)->context = SWFDEC_AS_CONTEXT (player); + } ret->root = ret; swfdec_movie_initialize (ret, content); ret->has_name = FALSE; diff --git a/libswfdec/swfdec_movie.h b/libswfdec/swfdec_movie.h index f1db624..299c793 100644 --- a/libswfdec/swfdec_movie.h +++ b/libswfdec/swfdec_movie.h @@ -21,11 +21,11 @@ #define _SWFDEC_MOVIE_H_ #include <glib-object.h> +#include <libswfdec/swfdec_as_object.h> #incl...
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
...rform_place (SwfdecSpriteMovie *movie, SwfdecBits *bits, g SwfdecPlayer *player = SWFDEC_PLAYER (SWFDEC_AS_OBJECT (movie)->context); SwfdecMovie *mov = SWFDEC_MOVIE (movie); SwfdecMovie *cur; + SwfdecSwfDecoder *dec; gboolean has_clip_actions; gboolean has_clip_depth; gboolean has_name; @@ -95,7 +96,8 @@ swfdec_sprite_movie_perform_place (SwfdecSpriteMovie *movie, SwfdecBits *bits, g guint blend_mode; SwfdecGraphic *graphic; - version = SWFDEC_SWF_DECODER (mov->swf->decoder)->version; + dec = SWFDEC_SWF_DECODER (mov->resource->decoder); + version = dec-&...
2019 Aug 23
22
cross-project patches: Add NBD Fast Zero support
This is a cover letter to a series of patches being proposed in tandem to four different projects: - nbd: Document a new NBD_CMD_FLAG_FAST_ZERO command flag - qemu: Implement the flag for both clients and server - libnbd: Implement the flag for clients - nbdkit: Implement the flag for servers, including the nbd passthrough client If you want to test the patches together, I've pushed a