search for: guint32

Displaying 20 results from an estimated 35 matches for "guint32".

Did you mean: uint32
2007 May 14
3
[Bug 567] ulogd writes invalid len field in per-packet headers
https://bugzilla.netfilter.org/bugzilla/show_bug.cgi?id=567 ------- Additional Comments From kaber@trash.net 2007-05-14 14:28 MET ------- There are two len fields, caplen and len. Which one is wrong? -- Configure bugmail: https://bugzilla.netfilter.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the
2007 Oct 15
0
3 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_codec_audio.h test/swfdec-extract.c
...loc (buffer->length + 44); unsigned char *data; guint i; data = wav->data; + /* FIXME: too much magic in this memmove */ memmove (data, "RIFF----WAVEfmt \020\0\0\0" - "\001\0\002\0D\254\0\0\020\261\002\0\004\0\020\0data", 40); - *(gint32 *) &data[4] = GUINT32_TO_LE (buffer->length + 36); - *(gint32 *) &data[40] = GUINT32_TO_LE (buffer->length); + "\001\0ccRRRRbbbbAAbbdata", 40); + *(guint32 *) &data[4] = GUINT32_TO_LE (buffer->length + 36); + *(guint16 *) &data[22] = GUINT16_TO_LE (swfdec_audio_format_get_channels (fo...
2007 Feb 06
0
Branch 'interpreter' - 15 commits - configure.ac libswfdec/swfdec_audio_event.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_color.c libswfdec/swfdec_color.h libswfdec/swfdec_compiler.c libswfdec/swfdec_image.c libswfdec/swfdec_sprite_movie.c
...BEFORE CHECKING STUFF IN! sheesh diff --git a/libswfdec/swfdec_image.c b/libswfdec/swfdec_image.c index 4463228..fc0b1f1 100644 --- a/libswfdec/swfdec_image.c +++ b/libswfdec/swfdec_image.c @@ -657,7 +657,7 @@ swfdec_image_create_surface_transformed for (i = 0; i < n; i++) { ((guint32 *) tdata)[i] = swfdec_color_apply_transform_premultiplied (((guint32 *) sdata)[i], trans); /* optimization: check for alpha channel to speed up compositing */ - has_alpha != tdata[4 * i + SWFDEC_COLOR_INDEX_ALPHA] != 0xFF; + has_alpha = tdata[4 * i + SWFDEC_COLOR_INDEX_ALPHA] != 0xFF;...
2007 Dec 10
0
5 commits - libswfdec/jpeg libswfdec/swfdec_as_interpret.c libswfdec/swfdec_bits.c libswfdec/swfdec_cached.c libswfdec/swfdec_codec_adpcm.c libswfdec/swfdec_codec_audio.c libswfdec/swfdec_flash_security.c libswfdec/swfdec_image.c
...f --git a/libswfdec/swfdec_image.c b/libswfdec/swfdec_image.c index ee200d9..be63312 100644 --- a/libswfdec/swfdec_image.c +++ b/libswfdec/swfdec_image.c @@ -451,18 +451,21 @@ swfdec_image_lossless_load (SwfdecImage *image) } else if (format == 5) { SwfdecBuffer *buffer; int i, j; + guint32 *p; + buffer = swfdec_bits_decompress (&bits, -1, 4 * image->width * image->height); if (buffer == NULL) { SWFDEC_ERROR ("failed to decompress data"); data = g_malloc0 (4 * image->width * image->height); goto out; } - ptr = data = buf...
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
...s supported by - * cairo_format_t instead of taking a mask as a parameter. - */ -static gboolean -buffer_diff_core (unsigned char *buf_a, - unsigned char *buf_b, - unsigned char *buf_diff, - int width, - int height, - int stride) -{ - int x, y; - gboolean result = TRUE; - guint32 *row_a, *row_b, *row; - - for (y = 0; y < height; y++) { - row_a = (guint32 *) (buf_a + y * stride); - row_b = (guint32 *) (buf_b + y * stride); - row = (guint32 *) (buf_diff + y * stride); - for (x = 0; x < width; x++) { - /* check if the pixels are the same */ - if (row_a[x] != r...
2007 Feb 06
0
21 commits - configure.ac libswfdec/swfdec_audio_event.c libswfdec/swfdec_bits.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_color.c libswfdec/swfdec_color.h libswfdec/swfdec_compiler.c libswfdec/swfdec_edittext.c libswfdec/swfdec_image.c
...BEFORE CHECKING STUFF IN! sheesh diff --git a/libswfdec/swfdec_image.c b/libswfdec/swfdec_image.c index 4463228..fc0b1f1 100644 --- a/libswfdec/swfdec_image.c +++ b/libswfdec/swfdec_image.c @@ -657,7 +657,7 @@ swfdec_image_create_surface_transformed for (i = 0; i < n; i++) { ((guint32 *) tdata)[i] = swfdec_color_apply_transform_premultiplied (((guint32 *) sdata)[i], trans); /* optimization: check for alpha channel to speed up compositing */ - has_alpha != tdata[4 * i + SWFDEC_COLOR_INDEX_ALPHA] != 0xFF; + has_alpha = tdata[4 * i + SWFDEC_COLOR_INDEX_ALPHA] != 0xFF;...
2004 Oct 11
1
install failure Ruuid package on OS X
...w/include -I/usr/local/include -fno-common -g -O2 -c Rinit.c -o Rinit.o In file included from Ruuid.h:5, from Rinit.c:1: uuidP.h:24:18: glib.h: No such file or directory In file included from Ruuid.h:5, from Rinit.c:1: uuidP.h:36: error: parse error before "guint32" uuidP.h:36: warning: no semicolon at end of struct or union uuidP.h:37: warning: data definition has no type or storage class uuidP.h:38: error: parse error before "time_hi_and_version" uuidP.h:38: warning: data definition has no type or storage class uuidP.h:39: error: parse error...
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 Jan 31
0
Branch 'interpreter' - 3 commits - libswfdec/js libswfdec/swfdec_script.c
...t.c b/libswfdec/swfdec_script.c index 9b3a328..46ba618 100644 --- a/libswfdec/swfdec_script.c +++ b/libswfdec/swfdec_script.c @@ -1359,6 +1359,35 @@ swfdec_action_define_function (JSContext } static JSBool +swfdec_action_bitwise (JSContext *cx, guint action, const guint8 *data, guint len) +{ + guint32 a, b; + double d; + + if (!JS_ValueToECMAUint32 (cx, cx->fp->sp[-1], &a) || + !JS_ValueToECMAUint32 (cx, cx->fp->sp[-2], &b)) + return JS_FALSE; + + switch (action) { + case 0x60: + d = (int) (a & b); + break; + case 0x61: + d = (int) (a | b);...
2012 Jan 20
2
GObject bindings overview
...copied. Structs: ******** A parallel struct is created for each libguestfs struct type. A boxed type is created for each parallel struct. It's field types are all mapped trivially to gobject basic types (e.g. gchar *, gint32) except FBuffer. FBuffer is mapped as: guint8 *<field> guint32 <field>_size Unfortunately I can see no way to attach annotation to these fields, so the bindings do not appreciate that these fields are related. I'm not happy with this at all, so I may try manual tweaking of the .gir to see if we can turn these into a single returned array where po...
2007 Feb 22
0
3 commits - libswfdec/swfdec_js.c libswfdec/swfdec_js_movie.c libswfdec/swfdec_script.c
...time", "_quality", + "_xmouse", "_ymouse" +}; + static JSBool swfdec_action_get_property (JSContext *cx, guint action, const guint8 *data, guint len) { @@ -732,27 +734,44 @@ swfdec_action_get_property (JSContext *c SwfdecMovie *movie; JSObject *jsobj; guint32 id; + const char *bytes; - val = cx->fp->sp[-2]; - if (!swfdec_eval_jsval (cx, NULL, &val)) - return JS_FALSE; - movie = swfdec_scriptable_from_jsval (cx, val, SWFDEC_TYPE_MOVIE); - val = JSVAL_VOID; - if (movie == NULL) { - SWFDEC_WARNING ("specified target does not re...
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
...->width * 4; - ++ ptr = image->data = lossless (bits.ptr, bits.end - bits.ptr, 4 * image->width * image->height); + /* image is stored in 0RGB format. We use ARGB/BGRA. */ + for (j = 0; j < image->height; j++) { + for (i = 0; i < image->width; i++) { + *((guint32 *) ptr) = GUINT32_FROM_BE (*((guint32 *) ptr)); + ptr += 4; } } - #endif } - - swfdec_image_create_surface (image, image_data); } int diff --cc test/dump.c index 9ee0524,9ee0524..efddeee @@@ -1,7 -1,7 +1,7 @@@ /* Swfdec * Copyright (C) 2003-2006 David Schleef <d...
2007 Mar 05
0
5 commits - libswfdec/swfdec_js.h libswfdec/swfdec_js_movie.c libswfdec/swfdec_script.c test/trace
...ject", name); + } + object = JS_NewObject (cx, clasp, JSVAL_IS_OBJECT (proto) ? JSVAL_TO_OBJECT (proto) : NULL, NULL); if (object == NULL) return JS_FALSE; fp->sp[-2] = OBJECT_TO_JSVAL (object); @@ -1436,7 +1441,7 @@ swfdec_action_new_method (JSContext *cx, const char *s; guint32 n_args; JSObject *object; - jsval constructor; + jsval constructor, proto; const JSClass *clasp; s = swfdec_js_to_string (cx, fp->sp[-1]); @@ -1467,7 +1472,12 @@ swfdec_action_new_method (JSContext *cx, if (JS_GetClass (object) != &js_FunctionClass) goto fail; clasp...
2007 Jul 11
0
libswfdec/swfdec_bits.c
...t (SwfdecBits * b) * use this command line: * python -c "import struct; print struct.unpack('8c', struct.pack('d', 7.949928895127363e-275))" */ -static double -swfdec_bits_double_to_host (double in) +double +swfdec_bits_get_double (SwfdecBits * b) { union { guint32 i[2]; double d; } conv; - conv.d = in; + SWFDEC_BYTES_CHECK (b, 8); + #if G_BYTE_ORDER == G_LITTLE_ENDIAN - { - int tmp = conv.i[0]; - conv.i[0] = conv.i[1]; - conv.i[1] = tmp; - } + conv.i[1] = (b->ptr[3] << 24) | (b->ptr[2] << 16) | (b->ptr[1] <&lt...
2007 Jul 11
0
Branch 'as' - 3 commits - libswfdec/swfdec_bits.c
...t (SwfdecBits * b) * use this command line: * python -c "import struct; print struct.unpack('8c', struct.pack('d', 7.949928895127363e-275))" */ -static double -swfdec_bits_double_to_host (double in) +double +swfdec_bits_get_double (SwfdecBits * b) { union { guint32 i[2]; double d; } conv; - conv.d = in; + SWFDEC_BYTES_CHECK (b, 8); + #if G_BYTE_ORDER == G_LITTLE_ENDIAN - { - int tmp = conv.i[0]; - conv.i[0] = conv.i[1]; - conv.i[1] = tmp; - } + conv.i[1] = (b->ptr[3] << 24) | (b->ptr[2] << 16) | (b->ptr[1] <&lt...
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 Nov 10
1
3 commits - libswfdec/swfdec_image.c libswfdec/swfdec_image.h
...ot;failed to allocate memory for transformed image"); return NULL; } - sdata = image->data; + /* FIXME: This code assumes a rowstride of 4 * width */ + sdata = cairo_image_surface_get_data (source); n = image->width * image->height; for (i = 0; i < n; i++) { ((guint32 *) tdata)[i] = swfdec_color_apply_transform_premultiplied (((guint32 *) sdata)[i], trans); /* optimization: check for alpha channel to speed up compositing */ has_alpha = tdata[4 * i + SWFDEC_COLOR_INDEX_ALPHA] != 0xFF; } + cairo_surface_destroy (source); surface = cairo_image_surf...
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 Apr 04
0
Branch 'as' - 4 commits - libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_interpret.h libswfdec/swfdec_as_object.c libswfdec/swfdec_as_types.c libswfdec/swfdec_as_types.h
...; + j--; + i++; + } + return js_Invoke (cx, n_args, flags); +} + +/* FIXME: lots of overlap with swfdec_action_call_method */ +static void +swfdec_action_call_function (SwfdecAsContext *cx, guint action, const guint8 *data, guint len) +{ + JSStackFrame *fp = cx->fp; + const char *s; + guint32 n_args; + JSObject *obj, *pobj; + JSProperty *prop; + jsval fun; + JSAtom *atom; + + if (!swfdec_script_ensure_stack (cx, 2)) + return JS_FALSE; + s = swfdec_js_to_string (cx, fp->sp[-1]); + if (s == NULL) + return JS_FALSE; + if (!JS_ValueToECMAUint32 (cx, fp->sp[-2], &n_...