/gst/imagefreeze/gstimagefreeze.h

https://bitbucket.org/nikel123/gst-plugins-good · C++ Header · 74 lines · 38 code · 15 blank · 21 comment · 0 complexity · e74f61be0333413d2dfd75343eca602f MD5 · raw file

  1. /* GStreamer
  2. * Copyright (C) 2010 Sebastian Dr??ge <sebastian.droege@collabora.co.uk>
  3. *
  4. * This library is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU Library General Public
  6. * License as published by the Free Software Foundation; either
  7. * version 2 of the License, or (at your option) any later version.
  8. *
  9. * This library is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. * Library General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU Library General Public
  15. * License along with this library; if not, write to the
  16. * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  17. * Boston, MA 02111-1307, USA.
  18. */
  19. #ifndef __GST_IMAGE_FREEZE_H__
  20. #define __GST_IMAGE_FREEZE_H__
  21. #include <gst/gst.h>
  22. G_BEGIN_DECLS
  23. #define GST_TYPE_IMAGE_FREEZE \
  24. (gst_image_freeze_get_type())
  25. #define GST_IMAGE_FREEZE(obj) \
  26. (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_IMAGE_FREEZE,GstImageFreeze))
  27. #define GST_IMAGE_FREEZE_CLASS(klass) \
  28. (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_IMAGE_FREEZE,GstImageFreezeClass))
  29. #define GST_IMAGE_FREEZE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj),GST_TYPE_IMAGE_FREEZE,GstImageFreezeClass))
  30. #define GST_IS_IMAGE_FREEZE(obj) \
  31. (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_IMAGE_FREEZE))
  32. #define GST_IS_IMAGE_FREEZE_CLASS(klass) \
  33. (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_IMAGE_FREEZE))
  34. typedef struct _GstImageFreeze GstImageFreeze;
  35. typedef struct _GstImageFreezeClass GstImageFreezeClass;
  36. struct _GstImageFreeze
  37. {
  38. GstElement parent;
  39. /* < private > */
  40. GstPad *sinkpad;
  41. GstPad *srcpad;
  42. GMutex *lock;
  43. GstBuffer *buffer;
  44. gint fps_n, fps_d;
  45. GstSegment segment;
  46. gboolean need_segment;
  47. GstEvent *close_segment;
  48. guint64 offset;
  49. /* TRUE if currently doing a flushing seek, protected
  50. * by srcpad's stream lock */
  51. gint seeking;
  52. };
  53. struct _GstImageFreezeClass
  54. {
  55. GstElementClass parent_class;
  56. };
  57. GType gst_image_freeze_get_type (void);
  58. G_END_DECLS
  59. #endif /* __GST_IMAGE_FREEZE_H__ */