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