• Home
  • Raw
  • Download

Lines Matching refs:ani

93   GstGdkAnimation *ani = GST_GDK_ANIMATION (object);  in gst_gdk_animation_finalize()  local
95 if (ani->temp_fd) { in gst_gdk_animation_finalize()
96 close (ani->temp_fd); in gst_gdk_animation_finalize()
98 if (ani->temp_location) { in gst_gdk_animation_finalize()
99 remove (ani->temp_location); in gst_gdk_animation_finalize()
100 g_free (ani->temp_location); in gst_gdk_animation_finalize()
102 if (ani->pixbuf) { in gst_gdk_animation_finalize()
103 g_object_unref (ani->pixbuf); in gst_gdk_animation_finalize()
104 ani->pixbuf = NULL; in gst_gdk_animation_finalize()
113 GstGdkAnimation *ani = in gst_gdk_animation_new() local
116 return ani; in gst_gdk_animation_new()
120 gst_gdk_animation_add_data (GstGdkAnimation * ani, const guint8 * data, in gst_gdk_animation_add_data() argument
123 return (write (ani->temp_fd, data, size) == size); in gst_gdk_animation_add_data()
127 gst_gdk_animation_done_adding (GstGdkAnimation * ani) in gst_gdk_animation_done_adding() argument
129 close (ani->temp_fd); in gst_gdk_animation_done_adding()
130 ani->temp_fd = 0; in gst_gdk_animation_done_adding()
143 GstGdkAnimation *ani = GST_GDK_ANIMATION (anim); in gst_gdk_animation_get_size() local
145 GST_LOG_OBJECT (ani, "get_size called (%p, %p) %d x %d", width, height, in gst_gdk_animation_get_size()
146 ani->width, ani->height); in gst_gdk_animation_get_size()
148 *width = ani->width; in gst_gdk_animation_get_size()
151 *height = ani->height; in gst_gdk_animation_get_size()
230 g_object_unref (iter->ani); in gst_gdk_animation_iter_finalize()
289 if (iter->ani->temp_location) { in gst_gdk_animation_iter_create_pipeline()
290 g_object_set (src, "location", iter->ani->temp_location, NULL); in gst_gdk_animation_iter_create_pipeline()
291 GST_INFO_OBJECT (iter, "using file '%s'", iter->ani->temp_location); in gst_gdk_animation_iter_create_pipeline()
293 gchar *filename = g_strdup_printf ("/proc/self/fd/%d", iter->ani->temp_fd); in gst_gdk_animation_iter_create_pipeline()
348 if (iter->ani->temp_fd == 0 || iter->ani->temp_location == NULL) in gst_gdk_animation_iter_may_advance()
351 data_amount = lseek (iter->ani->temp_fd, 0, SEEK_CUR); in gst_gdk_animation_iter_may_advance()
393 GstGdkAnimation *ani = iter->ani; in gst_gdk_animation_iter_create_pixbuf() local
401 if (ani->width == 0) { in gst_gdk_animation_iter_create_pixbuf()
415 gst_caps_get_int (caps, "width", &ani->width); in gst_gdk_animation_iter_create_pixbuf()
416 gst_caps_get_int (caps, "height", &ani->height); in gst_gdk_animation_iter_create_pixbuf()
417 gst_caps_get_int (caps, "bpp", &ani->bpp); in gst_gdk_animation_iter_create_pixbuf()
418 GST_DEBUG_OBJECT (ani, "found format (width %d, height %d, bpp %d)", in gst_gdk_animation_iter_create_pixbuf()
419 ani->width, ani->height, ani->bpp); in gst_gdk_animation_iter_create_pixbuf()
421 g_assert (GST_BUFFER_SIZE (buf) == ani->width * ani->height * ani->bpp / 8); in gst_gdk_animation_iter_create_pixbuf()
422 if (ani->bpp == 32) { in gst_gdk_animation_iter_create_pixbuf()
427 for (i = 0; i < ani->width * ani->height; i++) { in gst_gdk_animation_iter_create_pixbuf()
432 GDK_COLORSPACE_RGB, ani->bpp == 32, 8, ani->width, ani->height, in gst_gdk_animation_iter_create_pixbuf()
433 ani->width * ani->bpp / 8, pixbuf_destroy_notify, buf); in gst_gdk_animation_iter_create_pixbuf()
442 GstGdkAnimation *ani = GST_GDK_ANIMATION (anim); in gst_gdk_animation_get_iter() local
445 if (ani->temp_fd != 0 && ani->temp_location != NULL && in gst_gdk_animation_get_iter()
446 lseek (ani->temp_fd, 0, SEEK_CUR) < GST_GDK_BUFFER_SIZE) { in gst_gdk_animation_get_iter()
447 GST_DEBUG_OBJECT (ani, "Not enough data to create iterator."); in gst_gdk_animation_get_iter()
455 iter->ani = ani; in gst_gdk_animation_get_iter()
456 g_object_ref (ani); in gst_gdk_animation_get_iter()
598 GstGdkAnimation *ani = GST_GDK_ANIMATION (animation); in gst_gdk_animation_get_static_image() local
602 if (!ani->pixbuf) { in gst_gdk_animation_get_static_image()
603 GST_LOG_OBJECT (ani, "trying to create pixbuf"); in gst_gdk_animation_get_static_image()
622 GST_LOG_OBJECT (ani, in gst_gdk_animation_get_static_image()
633 GST_INFO_OBJECT (ani, "seeking didn't work. Using next image"); in gst_gdk_animation_get_static_image()
646 ani->pixbuf = in gst_gdk_animation_get_static_image()
649 g_object_ref (ani->pixbuf); in gst_gdk_animation_get_static_image()
651 g_assert (ani->pixbuf == NULL); in gst_gdk_animation_get_static_image()
656 GST_DEBUG_OBJECT (ani, "Could not get an iterator. No pixbuf available"); in gst_gdk_animation_get_static_image()
659 GST_LOG_OBJECT (ani, "Returning pixbuf %p\n", ani->pixbuf); in gst_gdk_animation_get_static_image()
660 return ani->pixbuf; in gst_gdk_animation_get_static_image()