Displaying 11 results from an estimated 11 matches for "g_slice_new".
Did you mean:
g_slice_new0
2007 Oct 29
0
libswfdec/swfdec_codec_gst.c
...b/libswfdec/swfdec_codec_gst.c
index 35f00e5..2873e84 100644
--- a/libswfdec/swfdec_codec_gst.c
+++ b/libswfdec/swfdec_codec_gst.c
@@ -593,7 +593,7 @@ swfdec_video_decoder_gst_new (SwfdecVideoCodec codec)
g_assert (srccaps);
sinkcaps = swfdec_video_decoder_get_sink_caps (codec);
- player = g_slice_new (SwfdecGstVideo);
+ player = g_slice_new0 (SwfdecGstVideo);
player->decoder.decode = swfdec_video_decoder_gst_decode;
player->decoder.free = swfdec_video_decoder_gst_free;
2007 Sep 10
0
3 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h
...wfdec_as_object_do_get (SwfdecAsObject
return TRUE;
}
+static SwfdecAsWatch *
+swfdec_as_watch_new (SwfdecAsFunction *function)
+{
+ SwfdecAsWatch *watch;
+
+ if (!swfdec_as_context_use_mem (SWFDEC_AS_OBJECT (function)->context,
+ sizeof (SwfdecAsWatch)))
+ return NULL;
+
+ watch = g_slice_new (SwfdecAsWatch);
+ watch->refcount = 1;
+ watch->watch = function;
+ SWFDEC_AS_VALUE_SET_UNDEFINED (&watch->watch_data);
+ return watch;
+}
+
+static inline gboolean
+swfdec_as_watch_can_recurse (SwfdecAsWatch *watch)
+{
+ guint version;
+
+ version = SWFDEC_AS_OBJECT (watch->...
2007 Apr 08
0
6 commits - libswfdec/Makefile.am libswfdec/swfdec_audio_flv.c libswfdec/swfdec_audio_flv.h libswfdec/swfdec_audio_stream.c libswfdec/swfdec_audio_stream.h libswfdec/swfdec_buffer.c libswfdec/swfdec_codec_adpcm.c libswfdec/swfdec_codec_audio.c
...>decoder.push = swfdec_audio_decoder_adpcm_push;
+ adpcm->decoder.pull = swfdec_audio_decoder_adpcm_pull;
+ adpcm->decoder.free = swfdec_audio_decoder_adpcm_free;
+ adpcm->queue = swfdec_buffer_queue_new ();
- state->valprev = valpred;
- state->index = index;
+ adpcm = g_slice_new (SwfdecAudioDecoderAdpcm);
+ return &adpcm->decoder;
}
-#endif
+
diff --git a/libswfdec/swfdec_codec_audio.c b/libswfdec/swfdec_codec_audio.c
new file mode 100644
index 0000000..b5d00fb
--- /dev/null
+++ b/libswfdec/swfdec_codec_audio.c
@@ -0,0 +1,244 @@
+/* Swfdec
+ * Copyright (C) 2006-2...
2007 Oct 28
1
9 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame_internal.h libswfdec/swfdec_as_object.c libswfdec/swfdec_codec_gst.c test/trace
...caps = gst_caps_from_string ("video/x-vp6-flash");
+ srccaps = gst_caps_from_string ("video/x-vp6-flash");
break;
default:
return NULL;
}
- g_assert (caps);
+ g_assert (srccaps);
+ sinkcaps = swfdec_video_decoder_get_sink_caps (codec);
- player = g_slice_new0 (SwfdecGstVideo);
+ player = g_slice_new (SwfdecGstVideo);
player->decoder.decode = swfdec_video_decoder_gst_decode;
player->decoder.free = swfdec_video_decoder_gst_free;
- player->pipeline = gst_pipeline_new ("pipeline");
- player->refcount = 1;
- g_assert (player-...
2007 Mar 29
0
Branch 'as' - 9 commits - configure.ac doc/swfdec-sections.txt libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_stack.c
...n_elements)
+{
+ SwfdecAsStack *stack;
+
+ g_return_val_if_fail (SWFDEC_IS_AS_CONTEXT (context), NULL);
+ g_return_val_if_fail (n_elements > 0, NULL);
+
+ if (!swfdec_as_context_use_mem (context, sizeof (SwfdecAsStack) +
+ n_elements * sizeof (SwfdecAsValue)))
+ return NULL;
+
+ stack = g_slice_new (SwfdecAsStack);
+ stack->context = context;
+ stack->base = g_slice_alloc (sizeof (SwfdecAsValue) * n_elements);
+ stack->end = stack->base + n_elements;
+ stack->cur = stack->base;
+ stack->next = NULL;
+ return stack;
+}
+
+void
+swfdec_as_stack_free (SwfdecAsStack *st...
2012 Jan 17
3
GObject bindings
This is the first iteration of the GObject bindings. I have 'kicked the tyres'
on these, meaning I have ensured that a bunch of basic manual tests work as
expected. I'm in the process of adding more comprehensive tests.
Here's an example simple javascript program which uses these bindings:
===
const Guestfs = imports.gi.Guestfs;
print('Starting');
var g = new
2015 Sep 10
6
[RFC PATCH 0/2] virtio nvme
Hi all,
These 2 patches added virtio-nvme to kernel and qemu,
basically modified from virtio-blk and nvme code.
As title said, request for your comments.
Play it in Qemu with:
-drive file=disk.img,format=raw,if=none,id=D22 \
-device virtio-nvme-pci,drive=D22,serial=1234,num_queues=4
The goal is to have a full NVMe stack from VM guest(virtio-nvme)
to host(vhost_nvme) to LIO NVMe-over-fabrics
2015 Sep 10
6
[RFC PATCH 0/2] virtio nvme
Hi all,
These 2 patches added virtio-nvme to kernel and qemu,
basically modified from virtio-blk and nvme code.
As title said, request for your comments.
Play it in Qemu with:
-drive file=disk.img,format=raw,if=none,id=D22 \
-device virtio-nvme-pci,drive=D22,serial=1234,num_queues=4
The goal is to have a full NVMe stack from VM guest(virtio-nvme)
to host(vhost_nvme) to LIO NVMe-over-fabrics
2007 Nov 20
0
19 commits - libswfdec/swfdec_audio_event.c libswfdec/swfdec_bits.c libswfdec/swfdec_color.c libswfdec/swfdec_color.h libswfdec/swfdec_flv_decoder.c libswfdec/swfdec_image.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h
...;
+ cairo_pattern_destroy (mask);
g_slice_free (ClipEntry, clip);
clips = g_slist_delete_link (clips, clips);
clip = clips ? clips->data : NULL;
@@ -1216,7 +1218,7 @@ swfdec_movie_do_render (SwfdecMovie *movie, cairo_t *cr,
if (child->clip_depth) {
clip = g_slice_new (ClipEntry);
clips = g_slist_prepend (clips, clip);
- clip->mask = swfdec_movie_mask (cr, child, inval);
+ clip->movie = child;
clip->depth = child->clip_depth;
SWFDEC_INFO ("clipping up to depth %d by using %s with depth %d", child->clip_dept...
2008 Jan 21
0
70 commits - configure.ac libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec-gtk.h libswfdec-gtk/swfdec_gtk_loader.c libswfdec-gtk/swfdec_gtk_player.c libswfdec-gtk/swfdec_gtk_socket.c libswfdec-gtk/swfdec_gtk_socket.h libswfdec-gtk/swfdec_playback_alsa.c
...f (swfdec_player_allow_now (player, url)) {
+ func (player, TRUE, data);
+ return;
+ }
+ if (load_url)
+ swfdec_policy_file_new (player, load_url);
+
+ priv = player->priv;
+ if (priv->loading_policy_files == NULL) {
+ func (player, FALSE, data);
+ return;
+ }
+ request = g_slice_new (SwfdecPolicyFileRequest);
+ request->url = swfdec_url_copy (url);
+ request->func = func;
+ request->data = data;
+
+ file = priv->loading_policy_files->data;
+ file->requests = g_slist_append (file->requests, request);
}
+
diff --git a/libswfdec/swfdec_policy_file.h b/l...
2019 Sep 10
3
[PATCH 0/2] Remove virt-p2v from libguestfs
Now that virt-p2v has its own repository [1] and releases [2], it is
time to remove it from libguestfs.
[1] https://github.com/libguestfs/virt-p2v
[2] http://download.libguestfs.org/virt-p2v/
Pino Toscano (2):
Remove virt-p2v
Remove remaining virt-p2v bits
.gitignore | 4 -
Makefile.am | 7 +-
bash/Makefile.am