2 * Copyright (C) 2007 Haakon Sporsheim <hakon.sporsheim@tandberg.com>
3 * 2008 Ole André Vadla Ravnås <ole.andre.ravnas@tandberg.com>
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details.
15 * You should have received a copy of the GNU Library General Public
16 * License along with this library; if not, write to the
17 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 * Boston, MA 02111-1307, USA.
21 #ifndef __KSVIDEOHELPERS_H__
22 #define __KSVIDEOHELPERS_H__
31 DEFINE_GUID(MEDIASUBTYPE_I420, 0x30323449, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xAA, 0x00, 0x38, 0x9B, 0x71);
33 typedef struct _KsVideoMediaType KsVideoMediaType;
36 * A structure that contain metadata about capabilities
37 * for both KS and GStreamer for video only.
39 struct _KsVideoMediaType
43 const KSDATARANGE * range;
44 const KS_VIDEO_STREAM_CONFIG_CAPS vscc;
51 GstCaps * translated_caps;
54 GList * ks_video_device_list_sort_cameras_first (GList * devices);
56 KsVideoMediaType * ks_video_media_type_dup (KsVideoMediaType * media_type);
57 void ks_video_media_type_free (KsVideoMediaType * media_type);
58 GList * ks_video_probe_filter_for_caps (HANDLE filter_handle);
59 KSPIN_CONNECT * ks_video_create_pin_conn_from_media_type (KsVideoMediaType * media_type);
60 gboolean ks_video_fixate_media_type (const KSDATARANGE * range, guint8 * format, gint width, gint height, gint fps_n, gint fps_d);
62 GstCaps * ks_video_get_all_caps (void);
66 #endif /* __KSVIDEOHELPERS_H__ */