video-event.h 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /* GStreamer
  2. * Copyright (C) <2011> Wim Taymans <[email protected]>
  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., 51 Franklin St, Fifth Floor,
  17. * Boston, MA 02110-1301, USA.
  18. */
  19. #ifndef __GST_VIDEO_EVENT_H__
  20. #define __GST_VIDEO_EVENT_H__
  21. #include <gst/gst.h>
  22. G_BEGIN_DECLS
  23. /* video still frame event creation and parsing */
  24. GstEvent * gst_video_event_new_still_frame (gboolean in_still);
  25. gboolean gst_video_event_parse_still_frame (GstEvent * event, gboolean * in_still);
  26. /* video force key unit event creation and parsing */
  27. GstEvent * gst_video_event_new_downstream_force_key_unit (GstClockTime timestamp,
  28. GstClockTime stream_time,
  29. GstClockTime running_time,
  30. gboolean all_headers,
  31. guint count);
  32. gboolean gst_video_event_parse_downstream_force_key_unit (GstEvent * event,
  33. GstClockTime * timestamp,
  34. GstClockTime * stream_time,
  35. GstClockTime * running_time,
  36. gboolean * all_headers,
  37. guint * count);
  38. GstEvent * gst_video_event_new_upstream_force_key_unit (GstClockTime running_time,
  39. gboolean all_headers,
  40. guint count);
  41. gboolean gst_video_event_parse_upstream_force_key_unit (GstEvent * event,
  42. GstClockTime * running_time,
  43. gboolean * all_headers,
  44. guint * count);
  45. gboolean gst_video_event_is_force_key_unit(GstEvent *event);
  46. G_END_DECLS
  47. #endif /* __GST_VIDEO_EVENT_H__ */