libs: drop some public APIs.
[platform/upstream/gstreamer-vaapi.git] / gst-libs / gst / vaapi / gstvaapidisplaycache.h
1 /*
2  *  gstvaapidisplaycache.h - VA display cache
3  *
4  *  Copyright (C) 2012 Intel Corporation
5  *
6  *  This library is free software; you can redistribute it and/or
7  *  modify it under the terms of the GNU Lesser General Public License
8  *  as published by the Free Software Foundation; either version 2.1
9  *  of the License, or (at your option) any later version.
10  *
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.
15  *
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
18  *  Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19  *  Boston, MA 02110-1301 USA
20  */
21
22 #ifndef GSTVAAPIDISPLAYCACHE_H
23 #define GSTVAAPIDISPLAYCACHE_H
24
25 #include <gst/vaapi/gstvaapidisplay.h>
26
27 typedef struct _GstVaapiDisplayCache    GstVaapiDisplayCache;
28
29 G_GNUC_INTERNAL
30 GstVaapiDisplayCache *
31 gst_vaapi_display_cache_new(void);
32
33 G_GNUC_INTERNAL
34 void
35 gst_vaapi_display_cache_free(GstVaapiDisplayCache *cache);
36
37 G_GNUC_INTERNAL
38 guint
39 gst_vaapi_display_cache_get_size(GstVaapiDisplayCache *cache);
40
41 G_GNUC_INTERNAL
42 gboolean
43 gst_vaapi_display_cache_add(
44     GstVaapiDisplayCache       *cache,
45     GstVaapiDisplayInfo        *info
46 );
47
48 G_GNUC_INTERNAL
49 void
50 gst_vaapi_display_cache_remove(
51     GstVaapiDisplayCache       *cache,
52     GstVaapiDisplay            *display
53 );
54
55 const GstVaapiDisplayInfo *
56 gst_vaapi_display_cache_lookup(
57     GstVaapiDisplayCache       *cache,
58     GstVaapiDisplay            *display
59 );
60
61 const GstVaapiDisplayInfo *
62 gst_vaapi_display_cache_lookup_custom(
63     GstVaapiDisplayCache       *cache,
64     GCompareFunc                func,
65     gconstpointer               data,
66     guint                       display_types
67 );
68
69 const GstVaapiDisplayInfo *
70 gst_vaapi_display_cache_lookup_by_va_display(
71     GstVaapiDisplayCache       *cache,
72     VADisplay                   va_display
73 );
74
75 const GstVaapiDisplayInfo *
76 gst_vaapi_display_cache_lookup_by_native_display(
77     GstVaapiDisplayCache       *cache,
78     gpointer                    native_display,
79     guint                       display_types
80 );
81
82 const GstVaapiDisplayInfo *
83 gst_vaapi_display_cache_lookup_by_name(
84     GstVaapiDisplayCache       *cache,
85     const gchar                *display_name,
86     guint                       display_types
87 );
88
89 #endif /* GSTVAAPIDISPLAYCACHE_H */