]> git.sesse.net Git - vlc/blob - modules/video_output/xcb/pictures.h
fingerprinter: don't hardcode acoustid module selection
[vlc] / modules / video_output / xcb / pictures.h
1 /**
2  * @file pictures.h
3  * @brief XCB pictures allocation header
4  */
5 /*****************************************************************************
6  * Copyright © 2009 Rémi Denis-Courmont
7  *
8  * This program is free software; you can redistribute it and/or modify it
9  * under the terms of the GNU Lesser General Public License as published by
10  * the Free Software Foundation; either version 2.1 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public License
19  * along with this program; if not, write to the Free Software Foundation,
20  * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
21  *****************************************************************************/
22
23 #ifdef WORDS_BIGENDIAN
24 # define ORDER XCB_IMAGE_ORDER_MSB_FIRST
25 #else
26 # define ORDER XCB_IMAGE_ORDER_LSB_FIRST
27 #endif
28
29 #include <vlc_picture.h>
30 #include <vlc_vout_display.h>
31 #include <xcb/shm.h>
32
33 bool XCB_shm_Check (vlc_object_t *obj, xcb_connection_t *conn);
34
35 struct picture_sys_t
36 {
37     xcb_shm_seg_t segment;
38 };
39 int XCB_pictures_Alloc (vout_display_t *, picture_resource_t *, size_t size,
40                         xcb_connection_t *, bool attach);
41 void XCB_pictures_Free (picture_resource_t *, xcb_connection_t *);