1 1.1 mrg /* 2 1.1 mrg * This file generated automatically from xvmc.xml by c_client.py. 3 1.1 mrg * Edit at your peril. 4 1.1 mrg */ 5 1.1 mrg 6 1.1 mrg /** 7 1.1 mrg * @defgroup XCB_XvMC_API XCB XvMC API 8 1.1 mrg * @brief XvMC XCB Protocol Implementation. 9 1.1 mrg * @{ 10 1.1 mrg **/ 11 1.1 mrg 12 1.1 mrg #ifndef __XVMC_H 13 1.1 mrg #define __XVMC_H 14 1.1 mrg 15 1.1 mrg #include "xcb.h" 16 1.1 mrg #include "xv.h" 17 1.1 mrg 18 1.1 mrg #ifdef __cplusplus 19 1.1 mrg extern "C" { 20 1.1 mrg #endif 21 1.1 mrg 22 1.1 mrg #define XCB_XVMC_MAJOR_VERSION 1 23 1.1 mrg #define XCB_XVMC_MINOR_VERSION 1 24 1.3 mrg 25 1.1 mrg extern xcb_extension_t xcb_xvmc_id; 26 1.1 mrg 27 1.1 mrg typedef uint32_t xcb_xvmc_context_t; 28 1.1 mrg 29 1.1 mrg /** 30 1.1 mrg * @brief xcb_xvmc_context_iterator_t 31 1.1 mrg **/ 32 1.1 mrg typedef struct xcb_xvmc_context_iterator_t { 33 1.4 mrg xcb_xvmc_context_t *data; 34 1.4 mrg int rem; 35 1.4 mrg int index; 36 1.1 mrg } xcb_xvmc_context_iterator_t; 37 1.1 mrg 38 1.1 mrg typedef uint32_t xcb_xvmc_surface_t; 39 1.1 mrg 40 1.1 mrg /** 41 1.1 mrg * @brief xcb_xvmc_surface_iterator_t 42 1.1 mrg **/ 43 1.1 mrg typedef struct xcb_xvmc_surface_iterator_t { 44 1.4 mrg xcb_xvmc_surface_t *data; 45 1.4 mrg int rem; 46 1.4 mrg int index; 47 1.1 mrg } xcb_xvmc_surface_iterator_t; 48 1.1 mrg 49 1.1 mrg typedef uint32_t xcb_xvmc_subpicture_t; 50 1.1 mrg 51 1.1 mrg /** 52 1.1 mrg * @brief xcb_xvmc_subpicture_iterator_t 53 1.1 mrg **/ 54 1.1 mrg typedef struct xcb_xvmc_subpicture_iterator_t { 55 1.4 mrg xcb_xvmc_subpicture_t *data; 56 1.4 mrg int rem; 57 1.4 mrg int index; 58 1.1 mrg } xcb_xvmc_subpicture_iterator_t; 59 1.1 mrg 60 1.1 mrg /** 61 1.1 mrg * @brief xcb_xvmc_surface_info_t 62 1.1 mrg **/ 63 1.1 mrg typedef struct xcb_xvmc_surface_info_t { 64 1.4 mrg xcb_xvmc_surface_t id; 65 1.4 mrg uint16_t chroma_format; 66 1.4 mrg uint16_t pad0; 67 1.4 mrg uint16_t max_width; 68 1.4 mrg uint16_t max_height; 69 1.4 mrg uint16_t subpicture_max_width; 70 1.4 mrg uint16_t subpicture_max_height; 71 1.4 mrg uint32_t mc_type; 72 1.4 mrg uint32_t flags; 73 1.1 mrg } xcb_xvmc_surface_info_t; 74 1.1 mrg 75 1.1 mrg /** 76 1.1 mrg * @brief xcb_xvmc_surface_info_iterator_t 77 1.1 mrg **/ 78 1.1 mrg typedef struct xcb_xvmc_surface_info_iterator_t { 79 1.4 mrg xcb_xvmc_surface_info_t *data; 80 1.4 mrg int rem; 81 1.4 mrg int index; 82 1.1 mrg } xcb_xvmc_surface_info_iterator_t; 83 1.1 mrg 84 1.1 mrg /** 85 1.1 mrg * @brief xcb_xvmc_query_version_cookie_t 86 1.1 mrg **/ 87 1.1 mrg typedef struct xcb_xvmc_query_version_cookie_t { 88 1.4 mrg unsigned int sequence; 89 1.1 mrg } xcb_xvmc_query_version_cookie_t; 90 1.1 mrg 91 1.1 mrg /** Opcode for xcb_xvmc_query_version. */ 92 1.1 mrg #define XCB_XVMC_QUERY_VERSION 0 93 1.1 mrg 94 1.1 mrg /** 95 1.1 mrg * @brief xcb_xvmc_query_version_request_t 96 1.1 mrg **/ 97 1.1 mrg typedef struct xcb_xvmc_query_version_request_t { 98 1.4 mrg uint8_t major_opcode; 99 1.4 mrg uint8_t minor_opcode; 100 1.4 mrg uint16_t length; 101 1.1 mrg } xcb_xvmc_query_version_request_t; 102 1.1 mrg 103 1.1 mrg /** 104 1.1 mrg * @brief xcb_xvmc_query_version_reply_t 105 1.1 mrg **/ 106 1.1 mrg typedef struct xcb_xvmc_query_version_reply_t { 107 1.4 mrg uint8_t response_type; 108 1.4 mrg uint8_t pad0; 109 1.4 mrg uint16_t sequence; 110 1.4 mrg uint32_t length; 111 1.4 mrg uint32_t major; 112 1.4 mrg uint32_t minor; 113 1.1 mrg } xcb_xvmc_query_version_reply_t; 114 1.1 mrg 115 1.1 mrg /** 116 1.1 mrg * @brief xcb_xvmc_list_surface_types_cookie_t 117 1.1 mrg **/ 118 1.1 mrg typedef struct xcb_xvmc_list_surface_types_cookie_t { 119 1.4 mrg unsigned int sequence; 120 1.1 mrg } xcb_xvmc_list_surface_types_cookie_t; 121 1.1 mrg 122 1.1 mrg /** Opcode for xcb_xvmc_list_surface_types. */ 123 1.1 mrg #define XCB_XVMC_LIST_SURFACE_TYPES 1 124 1.1 mrg 125 1.1 mrg /** 126 1.1 mrg * @brief xcb_xvmc_list_surface_types_request_t 127 1.1 mrg **/ 128 1.1 mrg typedef struct xcb_xvmc_list_surface_types_request_t { 129 1.4 mrg uint8_t major_opcode; 130 1.4 mrg uint8_t minor_opcode; 131 1.4 mrg uint16_t length; 132 1.4 mrg xcb_xv_port_t port_id; 133 1.1 mrg } xcb_xvmc_list_surface_types_request_t; 134 1.1 mrg 135 1.1 mrg /** 136 1.1 mrg * @brief xcb_xvmc_list_surface_types_reply_t 137 1.1 mrg **/ 138 1.1 mrg typedef struct xcb_xvmc_list_surface_types_reply_t { 139 1.4 mrg uint8_t response_type; 140 1.4 mrg uint8_t pad0; 141 1.4 mrg uint16_t sequence; 142 1.4 mrg uint32_t length; 143 1.4 mrg uint32_t num; 144 1.4 mrg uint8_t pad1[20]; 145 1.1 mrg } xcb_xvmc_list_surface_types_reply_t; 146 1.1 mrg 147 1.1 mrg /** 148 1.1 mrg * @brief xcb_xvmc_create_context_cookie_t 149 1.1 mrg **/ 150 1.1 mrg typedef struct xcb_xvmc_create_context_cookie_t { 151 1.4 mrg unsigned int sequence; 152 1.1 mrg } xcb_xvmc_create_context_cookie_t; 153 1.1 mrg 154 1.1 mrg /** Opcode for xcb_xvmc_create_context. */ 155 1.1 mrg #define XCB_XVMC_CREATE_CONTEXT 2 156 1.1 mrg 157 1.1 mrg /** 158 1.1 mrg * @brief xcb_xvmc_create_context_request_t 159 1.1 mrg **/ 160 1.1 mrg typedef struct xcb_xvmc_create_context_request_t { 161 1.4 mrg uint8_t major_opcode; 162 1.4 mrg uint8_t minor_opcode; 163 1.4 mrg uint16_t length; 164 1.4 mrg xcb_xvmc_context_t context_id; 165 1.4 mrg xcb_xv_port_t port_id; 166 1.4 mrg xcb_xvmc_surface_t surface_id; 167 1.4 mrg uint16_t width; 168 1.4 mrg uint16_t height; 169 1.4 mrg uint32_t flags; 170 1.1 mrg } xcb_xvmc_create_context_request_t; 171 1.1 mrg 172 1.1 mrg /** 173 1.1 mrg * @brief xcb_xvmc_create_context_reply_t 174 1.1 mrg **/ 175 1.1 mrg typedef struct xcb_xvmc_create_context_reply_t { 176 1.4 mrg uint8_t response_type; 177 1.4 mrg uint8_t pad0; 178 1.4 mrg uint16_t sequence; 179 1.4 mrg uint32_t length; 180 1.4 mrg uint16_t width_actual; 181 1.4 mrg uint16_t height_actual; 182 1.4 mrg uint32_t flags_return; 183 1.4 mrg uint8_t pad1[20]; 184 1.1 mrg } xcb_xvmc_create_context_reply_t; 185 1.1 mrg 186 1.1 mrg /** Opcode for xcb_xvmc_destroy_context. */ 187 1.1 mrg #define XCB_XVMC_DESTROY_CONTEXT 3 188 1.1 mrg 189 1.1 mrg /** 190 1.1 mrg * @brief xcb_xvmc_destroy_context_request_t 191 1.1 mrg **/ 192 1.1 mrg typedef struct xcb_xvmc_destroy_context_request_t { 193 1.4 mrg uint8_t major_opcode; 194 1.4 mrg uint8_t minor_opcode; 195 1.4 mrg uint16_t length; 196 1.4 mrg xcb_xvmc_context_t context_id; 197 1.1 mrg } xcb_xvmc_destroy_context_request_t; 198 1.1 mrg 199 1.1 mrg /** 200 1.1 mrg * @brief xcb_xvmc_create_surface_cookie_t 201 1.1 mrg **/ 202 1.1 mrg typedef struct xcb_xvmc_create_surface_cookie_t { 203 1.4 mrg unsigned int sequence; 204 1.1 mrg } xcb_xvmc_create_surface_cookie_t; 205 1.1 mrg 206 1.1 mrg /** Opcode for xcb_xvmc_create_surface. */ 207 1.1 mrg #define XCB_XVMC_CREATE_SURFACE 4 208 1.1 mrg 209 1.1 mrg /** 210 1.1 mrg * @brief xcb_xvmc_create_surface_request_t 211 1.1 mrg **/ 212 1.1 mrg typedef struct xcb_xvmc_create_surface_request_t { 213 1.4 mrg uint8_t major_opcode; 214 1.4 mrg uint8_t minor_opcode; 215 1.4 mrg uint16_t length; 216 1.4 mrg xcb_xvmc_surface_t surface_id; 217 1.4 mrg xcb_xvmc_context_t context_id; 218 1.1 mrg } xcb_xvmc_create_surface_request_t; 219 1.1 mrg 220 1.1 mrg /** 221 1.1 mrg * @brief xcb_xvmc_create_surface_reply_t 222 1.1 mrg **/ 223 1.1 mrg typedef struct xcb_xvmc_create_surface_reply_t { 224 1.4 mrg uint8_t response_type; 225 1.4 mrg uint8_t pad0; 226 1.4 mrg uint16_t sequence; 227 1.4 mrg uint32_t length; 228 1.4 mrg uint8_t pad1[24]; 229 1.1 mrg } xcb_xvmc_create_surface_reply_t; 230 1.1 mrg 231 1.1 mrg /** Opcode for xcb_xvmc_destroy_surface. */ 232 1.1 mrg #define XCB_XVMC_DESTROY_SURFACE 5 233 1.1 mrg 234 1.1 mrg /** 235 1.1 mrg * @brief xcb_xvmc_destroy_surface_request_t 236 1.1 mrg **/ 237 1.1 mrg typedef struct xcb_xvmc_destroy_surface_request_t { 238 1.4 mrg uint8_t major_opcode; 239 1.4 mrg uint8_t minor_opcode; 240 1.4 mrg uint16_t length; 241 1.4 mrg xcb_xvmc_surface_t surface_id; 242 1.1 mrg } xcb_xvmc_destroy_surface_request_t; 243 1.1 mrg 244 1.1 mrg /** 245 1.1 mrg * @brief xcb_xvmc_create_subpicture_cookie_t 246 1.1 mrg **/ 247 1.1 mrg typedef struct xcb_xvmc_create_subpicture_cookie_t { 248 1.4 mrg unsigned int sequence; 249 1.1 mrg } xcb_xvmc_create_subpicture_cookie_t; 250 1.1 mrg 251 1.1 mrg /** Opcode for xcb_xvmc_create_subpicture. */ 252 1.1 mrg #define XCB_XVMC_CREATE_SUBPICTURE 6 253 1.1 mrg 254 1.1 mrg /** 255 1.1 mrg * @brief xcb_xvmc_create_subpicture_request_t 256 1.1 mrg **/ 257 1.1 mrg typedef struct xcb_xvmc_create_subpicture_request_t { 258 1.4 mrg uint8_t major_opcode; 259 1.4 mrg uint8_t minor_opcode; 260 1.4 mrg uint16_t length; 261 1.4 mrg xcb_xvmc_subpicture_t subpicture_id; 262 1.4 mrg xcb_xvmc_context_t context; 263 1.4 mrg uint32_t xvimage_id; 264 1.4 mrg uint16_t width; 265 1.4 mrg uint16_t height; 266 1.1 mrg } xcb_xvmc_create_subpicture_request_t; 267 1.1 mrg 268 1.1 mrg /** 269 1.1 mrg * @brief xcb_xvmc_create_subpicture_reply_t 270 1.1 mrg **/ 271 1.1 mrg typedef struct xcb_xvmc_create_subpicture_reply_t { 272 1.4 mrg uint8_t response_type; 273 1.4 mrg uint8_t pad0; 274 1.4 mrg uint16_t sequence; 275 1.4 mrg uint32_t length; 276 1.4 mrg uint16_t width_actual; 277 1.4 mrg uint16_t height_actual; 278 1.4 mrg uint16_t num_palette_entries; 279 1.4 mrg uint16_t entry_bytes; 280 1.4 mrg uint8_t component_order[4]; 281 1.4 mrg uint8_t pad1[12]; 282 1.1 mrg } xcb_xvmc_create_subpicture_reply_t; 283 1.1 mrg 284 1.1 mrg /** Opcode for xcb_xvmc_destroy_subpicture. */ 285 1.1 mrg #define XCB_XVMC_DESTROY_SUBPICTURE 7 286 1.1 mrg 287 1.1 mrg /** 288 1.1 mrg * @brief xcb_xvmc_destroy_subpicture_request_t 289 1.1 mrg **/ 290 1.1 mrg typedef struct xcb_xvmc_destroy_subpicture_request_t { 291 1.4 mrg uint8_t major_opcode; 292 1.4 mrg uint8_t minor_opcode; 293 1.4 mrg uint16_t length; 294 1.4 mrg xcb_xvmc_subpicture_t subpicture_id; 295 1.1 mrg } xcb_xvmc_destroy_subpicture_request_t; 296 1.1 mrg 297 1.1 mrg /** 298 1.1 mrg * @brief xcb_xvmc_list_subpicture_types_cookie_t 299 1.1 mrg **/ 300 1.1 mrg typedef struct xcb_xvmc_list_subpicture_types_cookie_t { 301 1.4 mrg unsigned int sequence; 302 1.1 mrg } xcb_xvmc_list_subpicture_types_cookie_t; 303 1.1 mrg 304 1.1 mrg /** Opcode for xcb_xvmc_list_subpicture_types. */ 305 1.1 mrg #define XCB_XVMC_LIST_SUBPICTURE_TYPES 8 306 1.1 mrg 307 1.1 mrg /** 308 1.1 mrg * @brief xcb_xvmc_list_subpicture_types_request_t 309 1.1 mrg **/ 310 1.1 mrg typedef struct xcb_xvmc_list_subpicture_types_request_t { 311 1.4 mrg uint8_t major_opcode; 312 1.4 mrg uint8_t minor_opcode; 313 1.4 mrg uint16_t length; 314 1.4 mrg xcb_xv_port_t port_id; 315 1.4 mrg xcb_xvmc_surface_t surface_id; 316 1.1 mrg } xcb_xvmc_list_subpicture_types_request_t; 317 1.1 mrg 318 1.1 mrg /** 319 1.1 mrg * @brief xcb_xvmc_list_subpicture_types_reply_t 320 1.1 mrg **/ 321 1.1 mrg typedef struct xcb_xvmc_list_subpicture_types_reply_t { 322 1.4 mrg uint8_t response_type; 323 1.4 mrg uint8_t pad0; 324 1.4 mrg uint16_t sequence; 325 1.4 mrg uint32_t length; 326 1.4 mrg uint32_t num; 327 1.4 mrg uint8_t pad1[20]; 328 1.1 mrg } xcb_xvmc_list_subpicture_types_reply_t; 329 1.1 mrg 330 1.1 mrg /** 331 1.1 mrg * Get the next element of the iterator 332 1.1 mrg * @param i Pointer to a xcb_xvmc_context_iterator_t 333 1.1 mrg * 334 1.1 mrg * Get the next element in the iterator. The member rem is 335 1.1 mrg * decreased by one. The member data points to the next 336 1.1 mrg * element. The member index is increased by sizeof(xcb_xvmc_context_t) 337 1.1 mrg */ 338 1.1 mrg void 339 1.4 mrg xcb_xvmc_context_next (xcb_xvmc_context_iterator_t *i); 340 1.1 mrg 341 1.1 mrg /** 342 1.1 mrg * Return the iterator pointing to the last element 343 1.1 mrg * @param i An xcb_xvmc_context_iterator_t 344 1.1 mrg * @return The iterator pointing to the last element 345 1.1 mrg * 346 1.1 mrg * Set the current element in the iterator to the last element. 347 1.1 mrg * The member rem is set to 0. The member data points to the 348 1.1 mrg * last element. 349 1.1 mrg */ 350 1.1 mrg xcb_generic_iterator_t 351 1.4 mrg xcb_xvmc_context_end (xcb_xvmc_context_iterator_t i); 352 1.1 mrg 353 1.1 mrg /** 354 1.1 mrg * Get the next element of the iterator 355 1.1 mrg * @param i Pointer to a xcb_xvmc_surface_iterator_t 356 1.1 mrg * 357 1.1 mrg * Get the next element in the iterator. The member rem is 358 1.1 mrg * decreased by one. The member data points to the next 359 1.1 mrg * element. The member index is increased by sizeof(xcb_xvmc_surface_t) 360 1.1 mrg */ 361 1.1 mrg void 362 1.4 mrg xcb_xvmc_surface_next (xcb_xvmc_surface_iterator_t *i); 363 1.1 mrg 364 1.1 mrg /** 365 1.1 mrg * Return the iterator pointing to the last element 366 1.1 mrg * @param i An xcb_xvmc_surface_iterator_t 367 1.1 mrg * @return The iterator pointing to the last element 368 1.1 mrg * 369 1.1 mrg * Set the current element in the iterator to the last element. 370 1.1 mrg * The member rem is set to 0. The member data points to the 371 1.1 mrg * last element. 372 1.1 mrg */ 373 1.1 mrg xcb_generic_iterator_t 374 1.4 mrg xcb_xvmc_surface_end (xcb_xvmc_surface_iterator_t i); 375 1.1 mrg 376 1.1 mrg /** 377 1.1 mrg * Get the next element of the iterator 378 1.1 mrg * @param i Pointer to a xcb_xvmc_subpicture_iterator_t 379 1.1 mrg * 380 1.1 mrg * Get the next element in the iterator. The member rem is 381 1.1 mrg * decreased by one. The member data points to the next 382 1.1 mrg * element. The member index is increased by sizeof(xcb_xvmc_subpicture_t) 383 1.1 mrg */ 384 1.1 mrg void 385 1.4 mrg xcb_xvmc_subpicture_next (xcb_xvmc_subpicture_iterator_t *i); 386 1.1 mrg 387 1.1 mrg /** 388 1.1 mrg * Return the iterator pointing to the last element 389 1.1 mrg * @param i An xcb_xvmc_subpicture_iterator_t 390 1.1 mrg * @return The iterator pointing to the last element 391 1.1 mrg * 392 1.1 mrg * Set the current element in the iterator to the last element. 393 1.1 mrg * The member rem is set to 0. The member data points to the 394 1.1 mrg * last element. 395 1.1 mrg */ 396 1.1 mrg xcb_generic_iterator_t 397 1.4 mrg xcb_xvmc_subpicture_end (xcb_xvmc_subpicture_iterator_t i); 398 1.1 mrg 399 1.1 mrg /** 400 1.1 mrg * Get the next element of the iterator 401 1.1 mrg * @param i Pointer to a xcb_xvmc_surface_info_iterator_t 402 1.1 mrg * 403 1.1 mrg * Get the next element in the iterator. The member rem is 404 1.1 mrg * decreased by one. The member data points to the next 405 1.1 mrg * element. The member index is increased by sizeof(xcb_xvmc_surface_info_t) 406 1.1 mrg */ 407 1.1 mrg void 408 1.4 mrg xcb_xvmc_surface_info_next (xcb_xvmc_surface_info_iterator_t *i); 409 1.1 mrg 410 1.1 mrg /** 411 1.1 mrg * Return the iterator pointing to the last element 412 1.1 mrg * @param i An xcb_xvmc_surface_info_iterator_t 413 1.1 mrg * @return The iterator pointing to the last element 414 1.1 mrg * 415 1.1 mrg * Set the current element in the iterator to the last element. 416 1.1 mrg * The member rem is set to 0. The member data points to the 417 1.1 mrg * last element. 418 1.1 mrg */ 419 1.1 mrg xcb_generic_iterator_t 420 1.4 mrg xcb_xvmc_surface_info_end (xcb_xvmc_surface_info_iterator_t i); 421 1.1 mrg 422 1.1 mrg /** 423 1.2 mrg * 424 1.1 mrg * @param c The connection 425 1.1 mrg * @return A cookie 426 1.1 mrg * 427 1.1 mrg * Delivers a request to the X server. 428 1.3 mrg * 429 1.1 mrg */ 430 1.1 mrg xcb_xvmc_query_version_cookie_t 431 1.4 mrg xcb_xvmc_query_version (xcb_connection_t *c); 432 1.1 mrg 433 1.1 mrg /** 434 1.2 mrg * 435 1.1 mrg * @param c The connection 436 1.1 mrg * @return A cookie 437 1.1 mrg * 438 1.1 mrg * Delivers a request to the X server. 439 1.3 mrg * 440 1.1 mrg * This form can be used only if the request will cause 441 1.1 mrg * a reply to be generated. Any returned error will be 442 1.1 mrg * placed in the event queue. 443 1.1 mrg */ 444 1.1 mrg xcb_xvmc_query_version_cookie_t 445 1.4 mrg xcb_xvmc_query_version_unchecked (xcb_connection_t *c); 446 1.1 mrg 447 1.1 mrg /** 448 1.1 mrg * Return the reply 449 1.1 mrg * @param c The connection 450 1.1 mrg * @param cookie The cookie 451 1.1 mrg * @param e The xcb_generic_error_t supplied 452 1.1 mrg * 453 1.1 mrg * Returns the reply of the request asked by 454 1.3 mrg * 455 1.1 mrg * The parameter @p e supplied to this function must be NULL if 456 1.1 mrg * xcb_xvmc_query_version_unchecked(). is used. 457 1.1 mrg * Otherwise, it stores the error if any. 458 1.1 mrg * 459 1.1 mrg * The returned value must be freed by the caller using free(). 460 1.1 mrg */ 461 1.1 mrg xcb_xvmc_query_version_reply_t * 462 1.4 mrg xcb_xvmc_query_version_reply (xcb_connection_t *c, 463 1.1 mrg xcb_xvmc_query_version_cookie_t cookie /**< */, 464 1.4 mrg xcb_generic_error_t **e); 465 1.1 mrg 466 1.2 mrg int 467 1.4 mrg xcb_xvmc_list_surface_types_sizeof (const void *_buffer); 468 1.2 mrg 469 1.1 mrg /** 470 1.2 mrg * 471 1.1 mrg * @param c The connection 472 1.1 mrg * @return A cookie 473 1.1 mrg * 474 1.1 mrg * Delivers a request to the X server. 475 1.3 mrg * 476 1.1 mrg */ 477 1.1 mrg xcb_xvmc_list_surface_types_cookie_t 478 1.4 mrg xcb_xvmc_list_surface_types (xcb_connection_t *c, 479 1.4 mrg xcb_xv_port_t port_id); 480 1.1 mrg 481 1.1 mrg /** 482 1.2 mrg * 483 1.1 mrg * @param c The connection 484 1.1 mrg * @return A cookie 485 1.1 mrg * 486 1.1 mrg * Delivers a request to the X server. 487 1.3 mrg * 488 1.1 mrg * This form can be used only if the request will cause 489 1.1 mrg * a reply to be generated. Any returned error will be 490 1.1 mrg * placed in the event queue. 491 1.1 mrg */ 492 1.1 mrg xcb_xvmc_list_surface_types_cookie_t 493 1.4 mrg xcb_xvmc_list_surface_types_unchecked (xcb_connection_t *c, 494 1.4 mrg xcb_xv_port_t port_id); 495 1.1 mrg 496 1.1 mrg xcb_xvmc_surface_info_t * 497 1.4 mrg xcb_xvmc_list_surface_types_surfaces (const xcb_xvmc_list_surface_types_reply_t *R); 498 1.1 mrg 499 1.1 mrg int 500 1.4 mrg xcb_xvmc_list_surface_types_surfaces_length (const xcb_xvmc_list_surface_types_reply_t *R); 501 1.1 mrg 502 1.1 mrg xcb_xvmc_surface_info_iterator_t 503 1.4 mrg xcb_xvmc_list_surface_types_surfaces_iterator (const xcb_xvmc_list_surface_types_reply_t *R); 504 1.1 mrg 505 1.1 mrg /** 506 1.1 mrg * Return the reply 507 1.1 mrg * @param c The connection 508 1.1 mrg * @param cookie The cookie 509 1.1 mrg * @param e The xcb_generic_error_t supplied 510 1.1 mrg * 511 1.1 mrg * Returns the reply of the request asked by 512 1.3 mrg * 513 1.1 mrg * The parameter @p e supplied to this function must be NULL if 514 1.1 mrg * xcb_xvmc_list_surface_types_unchecked(). is used. 515 1.1 mrg * Otherwise, it stores the error if any. 516 1.1 mrg * 517 1.1 mrg * The returned value must be freed by the caller using free(). 518 1.1 mrg */ 519 1.1 mrg xcb_xvmc_list_surface_types_reply_t * 520 1.4 mrg xcb_xvmc_list_surface_types_reply (xcb_connection_t *c, 521 1.1 mrg xcb_xvmc_list_surface_types_cookie_t cookie /**< */, 522 1.4 mrg xcb_generic_error_t **e); 523 1.1 mrg 524 1.2 mrg int 525 1.4 mrg xcb_xvmc_create_context_sizeof (const void *_buffer); 526 1.2 mrg 527 1.1 mrg /** 528 1.2 mrg * 529 1.1 mrg * @param c The connection 530 1.1 mrg * @return A cookie 531 1.1 mrg * 532 1.1 mrg * Delivers a request to the X server. 533 1.3 mrg * 534 1.1 mrg */ 535 1.1 mrg xcb_xvmc_create_context_cookie_t 536 1.4 mrg xcb_xvmc_create_context (xcb_connection_t *c, 537 1.4 mrg xcb_xvmc_context_t context_id, 538 1.4 mrg xcb_xv_port_t port_id, 539 1.4 mrg xcb_xvmc_surface_t surface_id, 540 1.4 mrg uint16_t width, 541 1.4 mrg uint16_t height, 542 1.4 mrg uint32_t flags); 543 1.1 mrg 544 1.1 mrg /** 545 1.2 mrg * 546 1.1 mrg * @param c The connection 547 1.1 mrg * @return A cookie 548 1.1 mrg * 549 1.1 mrg * Delivers a request to the X server. 550 1.3 mrg * 551 1.1 mrg * This form can be used only if the request will cause 552 1.1 mrg * a reply to be generated. Any returned error will be 553 1.1 mrg * placed in the event queue. 554 1.1 mrg */ 555 1.1 mrg xcb_xvmc_create_context_cookie_t 556 1.4 mrg xcb_xvmc_create_context_unchecked (xcb_connection_t *c, 557 1.4 mrg xcb_xvmc_context_t context_id, 558 1.4 mrg xcb_xv_port_t port_id, 559 1.4 mrg xcb_xvmc_surface_t surface_id, 560 1.4 mrg uint16_t width, 561 1.4 mrg uint16_t height, 562 1.4 mrg uint32_t flags); 563 1.1 mrg 564 1.1 mrg uint32_t * 565 1.4 mrg xcb_xvmc_create_context_priv_data (const xcb_xvmc_create_context_reply_t *R); 566 1.1 mrg 567 1.1 mrg int 568 1.4 mrg xcb_xvmc_create_context_priv_data_length (const xcb_xvmc_create_context_reply_t *R); 569 1.1 mrg 570 1.1 mrg xcb_generic_iterator_t 571 1.4 mrg xcb_xvmc_create_context_priv_data_end (const xcb_xvmc_create_context_reply_t *R); 572 1.1 mrg 573 1.1 mrg /** 574 1.1 mrg * Return the reply 575 1.1 mrg * @param c The connection 576 1.1 mrg * @param cookie The cookie 577 1.1 mrg * @param e The xcb_generic_error_t supplied 578 1.1 mrg * 579 1.1 mrg * Returns the reply of the request asked by 580 1.3 mrg * 581 1.1 mrg * The parameter @p e supplied to this function must be NULL if 582 1.1 mrg * xcb_xvmc_create_context_unchecked(). is used. 583 1.1 mrg * Otherwise, it stores the error if any. 584 1.1 mrg * 585 1.1 mrg * The returned value must be freed by the caller using free(). 586 1.1 mrg */ 587 1.1 mrg xcb_xvmc_create_context_reply_t * 588 1.4 mrg xcb_xvmc_create_context_reply (xcb_connection_t *c, 589 1.1 mrg xcb_xvmc_create_context_cookie_t cookie /**< */, 590 1.4 mrg xcb_generic_error_t **e); 591 1.1 mrg 592 1.1 mrg /** 593 1.2 mrg * 594 1.1 mrg * @param c The connection 595 1.1 mrg * @return A cookie 596 1.1 mrg * 597 1.1 mrg * Delivers a request to the X server. 598 1.3 mrg * 599 1.1 mrg * This form can be used only if the request will not cause 600 1.1 mrg * a reply to be generated. Any returned error will be 601 1.1 mrg * saved for handling by xcb_request_check(). 602 1.1 mrg */ 603 1.1 mrg xcb_void_cookie_t 604 1.4 mrg xcb_xvmc_destroy_context_checked (xcb_connection_t *c, 605 1.4 mrg xcb_xvmc_context_t context_id); 606 1.1 mrg 607 1.1 mrg /** 608 1.2 mrg * 609 1.1 mrg * @param c The connection 610 1.1 mrg * @return A cookie 611 1.1 mrg * 612 1.1 mrg * Delivers a request to the X server. 613 1.3 mrg * 614 1.1 mrg */ 615 1.1 mrg xcb_void_cookie_t 616 1.4 mrg xcb_xvmc_destroy_context (xcb_connection_t *c, 617 1.4 mrg xcb_xvmc_context_t context_id); 618 1.1 mrg 619 1.2 mrg int 620 1.4 mrg xcb_xvmc_create_surface_sizeof (const void *_buffer); 621 1.2 mrg 622 1.1 mrg /** 623 1.2 mrg * 624 1.1 mrg * @param c The connection 625 1.1 mrg * @return A cookie 626 1.1 mrg * 627 1.1 mrg * Delivers a request to the X server. 628 1.3 mrg * 629 1.1 mrg */ 630 1.1 mrg xcb_xvmc_create_surface_cookie_t 631 1.4 mrg xcb_xvmc_create_surface (xcb_connection_t *c, 632 1.4 mrg xcb_xvmc_surface_t surface_id, 633 1.4 mrg xcb_xvmc_context_t context_id); 634 1.1 mrg 635 1.1 mrg /** 636 1.2 mrg * 637 1.1 mrg * @param c The connection 638 1.1 mrg * @return A cookie 639 1.1 mrg * 640 1.1 mrg * Delivers a request to the X server. 641 1.3 mrg * 642 1.1 mrg * This form can be used only if the request will cause 643 1.1 mrg * a reply to be generated. Any returned error will be 644 1.1 mrg * placed in the event queue. 645 1.1 mrg */ 646 1.1 mrg xcb_xvmc_create_surface_cookie_t 647 1.4 mrg xcb_xvmc_create_surface_unchecked (xcb_connection_t *c, 648 1.4 mrg xcb_xvmc_surface_t surface_id, 649 1.4 mrg xcb_xvmc_context_t context_id); 650 1.1 mrg 651 1.1 mrg uint32_t * 652 1.4 mrg xcb_xvmc_create_surface_priv_data (const xcb_xvmc_create_surface_reply_t *R); 653 1.1 mrg 654 1.1 mrg int 655 1.4 mrg xcb_xvmc_create_surface_priv_data_length (const xcb_xvmc_create_surface_reply_t *R); 656 1.1 mrg 657 1.1 mrg xcb_generic_iterator_t 658 1.4 mrg xcb_xvmc_create_surface_priv_data_end (const xcb_xvmc_create_surface_reply_t *R); 659 1.1 mrg 660 1.1 mrg /** 661 1.1 mrg * Return the reply 662 1.1 mrg * @param c The connection 663 1.1 mrg * @param cookie The cookie 664 1.1 mrg * @param e The xcb_generic_error_t supplied 665 1.1 mrg * 666 1.1 mrg * Returns the reply of the request asked by 667 1.3 mrg * 668 1.1 mrg * The parameter @p e supplied to this function must be NULL if 669 1.1 mrg * xcb_xvmc_create_surface_unchecked(). is used. 670 1.1 mrg * Otherwise, it stores the error if any. 671 1.1 mrg * 672 1.1 mrg * The returned value must be freed by the caller using free(). 673 1.1 mrg */ 674 1.1 mrg xcb_xvmc_create_surface_reply_t * 675 1.4 mrg xcb_xvmc_create_surface_reply (xcb_connection_t *c, 676 1.1 mrg xcb_xvmc_create_surface_cookie_t cookie /**< */, 677 1.4 mrg xcb_generic_error_t **e); 678 1.1 mrg 679 1.1 mrg /** 680 1.2 mrg * 681 1.1 mrg * @param c The connection 682 1.1 mrg * @return A cookie 683 1.1 mrg * 684 1.1 mrg * Delivers a request to the X server. 685 1.3 mrg * 686 1.1 mrg * This form can be used only if the request will not cause 687 1.1 mrg * a reply to be generated. Any returned error will be 688 1.1 mrg * saved for handling by xcb_request_check(). 689 1.1 mrg */ 690 1.1 mrg xcb_void_cookie_t 691 1.4 mrg xcb_xvmc_destroy_surface_checked (xcb_connection_t *c, 692 1.4 mrg xcb_xvmc_surface_t surface_id); 693 1.1 mrg 694 1.1 mrg /** 695 1.2 mrg * 696 1.1 mrg * @param c The connection 697 1.1 mrg * @return A cookie 698 1.1 mrg * 699 1.1 mrg * Delivers a request to the X server. 700 1.3 mrg * 701 1.1 mrg */ 702 1.1 mrg xcb_void_cookie_t 703 1.4 mrg xcb_xvmc_destroy_surface (xcb_connection_t *c, 704 1.4 mrg xcb_xvmc_surface_t surface_id); 705 1.1 mrg 706 1.2 mrg int 707 1.4 mrg xcb_xvmc_create_subpicture_sizeof (const void *_buffer); 708 1.2 mrg 709 1.1 mrg /** 710 1.2 mrg * 711 1.1 mrg * @param c The connection 712 1.1 mrg * @return A cookie 713 1.1 mrg * 714 1.1 mrg * Delivers a request to the X server. 715 1.3 mrg * 716 1.1 mrg */ 717 1.1 mrg xcb_xvmc_create_subpicture_cookie_t 718 1.4 mrg xcb_xvmc_create_subpicture (xcb_connection_t *c, 719 1.4 mrg xcb_xvmc_subpicture_t subpicture_id, 720 1.4 mrg xcb_xvmc_context_t context, 721 1.4 mrg uint32_t xvimage_id, 722 1.4 mrg uint16_t width, 723 1.4 mrg uint16_t height); 724 1.1 mrg 725 1.1 mrg /** 726 1.2 mrg * 727 1.1 mrg * @param c The connection 728 1.1 mrg * @return A cookie 729 1.1 mrg * 730 1.1 mrg * Delivers a request to the X server. 731 1.3 mrg * 732 1.1 mrg * This form can be used only if the request will cause 733 1.1 mrg * a reply to be generated. Any returned error will be 734 1.1 mrg * placed in the event queue. 735 1.1 mrg */ 736 1.1 mrg xcb_xvmc_create_subpicture_cookie_t 737 1.4 mrg xcb_xvmc_create_subpicture_unchecked (xcb_connection_t *c, 738 1.4 mrg xcb_xvmc_subpicture_t subpicture_id, 739 1.4 mrg xcb_xvmc_context_t context, 740 1.4 mrg uint32_t xvimage_id, 741 1.4 mrg uint16_t width, 742 1.4 mrg uint16_t height); 743 1.1 mrg 744 1.1 mrg uint32_t * 745 1.4 mrg xcb_xvmc_create_subpicture_priv_data (const xcb_xvmc_create_subpicture_reply_t *R); 746 1.1 mrg 747 1.1 mrg int 748 1.4 mrg xcb_xvmc_create_subpicture_priv_data_length (const xcb_xvmc_create_subpicture_reply_t *R); 749 1.1 mrg 750 1.1 mrg xcb_generic_iterator_t 751 1.4 mrg xcb_xvmc_create_subpicture_priv_data_end (const xcb_xvmc_create_subpicture_reply_t *R); 752 1.1 mrg 753 1.1 mrg /** 754 1.1 mrg * Return the reply 755 1.1 mrg * @param c The connection 756 1.1 mrg * @param cookie The cookie 757 1.1 mrg * @param e The xcb_generic_error_t supplied 758 1.1 mrg * 759 1.1 mrg * Returns the reply of the request asked by 760 1.3 mrg * 761 1.1 mrg * The parameter @p e supplied to this function must be NULL if 762 1.1 mrg * xcb_xvmc_create_subpicture_unchecked(). is used. 763 1.1 mrg * Otherwise, it stores the error if any. 764 1.1 mrg * 765 1.1 mrg * The returned value must be freed by the caller using free(). 766 1.1 mrg */ 767 1.1 mrg xcb_xvmc_create_subpicture_reply_t * 768 1.4 mrg xcb_xvmc_create_subpicture_reply (xcb_connection_t *c, 769 1.1 mrg xcb_xvmc_create_subpicture_cookie_t cookie /**< */, 770 1.4 mrg xcb_generic_error_t **e); 771 1.1 mrg 772 1.1 mrg /** 773 1.2 mrg * 774 1.1 mrg * @param c The connection 775 1.1 mrg * @return A cookie 776 1.1 mrg * 777 1.1 mrg * Delivers a request to the X server. 778 1.3 mrg * 779 1.1 mrg * This form can be used only if the request will not cause 780 1.1 mrg * a reply to be generated. Any returned error will be 781 1.1 mrg * saved for handling by xcb_request_check(). 782 1.1 mrg */ 783 1.1 mrg xcb_void_cookie_t 784 1.4 mrg xcb_xvmc_destroy_subpicture_checked (xcb_connection_t *c, 785 1.4 mrg xcb_xvmc_subpicture_t subpicture_id); 786 1.1 mrg 787 1.1 mrg /** 788 1.2 mrg * 789 1.1 mrg * @param c The connection 790 1.1 mrg * @return A cookie 791 1.1 mrg * 792 1.1 mrg * Delivers a request to the X server. 793 1.3 mrg * 794 1.1 mrg */ 795 1.1 mrg xcb_void_cookie_t 796 1.4 mrg xcb_xvmc_destroy_subpicture (xcb_connection_t *c, 797 1.4 mrg xcb_xvmc_subpicture_t subpicture_id); 798 1.1 mrg 799 1.2 mrg int 800 1.4 mrg xcb_xvmc_list_subpicture_types_sizeof (const void *_buffer); 801 1.2 mrg 802 1.1 mrg /** 803 1.2 mrg * 804 1.1 mrg * @param c The connection 805 1.1 mrg * @return A cookie 806 1.1 mrg * 807 1.1 mrg * Delivers a request to the X server. 808 1.3 mrg * 809 1.1 mrg */ 810 1.1 mrg xcb_xvmc_list_subpicture_types_cookie_t 811 1.4 mrg xcb_xvmc_list_subpicture_types (xcb_connection_t *c, 812 1.4 mrg xcb_xv_port_t port_id, 813 1.4 mrg xcb_xvmc_surface_t surface_id); 814 1.1 mrg 815 1.1 mrg /** 816 1.2 mrg * 817 1.1 mrg * @param c The connection 818 1.1 mrg * @return A cookie 819 1.1 mrg * 820 1.1 mrg * Delivers a request to the X server. 821 1.3 mrg * 822 1.1 mrg * This form can be used only if the request will cause 823 1.1 mrg * a reply to be generated. Any returned error will be 824 1.1 mrg * placed in the event queue. 825 1.1 mrg */ 826 1.1 mrg xcb_xvmc_list_subpicture_types_cookie_t 827 1.4 mrg xcb_xvmc_list_subpicture_types_unchecked (xcb_connection_t *c, 828 1.4 mrg xcb_xv_port_t port_id, 829 1.4 mrg xcb_xvmc_surface_t surface_id); 830 1.1 mrg 831 1.1 mrg xcb_xv_image_format_info_t * 832 1.4 mrg xcb_xvmc_list_subpicture_types_types (const xcb_xvmc_list_subpicture_types_reply_t *R); 833 1.1 mrg 834 1.1 mrg int 835 1.4 mrg xcb_xvmc_list_subpicture_types_types_length (const xcb_xvmc_list_subpicture_types_reply_t *R); 836 1.1 mrg 837 1.1 mrg xcb_xv_image_format_info_iterator_t 838 1.4 mrg xcb_xvmc_list_subpicture_types_types_iterator (const xcb_xvmc_list_subpicture_types_reply_t *R); 839 1.1 mrg 840 1.1 mrg /** 841 1.1 mrg * Return the reply 842 1.1 mrg * @param c The connection 843 1.1 mrg * @param cookie The cookie 844 1.1 mrg * @param e The xcb_generic_error_t supplied 845 1.1 mrg * 846 1.1 mrg * Returns the reply of the request asked by 847 1.3 mrg * 848 1.1 mrg * The parameter @p e supplied to this function must be NULL if 849 1.1 mrg * xcb_xvmc_list_subpicture_types_unchecked(). is used. 850 1.1 mrg * Otherwise, it stores the error if any. 851 1.1 mrg * 852 1.1 mrg * The returned value must be freed by the caller using free(). 853 1.1 mrg */ 854 1.1 mrg xcb_xvmc_list_subpicture_types_reply_t * 855 1.4 mrg xcb_xvmc_list_subpicture_types_reply (xcb_connection_t *c, 856 1.1 mrg xcb_xvmc_list_subpicture_types_cookie_t cookie /**< */, 857 1.4 mrg xcb_generic_error_t **e); 858 1.1 mrg 859 1.1 mrg 860 1.1 mrg #ifdef __cplusplus 861 1.1 mrg } 862 1.1 mrg #endif 863 1.1 mrg 864 1.1 mrg #endif 865 1.1 mrg 866 1.1 mrg /** 867 1.1 mrg * @} 868 1.1 mrg */ 869