content/media/gstreamer/GStreamerFunctionList.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/content/media/gstreamer/GStreamerFunctionList.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,170 @@
     1.4 +/* vim:set ts=2 sw=2 sts=2 et cindent: */
     1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this file,
     1.7 + * You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.8 +
     1.9 +#ifndef __APPLE__
    1.10 +
    1.11 +/*
    1.12 + * List of symbol names we need to dlsym from the gstreamer library.
    1.13 + */
    1.14 +GST_FUNC(LIBGSTAPP, gst_app_sink_get_type)
    1.15 +GST_FUNC(LIBGSTAPP, gst_app_sink_set_callbacks)
    1.16 +GST_FUNC(LIBGSTAPP, gst_app_src_end_of_stream)
    1.17 +GST_FUNC(LIBGSTAPP, gst_app_src_get_size)
    1.18 +GST_FUNC(LIBGSTAPP, gst_app_src_get_type)
    1.19 +GST_FUNC(LIBGSTAPP, gst_app_src_push_buffer)
    1.20 +GST_FUNC(LIBGSTAPP, gst_app_src_set_callbacks)
    1.21 +GST_FUNC(LIBGSTAPP, gst_app_src_set_caps)
    1.22 +GST_FUNC(LIBGSTAPP, gst_app_src_set_size)
    1.23 +GST_FUNC(LIBGSTAPP, gst_app_src_set_stream_type)
    1.24 +GST_FUNC(LIBGSTREAMER, gst_bin_get_by_name)
    1.25 +GST_FUNC(LIBGSTREAMER, gst_bin_get_type)
    1.26 +GST_FUNC(LIBGSTREAMER, gst_bin_iterate_recurse)
    1.27 +GST_FUNC(LIBGSTREAMER, gst_buffer_get_type)
    1.28 +GST_FUNC(LIBGSTREAMER, gst_buffer_new)
    1.29 +GST_FUNC(LIBGSTREAMER, gst_bus_set_sync_handler)
    1.30 +GST_FUNC(LIBGSTREAMER, gst_bus_timed_pop_filtered)
    1.31 +GST_FUNC(LIBGSTREAMER, gst_caps_append)
    1.32 +GST_FUNC(LIBGSTREAMER, gst_caps_can_intersect)
    1.33 +GST_FUNC(LIBGSTREAMER, gst_caps_from_string)
    1.34 +GST_FUNC(LIBGSTREAMER, gst_caps_get_size)
    1.35 +GST_FUNC(LIBGSTREAMER, gst_caps_get_structure)
    1.36 +GST_FUNC(LIBGSTREAMER, gst_caps_new_any)
    1.37 +GST_FUNC(LIBGSTREAMER, gst_caps_new_empty)
    1.38 +GST_FUNC(LIBGSTREAMER, gst_caps_new_full)
    1.39 +GST_FUNC(LIBGSTREAMER, gst_caps_new_simple)
    1.40 +GST_FUNC(LIBGSTREAMER, gst_caps_set_simple)
    1.41 +GST_FUNC(LIBGSTREAMER, gst_element_factory_get_static_pad_templates)
    1.42 +GST_FUNC(LIBGSTREAMER, gst_element_factory_get_type)
    1.43 +GST_FUNC(LIBGSTREAMER, gst_element_factory_make)
    1.44 +GST_FUNC(LIBGSTREAMER, gst_element_get_factory)
    1.45 +GST_FUNC(LIBGSTREAMER, gst_element_get_static_pad)
    1.46 +GST_FUNC(LIBGSTREAMER, gst_element_get_type)
    1.47 +GST_FUNC(LIBGSTREAMER, gst_element_query_convert)
    1.48 +GST_FUNC(LIBGSTREAMER, gst_element_query_duration)
    1.49 +GST_FUNC(LIBGSTREAMER, gst_element_seek_simple)
    1.50 +GST_FUNC(LIBGSTREAMER, gst_element_set_state)
    1.51 +GST_FUNC(LIBGSTREAMER, gst_flow_get_name)
    1.52 +GST_FUNC(LIBGSTREAMER, gst_init)
    1.53 +GST_FUNC(LIBGSTREAMER, gst_init_check)
    1.54 +GST_FUNC(LIBGSTREAMER, gst_iterator_next)
    1.55 +GST_FUNC(LIBGSTREAMER, gst_message_parse_error)
    1.56 +GST_FUNC(LIBGSTREAMER, gst_message_type_get_name)
    1.57 +GST_FUNC(LIBGSTREAMER, gst_mini_object_ref)
    1.58 +GST_FUNC(LIBGSTREAMER, gst_mini_object_unref)
    1.59 +GST_FUNC(LIBGSTREAMER, gst_object_get_name)
    1.60 +GST_FUNC(LIBGSTREAMER, gst_object_get_parent)
    1.61 +GST_FUNC(LIBGSTREAMER, gst_object_unref)
    1.62 +GST_FUNC(LIBGSTREAMER, gst_pad_get_element_private)
    1.63 +GST_FUNC(LIBGSTREAMER, gst_pad_set_element_private)
    1.64 +GST_FUNC(LIBGSTREAMER, gst_parse_bin_from_description)
    1.65 +GST_FUNC(LIBGSTREAMER, gst_pipeline_get_bus)
    1.66 +GST_FUNC(LIBGSTREAMER, gst_pipeline_get_type)
    1.67 +GST_FUNC(LIBGSTREAMER, gst_plugin_feature_get_rank)
    1.68 +GST_FUNC(LIBGSTREAMER, gst_registry_feature_filter)
    1.69 +GST_FUNC(LIBGSTREAMER, gst_registry_get_feature_list_cookie)
    1.70 +GST_FUNC(LIBGSTREAMER, gst_segment_init)
    1.71 +GST_FUNC(LIBGSTREAMER, gst_segment_to_stream_time)
    1.72 +GST_FUNC(LIBGSTREAMER, gst_static_caps_get)
    1.73 +GST_FUNC(LIBGSTREAMER, gst_structure_copy)
    1.74 +GST_FUNC(LIBGSTREAMER, gst_structure_get_fraction)
    1.75 +GST_FUNC(LIBGSTREAMER, gst_structure_get_int)
    1.76 +GST_FUNC(LIBGSTREAMER, gst_structure_get_value)
    1.77 +GST_FUNC(LIBGSTREAMER, gst_structure_new)
    1.78 +GST_FUNC(LIBGSTREAMER, gst_util_uint64_scale)
    1.79 +
    1.80 +#if GST_VERSION_MAJOR == 0
    1.81 +GST_FUNC(LIBGSTAPP, gst_app_sink_pull_buffer)
    1.82 +GST_FUNC(LIBGSTREAMER, gst_buffer_copy_metadata)
    1.83 +GST_FUNC(LIBGSTREAMER, gst_buffer_new_and_alloc)
    1.84 +GST_FUNC(LIBGSTREAMER, gst_caps_unref)
    1.85 +GST_FUNC(LIBGSTREAMER, gst_element_factory_get_klass)
    1.86 +GST_FUNC(LIBGSTREAMER, gst_element_get_pad)
    1.87 +GST_FUNC(LIBGSTREAMER, gst_event_parse_new_segment)
    1.88 +GST_FUNC(LIBGSTREAMER, gst_mini_object_get_type)
    1.89 +GST_FUNC(LIBGSTREAMER, gst_mini_object_new)
    1.90 +GST_FUNC(LIBGSTREAMER, gst_pad_add_event_probe)
    1.91 +GST_FUNC(LIBGSTREAMER, gst_pad_alloc_buffer)
    1.92 +GST_FUNC(LIBGSTREAMER, gst_pad_get_negotiated_caps)
    1.93 +GST_FUNC(LIBGSTREAMER, gst_pad_set_bufferalloc_function)
    1.94 +GST_FUNC(LIBGSTREAMER, gst_registry_get_default)
    1.95 +GST_FUNC(LIBGSTREAMER, gst_segment_set_newsegment)
    1.96 +GST_FUNC(LIBGSTVIDEO, gst_video_format_get_component_height)
    1.97 +GST_FUNC(LIBGSTVIDEO, gst_video_format_get_component_offset)
    1.98 +GST_FUNC(LIBGSTVIDEO, gst_video_format_get_component_width)
    1.99 +GST_FUNC(LIBGSTVIDEO, gst_video_format_get_pixel_stride)
   1.100 +GST_FUNC(LIBGSTVIDEO, gst_video_format_get_row_stride)
   1.101 +GST_FUNC(LIBGSTVIDEO, gst_video_format_parse_caps)
   1.102 +GST_FUNC(LIBGSTVIDEO, gst_video_parse_caps_pixel_aspect_ratio)
   1.103 +#else
   1.104 +
   1.105 +GST_FUNC(LIBGSTAPP, gst_app_sink_pull_sample)
   1.106 +GST_FUNC(LIBGSTREAMER, _gst_caps_any)
   1.107 +GST_FUNC(LIBGSTREAMER, gst_allocator_get_type)
   1.108 +GST_FUNC(LIBGSTREAMER, gst_buffer_copy_into)
   1.109 +GST_FUNC(LIBGSTREAMER, gst_buffer_extract)
   1.110 +GST_FUNC(LIBGSTREAMER, gst_buffer_get_meta)
   1.111 +GST_FUNC(LIBGSTREAMER, gst_buffer_get_size)
   1.112 +GST_FUNC(LIBGSTREAMER, gst_buffer_map)
   1.113 +GST_FUNC(LIBGSTREAMER, gst_buffer_new_allocate)
   1.114 +GST_FUNC(LIBGSTREAMER, gst_buffer_n_memory)
   1.115 +GST_FUNC(LIBGSTREAMER, gst_buffer_peek_memory)
   1.116 +GST_FUNC(LIBGSTREAMER, gst_buffer_pool_acquire_buffer)
   1.117 +GST_FUNC(LIBGSTREAMER, gst_buffer_pool_config_set_allocator)
   1.118 +GST_FUNC(LIBGSTREAMER, gst_buffer_pool_config_set_params)
   1.119 +GST_FUNC(LIBGSTREAMER, gst_buffer_pool_get_config)
   1.120 +GST_FUNC(LIBGSTREAMER, gst_buffer_pool_get_type)
   1.121 +GST_FUNC(LIBGSTREAMER, gst_buffer_pool_is_active)
   1.122 +GST_FUNC(LIBGSTREAMER, gst_buffer_pool_set_active)
   1.123 +GST_FUNC(LIBGSTREAMER, gst_buffer_pool_set_config)
   1.124 +GST_FUNC(LIBGSTREAMER, gst_buffer_set_size)
   1.125 +GST_FUNC(LIBGSTREAMER, gst_buffer_unmap)
   1.126 +GST_FUNC(LIBGSTREAMER, gst_element_factory_get_metadata)
   1.127 +GST_FUNC(LIBGSTREAMER, gst_event_parse_segment)
   1.128 +GST_FUNC(LIBGSTREAMER, gst_event_type_get_name)
   1.129 +GST_FUNC(LIBGSTREAMER, gst_memory_init)
   1.130 +GST_FUNC(LIBGSTREAMER, gst_memory_map)
   1.131 +GST_FUNC(LIBGSTREAMER, gst_memory_unmap)
   1.132 +GST_FUNC(LIBGSTREAMER, gst_object_get_type)
   1.133 +GST_FUNC(LIBGSTREAMER, gst_pad_add_probe)
   1.134 +GST_FUNC(LIBGSTREAMER, gst_pad_get_current_caps)
   1.135 +GST_FUNC(LIBGSTREAMER, gst_pad_probe_info_get_query)
   1.136 +GST_FUNC(LIBGSTREAMER, gst_query_add_allocation_meta)
   1.137 +GST_FUNC(LIBGSTREAMER, gst_query_add_allocation_param)
   1.138 +GST_FUNC(LIBGSTREAMER, gst_query_add_allocation_pool)
   1.139 +GST_FUNC(LIBGSTREAMER, gst_query_parse_allocation)
   1.140 +GST_FUNC(LIBGSTREAMER, gst_registry_get)
   1.141 +GST_FUNC(LIBGSTREAMER, gst_sample_get_buffer)
   1.142 +GST_FUNC(LIBGSTREAMER, gst_segment_copy_into)
   1.143 +GST_FUNC(LIBGSTREAMER, gst_structure_free)
   1.144 +GST_FUNC(LIBGSTVIDEO, gst_buffer_pool_config_get_video_alignment)
   1.145 +GST_FUNC(LIBGSTVIDEO, gst_buffer_pool_has_option)
   1.146 +GST_FUNC(LIBGSTVIDEO, gst_video_buffer_pool_get_type)
   1.147 +GST_FUNC(LIBGSTVIDEO, gst_video_frame_map)
   1.148 +GST_FUNC(LIBGSTVIDEO, gst_video_frame_unmap)
   1.149 +GST_FUNC(LIBGSTVIDEO, gst_video_info_align)
   1.150 +GST_FUNC(LIBGSTVIDEO, gst_video_info_from_caps)
   1.151 +GST_FUNC(LIBGSTVIDEO, gst_video_info_init)
   1.152 +GST_FUNC(LIBGSTVIDEO, gst_video_meta_api_get_type)
   1.153 +GST_FUNC(LIBGSTVIDEO, gst_video_meta_map)
   1.154 +GST_FUNC(LIBGSTVIDEO, gst_video_meta_unmap)
   1.155 +
   1.156 +#endif
   1.157 +
   1.158 +/*
   1.159 + * Functions that have been defined in the header file. We replace them so that
   1.160 + * they don't try to use the global gstreamer functions.
   1.161 + */
   1.162 +#ifdef REPLACE_FUNC
   1.163 +REPLACE_FUNC(gst_buffer_ref);
   1.164 +REPLACE_FUNC(gst_buffer_unref);
   1.165 +REPLACE_FUNC(gst_message_unref);
   1.166 +
   1.167 +#if GST_VERSION_MAJOR == 1
   1.168 +REPLACE_FUNC(gst_caps_unref);
   1.169 +REPLACE_FUNC(gst_sample_unref);
   1.170 +#endif
   1.171 +#endif
   1.172 +
   1.173 +#endif // !defined(__APPLE__)

mercurial