1 /* GStreamer
2  * Copyright (C) <2011> Wim Taymans <wim.taymans@gmail.com>
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 
20 #ifndef __GST_VIDEO_EVENT_H__
21 #define __GST_VIDEO_EVENT_H__
22 
23 #include <gst/gst.h>
24 #include <gst/video/video-prelude.h>
25 
26 G_BEGIN_DECLS
27 
28 /* video still frame event creation and parsing */
29 
30 GST_VIDEO_API
31 GstEvent *     gst_video_event_new_still_frame   (gboolean in_still);
32 
33 GST_VIDEO_API
34 gboolean       gst_video_event_parse_still_frame (GstEvent * event, gboolean * in_still);
35 
36 /* video force key unit event creation and parsing */
37 
38 GST_VIDEO_API
39 GstEvent * gst_video_event_new_downstream_force_key_unit (GstClockTime timestamp,
40                                                           GstClockTime stream_time,
41                                                           GstClockTime running_time,
42                                                           gboolean all_headers,
43                                                           guint count);
44 
45 GST_VIDEO_API
46 gboolean gst_video_event_parse_downstream_force_key_unit (GstEvent * event,
47                                                           GstClockTime * timestamp,
48                                                           GstClockTime * stream_time,
49                                                           GstClockTime * running_time,
50                                                           gboolean * all_headers,
51                                                           guint * count);
52 
53 GST_VIDEO_API
54 GstEvent * gst_video_event_new_upstream_force_key_unit (GstClockTime running_time,
55                                                         gboolean all_headers,
56                                                         guint count);
57 
58 GST_VIDEO_API
59 gboolean gst_video_event_parse_upstream_force_key_unit (GstEvent * event,
60                                                         GstClockTime * running_time,
61                                                         gboolean * all_headers,
62                                                         guint * count);
63 
64 GST_VIDEO_API
65 gboolean gst_video_event_is_force_key_unit(GstEvent *event);
66 
67 G_END_DECLS
68 
69 #endif /* __GST_VIDEO_EVENT_H__ */
70