2022-02-16 11:19:06 +00:00
|
|
|
/*
|
|
|
|
* winegstreamer Unix library interface
|
|
|
|
*
|
|
|
|
* Copyright 2020-2021 Zebediah Figura for CodeWeavers
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __WINE_WINEGSTREAMER_UNIX_PRIVATE_H
|
|
|
|
#define __WINE_WINEGSTREAMER_UNIX_PRIVATE_H
|
|
|
|
|
|
|
|
#include "unixlib.h"
|
|
|
|
|
|
|
|
#include <gst/gst.h>
|
|
|
|
|
2022-02-16 11:19:08 +00:00
|
|
|
extern bool init_gstreamer(void) DECLSPEC_HIDDEN;
|
2022-02-22 18:23:24 +00:00
|
|
|
extern GstElement *create_element(const char *name, const char *plugin_set) DECLSPEC_HIDDEN;
|
2022-02-16 11:19:08 +00:00
|
|
|
|
2022-02-16 11:19:06 +00:00
|
|
|
extern void wg_format_from_caps(struct wg_format *format, const GstCaps *caps) DECLSPEC_HIDDEN;
|
|
|
|
extern bool wg_format_compare(const struct wg_format *a, const struct wg_format *b) DECLSPEC_HIDDEN;
|
|
|
|
extern GstCaps *wg_format_to_caps(const struct wg_format *format) DECLSPEC_HIDDEN;
|
|
|
|
|
2022-02-16 11:19:08 +00:00
|
|
|
extern NTSTATUS wg_transform_create(void *args) DECLSPEC_HIDDEN;
|
|
|
|
extern NTSTATUS wg_transform_destroy(void *args) DECLSPEC_HIDDEN;
|
2022-05-13 00:50:37 +00:00
|
|
|
extern NTSTATUS wg_transform_set_output_format(void *args) DECLSPEC_HIDDEN;
|
2022-03-14 13:43:22 +00:00
|
|
|
extern NTSTATUS wg_transform_push_data(void *args) DECLSPEC_HIDDEN;
|
|
|
|
extern NTSTATUS wg_transform_read_data(void *args) DECLSPEC_HIDDEN;
|
2022-02-16 11:19:08 +00:00
|
|
|
|
2022-06-06 15:09:18 +00:00
|
|
|
/* wg_allocator_release_sample can be used to release any sample that was requested. */
|
|
|
|
typedef struct wg_sample *(*wg_allocator_request_sample_cb)(gsize size, void *context);
|
|
|
|
extern GstAllocator *wg_allocator_create(wg_allocator_request_sample_cb request_sample,
|
|
|
|
void *request_sample_context) DECLSPEC_HIDDEN;
|
2022-05-13 11:17:13 +00:00
|
|
|
extern void wg_allocator_destroy(GstAllocator *allocator) DECLSPEC_HIDDEN;
|
2022-06-06 15:09:18 +00:00
|
|
|
extern void wg_allocator_release_sample(GstAllocator *allocator, struct wg_sample *sample,
|
|
|
|
bool discard_data) DECLSPEC_HIDDEN;
|
2022-05-13 11:17:13 +00:00
|
|
|
|
2022-02-16 11:19:06 +00:00
|
|
|
#endif /* __WINE_WINEGSTREAMER_UNIX_PRIVATE_H */
|