michael@0: /* vim:set ts=2 sw=2 sts=2 et cindent: */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this file, michael@0: * You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef __APPLE__ michael@0: michael@0: /* michael@0: * List of symbol names we need to dlsym from the gstreamer library. michael@0: */ michael@0: GST_FUNC(LIBGSTAPP, gst_app_sink_get_type) michael@0: GST_FUNC(LIBGSTAPP, gst_app_sink_set_callbacks) michael@0: GST_FUNC(LIBGSTAPP, gst_app_src_end_of_stream) michael@0: GST_FUNC(LIBGSTAPP, gst_app_src_get_size) michael@0: GST_FUNC(LIBGSTAPP, gst_app_src_get_type) michael@0: GST_FUNC(LIBGSTAPP, gst_app_src_push_buffer) michael@0: GST_FUNC(LIBGSTAPP, gst_app_src_set_callbacks) michael@0: GST_FUNC(LIBGSTAPP, gst_app_src_set_caps) michael@0: GST_FUNC(LIBGSTAPP, gst_app_src_set_size) michael@0: GST_FUNC(LIBGSTAPP, gst_app_src_set_stream_type) michael@0: GST_FUNC(LIBGSTREAMER, gst_bin_get_by_name) michael@0: GST_FUNC(LIBGSTREAMER, gst_bin_get_type) michael@0: GST_FUNC(LIBGSTREAMER, gst_bin_iterate_recurse) michael@0: GST_FUNC(LIBGSTREAMER, gst_buffer_get_type) michael@0: GST_FUNC(LIBGSTREAMER, gst_buffer_new) michael@0: GST_FUNC(LIBGSTREAMER, gst_bus_set_sync_handler) michael@0: GST_FUNC(LIBGSTREAMER, gst_bus_timed_pop_filtered) michael@0: GST_FUNC(LIBGSTREAMER, gst_caps_append) michael@0: GST_FUNC(LIBGSTREAMER, gst_caps_can_intersect) michael@0: GST_FUNC(LIBGSTREAMER, gst_caps_from_string) michael@0: GST_FUNC(LIBGSTREAMER, gst_caps_get_size) michael@0: GST_FUNC(LIBGSTREAMER, gst_caps_get_structure) michael@0: GST_FUNC(LIBGSTREAMER, gst_caps_new_any) michael@0: GST_FUNC(LIBGSTREAMER, gst_caps_new_empty) michael@0: GST_FUNC(LIBGSTREAMER, gst_caps_new_full) michael@0: GST_FUNC(LIBGSTREAMER, gst_caps_new_simple) michael@0: GST_FUNC(LIBGSTREAMER, gst_caps_set_simple) michael@0: GST_FUNC(LIBGSTREAMER, gst_element_factory_get_static_pad_templates) michael@0: GST_FUNC(LIBGSTREAMER, gst_element_factory_get_type) michael@0: GST_FUNC(LIBGSTREAMER, gst_element_factory_make) michael@0: GST_FUNC(LIBGSTREAMER, gst_element_get_factory) michael@0: GST_FUNC(LIBGSTREAMER, gst_element_get_static_pad) michael@0: GST_FUNC(LIBGSTREAMER, gst_element_get_type) michael@0: GST_FUNC(LIBGSTREAMER, gst_element_query_convert) michael@0: GST_FUNC(LIBGSTREAMER, gst_element_query_duration) michael@0: GST_FUNC(LIBGSTREAMER, gst_element_seek_simple) michael@0: GST_FUNC(LIBGSTREAMER, gst_element_set_state) michael@0: GST_FUNC(LIBGSTREAMER, gst_flow_get_name) michael@0: GST_FUNC(LIBGSTREAMER, gst_init) michael@0: GST_FUNC(LIBGSTREAMER, gst_init_check) michael@0: GST_FUNC(LIBGSTREAMER, gst_iterator_next) michael@0: GST_FUNC(LIBGSTREAMER, gst_message_parse_error) michael@0: GST_FUNC(LIBGSTREAMER, gst_message_type_get_name) michael@0: GST_FUNC(LIBGSTREAMER, gst_mini_object_ref) michael@0: GST_FUNC(LIBGSTREAMER, gst_mini_object_unref) michael@0: GST_FUNC(LIBGSTREAMER, gst_object_get_name) michael@0: GST_FUNC(LIBGSTREAMER, gst_object_get_parent) michael@0: GST_FUNC(LIBGSTREAMER, gst_object_unref) michael@0: GST_FUNC(LIBGSTREAMER, gst_pad_get_element_private) michael@0: GST_FUNC(LIBGSTREAMER, gst_pad_set_element_private) michael@0: GST_FUNC(LIBGSTREAMER, gst_parse_bin_from_description) michael@0: GST_FUNC(LIBGSTREAMER, gst_pipeline_get_bus) michael@0: GST_FUNC(LIBGSTREAMER, gst_pipeline_get_type) michael@0: GST_FUNC(LIBGSTREAMER, gst_plugin_feature_get_rank) michael@0: GST_FUNC(LIBGSTREAMER, gst_registry_feature_filter) michael@0: GST_FUNC(LIBGSTREAMER, gst_registry_get_feature_list_cookie) michael@0: GST_FUNC(LIBGSTREAMER, gst_segment_init) michael@0: GST_FUNC(LIBGSTREAMER, gst_segment_to_stream_time) michael@0: GST_FUNC(LIBGSTREAMER, gst_static_caps_get) michael@0: GST_FUNC(LIBGSTREAMER, gst_structure_copy) michael@0: GST_FUNC(LIBGSTREAMER, gst_structure_get_fraction) michael@0: GST_FUNC(LIBGSTREAMER, gst_structure_get_int) michael@0: GST_FUNC(LIBGSTREAMER, gst_structure_get_value) michael@0: GST_FUNC(LIBGSTREAMER, gst_structure_new) michael@0: GST_FUNC(LIBGSTREAMER, gst_util_uint64_scale) michael@0: michael@0: #if GST_VERSION_MAJOR == 0 michael@0: GST_FUNC(LIBGSTAPP, gst_app_sink_pull_buffer) michael@0: GST_FUNC(LIBGSTREAMER, gst_buffer_copy_metadata) michael@0: GST_FUNC(LIBGSTREAMER, gst_buffer_new_and_alloc) michael@0: GST_FUNC(LIBGSTREAMER, gst_caps_unref) michael@0: GST_FUNC(LIBGSTREAMER, gst_element_factory_get_klass) michael@0: GST_FUNC(LIBGSTREAMER, gst_element_get_pad) michael@0: GST_FUNC(LIBGSTREAMER, gst_event_parse_new_segment) michael@0: GST_FUNC(LIBGSTREAMER, gst_mini_object_get_type) michael@0: GST_FUNC(LIBGSTREAMER, gst_mini_object_new) michael@0: GST_FUNC(LIBGSTREAMER, gst_pad_add_event_probe) michael@0: GST_FUNC(LIBGSTREAMER, gst_pad_alloc_buffer) michael@0: GST_FUNC(LIBGSTREAMER, gst_pad_get_negotiated_caps) michael@0: GST_FUNC(LIBGSTREAMER, gst_pad_set_bufferalloc_function) michael@0: GST_FUNC(LIBGSTREAMER, gst_registry_get_default) michael@0: GST_FUNC(LIBGSTREAMER, gst_segment_set_newsegment) michael@0: GST_FUNC(LIBGSTVIDEO, gst_video_format_get_component_height) michael@0: GST_FUNC(LIBGSTVIDEO, gst_video_format_get_component_offset) michael@0: GST_FUNC(LIBGSTVIDEO, gst_video_format_get_component_width) michael@0: GST_FUNC(LIBGSTVIDEO, gst_video_format_get_pixel_stride) michael@0: GST_FUNC(LIBGSTVIDEO, gst_video_format_get_row_stride) michael@0: GST_FUNC(LIBGSTVIDEO, gst_video_format_parse_caps) michael@0: GST_FUNC(LIBGSTVIDEO, gst_video_parse_caps_pixel_aspect_ratio) michael@0: #else michael@0: michael@0: GST_FUNC(LIBGSTAPP, gst_app_sink_pull_sample) michael@0: GST_FUNC(LIBGSTREAMER, _gst_caps_any) michael@0: GST_FUNC(LIBGSTREAMER, gst_allocator_get_type) michael@0: GST_FUNC(LIBGSTREAMER, gst_buffer_copy_into) michael@0: GST_FUNC(LIBGSTREAMER, gst_buffer_extract) michael@0: GST_FUNC(LIBGSTREAMER, gst_buffer_get_meta) michael@0: GST_FUNC(LIBGSTREAMER, gst_buffer_get_size) michael@0: GST_FUNC(LIBGSTREAMER, gst_buffer_map) michael@0: GST_FUNC(LIBGSTREAMER, gst_buffer_new_allocate) michael@0: GST_FUNC(LIBGSTREAMER, gst_buffer_n_memory) michael@0: GST_FUNC(LIBGSTREAMER, gst_buffer_peek_memory) michael@0: GST_FUNC(LIBGSTREAMER, gst_buffer_pool_acquire_buffer) michael@0: GST_FUNC(LIBGSTREAMER, gst_buffer_pool_config_set_allocator) michael@0: GST_FUNC(LIBGSTREAMER, gst_buffer_pool_config_set_params) michael@0: GST_FUNC(LIBGSTREAMER, gst_buffer_pool_get_config) michael@0: GST_FUNC(LIBGSTREAMER, gst_buffer_pool_get_type) michael@0: GST_FUNC(LIBGSTREAMER, gst_buffer_pool_is_active) michael@0: GST_FUNC(LIBGSTREAMER, gst_buffer_pool_set_active) michael@0: GST_FUNC(LIBGSTREAMER, gst_buffer_pool_set_config) michael@0: GST_FUNC(LIBGSTREAMER, gst_buffer_set_size) michael@0: GST_FUNC(LIBGSTREAMER, gst_buffer_unmap) michael@0: GST_FUNC(LIBGSTREAMER, gst_element_factory_get_metadata) michael@0: GST_FUNC(LIBGSTREAMER, gst_event_parse_segment) michael@0: GST_FUNC(LIBGSTREAMER, gst_event_type_get_name) michael@0: GST_FUNC(LIBGSTREAMER, gst_memory_init) michael@0: GST_FUNC(LIBGSTREAMER, gst_memory_map) michael@0: GST_FUNC(LIBGSTREAMER, gst_memory_unmap) michael@0: GST_FUNC(LIBGSTREAMER, gst_object_get_type) michael@0: GST_FUNC(LIBGSTREAMER, gst_pad_add_probe) michael@0: GST_FUNC(LIBGSTREAMER, gst_pad_get_current_caps) michael@0: GST_FUNC(LIBGSTREAMER, gst_pad_probe_info_get_query) michael@0: GST_FUNC(LIBGSTREAMER, gst_query_add_allocation_meta) michael@0: GST_FUNC(LIBGSTREAMER, gst_query_add_allocation_param) michael@0: GST_FUNC(LIBGSTREAMER, gst_query_add_allocation_pool) michael@0: GST_FUNC(LIBGSTREAMER, gst_query_parse_allocation) michael@0: GST_FUNC(LIBGSTREAMER, gst_registry_get) michael@0: GST_FUNC(LIBGSTREAMER, gst_sample_get_buffer) michael@0: GST_FUNC(LIBGSTREAMER, gst_segment_copy_into) michael@0: GST_FUNC(LIBGSTREAMER, gst_structure_free) michael@0: GST_FUNC(LIBGSTVIDEO, gst_buffer_pool_config_get_video_alignment) michael@0: GST_FUNC(LIBGSTVIDEO, gst_buffer_pool_has_option) michael@0: GST_FUNC(LIBGSTVIDEO, gst_video_buffer_pool_get_type) michael@0: GST_FUNC(LIBGSTVIDEO, gst_video_frame_map) michael@0: GST_FUNC(LIBGSTVIDEO, gst_video_frame_unmap) michael@0: GST_FUNC(LIBGSTVIDEO, gst_video_info_align) michael@0: GST_FUNC(LIBGSTVIDEO, gst_video_info_from_caps) michael@0: GST_FUNC(LIBGSTVIDEO, gst_video_info_init) michael@0: GST_FUNC(LIBGSTVIDEO, gst_video_meta_api_get_type) michael@0: GST_FUNC(LIBGSTVIDEO, gst_video_meta_map) michael@0: GST_FUNC(LIBGSTVIDEO, gst_video_meta_unmap) michael@0: michael@0: #endif michael@0: michael@0: /* michael@0: * Functions that have been defined in the header file. We replace them so that michael@0: * they don't try to use the global gstreamer functions. michael@0: */ michael@0: #ifdef REPLACE_FUNC michael@0: REPLACE_FUNC(gst_buffer_ref); michael@0: REPLACE_FUNC(gst_buffer_unref); michael@0: REPLACE_FUNC(gst_message_unref); michael@0: michael@0: #if GST_VERSION_MAJOR == 1 michael@0: REPLACE_FUNC(gst_caps_unref); michael@0: REPLACE_FUNC(gst_sample_unref); michael@0: #endif michael@0: #endif michael@0: michael@0: #endif // !defined(__APPLE__)