1 /* GStreamer 2 * Copyright (C) 2003 Benjamin Otte <in7y118@public.uni-hamburg.de> 3 * Copyright (C) 2005-2009 Tim-Philipp Müller <tim centricular net> 4 * Copyright (C) 2009 Sebastian Dröge <sebastian.droege@collabora.co.uk> 5 * Copyright (C) 2020 Huawei Technologies Co., Ltd. 6 * @Author: Stéphane Cerveau <scerveau@collabora.com> 7 * 8 * gsttypefindfunctionsdata.h: collection of various typefind functions 9 * 10 * This library is free software; you can redistribute it and/or 11 * modify it under the terms of the GNU Library General Public 12 * License as published by the Free Software Foundation; either 13 * version 2 of the License, or (at your option) any later version. 14 * 15 * This library is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 18 * Library General Public License for more details. 19 * 20 * You should have received a copy of the GNU Library General Public 21 * License along with this library; if not, write to the 22 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, 23 * Boston, MA 02110-1301, USA. 24 */ 25 26 #ifndef __GST_TYPE_FIND_FUNCTIONS_DATA_H__ 27 #define __GST_TYPE_FIND_FUNCTIONS_DATA_H__ 28 29 #include <gst/gst.h> 30 31 32 /*** generic typefind for streams that have some data at a specific position***/ 33 typedef struct 34 { 35 const guint8 *data; 36 guint size; 37 guint probability; 38 GstCaps *caps; 39 } 40 GstTypeFindData; 41 42 void sw_data_destroy (GstTypeFindData * sw_data); 43 44 #endif //__GST_TYPE_FIND_FUNCTIONS_DATA_H__ 45