3 * @brief XCB pictures allocation header
5 /*****************************************************************************
6 * Copyright © 2009 Rémi Denis-Courmont
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.
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.
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 *****************************************************************************/
23 #ifdef WORDS_BIGENDIAN
24 # define ORDER XCB_IMAGE_ORDER_MSB_FIRST
26 # define ORDER XCB_IMAGE_ORDER_LSB_FIRST
29 #include <vlc_picture.h>
30 #include <vlc_vout_display.h>
33 bool XCB_shm_Check (vlc_object_t *obj, xcb_connection_t *conn);
37 xcb_shm_seg_t segment;
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 *);