search for: g_maxuint

Displaying 20 results from an estimated 26 matches for "g_maxuint".

2007 Jun 09
0
Branch 'as' - libswfdec/swfdec_flv_decoder.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_sprite_movie_as.c
...add a free flag to SwfdecContent diff --git a/libswfdec/swfdec_flv_decoder.c b/libswfdec/swfdec_flv_decoder.c index d9fc7f9..2352471 100644 --- a/libswfdec/swfdec_flv_decoder.c +++ b/libswfdec/swfdec_flv_decoder.c @@ -653,8 +653,8 @@ swfdec_flv_decoder_add_movie (SwfdecFlvD video->width = G_MAXUINT; video->height = G_MAXUINT; content->graphic = SWFDEC_GRAPHIC (video); + content->free = TRUE; movie = swfdec_movie_new (parent, content); - g_object_weak_ref (G_OBJECT (movie), (GWeakNotify) swfdec_content_free, content); g_object_weak_ref (G_OBJECT (movie), (GWeakNotify) g_...
2007 Nov 07
0
7 commits - doc/swfdec-sections.txt libswfdec-gtk/swfdec_gtk_widget.c libswfdec/swfdec_as_strings.c libswfdec/swfdec_decoder.c libswfdec/swfdec_flv_decoder.c libswfdec/swfdec_movie_asprops.c libswfdec/swfdec_net_stream.c libswfdec/swfdec_player.c
...ot;, "TRUE when the player has initialized its basic values", FALSE, G_PARAM_READABLE)); + g_object_class_install_property (object_class, PROP_DEFAULT_WIDTH, + g_param_spec_uint ("default-width", "default width", "default width of the movie", + 0, G_MAXUINT, 0, G_PARAM_READABLE)); + g_object_class_install_property (object_class, PROP_DEFAULT_HEIGHT, + g_param_spec_uint ("default-height", "default height", "default height of the movie", + 0, G_MAXUINT, 0, G_PARAM_READABLE)); + g_object_class_install_property (obje...
2007 Feb 17
0
2 commits - doc/swfdec-sections.txt libswfdec/swfdec_color.h libswfdec/swfdec_player.c libswfdec/swfdec_player.h libswfdec/swfdec_player_internal.h libswfdec/swfdec_sprite.c libswfdec/swfdec_sprite.h libswfdec/swfdec_sprite_movie.c
...ax_size = g_value_get_uint (value); break; @@ -713,7 +720,9 @@ swfdec_player_class_init (SwfdecPlayerCl g_object_class_install_property (object_class, PROP_CACHE_SIZE, g_param_spec_uint ("cache-size", "cache size", "maximum cache size in bytes", 0, G_MAXUINT, 50 * 1024 * 1024, G_PARAM_READABLE)); - + g_object_class_install_property (object_class, PROP_BACKGROUND_COLOR, + g_param_spec_uint ("background-color", "background color", "ARGB color used to draw the background", + 0, G_MAXUINT, SWFDEC_COLOR_COMBINE (0xFF, 0...
2007 Mar 16
0
libswfdec/swfdec_loader.c
...ot = strrchr (ret, '.'); char *real; - guint len = strlen (dot); - if (len <= 5) { - real = g_strdup_printf ("%*s.%s", dot - ret, ret, ext); - } else { - real = g_strdup_printf ("%s.%s", ret, ext); - } + guint len = dot ? strlen (dot) : G_MAXUINT; + g_print ("ret: %s, dot: %s, ext: %s\n", ret, dot, ext); + if (len <= 5) + *dot = '\0'; + real = g_strdup_printf ("%s.%s", ret, ext); g_free (ret); ret = real; }
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
...d for the sequence leader */ @@ -57,7 +58,7 @@ struct _SwfdecContent { guint end; /* first frame that does not contain this sequence anymore */ }; #define SWFDEC_CONTENT_DEFAULT { NULL, -1, 0, 0, { 1.0, 0.0, 0.0, 1.0, 0.0, 0.0 }, \ - { 256, 0, 256, 0, 256, 0, 256, 0 }, NULL, NULL, NULL, 0, G_MAXUINT } + { 256, 0, 256, 0, 256, 0, 256, 0 }, NULL, NULL, CAIRO_OPERATOR_OVER, NULL, 0, G_MAXUINT } #define SWFDEC_TYPE_MOVIE (swfdec_movie_get_type()) #define SWFDEC_IS_MOVIE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SWFDEC_TYPE_MOVIE)) diff --git a/libswfdec/swfde...
2007 Mar 26
0
6 commits - doc/swfdec-sections.txt libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec_gtk_player.c libswfdec-gtk/swfdec_gtk_player.h libswfdec/swfdec_loader.c player/swfplay.c swfdec-gtk.pc.in
...c_loader.c b/libswfdec/swfdec_loader.c index 69c460f..81d536c 100644 --- a/libswfdec/swfdec_loader.c +++ b/libswfdec/swfdec_loader.c @@ -496,7 +496,6 @@ swfdec_loader_get_filename (SwfdecLoader char *dot = strrchr (ret, '.'); char *real; guint len = dot ? strlen (dot) : G_MAXUINT; - g_print ("ret: %s, dot: %s, ext: %s\n", ret, dot, ext); if (len <= 5) *dot = '\0'; real = g_strdup_printf ("%s.%s", ret, ext); diff-tree 5925dd88bf66d0773b1ae6060205742d64ebd4a4 (from 00a2f65fd9ff9f2ab7770837c26da2a1634125b9) Author: Benjamin O...
2007 Aug 26
0
9 commits - libswfdec-gtk/swfdec_source.c libswfdec/swfdec_marshal.list libswfdec/swfdec_player.c libswfdec/swfdec_player.h libswfdec/swfdec_player_internal.h libswfdec/swfdec_sprite_movie.c libswfdec/swfdec_swf_instance.c test/dump.c test/Makefile.am
...4e51 100644 --- a/libswfdec/swfdec_player.c +++ b/libswfdec/swfdec_player.c @@ -240,7 +240,7 @@ swfdec_player_get_next_event_time (Swfde if (player->timeouts) { return ((SwfdecTimeout *) player->timeouts->data)->timestamp - player->time; } else { - return 0; + return G_MAXUINT64; } } @@ -277,7 +277,7 @@ swfdec_player_add_timeout (SwfdecPlayer g_return_if_fail (SWFDEC_IS_PLAYER (player)); g_return_if_fail (timeout != NULL); - g_return_if_fail (timeout->timestamp > player->time); + g_return_if_fail (timeout->timestamp >= player->time);...
2007 Aug 27
0
7 commits - libswfdec/Makefile.am libswfdec/swfdec_as_string.c libswfdec/swfdec_as_string.h libswfdec/swfdec_as_strings.c libswfdec/swfdec.h libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_player.c
..."ISO 639-1 screen-width code", + "en", G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); + g_object_class_install_property (object_class, PROP_SCREEN_WIDTH, + g_param_spec_uint ("screen-width", "screen width", "width of the screen in pixels", + 0, G_MAXUINT, 1024, G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); + g_object_class_install_property (object_class, PROP_SCREEN_HEIGHT, + g_param_spec_uint ("screen-height", "screen height", "height of the screen in pixels", + 0, G_MAXUINT, 768, G_PARAM_READWRITE | G_PARAM_CONSTR...
2007 Mar 02
0
12 commits - libswfdec/Makefile.am libswfdec/swfdec_audio_flv.c libswfdec/swfdec_flv_decoder.c libswfdec/swfdec_js.c libswfdec/swfdec_js.h libswfdec/swfdec_js_video.c libswfdec/swfdec_loader.c libswfdec/swfdec_loader_internal.h
...wfdecMovie *parent) { @@ -463,18 +474,19 @@ swfdec_flv_decoder_add_movie (SwfdecFlvD /* set up the video movie */ video = g_object_new (SWFDEC_TYPE_VIDEO, NULL); - video->width = SWFDEC_DECODER (flv)->width; - video->height = SWFDEC_DECODER (flv)->height; + video->width = G_MAXUINT; + video->height = G_MAXUINT; content->graphic = SWFDEC_GRAPHIC (video); movie = swfdec_movie_new (parent, content); g_object_weak_ref (G_OBJECT (movie), (GWeakNotify) swfdec_content_free, content); g_object_weak_ref (G_OBJECT (movie), (GWeakNotify) g_object_unref, video); + g_s...
2007 Jul 31
0
10 commits - doc/swfdec-docs.sgml doc/swfdec-sections.txt libswfdec-gtk/swfdec_gtk_loader.c libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_buffer.c libswfdec/swfdec_debugger.c libswfdec/swfdec.h
..._from_utf8 (start, end ? end - start : -1, NULL, NULL, NULL); - if (ret) { - const char *ext; - - ext = swfdec_loader_data_type_get_extension (loader->data_type); - if (*ext) { - char *dot = strrchr (ret, '.'); - char *real; - guint len = dot ? strlen (dot) : G_MAXUINT; - if (len <= 5) - *dot = '\0'; - real = g_strdup_printf ("%s.%s", ret, ext); - g_free (ret); - ret = real; - } - } else { - ret = g_strdup ("unknown file"); + url = swfdec_loader_get_url (loader); + path = swfdec_url_get_path (url); + if...
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
...n free; /* free when unsetting */ + /* only used by buttons */ + SwfdecContent * sequence; + guint start; + guint end; }; #define SWFDEC_CONTENT_DEFAULT { NULL, -1, 0, 0, { 1.0, 0.0, 0.0, 1.0, 0.0, 0.0 }, \ { 256, 0, 256, 0, 256, 0, 256, 0 }, NULL, NULL, CAIRO_OPERATOR_OVER, NULL, 0, G_MAXUINT, FALSE } @@ -79,21 +77,26 @@ typedef enum { SWFDEC_MOVIE_UP_TO_DATE = 0, SWFDEC_MOVIE_INVALID_CHILDREN, SWFDEC_MOVIE_INVALID_EXTENTS, - SWFDEC_MOVIE_INVALID_AREA, - SWFDEC_MOVIE_INVALID_MATRIX, + SWFDEC_MOVIE_INVALID_MATRIX } SwfdecMovieCacheState; struct _SwfdecMovie { SwfdecAsO...
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
...fdec/swfdec_as_interpret.c @@ -285,8 +285,10 @@ swfdec_action_wait_for_frame (SwfdecAsCo SwfdecDecoder *dec = SWFDEC_MOVIE (movie)->swf->decoder; loaded = dec->frames_loaded; g_assert (loaded <= movie->n_frames); + if (loaded == dec->frames_total) + loaded = G_MAXUINT; } else { - loaded = movie->n_frames; + loaded = G_MAXUINT; } if (loaded <= frame) swfdec_script_skip_actions (cx, jump); diff-tree 5c57cf2b0be8b2d66dd8c8362e768491a2b3f92b (from f7617df09a9ef883cb0503e801f457175d5e3de7) Author: Benjamin Otte <otte at gnome.org> Date...
2007 Mar 07
0
13 commits - libswfdec/Makefile.am libswfdec/swfdec_js_global.c libswfdec/swfdec_js_movie.c libswfdec/swfdec_root_movie.c libswfdec/swfdec_root_movie.h libswfdec/swfdec_script.c libswfdec/swfdec_sprite.h libswfdec/swfdec_sprite_movie.c
...movie_remove (ret); + content = swfdec_content_new (depth); + content->graphic = sprite; + content->depth = depth; + content->clip_depth = 0; /* FIXME: check this */ + content->name = g_strdup (name); + content->sequence = content; + content->start = 0; + content->end = G_MAXUINT; + ret = swfdec_movie_new (movie, content); + g_object_weak_ref (G_OBJECT (ret), (GWeakNotify) swfdec_content_free, content); + /* must be set by now, the movie has a name */ + if (SWFDEC_SCRIPTABLE (ret)->jsobj == NULL) + return JS_FALSE; + SWFDEC_LOG ("attached %s (%u) as %s to de...
2007 Oct 15
0
6 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_codec_audio.c libswfdec/swfdec_codec_video.c libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field.h libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c
...c index 214e338..e848c90 100644 --- a/libswfdec/swfdec_text_field.c +++ b/libswfdec/swfdec_text_field.c @@ -82,25 +82,24 @@ swfdec_text_field_class_init (SwfdecTextFieldClass * g_class) static void swfdec_text_field_init (SwfdecTextField * text) { + text->scroll = 1; text->max_length = G_MAXUINT; } -GList * +SwfdecLayout * swfdec_text_field_generate_layouts (SwfdecTextField *text, cairo_t *cr, const SwfdecParagraph *paragraphs, const SwfdecColorTransform *trans, - const SwfdecRect *inval) + const SwfdecRect *inval, int *num) { - GList *layouts; + GArray *layouts; guint...
2007 Jan 22
0
Branch 'interpreter' - 3 commits - libswfdec/swfdec_bits.c libswfdec/swfdec_swf_decoder.c test/Makefile.am test/swfedit.c test/swfedit_file.c test/swfedit_file.h test/swfedit_tag.c test/swfedit_tag.h test/swfedit_token.c test/swfedit_token.h
..._append_c (string, ' '); + g_string_append_printf (string, "%2X", buffer->data[i]); + } + return g_string_free (string, FALSE); +} + +static gboolean +swfedit_read_unsigned (const char *s, gulong max, gpointer* result) +{ + char *end; + gulong u; + + g_assert (max <= G_MAXUINT); + u = strtoul (s, &end, 10); + if (*end != '\0') + return FALSE; + if (u > max) + return FALSE; + *result = GUINT_TO_POINTER ((guint) u); + return TRUE; +} + +static gboolean +swfedit_uint8_read (const char *s, gpointer* result) +{ + return swfedit_read_unsigned (s, G_M...
2007 Oct 17
0
6 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field.h libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c
...it a/libswfdec/swfdec_text_field.c b/libswfdec/swfdec_text_field.c index a594bbd..064dcd0 100644 --- a/libswfdec/swfdec_text_field.c +++ b/libswfdec/swfdec_text_field.c @@ -83,7 +83,6 @@ static void swfdec_text_field_init (SwfdecTextField * text) { text->scroll = 1; - text->max_length = G_MAXUINT; } SwfdecLayout * @@ -434,7 +433,9 @@ tag_func_define_edit_text (SwfdecSwfDecoder * s, guint tag) text->color = SWFDEC_COLOR_COMBINE (255, 255, 255, 255); } if (has_max_length) { - text->max_length = swfdec_bits_get_u16 (b); + text->max_chars = swfdec_bits_get_u16 (b);...
2007 Feb 06
0
109 commits - configure.ac libswfdec/js libswfdec/Makefile.am libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_buffer.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_codec_screen.c libswfdec/swfdec_color.c libswfdec/swfdec_color.h
...erCommand command = { NULL, }; - - command.code = NULL + state->bytecode->len; - command.breakpoint = 0; - va_start (args, format); - command.description = g_strdup_vprintf (format, args); - SWFDEC_DEBUG ("%s", command.description); - va_end (args); - state->command_last = G_MAXUINT; - g_array_append_val (state->commands, command); -} - -static void -compile_state_debug_add_default (CompileState *state, guint action, const char *name) -{ - SwfdecDebuggerCommand command = { NULL, }; - - if (state->command_last == G_MAXUINT) - return; - if (action & 0x80) { -...
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
...buffer) +{ + g_return_if_fail (out != NULL); + + swfdec_out_prepare_bytes (out, buffer->length); + memcpy (out->ptr, buffer->data, buffer->length); + out->ptr += buffer->length; +} + +void +swfdec_out_put_u8 (SwfdecOut *out, guint i) +{ + g_return_if_fail (i <= G_MAXUINT8); + + swfdec_out_prepare_bytes (out, 1); + *out->ptr = i; + out->ptr++; +} + +void +swfdec_out_put_u16 (SwfdecOut *out, guint i) +{ + g_return_if_fail (i <= G_MAXUINT16); + + swfdec_out_prepare_bytes (out, 2); + *(guint16 *)out->ptr = GUINT16_TO_LE (i); + out->p...
2008 Jun 15
1
14 commits - configure.ac swfdec/.gitignore swfdec-gtk/swfdec_gtk_loader.c swfdec-gtk/swfdec_playback_alsa.c swfdec/Makefile.am swfdec/swfdec_asnative.h swfdec/swfdec_as_string.c swfdec/swfdec_audio.c swfdec/swfdec_audio_load.c swfdec/swfdec_audio_load.h
...ream->queue_size == 0; } static gsize @@ -147,7 +148,8 @@ swfdec_audio_stream_iterate (SwfdecAudio *audio, gsize remove) SwfdecBuffer *buffer; gsize samples, cur_samples; - swfdec_audio_stream_check_buffering (stream); + if (swfdec_audio_stream_check_buffering (stream)) + return G_MAXUINT; swfdec_audio_stream_require (stream, remove); samples = MIN (remove, stream->queue_size); commit 732a5412513384ccc3fbee03bd16a33e17531359 Author: Benjamin Otte <otte at gnome.org> Date: Fri Jun 13 10:52:32 2008 +0200 remove -Wlogical-op from warning flags gcc emits...
2007 Nov 28
0
59 commits - libswfdec-gtk/swfdec_gtk_widget.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_button.c libswfdec/swfdec_button.h libswfdec/swfdec_button_movie.c libswfdec/swfdec_button_movie.h libswfdec/swfdec_event.c
...n painting (aka blend mode) */ - - /* only used by buttons */ - SwfdecContent * sequence; - guint start; - guint end; -}; -#define SWFDEC_CONTENT_DEFAULT { NULL, -1, 0, 0, { 1.0, 0.0, 0.0, 1.0, 0.0, 0.0 }, \ - { 256, 0, 256, 0, 256, 0, 256, 0 }, NULL, NULL, CAIRO_OPERATOR_OVER, NULL, 0, G_MAXUINT, FALSE } - #define SWFDEC_TYPE_MOVIE (swfdec_movie_get_type()) #define SWFDEC_IS_MOVIE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SWFDEC_TYPE_MOVIE)) #define SWFDEC_IS_MOVIE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SWFDEC_TYPE_MOVIE)) @@ -220,8 +19...