winegstreamer: Implement MFT_MESSAGE_COMMAND_FLUSH for the H264 decoder.
[wine.git] / dlls / winegstreamer / unix_private.h
blob808b59dba5711aee4137485d2efb10fa6c1f2ec9
1 /*
2 * winegstreamer Unix library interface
4 * Copyright 2020-2021 Zebediah Figura for CodeWeavers
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
21 #ifndef __WINE_WINEGSTREAMER_UNIX_PRIVATE_H
22 #define __WINE_WINEGSTREAMER_UNIX_PRIVATE_H
24 #include "unixlib.h"
26 #include <gst/gst.h>
28 /* unixlib.c */
30 GST_DEBUG_CATEGORY_EXTERN(wine) DECLSPEC_HIDDEN;
31 #define GST_CAT_DEFAULT wine
33 extern NTSTATUS wg_init_gstreamer(void *args) DECLSPEC_HIDDEN;
35 extern GstStreamType stream_type_from_caps(GstCaps *caps) DECLSPEC_HIDDEN;
36 extern GstElement *create_element(const char *name, const char *plugin_set) DECLSPEC_HIDDEN;
37 extern GstElement *find_element(GstElementFactoryListType type, GstCaps *src_caps, GstCaps *sink_caps) DECLSPEC_HIDDEN;
38 extern bool append_element(GstElement *container, GstElement *element, GstElement **first, GstElement **last) DECLSPEC_HIDDEN;
39 extern bool link_src_to_element(GstPad *src_pad, GstElement *element) DECLSPEC_HIDDEN;
40 extern bool link_element_to_sink(GstElement *element, GstPad *sink_pad) DECLSPEC_HIDDEN;
42 /* wg_format.c */
44 extern void wg_format_from_caps(struct wg_format *format, const GstCaps *caps) DECLSPEC_HIDDEN;
45 extern bool wg_format_compare(const struct wg_format *a, const struct wg_format *b) DECLSPEC_HIDDEN;
46 extern GstCaps *wg_format_to_caps(const struct wg_format *format) DECLSPEC_HIDDEN;
48 /* wg_transform.c */
50 extern NTSTATUS wg_transform_create(void *args) DECLSPEC_HIDDEN;
51 extern NTSTATUS wg_transform_destroy(void *args) DECLSPEC_HIDDEN;
52 extern NTSTATUS wg_transform_set_output_format(void *args) DECLSPEC_HIDDEN;
53 extern NTSTATUS wg_transform_push_data(void *args) DECLSPEC_HIDDEN;
54 extern NTSTATUS wg_transform_read_data(void *args) DECLSPEC_HIDDEN;
55 extern NTSTATUS wg_transform_get_status(void *args) DECLSPEC_HIDDEN;
56 extern NTSTATUS wg_transform_drain(void *args) DECLSPEC_HIDDEN;
57 extern NTSTATUS wg_transform_flush(void *args) DECLSPEC_HIDDEN;
59 /* wg_allocator.c */
61 /* wg_allocator_release_sample can be used to release any sample that was requested. */
62 typedef struct wg_sample *(*wg_allocator_request_sample_cb)(gsize size, void *context);
63 extern GstAllocator *wg_allocator_create(wg_allocator_request_sample_cb request_sample,
64 void *request_sample_context) DECLSPEC_HIDDEN;
65 extern void wg_allocator_destroy(GstAllocator *allocator) DECLSPEC_HIDDEN;
66 extern void wg_allocator_release_sample(GstAllocator *allocator, struct wg_sample *sample,
67 bool discard_data) DECLSPEC_HIDDEN;
69 #endif /* __WINE_WINEGSTREAMER_UNIX_PRIVATE_H */