1 /* 2 * This file generated automatically from xvmc.xml by c_client.py. 3 * Edit at your peril. 4 */ 5 6 /** 7 * @defgroup XCB_XvMC_API XCB XvMC API 8 * @brief XvMC XCB Protocol Implementation. 9 * @{ 10 **/ 11 12 #ifndef __XVMC_H 13 #define __XVMC_H 14 15 #include "xcb.h" 16 #include "xproto.h" 17 #include "shm.h" 18 #include "xv.h" 19 20 #ifdef __cplusplus 21 extern "C" { 22 #endif 23 24 #define XCB_XVMC_MAJOR_VERSION 1 25 #define XCB_XVMC_MINOR_VERSION 1 26 27 extern xcb_extension_t xcb_xvmc_id; 28 29 typedef uint32_t xcb_xvmc_context_t; 30 31 /** 32 * @brief xcb_xvmc_context_iterator_t 33 **/ 34 typedef struct xcb_xvmc_context_iterator_t { 35 xcb_xvmc_context_t *data; /**< */ 36 int rem; /**< */ 37 int index; /**< */ 38 } xcb_xvmc_context_iterator_t; 39 40 typedef uint32_t xcb_xvmc_surface_t; 41 42 /** 43 * @brief xcb_xvmc_surface_iterator_t 44 **/ 45 typedef struct xcb_xvmc_surface_iterator_t { 46 xcb_xvmc_surface_t *data; /**< */ 47 int rem; /**< */ 48 int index; /**< */ 49 } xcb_xvmc_surface_iterator_t; 50 51 typedef uint32_t xcb_xvmc_subpicture_t; 52 53 /** 54 * @brief xcb_xvmc_subpicture_iterator_t 55 **/ 56 typedef struct xcb_xvmc_subpicture_iterator_t { 57 xcb_xvmc_subpicture_t *data; /**< */ 58 int rem; /**< */ 59 int index; /**< */ 60 } xcb_xvmc_subpicture_iterator_t; 61 62 /** 63 * @brief xcb_xvmc_surface_info_t 64 **/ 65 typedef struct xcb_xvmc_surface_info_t { 66 xcb_xvmc_surface_t id; /**< */ 67 uint16_t chroma_format; /**< */ 68 uint16_t pad0; /**< */ 69 uint16_t max_width; /**< */ 70 uint16_t max_height; /**< */ 71 uint16_t subpicture_max_width; /**< */ 72 uint16_t subpicture_max_height; /**< */ 73 uint32_t mc_type; /**< */ 74 uint32_t flags; /**< */ 75 } xcb_xvmc_surface_info_t; 76 77 /** 78 * @brief xcb_xvmc_surface_info_iterator_t 79 **/ 80 typedef struct xcb_xvmc_surface_info_iterator_t { 81 xcb_xvmc_surface_info_t *data; /**< */ 82 int rem; /**< */ 83 int index; /**< */ 84 } xcb_xvmc_surface_info_iterator_t; 85 86 /** 87 * @brief xcb_xvmc_query_version_cookie_t 88 **/ 89 typedef struct xcb_xvmc_query_version_cookie_t { 90 unsigned int sequence; /**< */ 91 } xcb_xvmc_query_version_cookie_t; 92 93 /** Opcode for xcb_xvmc_query_version. */ 94 #define XCB_XVMC_QUERY_VERSION 0 95 96 /** 97 * @brief xcb_xvmc_query_version_request_t 98 **/ 99 typedef struct xcb_xvmc_query_version_request_t { 100 uint8_t major_opcode; /**< */ 101 uint8_t minor_opcode; /**< */ 102 uint16_t length; /**< */ 103 } xcb_xvmc_query_version_request_t; 104 105 /** 106 * @brief xcb_xvmc_query_version_reply_t 107 **/ 108 typedef struct xcb_xvmc_query_version_reply_t { 109 uint8_t response_type; /**< */ 110 uint8_t pad0; /**< */ 111 uint16_t sequence; /**< */ 112 uint32_t length; /**< */ 113 uint32_t major; /**< */ 114 uint32_t minor; /**< */ 115 } xcb_xvmc_query_version_reply_t; 116 117 /** 118 * @brief xcb_xvmc_list_surface_types_cookie_t 119 **/ 120 typedef struct xcb_xvmc_list_surface_types_cookie_t { 121 unsigned int sequence; /**< */ 122 } xcb_xvmc_list_surface_types_cookie_t; 123 124 /** Opcode for xcb_xvmc_list_surface_types. */ 125 #define XCB_XVMC_LIST_SURFACE_TYPES 1 126 127 /** 128 * @brief xcb_xvmc_list_surface_types_request_t 129 **/ 130 typedef struct xcb_xvmc_list_surface_types_request_t { 131 uint8_t major_opcode; /**< */ 132 uint8_t minor_opcode; /**< */ 133 uint16_t length; /**< */ 134 xcb_xv_port_t port_id; /**< */ 135 } xcb_xvmc_list_surface_types_request_t; 136 137 /** 138 * @brief xcb_xvmc_list_surface_types_reply_t 139 **/ 140 typedef struct xcb_xvmc_list_surface_types_reply_t { 141 uint8_t response_type; /**< */ 142 uint8_t pad0; /**< */ 143 uint16_t sequence; /**< */ 144 uint32_t length; /**< */ 145 uint32_t num; /**< */ 146 uint8_t pad1[20]; /**< */ 147 } xcb_xvmc_list_surface_types_reply_t; 148 149 /** 150 * @brief xcb_xvmc_create_context_cookie_t 151 **/ 152 typedef struct xcb_xvmc_create_context_cookie_t { 153 unsigned int sequence; /**< */ 154 } xcb_xvmc_create_context_cookie_t; 155 156 /** Opcode for xcb_xvmc_create_context. */ 157 #define XCB_XVMC_CREATE_CONTEXT 2 158 159 /** 160 * @brief xcb_xvmc_create_context_request_t 161 **/ 162 typedef struct xcb_xvmc_create_context_request_t { 163 uint8_t major_opcode; /**< */ 164 uint8_t minor_opcode; /**< */ 165 uint16_t length; /**< */ 166 xcb_xvmc_context_t context_id; /**< */ 167 xcb_xv_port_t port_id; /**< */ 168 xcb_xvmc_surface_t surface_id; /**< */ 169 uint16_t width; /**< */ 170 uint16_t height; /**< */ 171 uint32_t flags; /**< */ 172 } xcb_xvmc_create_context_request_t; 173 174 /** 175 * @brief xcb_xvmc_create_context_reply_t 176 **/ 177 typedef struct xcb_xvmc_create_context_reply_t { 178 uint8_t response_type; /**< */ 179 uint8_t pad0; /**< */ 180 uint16_t sequence; /**< */ 181 uint32_t length; /**< */ 182 uint16_t width_actual; /**< */ 183 uint16_t height_actual; /**< */ 184 uint32_t flags_return; /**< */ 185 uint8_t pad1[20]; /**< */ 186 } xcb_xvmc_create_context_reply_t; 187 188 /** Opcode for xcb_xvmc_destroy_context. */ 189 #define XCB_XVMC_DESTROY_CONTEXT 3 190 191 /** 192 * @brief xcb_xvmc_destroy_context_request_t 193 **/ 194 typedef struct xcb_xvmc_destroy_context_request_t { 195 uint8_t major_opcode; /**< */ 196 uint8_t minor_opcode; /**< */ 197 uint16_t length; /**< */ 198 xcb_xvmc_context_t context_id; /**< */ 199 } xcb_xvmc_destroy_context_request_t; 200 201 /** 202 * @brief xcb_xvmc_create_surface_cookie_t 203 **/ 204 typedef struct xcb_xvmc_create_surface_cookie_t { 205 unsigned int sequence; /**< */ 206 } xcb_xvmc_create_surface_cookie_t; 207 208 /** Opcode for xcb_xvmc_create_surface. */ 209 #define XCB_XVMC_CREATE_SURFACE 4 210 211 /** 212 * @brief xcb_xvmc_create_surface_request_t 213 **/ 214 typedef struct xcb_xvmc_create_surface_request_t { 215 uint8_t major_opcode; /**< */ 216 uint8_t minor_opcode; /**< */ 217 uint16_t length; /**< */ 218 xcb_xvmc_surface_t surface_id; /**< */ 219 xcb_xvmc_context_t context_id; /**< */ 220 } xcb_xvmc_create_surface_request_t; 221 222 /** 223 * @brief xcb_xvmc_create_surface_reply_t 224 **/ 225 typedef struct xcb_xvmc_create_surface_reply_t { 226 uint8_t response_type; /**< */ 227 uint8_t pad0; /**< */ 228 uint16_t sequence; /**< */ 229 uint32_t length; /**< */ 230 uint8_t pad1[24]; /**< */ 231 } xcb_xvmc_create_surface_reply_t; 232 233 /** Opcode for xcb_xvmc_destroy_surface. */ 234 #define XCB_XVMC_DESTROY_SURFACE 5 235 236 /** 237 * @brief xcb_xvmc_destroy_surface_request_t 238 **/ 239 typedef struct xcb_xvmc_destroy_surface_request_t { 240 uint8_t major_opcode; /**< */ 241 uint8_t minor_opcode; /**< */ 242 uint16_t length; /**< */ 243 xcb_xvmc_surface_t surface_id; /**< */ 244 } xcb_xvmc_destroy_surface_request_t; 245 246 /** 247 * @brief xcb_xvmc_create_subpicture_cookie_t 248 **/ 249 typedef struct xcb_xvmc_create_subpicture_cookie_t { 250 unsigned int sequence; /**< */ 251 } xcb_xvmc_create_subpicture_cookie_t; 252 253 /** Opcode for xcb_xvmc_create_subpicture. */ 254 #define XCB_XVMC_CREATE_SUBPICTURE 6 255 256 /** 257 * @brief xcb_xvmc_create_subpicture_request_t 258 **/ 259 typedef struct xcb_xvmc_create_subpicture_request_t { 260 uint8_t major_opcode; /**< */ 261 uint8_t minor_opcode; /**< */ 262 uint16_t length; /**< */ 263 xcb_xvmc_subpicture_t subpicture_id; /**< */ 264 xcb_xvmc_context_t context; /**< */ 265 uint32_t xvimage_id; /**< */ 266 uint16_t width; /**< */ 267 uint16_t height; /**< */ 268 } xcb_xvmc_create_subpicture_request_t; 269 270 /** 271 * @brief xcb_xvmc_create_subpicture_reply_t 272 **/ 273 typedef struct xcb_xvmc_create_subpicture_reply_t { 274 uint8_t response_type; /**< */ 275 uint8_t pad0; /**< */ 276 uint16_t sequence; /**< */ 277 uint32_t length; /**< */ 278 uint16_t width_actual; /**< */ 279 uint16_t height_actual; /**< */ 280 uint16_t num_palette_entries; /**< */ 281 uint16_t entry_bytes; /**< */ 282 uint8_t component_order[4]; /**< */ 283 uint8_t pad1[12]; /**< */ 284 } xcb_xvmc_create_subpicture_reply_t; 285 286 /** Opcode for xcb_xvmc_destroy_subpicture. */ 287 #define XCB_XVMC_DESTROY_SUBPICTURE 7 288 289 /** 290 * @brief xcb_xvmc_destroy_subpicture_request_t 291 **/ 292 typedef struct xcb_xvmc_destroy_subpicture_request_t { 293 uint8_t major_opcode; /**< */ 294 uint8_t minor_opcode; /**< */ 295 uint16_t length; /**< */ 296 xcb_xvmc_subpicture_t subpicture_id; /**< */ 297 } xcb_xvmc_destroy_subpicture_request_t; 298 299 /** 300 * @brief xcb_xvmc_list_subpicture_types_cookie_t 301 **/ 302 typedef struct xcb_xvmc_list_subpicture_types_cookie_t { 303 unsigned int sequence; /**< */ 304 } xcb_xvmc_list_subpicture_types_cookie_t; 305 306 /** Opcode for xcb_xvmc_list_subpicture_types. */ 307 #define XCB_XVMC_LIST_SUBPICTURE_TYPES 8 308 309 /** 310 * @brief xcb_xvmc_list_subpicture_types_request_t 311 **/ 312 typedef struct xcb_xvmc_list_subpicture_types_request_t { 313 uint8_t major_opcode; /**< */ 314 uint8_t minor_opcode; /**< */ 315 uint16_t length; /**< */ 316 xcb_xv_port_t port_id; /**< */ 317 xcb_xvmc_surface_t surface_id; /**< */ 318 } xcb_xvmc_list_subpicture_types_request_t; 319 320 /** 321 * @brief xcb_xvmc_list_subpicture_types_reply_t 322 **/ 323 typedef struct xcb_xvmc_list_subpicture_types_reply_t { 324 uint8_t response_type; /**< */ 325 uint8_t pad0; /**< */ 326 uint16_t sequence; /**< */ 327 uint32_t length; /**< */ 328 uint32_t num; /**< */ 329 uint8_t pad1[20]; /**< */ 330 } xcb_xvmc_list_subpicture_types_reply_t; 331 332 /** 333 * Get the next element of the iterator 334 * @param i Pointer to a xcb_xvmc_context_iterator_t 335 * 336 * Get the next element in the iterator. The member rem is 337 * decreased by one. The member data points to the next 338 * element. The member index is increased by sizeof(xcb_xvmc_context_t) 339 */ 340 341 /***************************************************************************** 342 ** 343 ** void xcb_xvmc_context_next 344 ** 345 ** @param xcb_xvmc_context_iterator_t *i 346 ** @returns void 347 ** 348 *****************************************************************************/ 349 350 void 351 xcb_xvmc_context_next (xcb_xvmc_context_iterator_t *i /**< */); 352 353 /** 354 * Return the iterator pointing to the last element 355 * @param i An xcb_xvmc_context_iterator_t 356 * @return The iterator pointing to the last element 357 * 358 * Set the current element in the iterator to the last element. 359 * The member rem is set to 0. The member data points to the 360 * last element. 361 */ 362 363 /***************************************************************************** 364 ** 365 ** xcb_generic_iterator_t xcb_xvmc_context_end 366 ** 367 ** @param xcb_xvmc_context_iterator_t i 368 ** @returns xcb_generic_iterator_t 369 ** 370 *****************************************************************************/ 371 372 xcb_generic_iterator_t 373 xcb_xvmc_context_end (xcb_xvmc_context_iterator_t i /**< */); 374 375 /** 376 * Get the next element of the iterator 377 * @param i Pointer to a xcb_xvmc_surface_iterator_t 378 * 379 * Get the next element in the iterator. The member rem is 380 * decreased by one. The member data points to the next 381 * element. The member index is increased by sizeof(xcb_xvmc_surface_t) 382 */ 383 384 /***************************************************************************** 385 ** 386 ** void xcb_xvmc_surface_next 387 ** 388 ** @param xcb_xvmc_surface_iterator_t *i 389 ** @returns void 390 ** 391 *****************************************************************************/ 392 393 void 394 xcb_xvmc_surface_next (xcb_xvmc_surface_iterator_t *i /**< */); 395 396 /** 397 * Return the iterator pointing to the last element 398 * @param i An xcb_xvmc_surface_iterator_t 399 * @return The iterator pointing to the last element 400 * 401 * Set the current element in the iterator to the last element. 402 * The member rem is set to 0. The member data points to the 403 * last element. 404 */ 405 406 /***************************************************************************** 407 ** 408 ** xcb_generic_iterator_t xcb_xvmc_surface_end 409 ** 410 ** @param xcb_xvmc_surface_iterator_t i 411 ** @returns xcb_generic_iterator_t 412 ** 413 *****************************************************************************/ 414 415 xcb_generic_iterator_t 416 xcb_xvmc_surface_end (xcb_xvmc_surface_iterator_t i /**< */); 417 418 /** 419 * Get the next element of the iterator 420 * @param i Pointer to a xcb_xvmc_subpicture_iterator_t 421 * 422 * Get the next element in the iterator. The member rem is 423 * decreased by one. The member data points to the next 424 * element. The member index is increased by sizeof(xcb_xvmc_subpicture_t) 425 */ 426 427 /***************************************************************************** 428 ** 429 ** void xcb_xvmc_subpicture_next 430 ** 431 ** @param xcb_xvmc_subpicture_iterator_t *i 432 ** @returns void 433 ** 434 *****************************************************************************/ 435 436 void 437 xcb_xvmc_subpicture_next (xcb_xvmc_subpicture_iterator_t *i /**< */); 438 439 /** 440 * Return the iterator pointing to the last element 441 * @param i An xcb_xvmc_subpicture_iterator_t 442 * @return The iterator pointing to the last element 443 * 444 * Set the current element in the iterator to the last element. 445 * The member rem is set to 0. The member data points to the 446 * last element. 447 */ 448 449 /***************************************************************************** 450 ** 451 ** xcb_generic_iterator_t xcb_xvmc_subpicture_end 452 ** 453 ** @param xcb_xvmc_subpicture_iterator_t i 454 ** @returns xcb_generic_iterator_t 455 ** 456 *****************************************************************************/ 457 458 xcb_generic_iterator_t 459 xcb_xvmc_subpicture_end (xcb_xvmc_subpicture_iterator_t i /**< */); 460 461 /** 462 * Get the next element of the iterator 463 * @param i Pointer to a xcb_xvmc_surface_info_iterator_t 464 * 465 * Get the next element in the iterator. The member rem is 466 * decreased by one. The member data points to the next 467 * element. The member index is increased by sizeof(xcb_xvmc_surface_info_t) 468 */ 469 470 /***************************************************************************** 471 ** 472 ** void xcb_xvmc_surface_info_next 473 ** 474 ** @param xcb_xvmc_surface_info_iterator_t *i 475 ** @returns void 476 ** 477 *****************************************************************************/ 478 479 void 480 xcb_xvmc_surface_info_next (xcb_xvmc_surface_info_iterator_t *i /**< */); 481 482 /** 483 * Return the iterator pointing to the last element 484 * @param i An xcb_xvmc_surface_info_iterator_t 485 * @return The iterator pointing to the last element 486 * 487 * Set the current element in the iterator to the last element. 488 * The member rem is set to 0. The member data points to the 489 * last element. 490 */ 491 492 /***************************************************************************** 493 ** 494 ** xcb_generic_iterator_t xcb_xvmc_surface_info_end 495 ** 496 ** @param xcb_xvmc_surface_info_iterator_t i 497 ** @returns xcb_generic_iterator_t 498 ** 499 *****************************************************************************/ 500 501 xcb_generic_iterator_t 502 xcb_xvmc_surface_info_end (xcb_xvmc_surface_info_iterator_t i /**< */); 503 504 /** 505 * Delivers a request to the X server 506 * @param c The connection 507 * @return A cookie 508 * 509 * Delivers a request to the X server. 510 * 511 */ 512 513 /***************************************************************************** 514 ** 515 ** xcb_xvmc_query_version_cookie_t xcb_xvmc_query_version 516 ** 517 ** @param xcb_connection_t *c 518 ** @returns xcb_xvmc_query_version_cookie_t 519 ** 520 *****************************************************************************/ 521 522 xcb_xvmc_query_version_cookie_t 523 xcb_xvmc_query_version (xcb_connection_t *c /**< */); 524 525 /** 526 * Delivers a request to the X server 527 * @param c The connection 528 * @return A cookie 529 * 530 * Delivers a request to the X server. 531 * 532 * This form can be used only if the request will cause 533 * a reply to be generated. Any returned error will be 534 * placed in the event queue. 535 */ 536 537 /***************************************************************************** 538 ** 539 ** xcb_xvmc_query_version_cookie_t xcb_xvmc_query_version_unchecked 540 ** 541 ** @param xcb_connection_t *c 542 ** @returns xcb_xvmc_query_version_cookie_t 543 ** 544 *****************************************************************************/ 545 546 xcb_xvmc_query_version_cookie_t 547 xcb_xvmc_query_version_unchecked (xcb_connection_t *c /**< */); 548 549 /** 550 * Return the reply 551 * @param c The connection 552 * @param cookie The cookie 553 * @param e The xcb_generic_error_t supplied 554 * 555 * Returns the reply of the request asked by 556 * 557 * The parameter @p e supplied to this function must be NULL if 558 * xcb_xvmc_query_version_unchecked(). is used. 559 * Otherwise, it stores the error if any. 560 * 561 * The returned value must be freed by the caller using free(). 562 */ 563 564 /***************************************************************************** 565 ** 566 ** xcb_xvmc_query_version_reply_t * xcb_xvmc_query_version_reply 567 ** 568 ** @param xcb_connection_t *c 569 ** @param xcb_xvmc_query_version_cookie_t cookie 570 ** @param xcb_generic_error_t **e 571 ** @returns xcb_xvmc_query_version_reply_t * 572 ** 573 *****************************************************************************/ 574 575 xcb_xvmc_query_version_reply_t * 576 xcb_xvmc_query_version_reply (xcb_connection_t *c /**< */, 577 xcb_xvmc_query_version_cookie_t cookie /**< */, 578 xcb_generic_error_t **e /**< */); 579 580 /** 581 * Delivers a request to the X server 582 * @param c The connection 583 * @return A cookie 584 * 585 * Delivers a request to the X server. 586 * 587 */ 588 589 /***************************************************************************** 590 ** 591 ** xcb_xvmc_list_surface_types_cookie_t xcb_xvmc_list_surface_types 592 ** 593 ** @param xcb_connection_t *c 594 ** @param xcb_xv_port_t port_id 595 ** @returns xcb_xvmc_list_surface_types_cookie_t 596 ** 597 *****************************************************************************/ 598 599 xcb_xvmc_list_surface_types_cookie_t 600 xcb_xvmc_list_surface_types (xcb_connection_t *c /**< */, 601 xcb_xv_port_t port_id /**< */); 602 603 /** 604 * Delivers a request to the X server 605 * @param c The connection 606 * @return A cookie 607 * 608 * Delivers a request to the X server. 609 * 610 * This form can be used only if the request will cause 611 * a reply to be generated. Any returned error will be 612 * placed in the event queue. 613 */ 614 615 /***************************************************************************** 616 ** 617 ** xcb_xvmc_list_surface_types_cookie_t xcb_xvmc_list_surface_types_unchecked 618 ** 619 ** @param xcb_connection_t *c 620 ** @param xcb_xv_port_t port_id 621 ** @returns xcb_xvmc_list_surface_types_cookie_t 622 ** 623 *****************************************************************************/ 624 625 xcb_xvmc_list_surface_types_cookie_t 626 xcb_xvmc_list_surface_types_unchecked (xcb_connection_t *c /**< */, 627 xcb_xv_port_t port_id /**< */); 628 629 630 /***************************************************************************** 631 ** 632 ** xcb_xvmc_surface_info_t * xcb_xvmc_list_surface_types_surfaces 633 ** 634 ** @param const xcb_xvmc_list_surface_types_reply_t *R 635 ** @returns xcb_xvmc_surface_info_t * 636 ** 637 *****************************************************************************/ 638 639 xcb_xvmc_surface_info_t * 640 xcb_xvmc_list_surface_types_surfaces (const xcb_xvmc_list_surface_types_reply_t *R /**< */); 641 642 643 /***************************************************************************** 644 ** 645 ** int xcb_xvmc_list_surface_types_surfaces_length 646 ** 647 ** @param const xcb_xvmc_list_surface_types_reply_t *R 648 ** @returns int 649 ** 650 *****************************************************************************/ 651 652 int 653 xcb_xvmc_list_surface_types_surfaces_length (const xcb_xvmc_list_surface_types_reply_t *R /**< */); 654 655 656 /***************************************************************************** 657 ** 658 ** xcb_xvmc_surface_info_iterator_t xcb_xvmc_list_surface_types_surfaces_iterator 659 ** 660 ** @param const xcb_xvmc_list_surface_types_reply_t *R 661 ** @returns xcb_xvmc_surface_info_iterator_t 662 ** 663 *****************************************************************************/ 664 665 xcb_xvmc_surface_info_iterator_t 666 xcb_xvmc_list_surface_types_surfaces_iterator (const xcb_xvmc_list_surface_types_reply_t *R /**< */); 667 668 /** 669 * Return the reply 670 * @param c The connection 671 * @param cookie The cookie 672 * @param e The xcb_generic_error_t supplied 673 * 674 * Returns the reply of the request asked by 675 * 676 * The parameter @p e supplied to this function must be NULL if 677 * xcb_xvmc_list_surface_types_unchecked(). is used. 678 * Otherwise, it stores the error if any. 679 * 680 * The returned value must be freed by the caller using free(). 681 */ 682 683 /***************************************************************************** 684 ** 685 ** xcb_xvmc_list_surface_types_reply_t * xcb_xvmc_list_surface_types_reply 686 ** 687 ** @param xcb_connection_t *c 688 ** @param xcb_xvmc_list_surface_types_cookie_t cookie 689 ** @param xcb_generic_error_t **e 690 ** @returns xcb_xvmc_list_surface_types_reply_t * 691 ** 692 *****************************************************************************/ 693 694 xcb_xvmc_list_surface_types_reply_t * 695 xcb_xvmc_list_surface_types_reply (xcb_connection_t *c /**< */, 696 xcb_xvmc_list_surface_types_cookie_t cookie /**< */, 697 xcb_generic_error_t **e /**< */); 698 699 /** 700 * Delivers a request to the X server 701 * @param c The connection 702 * @return A cookie 703 * 704 * Delivers a request to the X server. 705 * 706 */ 707 708 /***************************************************************************** 709 ** 710 ** xcb_xvmc_create_context_cookie_t xcb_xvmc_create_context 711 ** 712 ** @param xcb_connection_t *c 713 ** @param xcb_xvmc_context_t context_id 714 ** @param xcb_xv_port_t port_id 715 ** @param xcb_xvmc_surface_t surface_id 716 ** @param uint16_t width 717 ** @param uint16_t height 718 ** @param uint32_t flags 719 ** @returns xcb_xvmc_create_context_cookie_t 720 ** 721 *****************************************************************************/ 722 723 xcb_xvmc_create_context_cookie_t 724 xcb_xvmc_create_context (xcb_connection_t *c /**< */, 725 xcb_xvmc_context_t context_id /**< */, 726 xcb_xv_port_t port_id /**< */, 727 xcb_xvmc_surface_t surface_id /**< */, 728 uint16_t width /**< */, 729 uint16_t height /**< */, 730 uint32_t flags /**< */); 731 732 /** 733 * Delivers a request to the X server 734 * @param c The connection 735 * @return A cookie 736 * 737 * Delivers a request to the X server. 738 * 739 * This form can be used only if the request will cause 740 * a reply to be generated. Any returned error will be 741 * placed in the event queue. 742 */ 743 744 /***************************************************************************** 745 ** 746 ** xcb_xvmc_create_context_cookie_t xcb_xvmc_create_context_unchecked 747 ** 748 ** @param xcb_connection_t *c 749 ** @param xcb_xvmc_context_t context_id 750 ** @param xcb_xv_port_t port_id 751 ** @param xcb_xvmc_surface_t surface_id 752 ** @param uint16_t width 753 ** @param uint16_t height 754 ** @param uint32_t flags 755 ** @returns xcb_xvmc_create_context_cookie_t 756 ** 757 *****************************************************************************/ 758 759 xcb_xvmc_create_context_cookie_t 760 xcb_xvmc_create_context_unchecked (xcb_connection_t *c /**< */, 761 xcb_xvmc_context_t context_id /**< */, 762 xcb_xv_port_t port_id /**< */, 763 xcb_xvmc_surface_t surface_id /**< */, 764 uint16_t width /**< */, 765 uint16_t height /**< */, 766 uint32_t flags /**< */); 767 768 769 /***************************************************************************** 770 ** 771 ** uint32_t * xcb_xvmc_create_context_priv_data 772 ** 773 ** @param const xcb_xvmc_create_context_reply_t *R 774 ** @returns uint32_t * 775 ** 776 *****************************************************************************/ 777 778 uint32_t * 779 xcb_xvmc_create_context_priv_data (const xcb_xvmc_create_context_reply_t *R /**< */); 780 781 782 /***************************************************************************** 783 ** 784 ** int xcb_xvmc_create_context_priv_data_length 785 ** 786 ** @param const xcb_xvmc_create_context_reply_t *R 787 ** @returns int 788 ** 789 *****************************************************************************/ 790 791 int 792 xcb_xvmc_create_context_priv_data_length (const xcb_xvmc_create_context_reply_t *R /**< */); 793 794 795 /***************************************************************************** 796 ** 797 ** xcb_generic_iterator_t xcb_xvmc_create_context_priv_data_end 798 ** 799 ** @param const xcb_xvmc_create_context_reply_t *R 800 ** @returns xcb_generic_iterator_t 801 ** 802 *****************************************************************************/ 803 804 xcb_generic_iterator_t 805 xcb_xvmc_create_context_priv_data_end (const xcb_xvmc_create_context_reply_t *R /**< */); 806 807 /** 808 * Return the reply 809 * @param c The connection 810 * @param cookie The cookie 811 * @param e The xcb_generic_error_t supplied 812 * 813 * Returns the reply of the request asked by 814 * 815 * The parameter @p e supplied to this function must be NULL if 816 * xcb_xvmc_create_context_unchecked(). is used. 817 * Otherwise, it stores the error if any. 818 * 819 * The returned value must be freed by the caller using free(). 820 */ 821 822 /***************************************************************************** 823 ** 824 ** xcb_xvmc_create_context_reply_t * xcb_xvmc_create_context_reply 825 ** 826 ** @param xcb_connection_t *c 827 ** @param xcb_xvmc_create_context_cookie_t cookie 828 ** @param xcb_generic_error_t **e 829 ** @returns xcb_xvmc_create_context_reply_t * 830 ** 831 *****************************************************************************/ 832 833 xcb_xvmc_create_context_reply_t * 834 xcb_xvmc_create_context_reply (xcb_connection_t *c /**< */, 835 xcb_xvmc_create_context_cookie_t cookie /**< */, 836 xcb_generic_error_t **e /**< */); 837 838 /** 839 * Delivers a request to the X server 840 * @param c The connection 841 * @return A cookie 842 * 843 * Delivers a request to the X server. 844 * 845 * This form can be used only if the request will not cause 846 * a reply to be generated. Any returned error will be 847 * saved for handling by xcb_request_check(). 848 */ 849 850 /***************************************************************************** 851 ** 852 ** xcb_void_cookie_t xcb_xvmc_destroy_context_checked 853 ** 854 ** @param xcb_connection_t *c 855 ** @param xcb_xvmc_context_t context_id 856 ** @returns xcb_void_cookie_t 857 ** 858 *****************************************************************************/ 859 860 xcb_void_cookie_t 861 xcb_xvmc_destroy_context_checked (xcb_connection_t *c /**< */, 862 xcb_xvmc_context_t context_id /**< */); 863 864 /** 865 * Delivers a request to the X server 866 * @param c The connection 867 * @return A cookie 868 * 869 * Delivers a request to the X server. 870 * 871 */ 872 873 /***************************************************************************** 874 ** 875 ** xcb_void_cookie_t xcb_xvmc_destroy_context 876 ** 877 ** @param xcb_connection_t *c 878 ** @param xcb_xvmc_context_t context_id 879 ** @returns xcb_void_cookie_t 880 ** 881 *****************************************************************************/ 882 883 xcb_void_cookie_t 884 xcb_xvmc_destroy_context (xcb_connection_t *c /**< */, 885 xcb_xvmc_context_t context_id /**< */); 886 887 /** 888 * Delivers a request to the X server 889 * @param c The connection 890 * @return A cookie 891 * 892 * Delivers a request to the X server. 893 * 894 */ 895 896 /***************************************************************************** 897 ** 898 ** xcb_xvmc_create_surface_cookie_t xcb_xvmc_create_surface 899 ** 900 ** @param xcb_connection_t *c 901 ** @param xcb_xvmc_surface_t surface_id 902 ** @param xcb_xvmc_context_t context_id 903 ** @returns xcb_xvmc_create_surface_cookie_t 904 ** 905 *****************************************************************************/ 906 907 xcb_xvmc_create_surface_cookie_t 908 xcb_xvmc_create_surface (xcb_connection_t *c /**< */, 909 xcb_xvmc_surface_t surface_id /**< */, 910 xcb_xvmc_context_t context_id /**< */); 911 912 /** 913 * Delivers a request to the X server 914 * @param c The connection 915 * @return A cookie 916 * 917 * Delivers a request to the X server. 918 * 919 * This form can be used only if the request will cause 920 * a reply to be generated. Any returned error will be 921 * placed in the event queue. 922 */ 923 924 /***************************************************************************** 925 ** 926 ** xcb_xvmc_create_surface_cookie_t xcb_xvmc_create_surface_unchecked 927 ** 928 ** @param xcb_connection_t *c 929 ** @param xcb_xvmc_surface_t surface_id 930 ** @param xcb_xvmc_context_t context_id 931 ** @returns xcb_xvmc_create_surface_cookie_t 932 ** 933 *****************************************************************************/ 934 935 xcb_xvmc_create_surface_cookie_t 936 xcb_xvmc_create_surface_unchecked (xcb_connection_t *c /**< */, 937 xcb_xvmc_surface_t surface_id /**< */, 938 xcb_xvmc_context_t context_id /**< */); 939 940 941 /***************************************************************************** 942 ** 943 ** uint32_t * xcb_xvmc_create_surface_priv_data 944 ** 945 ** @param const xcb_xvmc_create_surface_reply_t *R 946 ** @returns uint32_t * 947 ** 948 *****************************************************************************/ 949 950 uint32_t * 951 xcb_xvmc_create_surface_priv_data (const xcb_xvmc_create_surface_reply_t *R /**< */); 952 953 954 /***************************************************************************** 955 ** 956 ** int xcb_xvmc_create_surface_priv_data_length 957 ** 958 ** @param const xcb_xvmc_create_surface_reply_t *R 959 ** @returns int 960 ** 961 *****************************************************************************/ 962 963 int 964 xcb_xvmc_create_surface_priv_data_length (const xcb_xvmc_create_surface_reply_t *R /**< */); 965 966 967 /***************************************************************************** 968 ** 969 ** xcb_generic_iterator_t xcb_xvmc_create_surface_priv_data_end 970 ** 971 ** @param const xcb_xvmc_create_surface_reply_t *R 972 ** @returns xcb_generic_iterator_t 973 ** 974 *****************************************************************************/ 975 976 xcb_generic_iterator_t 977 xcb_xvmc_create_surface_priv_data_end (const xcb_xvmc_create_surface_reply_t *R /**< */); 978 979 /** 980 * Return the reply 981 * @param c The connection 982 * @param cookie The cookie 983 * @param e The xcb_generic_error_t supplied 984 * 985 * Returns the reply of the request asked by 986 * 987 * The parameter @p e supplied to this function must be NULL if 988 * xcb_xvmc_create_surface_unchecked(). is used. 989 * Otherwise, it stores the error if any. 990 * 991 * The returned value must be freed by the caller using free(). 992 */ 993 994 /***************************************************************************** 995 ** 996 ** xcb_xvmc_create_surface_reply_t * xcb_xvmc_create_surface_reply 997 ** 998 ** @param xcb_connection_t *c 999 ** @param xcb_xvmc_create_surface_cookie_t cookie 1000 ** @param xcb_generic_error_t **e 1001 ** @returns xcb_xvmc_create_surface_reply_t * 1002 ** 1003 *****************************************************************************/ 1004 1005 xcb_xvmc_create_surface_reply_t * 1006 xcb_xvmc_create_surface_reply (xcb_connection_t *c /**< */, 1007 xcb_xvmc_create_surface_cookie_t cookie /**< */, 1008 xcb_generic_error_t **e /**< */); 1009 1010 /** 1011 * Delivers a request to the X server 1012 * @param c The connection 1013 * @return A cookie 1014 * 1015 * Delivers a request to the X server. 1016 * 1017 * This form can be used only if the request will not cause 1018 * a reply to be generated. Any returned error will be 1019 * saved for handling by xcb_request_check(). 1020 */ 1021 1022 /***************************************************************************** 1023 ** 1024 ** xcb_void_cookie_t xcb_xvmc_destroy_surface_checked 1025 ** 1026 ** @param xcb_connection_t *c 1027 ** @param xcb_xvmc_surface_t surface_id 1028 ** @returns xcb_void_cookie_t 1029 ** 1030 *****************************************************************************/ 1031 1032 xcb_void_cookie_t 1033 xcb_xvmc_destroy_surface_checked (xcb_connection_t *c /**< */, 1034 xcb_xvmc_surface_t surface_id /**< */); 1035 1036 /** 1037 * Delivers a request to the X server 1038 * @param c The connection 1039 * @return A cookie 1040 * 1041 * Delivers a request to the X server. 1042 * 1043 */ 1044 1045 /***************************************************************************** 1046 ** 1047 ** xcb_void_cookie_t xcb_xvmc_destroy_surface 1048 ** 1049 ** @param xcb_connection_t *c 1050 ** @param xcb_xvmc_surface_t surface_id 1051 ** @returns xcb_void_cookie_t 1052 ** 1053 *****************************************************************************/ 1054 1055 xcb_void_cookie_t 1056 xcb_xvmc_destroy_surface (xcb_connection_t *c /**< */, 1057 xcb_xvmc_surface_t surface_id /**< */); 1058 1059 /** 1060 * Delivers a request to the X server 1061 * @param c The connection 1062 * @return A cookie 1063 * 1064 * Delivers a request to the X server. 1065 * 1066 */ 1067 1068 /***************************************************************************** 1069 ** 1070 ** xcb_xvmc_create_subpicture_cookie_t xcb_xvmc_create_subpicture 1071 ** 1072 ** @param xcb_connection_t *c 1073 ** @param xcb_xvmc_subpicture_t subpicture_id 1074 ** @param xcb_xvmc_context_t context 1075 ** @param uint32_t xvimage_id 1076 ** @param uint16_t width 1077 ** @param uint16_t height 1078 ** @returns xcb_xvmc_create_subpicture_cookie_t 1079 ** 1080 *****************************************************************************/ 1081 1082 xcb_xvmc_create_subpicture_cookie_t 1083 xcb_xvmc_create_subpicture (xcb_connection_t *c /**< */, 1084 xcb_xvmc_subpicture_t subpicture_id /**< */, 1085 xcb_xvmc_context_t context /**< */, 1086 uint32_t xvimage_id /**< */, 1087 uint16_t width /**< */, 1088 uint16_t height /**< */); 1089 1090 /** 1091 * Delivers a request to the X server 1092 * @param c The connection 1093 * @return A cookie 1094 * 1095 * Delivers a request to the X server. 1096 * 1097 * This form can be used only if the request will cause 1098 * a reply to be generated. Any returned error will be 1099 * placed in the event queue. 1100 */ 1101 1102 /***************************************************************************** 1103 ** 1104 ** xcb_xvmc_create_subpicture_cookie_t xcb_xvmc_create_subpicture_unchecked 1105 ** 1106 ** @param xcb_connection_t *c 1107 ** @param xcb_xvmc_subpicture_t subpicture_id 1108 ** @param xcb_xvmc_context_t context 1109 ** @param uint32_t xvimage_id 1110 ** @param uint16_t width 1111 ** @param uint16_t height 1112 ** @returns xcb_xvmc_create_subpicture_cookie_t 1113 ** 1114 *****************************************************************************/ 1115 1116 xcb_xvmc_create_subpicture_cookie_t 1117 xcb_xvmc_create_subpicture_unchecked (xcb_connection_t *c /**< */, 1118 xcb_xvmc_subpicture_t subpicture_id /**< */, 1119 xcb_xvmc_context_t context /**< */, 1120 uint32_t xvimage_id /**< */, 1121 uint16_t width /**< */, 1122 uint16_t height /**< */); 1123 1124 1125 /***************************************************************************** 1126 ** 1127 ** uint32_t * xcb_xvmc_create_subpicture_priv_data 1128 ** 1129 ** @param const xcb_xvmc_create_subpicture_reply_t *R 1130 ** @returns uint32_t * 1131 ** 1132 *****************************************************************************/ 1133 1134 uint32_t * 1135 xcb_xvmc_create_subpicture_priv_data (const xcb_xvmc_create_subpicture_reply_t *R /**< */); 1136 1137 1138 /***************************************************************************** 1139 ** 1140 ** int xcb_xvmc_create_subpicture_priv_data_length 1141 ** 1142 ** @param const xcb_xvmc_create_subpicture_reply_t *R 1143 ** @returns int 1144 ** 1145 *****************************************************************************/ 1146 1147 int 1148 xcb_xvmc_create_subpicture_priv_data_length (const xcb_xvmc_create_subpicture_reply_t *R /**< */); 1149 1150 1151 /***************************************************************************** 1152 ** 1153 ** xcb_generic_iterator_t xcb_xvmc_create_subpicture_priv_data_end 1154 ** 1155 ** @param const xcb_xvmc_create_subpicture_reply_t *R 1156 ** @returns xcb_generic_iterator_t 1157 ** 1158 *****************************************************************************/ 1159 1160 xcb_generic_iterator_t 1161 xcb_xvmc_create_subpicture_priv_data_end (const xcb_xvmc_create_subpicture_reply_t *R /**< */); 1162 1163 /** 1164 * Return the reply 1165 * @param c The connection 1166 * @param cookie The cookie 1167 * @param e The xcb_generic_error_t supplied 1168 * 1169 * Returns the reply of the request asked by 1170 * 1171 * The parameter @p e supplied to this function must be NULL if 1172 * xcb_xvmc_create_subpicture_unchecked(). is used. 1173 * Otherwise, it stores the error if any. 1174 * 1175 * The returned value must be freed by the caller using free(). 1176 */ 1177 1178 /***************************************************************************** 1179 ** 1180 ** xcb_xvmc_create_subpicture_reply_t * xcb_xvmc_create_subpicture_reply 1181 ** 1182 ** @param xcb_connection_t *c 1183 ** @param xcb_xvmc_create_subpicture_cookie_t cookie 1184 ** @param xcb_generic_error_t **e 1185 ** @returns xcb_xvmc_create_subpicture_reply_t * 1186 ** 1187 *****************************************************************************/ 1188 1189 xcb_xvmc_create_subpicture_reply_t * 1190 xcb_xvmc_create_subpicture_reply (xcb_connection_t *c /**< */, 1191 xcb_xvmc_create_subpicture_cookie_t cookie /**< */, 1192 xcb_generic_error_t **e /**< */); 1193 1194 /** 1195 * Delivers a request to the X server 1196 * @param c The connection 1197 * @return A cookie 1198 * 1199 * Delivers a request to the X server. 1200 * 1201 * This form can be used only if the request will not cause 1202 * a reply to be generated. Any returned error will be 1203 * saved for handling by xcb_request_check(). 1204 */ 1205 1206 /***************************************************************************** 1207 ** 1208 ** xcb_void_cookie_t xcb_xvmc_destroy_subpicture_checked 1209 ** 1210 ** @param xcb_connection_t *c 1211 ** @param xcb_xvmc_subpicture_t subpicture_id 1212 ** @returns xcb_void_cookie_t 1213 ** 1214 *****************************************************************************/ 1215 1216 xcb_void_cookie_t 1217 xcb_xvmc_destroy_subpicture_checked (xcb_connection_t *c /**< */, 1218 xcb_xvmc_subpicture_t subpicture_id /**< */); 1219 1220 /** 1221 * Delivers a request to the X server 1222 * @param c The connection 1223 * @return A cookie 1224 * 1225 * Delivers a request to the X server. 1226 * 1227 */ 1228 1229 /***************************************************************************** 1230 ** 1231 ** xcb_void_cookie_t xcb_xvmc_destroy_subpicture 1232 ** 1233 ** @param xcb_connection_t *c 1234 ** @param xcb_xvmc_subpicture_t subpicture_id 1235 ** @returns xcb_void_cookie_t 1236 ** 1237 *****************************************************************************/ 1238 1239 xcb_void_cookie_t 1240 xcb_xvmc_destroy_subpicture (xcb_connection_t *c /**< */, 1241 xcb_xvmc_subpicture_t subpicture_id /**< */); 1242 1243 /** 1244 * Delivers a request to the X server 1245 * @param c The connection 1246 * @return A cookie 1247 * 1248 * Delivers a request to the X server. 1249 * 1250 */ 1251 1252 /***************************************************************************** 1253 ** 1254 ** xcb_xvmc_list_subpicture_types_cookie_t xcb_xvmc_list_subpicture_types 1255 ** 1256 ** @param xcb_connection_t *c 1257 ** @param xcb_xv_port_t port_id 1258 ** @param xcb_xvmc_surface_t surface_id 1259 ** @returns xcb_xvmc_list_subpicture_types_cookie_t 1260 ** 1261 *****************************************************************************/ 1262 1263 xcb_xvmc_list_subpicture_types_cookie_t 1264 xcb_xvmc_list_subpicture_types (xcb_connection_t *c /**< */, 1265 xcb_xv_port_t port_id /**< */, 1266 xcb_xvmc_surface_t surface_id /**< */); 1267 1268 /** 1269 * Delivers a request to the X server 1270 * @param c The connection 1271 * @return A cookie 1272 * 1273 * Delivers a request to the X server. 1274 * 1275 * This form can be used only if the request will cause 1276 * a reply to be generated. Any returned error will be 1277 * placed in the event queue. 1278 */ 1279 1280 /***************************************************************************** 1281 ** 1282 ** xcb_xvmc_list_subpicture_types_cookie_t xcb_xvmc_list_subpicture_types_unchecked 1283 ** 1284 ** @param xcb_connection_t *c 1285 ** @param xcb_xv_port_t port_id 1286 ** @param xcb_xvmc_surface_t surface_id 1287 ** @returns xcb_xvmc_list_subpicture_types_cookie_t 1288 ** 1289 *****************************************************************************/ 1290 1291 xcb_xvmc_list_subpicture_types_cookie_t 1292 xcb_xvmc_list_subpicture_types_unchecked (xcb_connection_t *c /**< */, 1293 xcb_xv_port_t port_id /**< */, 1294 xcb_xvmc_surface_t surface_id /**< */); 1295 1296 1297 /***************************************************************************** 1298 ** 1299 ** xcb_xv_image_format_info_t * xcb_xvmc_list_subpicture_types_types 1300 ** 1301 ** @param const xcb_xvmc_list_subpicture_types_reply_t *R 1302 ** @returns xcb_xv_image_format_info_t * 1303 ** 1304 *****************************************************************************/ 1305 1306 xcb_xv_image_format_info_t * 1307 xcb_xvmc_list_subpicture_types_types (const xcb_xvmc_list_subpicture_types_reply_t *R /**< */); 1308 1309 1310 /***************************************************************************** 1311 ** 1312 ** int xcb_xvmc_list_subpicture_types_types_length 1313 ** 1314 ** @param const xcb_xvmc_list_subpicture_types_reply_t *R 1315 ** @returns int 1316 ** 1317 *****************************************************************************/ 1318 1319 int 1320 xcb_xvmc_list_subpicture_types_types_length (const xcb_xvmc_list_subpicture_types_reply_t *R /**< */); 1321 1322 1323 /***************************************************************************** 1324 ** 1325 ** xcb_xv_image_format_info_iterator_t xcb_xvmc_list_subpicture_types_types_iterator 1326 ** 1327 ** @param const xcb_xvmc_list_subpicture_types_reply_t *R 1328 ** @returns xcb_xv_image_format_info_iterator_t 1329 ** 1330 *****************************************************************************/ 1331 1332 xcb_xv_image_format_info_iterator_t 1333 xcb_xvmc_list_subpicture_types_types_iterator (const xcb_xvmc_list_subpicture_types_reply_t *R /**< */); 1334 1335 /** 1336 * Return the reply 1337 * @param c The connection 1338 * @param cookie The cookie 1339 * @param e The xcb_generic_error_t supplied 1340 * 1341 * Returns the reply of the request asked by 1342 * 1343 * The parameter @p e supplied to this function must be NULL if 1344 * xcb_xvmc_list_subpicture_types_unchecked(). is used. 1345 * Otherwise, it stores the error if any. 1346 * 1347 * The returned value must be freed by the caller using free(). 1348 */ 1349 1350 /***************************************************************************** 1351 ** 1352 ** xcb_xvmc_list_subpicture_types_reply_t * xcb_xvmc_list_subpicture_types_reply 1353 ** 1354 ** @param xcb_connection_t *c 1355 ** @param xcb_xvmc_list_subpicture_types_cookie_t cookie 1356 ** @param xcb_generic_error_t **e 1357 ** @returns xcb_xvmc_list_subpicture_types_reply_t * 1358 ** 1359 *****************************************************************************/ 1360 1361 xcb_xvmc_list_subpicture_types_reply_t * 1362 xcb_xvmc_list_subpicture_types_reply (xcb_connection_t *c /**< */, 1363 xcb_xvmc_list_subpicture_types_cookie_t cookie /**< */, 1364 xcb_generic_error_t **e /**< */); 1365 1366 1367 #ifdef __cplusplus 1368 } 1369 #endif 1370 1371 #endif 1372 1373 /** 1374 * @} 1375 */ 1376