search for: lookup_offset

Displaying 3 results from an estimated 3 matches for "lookup_offset".

2013 Apr 21
1
VQ vector value decode help
Hello, I've been writing a decoder using the spec and it's unclear to me where the value [lookup_offset] comes from when performing VQ vector value decode (page 23 of the spec). The wording in the spec is very confusing to me. Someone asked this question before ( http://lists.xiph.org/pipermail/vorbis-dev/2002-September/015282.html ), but it went unanswered. Could anyone help me (and anyone in t...
2007 Feb 14
0
7 commits - libswfdec/swfdec_image.c libswfdec/swfdec_script.c libswfdec/swfdec_script.h test/Makefile.am test/swfdec_out.c test/swfdec_out.h test/swfedit.c test/swfedit_list.c test/swfedit_tag.c test/swfedit_token.c test/swfedit_token.h test/swfscript.c
...GArray * actions; /* all actions in the script */ +} State; + +static gboolean +action_in_array (guint *array, guint action) +{ + if (array == NULL) + return FALSE; + while (*array != 0) { + if (*array == action) + return TRUE; + array++; + } + return FALSE; +} + +static guint +lookup_offset (GArray *array, guint offset) +{ + guint i; + for (i = 0; i < array->len; i++) { + Action *action = &g_array_index (array, Action, i); + if (action->offset == offset) + return action->new_offset; + } + g_assert_not_reached (); + return 0; +} + +static gboolean +fixup...
2008 Jan 07
0
12 commits - configure.ac doc/swfdec.types Makefile.am test/crashfinder.c test/dump.c test/Makefile.am test/swfdec-extract.c test/swfdec_out.c test/swfdec_out.h test/swfedit.c test/swfedit_file.c test/swfedit_file.h test/swfedit_list.c test/swfedit_list.h
...GArray * actions; /* all actions in the script */ -} State; - -static gboolean -action_in_array (guint *array, guint action) -{ - if (array == NULL) - return FALSE; - while (*array != 0) { - if (*array == action) - return TRUE; - array++; - } - return FALSE; -} - -static guint -lookup_offset (GArray *array, guint offset) -{ - guint i; - for (i = 0; i < array->len; i++) { - Action *action = &g_array_index (array, Action, i); - if (action->offset == offset) - return action->new_offset; - } - g_assert_not_reached (); - return 0; -} - -static gboolean -fixup...