2 * gstvaapidisplaycache.h - VA display cache
4 * Copyright (C) 2012 Intel Corporation
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.
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
18 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 * Boston, MA 02110-1301 USA
22 #ifndef GSTVAAPIDISPLAYCACHE_H
23 #define GSTVAAPIDISPLAYCACHE_H
25 #include <gst/vaapi/gstvaapidisplay.h>
27 typedef struct _GstVaapiDisplayCache GstVaapiDisplayCache;
30 GstVaapiDisplayCache *
31 gst_vaapi_display_cache_new(void);
35 gst_vaapi_display_cache_free(GstVaapiDisplayCache *cache);
39 gst_vaapi_display_cache_get_size(GstVaapiDisplayCache *cache);
43 gst_vaapi_display_cache_add(
44 GstVaapiDisplayCache *cache,
45 GstVaapiDisplayInfo *info
50 gst_vaapi_display_cache_remove(
51 GstVaapiDisplayCache *cache,
52 GstVaapiDisplay *display
55 const GstVaapiDisplayInfo *
56 gst_vaapi_display_cache_lookup(
57 GstVaapiDisplayCache *cache,
58 GstVaapiDisplay *display
61 const GstVaapiDisplayInfo *
62 gst_vaapi_display_cache_lookup_custom(
63 GstVaapiDisplayCache *cache,
69 const GstVaapiDisplayInfo *
70 gst_vaapi_display_cache_lookup_by_va_display(
71 GstVaapiDisplayCache *cache,
75 const GstVaapiDisplayInfo *
76 gst_vaapi_display_cache_lookup_by_native_display(
77 GstVaapiDisplayCache *cache,
78 gpointer native_display,
82 const GstVaapiDisplayInfo *
83 gst_vaapi_display_cache_lookup_by_name(
84 GstVaapiDisplayCache *cache,
85 const gchar *display_name,
89 #endif /* GSTVAAPIDISPLAYCACHE_H */