contrib: theora: do not run autoreconf
[vlc/gmpfix.git] / modules / video_output / xcb / pictures.h
blobad14d4dd277e8175501dd552222e1bfdc382d78b
1 /**
2 * @file pictures.h
3 * @brief XCB pictures allocation header
4 */
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
25 #else
26 # define ORDER XCB_IMAGE_ORDER_LSB_FIRST
27 #endif
29 #include <vlc_picture.h>
30 #include <vlc_vout_display.h>
31 #include <xcb/shm.h>
33 bool XCB_shm_Check (vlc_object_t *obj, xcb_connection_t *conn);
34 int XCB_picture_Alloc (vout_display_t *, picture_resource_t *, size_t size,
35 xcb_connection_t *, xcb_shm_seg_t);
36 picture_t *XCB_picture_NewFromResource (const video_format_t *,
37 const picture_resource_t *);
39 static inline xcb_shm_seg_t XCB_picture_GetSegment(const picture_t *pic)
41 return (uintptr_t)pic->p_sys;