Displaying 20 results from an estimated 47 matches for "garray".
Did you mean:
array
2007 Jun 06
0
Branch 'as' - libswfdec/Makefile.am libswfdec/swfdec_root_movie.c libswfdec/swfdec_root_sprite.c libswfdec/swfdec_root_sprite.h libswfdec/swfdec_swf_decoder.c libswfdec/swfdec_swf_decoder.h libswfdec/swfdec_tag.c
...ipt.h"
+#include "swfdec_sprite.h"
#include "swfdec_swf_decoder.h"
@@ -216,7 +216,7 @@ swfdec_root_movie_load (SwfdecRootMovie
void
swfdec_root_movie_perform_root_actions (SwfdecRootMovie *root, guint frame)
{
- SwfdecRootSprite *sprite;
+ SwfdecSwfDecoder *s;
GArray *array;
guint i;
@@ -226,12 +226,12 @@ swfdec_root_movie_perform_root_actions (
if (frame < root->root_actions_performed)
return;
- sprite = SWFDEC_ROOT_SPRITE (SWFDEC_SPRITE_MOVIE (root)->sprite);
+ s = SWFDEC_SWF_DECODER (root->decoder);
SWFDEC_LOG ("performin...
2007 Mar 09
0
libswfdec/swfdec_root_sprite.c libswfdec/swfdec_root_sprite.h
..._sprite, SWFDEC_TYPE_SPRITE)
+
+void
+swfdec_root_sprite_dispose (GObject *object)
+{
+ SwfdecSprite *sprite = SWFDEC_SPRITE (object);
+ SwfdecRootSprite *root = SWFDEC_ROOT_SPRITE (object);
+ guint i,j;
+
+ if (root->root_actions) {
+ for (i = 0; i < sprite->n_frames; i++) {
+ GArray *array = root->root_actions[i];
+ if (array) {
+ for (j = 0; j < array->len; j++) {
+ SwfdecSpriteAction *action = &g_array_index (array, SwfdecSpriteAction, j);
+
+ switch (action->type) {
+ case SWFDEC_ROOT_ACTION_EXPORT:
+ {
+ SwfdecRootExportData *data = acti...
2015 Jul 29
3
qemu-kvm-ev with CentOS 7.1
Hello, All!
Is it possible to use binary packages build from
http://resources.ovirt.org/pub/ovirt-3.5/rpm/el7/SRPMS/qemu-kvm-ev-2.1.2-23.el7_1.3.1.src.rpm
with plain CentOS 7.1 and use all other packages from CentOS
(libvirt, virt-manager, etc)
Is it have reasons, if I not use live migrations and qcow2 snapshots?
(instead use zfs, zvols and zfs snapshots for VM disks online backups)
Is using
2007 Mar 20
0
4 commits - libswfdec/swfdec_flv_decoder.c libswfdec/swfdec_flv_decoder.h libswfdec/swfdec_movie.c test/trace
...ack IN SwfdecPlayer */
diff --git a/libswfdec/swfdec_flv_decoder.h b/libswfdec/swfdec_flv_decoder.h
index 9163058..7bb9c72 100644
--- a/libswfdec/swfdec_flv_decoder.h
+++ b/libswfdec/swfdec_flv_decoder.h
@@ -44,6 +44,7 @@ struct _SwfdecFlvDecoder
int state; /* parsing state we're in */
GArray * audio; /* audio tags */
GArray * video; /* video tags */
+ GArray * data; /* data tags (if any) */
};
struct _SwfdecFlvDecoderClass {
@@ -71,6 +72,9 @@ SwfdecBuffer * swfdec_flv_decoder_get_au
SwfdecAudioOut * format,
guint * real_timestamp,
guint * next...
2015 Jul 29
2
CentOS 7.1 + qemu-kvm-ev + SLIC acpitable windows bug workaround
...-- a/hw/i386/acpi-build.c
+++ b/hw/i386/acpi-build.c
@@ -224,6 +224,8 @@ static void acpi_get_pci_info(PcPciInfo *info)
#define ACPI_BUILD_TABLE_FILE "etc/acpi/tables"
#define ACPI_BUILD_RSDP_FILE "etc/acpi/rsdp"
+extern size_t slic_table_offset;
+
static void
build_header(GArray *linker, GArray *table_data,
AcpiTableHeader *h, const char *sig, int len, uint8_t rev)
@@ -237,6 +239,11 @@ build_header(GArray *linker, GArray *table_data,
h->oem_revision = cpu_to_le32(1);
memcpy(h->asl_compiler_id, ACPI_BUILD_APPNAME4, 4);
h->asl_compiler_r...
2007 Mar 13
0
2 commits - libswfdec/swfdec_debugger.c libswfdec/swfdec_script.c libswfdec/swfdec_script.h
...ibswfdec/swfdec_debugger.c b/libswfdec/swfdec_debugger.c
index 7f3546d..c17c315 100644
--- a/libswfdec/swfdec_debugger.c
+++ b/libswfdec/swfdec_debugger.c
@@ -32,32 +32,138 @@
/*** SwfdecDebuggerScript ***/
+typedef struct {
+ SwfdecConstantPool * constant_pool; /* current constant pool */
+ GArray * commands; /* SwfdecDebuggerCommands parsed so far */
+} ScriptParser;
+
+static char *
+swfdec_debugger_print_push (ScriptParser *parser, const guint8 *data, guint len)
+{
+ gboolean first = TRUE;
+ SwfdecBits bits;
+ GString *string = g_string_new ("Push");
+
+ swfdec_bits_init_da...
2007 Oct 31
0
5 commits - libswfdec/swfdec_as_object.c libswfdec/swfdec_audio.c libswfdec/swfdec_sound.c libswfdec/swfdec_xml.c
.../libswfdec/swfdec_sound.c
index 0e7f831..3e9da94 100644
--- a/libswfdec/swfdec_sound.c
+++ b/libswfdec/swfdec_sound.c
@@ -303,8 +303,7 @@ swfdec_sound_parse_chunk (SwfdecSwfDecoder *s, SwfdecBits *b, int id)
int has_loops;
int has_out_point;
int has_in_point;
- guint i, j, n_envelopes;
- GArray *envelopes;
+ guint i, j;
SwfdecSound *sound;
SwfdecSoundChunk *chunk;
@@ -352,47 +351,29 @@ swfdec_sound_parse_chunk (SwfdecSwfDecoder *s, SwfdecBits *b, int id)
chunk->loop_count = 1;
}
if (has_envelope) {
- n_envelopes = swfdec_bits_get_u8 (b);
- if (n_envelopes >...
2007 Apr 03
0
11 commits - libswfdec-gtk/swfdec_gtk_loader.c libswfdec-gtk/swfdec_playback_alsa.c libswfdec-gtk/swfdec_source.c libswfdec/swfdec_cached.c libswfdec/swfdec_font.c libswfdec/swfdec_morphshape.c libswfdec/swfdec_net_stream.c libswfdec/swfdec_script.c
...indirect) bytes in 3 blocks are definitely lost in loss record 70 of 101
==24359== at 0x4021620: malloc (vg_replace_malloc.c:149)
==24359== by 0x4E7BCB5: g_malloc (gmem.c:131)
==24359== by 0x4E8B887: g_slice_alloc (gslice.c:777)
==24359== by 0x4E56E38: g_array_sized_new (garray.c:94)
==24359== by 0x4E56F56: g_array_new (garray.c:86)
==24359== by 0x4044B2D: swfdec_font_init (swfdec_font.c:61)
==24359== by 0x4E35838: g_type_create_instance (gtype.c:1569)
==24359== by 0x4E1C901: g_object_constructor (gobject.c:1041)
==24359== by 0x4E1AC0A:...
2018 May 10
1
[PATCH 0/1] libldm: Make libldm to parse and return volume GUID.
The result of this patch will be used by libguestfs to return drive mappings
for LDM volumes. Note, that "show volume" ldmtool command already returns
hint which is a drive letter assigned by Windows to corresponding volume.
But it is not reliable source of information. More over, in multiboot
environment it is unclear which drive letter belongs to which operating
system. Volume GUID
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
...cBuffer *sound_block; /* sound chunk to play here or NULL for none */
- guint sound_samples; /* number of samples in this frame */
+ guint sound_samples; /* number of samples in this frame */
GSList *sound; /* list of SwfdecSoundChunk events to start playing here */
-
- /* visuals */
- GArray *actions; /* SwfdecSpriteAction in execution order */
};
struct _SwfdecSprite
@@ -73,6 +68,7 @@ struct _SwfdecSprite
SwfdecSpriteFrame * frames; /* the n_frames different frames */
guint n_frames; /* number of frames in this sprite */
SwfdecScript * init_action; /* action to run w...
2018 May 10
2
[PATCH libldm v2 0/1] Make libldm to parse and return volume GUID.
v2: wrap commit message, "PATCH libldm" prefix.
The result of this patch might be used by libguestfs to return drive
mappings for LDM volumes.
Note, that "show volume" ldmtool command already returns hint which
is a drive letter assigned by Windows to corresponding volume. But
it is not reliable source of information. More over, in multiboot
environment it will be unclear
2007 Oct 25
0
6 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_event.c libswfdec/swfdec_event.h libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h libswfdec/swfdec_resource.c
...IS_CHARACTER (character));
@@ -301,41 +305,3 @@ swfdec_resource_add_export (SwfdecResource *instance, SwfdecCharacter *character
g_hash_table_insert (instance->export_names, character, (char *) name);
}
-void
-swfdec_resource_advance (SwfdecResource *instance)
-{
- SwfdecSwfDecoder *s;
- GArray *array;
- guint i;
-
- g_return_if_fail (SWFDEC_IS_RESOURCE (instance));
-
- s = SWFDEC_SWF_DECODER (instance->decoder);
- SWFDEC_LOG ("performing actions for frame %u", instance->parse_frame);
- if (s->root_actions) {
- array = s->root_actions[instance->parse_frame...
2007 Oct 17
0
libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field.h libswfdec/swfdec_text_field_movie.c
...293 +90,6 @@ swfdec_text_field_init (SwfdecTextField * text)
text->scroll = 1;
}
-SwfdecLayout *
-swfdec_text_field_generate_layouts (SwfdecTextField *text, cairo_t *cr,
- const SwfdecParagraph *paragraphs, const SwfdecColorTransform *trans,
- const SwfdecRect *inval, int *num)
-{
- GArray *layouts;
- guint i;
-
- g_return_val_if_fail (SWFDEC_IS_TEXT_FIELD (text), NULL);
- g_return_val_if_fail (cr != NULL, NULL);
- g_return_val_if_fail (paragraphs != NULL, NULL);
-
- layouts = g_array_new (TRUE, TRUE, sizeof (SwfdecLayout));
-
- for (i = 0; paragraphs[i].text != NULL; i++)
- {...
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
...ons; /* number of actions in new script */
+} Action;
+
+typedef struct {
+ SwfdecScript * script; /* the original script */
+ SwfdecOut * out; /* output for new script or NULL when buffer is set */
+ SwfdecBuffer * buffer; /* buffer containing new script or NULL while constructing */
+ 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_...
2018 May 10
2
[PATCH libldm v3 0/2] Make libldm to parse and return volume GUID.
v2: wrap commit message, "PATCH libldm" prefix.
v3: correctly initialize and free GLib resources.
The result of this patch might be used by libguestfs to return drive
mappings for LDM volumes.
Note, that "show volume" ldmtool command already returns hint which
is a drive letter assigned by Windows to corresponding volume. But
it is not reliable source of information. More
2018 May 14
3
[PATCH libldm v4 0/3] Make libldm to parse and return volume GUID.
v2: wrap commit message, "PATCH libldm" prefix.
v3: correctly initialize and free GLib resources.
v4: gtk-doc is updated to reflect presence of new volume GUID field.
The result of this patch might be used by libguestfs to return drive
mappings for LDM volumes.
Note, that "show volume" ldmtool command already returns hint which
is a drive letter assigned by Windows to
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
...rite.h b/libswfdec/swfdec_sprite.h
index 1968d1a..5ac0bf8 100644
--- a/libswfdec/swfdec_sprite.h
+++ b/libswfdec/swfdec_sprite.h
@@ -63,7 +63,6 @@ struct _SwfdecSpriteFrame
GSList *sound; /* list of SwfdecSoundChunk events to start playing here */
/* visuals */
- SwfdecColor bg_color;
GArray *actions; /* SwfdecSpriteAction in execution order */
};
diff --git a/libswfdec/swfdec_sprite_movie.c b/libswfdec/swfdec_sprite_movie.c
index 36cbd8f..1cc2f0b 100644
--- a/libswfdec/swfdec_sprite_movie.c
+++ b/libswfdec/swfdec_sprite_movie.c
@@ -142,11 +142,6 @@ swfdec_sprite_movie_do_goto_fra...
2007 Feb 15
0
8 commits - libswfdec/swfdec_bits.h libswfdec/swfdec_font.c libswfdec/swfdec_font.h libswfdec/swfdec_loader.c libswfdec/swfdec_loader_internal.h libswfdec/swfdec_tag.c libswfdec/swfdec_text.c libswfdec/swfdec_text.h test/swfedit_token.c test/various
...define SWFDEC_TEXT_SCALE_FACTOR (1024)
+
typedef enum {
SWFDEC_LANGUAGE_NONE = 0,
SWFDEC_LANGUAGE_LATIN = 1,
@@ -60,7 +62,8 @@ struct _SwfdecFont
gboolean bold; /* font is bold */
gboolean italic; /* font is italic */
gboolean small; /* font is rendered at small sizes */
- GArray * glyphs; /* key: glyph index, value: UCS2 character */
+ GArray * glyphs; /* SwfdecFontEntry */
+ guint scale_factor; /* size of a font in glyph entry */
};
struct _SwfdecFontClass
diff --git a/libswfdec/swfdec_text.c b/libswfdec/swfdec_text.c
index 7f2ed9c..6090512 100644
--- a/libswf...
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
...DEC_AS_ARRAY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SWFDEC_TYPE_AS_ARRAY, SwfdecAsArrayClass))
+#define SWFDEC_AS_ARRAY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SWFDEC_TYPE_AS_ARRAY, SwfdecAsArrayClass))
+
+struct _SwfdecAsArray {
+ SwfdecAsObject object;
+
+ GArray * values; /* the indexed values in the array */
+};
+
+struct _SwfdecAsArrayClass {
+ SwfdecAsObjectClass object_class;
+};
+
+GType swfdec_as_array_get_type (void);
+
+SwfdecAsObject *swfdec_as_array_new (SwfdecAsContext * context,
+ guint preallocated_items);
+
+
+
+G_END_DECLS
+#end...
2018 May 15
12
[PATCH libldm 00/12] New API: an ability to retrieve created device-mapper devices back after they have been created.
The main goal of these patch series is to implement a new API that allows to retrieve created device-mapper devices for volumes and partitions back after they have been created.
As part of this patch:
- required libdevmapper version was bumped to 1.02. I think it is safe because it was released more then 10 years ago;
- newer version of libdevmapper allowed to simplify code base a little bit;
-