lib.rs 262 KB
Newer Older
Sebastian Dröge's avatar
Sebastian Dröge committed
1
// This file was generated by gir (d121f7e+) from gir-files (???)
Sebastian Dröge's avatar
Sebastian Dröge committed
2 3 4 5 6 7 8 9 10 11 12 13
// DO NOT EDIT

#![allow(non_camel_case_types, non_upper_case_globals)]

extern crate libc;
#[macro_use] extern crate bitflags;
extern crate glib_sys as glib;
extern crate gobject_sys as gobject;

#[allow(unused_imports)]
use libc::{c_int, c_char, c_uchar, c_float, c_uint, c_double,
    c_short, c_ushort, c_long, c_ulong,
14
    c_void, size_t, ssize_t, intptr_t, uintptr_t, time_t, FILE};
Sebastian Dröge's avatar
Sebastian Dröge committed
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040

#[allow(unused_imports)]
use glib::{gboolean, gconstpointer, gpointer, GType, Volatile};

// Aliases
pub type GstClockID = gpointer;
pub type GstClockTime = u64;
pub type GstClockTimeDiff = i64;
pub type GstElementFactoryListType = u64;

// Enums
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
#[repr(C)]
pub enum GstBufferingMode {
    Stream = 0,
    Download = 1,
    Timeshift = 2,
    Live = 3,
}
pub const GST_BUFFERING_STREAM: GstBufferingMode = GstBufferingMode::Stream;
pub const GST_BUFFERING_DOWNLOAD: GstBufferingMode = GstBufferingMode::Download;
pub const GST_BUFFERING_TIMESHIFT: GstBufferingMode = GstBufferingMode::Timeshift;
pub const GST_BUFFERING_LIVE: GstBufferingMode = GstBufferingMode::Live;

#[derive(Clone, Copy, Debug, Eq, PartialEq)]
#[repr(C)]
pub enum GstBusSyncReply {
    Drop = 0,
    Pass = 1,
    Async = 2,
}
pub const GST_BUS_DROP: GstBusSyncReply = GstBusSyncReply::Drop;
pub const GST_BUS_PASS: GstBusSyncReply = GstBusSyncReply::Pass;
pub const GST_BUS_ASYNC: GstBusSyncReply = GstBusSyncReply::Async;

#[derive(Clone, Copy, Debug, Eq, PartialEq)]
#[repr(C)]
pub enum GstCapsIntersectMode {
    ZigZag = 0,
    First = 1,
}
pub const GST_CAPS_INTERSECT_ZIG_ZAG: GstCapsIntersectMode = GstCapsIntersectMode::ZigZag;
pub const GST_CAPS_INTERSECT_FIRST: GstCapsIntersectMode = GstCapsIntersectMode::First;

#[derive(Clone, Copy, Debug, Eq, PartialEq)]
#[repr(C)]
pub enum GstClockEntryType {
    Single = 0,
    Periodic = 1,
}
pub const GST_CLOCK_ENTRY_SINGLE: GstClockEntryType = GstClockEntryType::Single;
pub const GST_CLOCK_ENTRY_PERIODIC: GstClockEntryType = GstClockEntryType::Periodic;

#[derive(Clone, Copy, Debug, Eq, PartialEq)]
#[repr(C)]
pub enum GstClockReturn {
    Ok = 0,
    Early = 1,
    Unscheduled = 2,
    Busy = 3,
    Badtime = 4,
    Error = 5,
    Unsupported = 6,
    Done = 7,
}
pub const GST_CLOCK_OK: GstClockReturn = GstClockReturn::Ok;
pub const GST_CLOCK_EARLY: GstClockReturn = GstClockReturn::Early;
pub const GST_CLOCK_UNSCHEDULED: GstClockReturn = GstClockReturn::Unscheduled;
pub const GST_CLOCK_BUSY: GstClockReturn = GstClockReturn::Busy;
pub const GST_CLOCK_BADTIME: GstClockReturn = GstClockReturn::Badtime;
pub const GST_CLOCK_ERROR: GstClockReturn = GstClockReturn::Error;
pub const GST_CLOCK_UNSUPPORTED: GstClockReturn = GstClockReturn::Unsupported;
pub const GST_CLOCK_DONE: GstClockReturn = GstClockReturn::Done;

#[derive(Clone, Copy, Debug, Eq, PartialEq)]
#[repr(C)]
pub enum GstClockType {
    Realtime = 0,
    Monotonic = 1,
    Other = 2,
}
pub const GST_CLOCK_TYPE_REALTIME: GstClockType = GstClockType::Realtime;
pub const GST_CLOCK_TYPE_MONOTONIC: GstClockType = GstClockType::Monotonic;
pub const GST_CLOCK_TYPE_OTHER: GstClockType = GstClockType::Other;

#[derive(Clone, Copy, Debug, Eq, PartialEq)]
#[repr(C)]
pub enum GstCoreError {
    Failed = 1,
    TooLazy = 2,
    NotImplemented = 3,
    StateChange = 4,
    Pad = 5,
    Thread = 6,
    Negotiation = 7,
    Event = 8,
    Seek = 9,
    Caps = 10,
    Tag = 11,
    MissingPlugin = 12,
    Clock = 13,
    Disabled = 14,
    NumErrors = 15,
}
pub const GST_CORE_ERROR_FAILED: GstCoreError = GstCoreError::Failed;
pub const GST_CORE_ERROR_TOO_LAZY: GstCoreError = GstCoreError::TooLazy;
pub const GST_CORE_ERROR_NOT_IMPLEMENTED: GstCoreError = GstCoreError::NotImplemented;
pub const GST_CORE_ERROR_STATE_CHANGE: GstCoreError = GstCoreError::StateChange;
pub const GST_CORE_ERROR_PAD: GstCoreError = GstCoreError::Pad;
pub const GST_CORE_ERROR_THREAD: GstCoreError = GstCoreError::Thread;
pub const GST_CORE_ERROR_NEGOTIATION: GstCoreError = GstCoreError::Negotiation;
pub const GST_CORE_ERROR_EVENT: GstCoreError = GstCoreError::Event;
pub const GST_CORE_ERROR_SEEK: GstCoreError = GstCoreError::Seek;
pub const GST_CORE_ERROR_CAPS: GstCoreError = GstCoreError::Caps;
pub const GST_CORE_ERROR_TAG: GstCoreError = GstCoreError::Tag;
pub const GST_CORE_ERROR_MISSING_PLUGIN: GstCoreError = GstCoreError::MissingPlugin;
pub const GST_CORE_ERROR_CLOCK: GstCoreError = GstCoreError::Clock;
pub const GST_CORE_ERROR_DISABLED: GstCoreError = GstCoreError::Disabled;
pub const GST_CORE_ERROR_NUM_ERRORS: GstCoreError = GstCoreError::NumErrors;

#[derive(Clone, Copy, Debug, Eq, PartialEq)]
#[repr(C)]
pub enum GstDebugColorFlags {
    FgBlack = 0,
    FgRed = 1,
    FgGreen = 2,
    FgYellow = 3,
    FgBlue = 4,
    FgMagenta = 5,
    FgCyan = 6,
    FgWhite = 7,
    BgRed = 16,
    BgGreen = 32,
    BgYellow = 48,
    BgBlue = 64,
    BgMagenta = 80,
    BgCyan = 96,
    BgWhite = 112,
    Bold = 256,
    Underline = 512,
}
pub const GST_DEBUG_FG_BLACK: GstDebugColorFlags = GstDebugColorFlags::FgBlack;
pub const GST_DEBUG_FG_RED: GstDebugColorFlags = GstDebugColorFlags::FgRed;
pub const GST_DEBUG_FG_GREEN: GstDebugColorFlags = GstDebugColorFlags::FgGreen;
pub const GST_DEBUG_FG_YELLOW: GstDebugColorFlags = GstDebugColorFlags::FgYellow;
pub const GST_DEBUG_FG_BLUE: GstDebugColorFlags = GstDebugColorFlags::FgBlue;
pub const GST_DEBUG_FG_MAGENTA: GstDebugColorFlags = GstDebugColorFlags::FgMagenta;
pub const GST_DEBUG_FG_CYAN: GstDebugColorFlags = GstDebugColorFlags::FgCyan;
pub const GST_DEBUG_FG_WHITE: GstDebugColorFlags = GstDebugColorFlags::FgWhite;
pub const GST_DEBUG_BG_BLACK: GstDebugColorFlags = GstDebugColorFlags::FgBlack;
pub const GST_DEBUG_BG_RED: GstDebugColorFlags = GstDebugColorFlags::BgRed;
pub const GST_DEBUG_BG_GREEN: GstDebugColorFlags = GstDebugColorFlags::BgGreen;
pub const GST_DEBUG_BG_YELLOW: GstDebugColorFlags = GstDebugColorFlags::BgYellow;
pub const GST_DEBUG_BG_BLUE: GstDebugColorFlags = GstDebugColorFlags::BgBlue;
pub const GST_DEBUG_BG_MAGENTA: GstDebugColorFlags = GstDebugColorFlags::BgMagenta;
pub const GST_DEBUG_BG_CYAN: GstDebugColorFlags = GstDebugColorFlags::BgCyan;
pub const GST_DEBUG_BG_WHITE: GstDebugColorFlags = GstDebugColorFlags::BgWhite;
pub const GST_DEBUG_BOLD: GstDebugColorFlags = GstDebugColorFlags::Bold;
pub const GST_DEBUG_UNDERLINE: GstDebugColorFlags = GstDebugColorFlags::Underline;

#[derive(Clone, Copy, Debug, Eq, PartialEq)]
#[repr(C)]
pub enum GstDebugColorMode {
    Off = 0,
    On = 1,
    Unix = 2,
}
pub const GST_DEBUG_COLOR_MODE_OFF: GstDebugColorMode = GstDebugColorMode::Off;
pub const GST_DEBUG_COLOR_MODE_ON: GstDebugColorMode = GstDebugColorMode::On;
pub const GST_DEBUG_COLOR_MODE_UNIX: GstDebugColorMode = GstDebugColorMode::Unix;

#[derive(Clone, Copy, Debug, Eq, PartialEq)]
#[repr(C)]
pub enum GstDebugLevel {
    None = 0,
    Error = 1,
    Warning = 2,
    Fixme = 3,
    Info = 4,
    Debug = 5,
    Log = 6,
    Trace = 7,
    Memdump = 9,
    Count = 10,
}
pub const GST_LEVEL_NONE: GstDebugLevel = GstDebugLevel::None;
pub const GST_LEVEL_ERROR: GstDebugLevel = GstDebugLevel::Error;
pub const GST_LEVEL_WARNING: GstDebugLevel = GstDebugLevel::Warning;
pub const GST_LEVEL_FIXME: GstDebugLevel = GstDebugLevel::Fixme;
pub const GST_LEVEL_INFO: GstDebugLevel = GstDebugLevel::Info;
pub const GST_LEVEL_DEBUG: GstDebugLevel = GstDebugLevel::Debug;
pub const GST_LEVEL_LOG: GstDebugLevel = GstDebugLevel::Log;
pub const GST_LEVEL_TRACE: GstDebugLevel = GstDebugLevel::Trace;
pub const GST_LEVEL_MEMDUMP: GstDebugLevel = GstDebugLevel::Memdump;
pub const GST_LEVEL_COUNT: GstDebugLevel = GstDebugLevel::Count;

#[derive(Clone, Copy, Debug, Eq, PartialEq)]
#[repr(C)]
pub enum GstEventType {
    Unknown = 0,
    FlushStart = 2563,
    FlushStop = 5127,
    StreamStart = 10254,
    Caps = 12814,
    Segment = 17934,
    StreamCollection = 19230,
    Tag = 20510,
    Buffersize = 23054,
    SinkMessage = 25630,
    StreamGroupDone = 26894,
    Eos = 28174,
    Toc = 30750,
    Protection = 33310,
    SegmentDone = 38406,
    Gap = 40966,
    Qos = 48641,
    Seek = 51201,
    Navigation = 53761,
    Latency = 56321,
    Step = 58881,
    Reconfigure = 61441,
    TocSelect = 64001,
    SelectStreams = 66561,
    CustomUpstream = 69121,
    CustomDownstream = 71686,
    CustomDownstreamOob = 74242,
    CustomDownstreamSticky = 76830,
    CustomBoth = 79367,
    CustomBothOob = 81923,
}
pub const GST_EVENT_UNKNOWN: GstEventType = GstEventType::Unknown;
pub const GST_EVENT_FLUSH_START: GstEventType = GstEventType::FlushStart;
pub const GST_EVENT_FLUSH_STOP: GstEventType = GstEventType::FlushStop;
pub const GST_EVENT_STREAM_START: GstEventType = GstEventType::StreamStart;
pub const GST_EVENT_CAPS: GstEventType = GstEventType::Caps;
pub const GST_EVENT_SEGMENT: GstEventType = GstEventType::Segment;
pub const GST_EVENT_STREAM_COLLECTION: GstEventType = GstEventType::StreamCollection;
pub const GST_EVENT_TAG: GstEventType = GstEventType::Tag;
pub const GST_EVENT_BUFFERSIZE: GstEventType = GstEventType::Buffersize;
pub const GST_EVENT_SINK_MESSAGE: GstEventType = GstEventType::SinkMessage;
pub const GST_EVENT_STREAM_GROUP_DONE: GstEventType = GstEventType::StreamGroupDone;
pub const GST_EVENT_EOS: GstEventType = GstEventType::Eos;
pub const GST_EVENT_TOC: GstEventType = GstEventType::Toc;
pub const GST_EVENT_PROTECTION: GstEventType = GstEventType::Protection;
pub const GST_EVENT_SEGMENT_DONE: GstEventType = GstEventType::SegmentDone;
pub const GST_EVENT_GAP: GstEventType = GstEventType::Gap;
pub const GST_EVENT_QOS: GstEventType = GstEventType::Qos;
pub const GST_EVENT_SEEK: GstEventType = GstEventType::Seek;
pub const GST_EVENT_NAVIGATION: GstEventType = GstEventType::Navigation;
pub const GST_EVENT_LATENCY: GstEventType = GstEventType::Latency;
pub const GST_EVENT_STEP: GstEventType = GstEventType::Step;
pub const GST_EVENT_RECONFIGURE: GstEventType = GstEventType::Reconfigure;
pub const GST_EVENT_TOC_SELECT: GstEventType = GstEventType::TocSelect;
pub const GST_EVENT_SELECT_STREAMS: GstEventType = GstEventType::SelectStreams;
pub const GST_EVENT_CUSTOM_UPSTREAM: GstEventType = GstEventType::CustomUpstream;
pub const GST_EVENT_CUSTOM_DOWNSTREAM: GstEventType = GstEventType::CustomDownstream;
pub const GST_EVENT_CUSTOM_DOWNSTREAM_OOB: GstEventType = GstEventType::CustomDownstreamOob;
pub const GST_EVENT_CUSTOM_DOWNSTREAM_STICKY: GstEventType = GstEventType::CustomDownstreamSticky;
pub const GST_EVENT_CUSTOM_BOTH: GstEventType = GstEventType::CustomBoth;
pub const GST_EVENT_CUSTOM_BOTH_OOB: GstEventType = GstEventType::CustomBothOob;

#[derive(Clone, Copy, Debug, Eq, PartialEq)]
#[repr(C)]
pub enum GstFlowReturn {
    CustomSuccess2 = 102,
    CustomSuccess1 = 101,
    CustomSuccess = 100,
    Ok = 0,
    NotLinked = -1,
    Flushing = -2,
    Eos = -3,
    NotNegotiated = -4,
    Error = -5,
    NotSupported = -6,
    CustomError = -100,
    CustomError1 = -101,
    CustomError2 = -102,
}
pub const GST_FLOW_CUSTOM_SUCCESS_2: GstFlowReturn = GstFlowReturn::CustomSuccess2;
pub const GST_FLOW_CUSTOM_SUCCESS_1: GstFlowReturn = GstFlowReturn::CustomSuccess1;
pub const GST_FLOW_CUSTOM_SUCCESS: GstFlowReturn = GstFlowReturn::CustomSuccess;
pub const GST_FLOW_OK: GstFlowReturn = GstFlowReturn::Ok;
pub const GST_FLOW_NOT_LINKED: GstFlowReturn = GstFlowReturn::NotLinked;
pub const GST_FLOW_FLUSHING: GstFlowReturn = GstFlowReturn::Flushing;
pub const GST_FLOW_EOS: GstFlowReturn = GstFlowReturn::Eos;
pub const GST_FLOW_NOT_NEGOTIATED: GstFlowReturn = GstFlowReturn::NotNegotiated;
pub const GST_FLOW_ERROR: GstFlowReturn = GstFlowReturn::Error;
pub const GST_FLOW_NOT_SUPPORTED: GstFlowReturn = GstFlowReturn::NotSupported;
pub const GST_FLOW_CUSTOM_ERROR: GstFlowReturn = GstFlowReturn::CustomError;
pub const GST_FLOW_CUSTOM_ERROR_1: GstFlowReturn = GstFlowReturn::CustomError1;
pub const GST_FLOW_CUSTOM_ERROR_2: GstFlowReturn = GstFlowReturn::CustomError2;

#[derive(Clone, Copy, Debug, Eq, PartialEq)]
#[repr(C)]
pub enum GstFormat {
    Undefined = 0,
    Default = 1,
    Bytes = 2,
    Time = 3,
    Buffers = 4,
    Percent = 5,
}
pub const GST_FORMAT_UNDEFINED: GstFormat = GstFormat::Undefined;
pub const GST_FORMAT_DEFAULT: GstFormat = GstFormat::Default;
pub const GST_FORMAT_BYTES: GstFormat = GstFormat::Bytes;
pub const GST_FORMAT_TIME: GstFormat = GstFormat::Time;
pub const GST_FORMAT_BUFFERS: GstFormat = GstFormat::Buffers;
pub const GST_FORMAT_PERCENT: GstFormat = GstFormat::Percent;

#[derive(Clone, Copy, Debug, Eq, PartialEq)]
#[repr(C)]
pub enum GstIteratorItem {
    Skip = 0,
    Pass = 1,
    End = 2,
}
pub const GST_ITERATOR_ITEM_SKIP: GstIteratorItem = GstIteratorItem::Skip;
pub const GST_ITERATOR_ITEM_PASS: GstIteratorItem = GstIteratorItem::Pass;
pub const GST_ITERATOR_ITEM_END: GstIteratorItem = GstIteratorItem::End;

#[derive(Clone, Copy, Debug, Eq, PartialEq)]
#[repr(C)]
pub enum GstIteratorResult {
    Done = 0,
    Ok = 1,
    Resync = 2,
    Error = 3,
}
pub const GST_ITERATOR_DONE: GstIteratorResult = GstIteratorResult::Done;
pub const GST_ITERATOR_OK: GstIteratorResult = GstIteratorResult::Ok;
pub const GST_ITERATOR_RESYNC: GstIteratorResult = GstIteratorResult::Resync;
pub const GST_ITERATOR_ERROR: GstIteratorResult = GstIteratorResult::Error;

#[derive(Clone, Copy, Debug, Eq, PartialEq)]
#[repr(C)]
pub enum GstLibraryError {
    Failed = 1,
    TooLazy = 2,
    Init = 3,
    Shutdown = 4,
    Settings = 5,
    Encode = 6,
    NumErrors = 7,
}
pub const GST_LIBRARY_ERROR_FAILED: GstLibraryError = GstLibraryError::Failed;
pub const GST_LIBRARY_ERROR_TOO_LAZY: GstLibraryError = GstLibraryError::TooLazy;
pub const GST_LIBRARY_ERROR_INIT: GstLibraryError = GstLibraryError::Init;
pub const GST_LIBRARY_ERROR_SHUTDOWN: GstLibraryError = GstLibraryError::Shutdown;
pub const GST_LIBRARY_ERROR_SETTINGS: GstLibraryError = GstLibraryError::Settings;
pub const GST_LIBRARY_ERROR_ENCODE: GstLibraryError = GstLibraryError::Encode;
pub const GST_LIBRARY_ERROR_NUM_ERRORS: GstLibraryError = GstLibraryError::NumErrors;

#[derive(Clone, Copy, Debug, Eq, PartialEq)]
#[repr(C)]
pub enum GstPadDirection {
    Unknown = 0,
    Src = 1,
    Sink = 2,
}
pub const GST_PAD_UNKNOWN: GstPadDirection = GstPadDirection::Unknown;
pub const GST_PAD_SRC: GstPadDirection = GstPadDirection::Src;
pub const GST_PAD_SINK: GstPadDirection = GstPadDirection::Sink;

#[derive(Clone, Copy, Debug, Eq, PartialEq)]
#[repr(C)]
pub enum GstPadLinkReturn {
    Ok = 0,
    WrongHierarchy = -1,
    WasLinked = -2,
    WrongDirection = -3,
    Noformat = -4,
    Nosched = -5,
    Refused = -6,
}
pub const GST_PAD_LINK_OK: GstPadLinkReturn = GstPadLinkReturn::Ok;
pub const GST_PAD_LINK_WRONG_HIERARCHY: GstPadLinkReturn = GstPadLinkReturn::WrongHierarchy;
pub const GST_PAD_LINK_WAS_LINKED: GstPadLinkReturn = GstPadLinkReturn::WasLinked;
pub const GST_PAD_LINK_WRONG_DIRECTION: GstPadLinkReturn = GstPadLinkReturn::WrongDirection;
pub const GST_PAD_LINK_NOFORMAT: GstPadLinkReturn = GstPadLinkReturn::Noformat;
pub const GST_PAD_LINK_NOSCHED: GstPadLinkReturn = GstPadLinkReturn::Nosched;
pub const GST_PAD_LINK_REFUSED: GstPadLinkReturn = GstPadLinkReturn::Refused;

#[derive(Clone, Copy, Debug, Eq, PartialEq)]
#[repr(C)]
pub enum GstPadMode {
    None = 0,
    Push = 1,
    Pull = 2,
}
pub const GST_PAD_MODE_NONE: GstPadMode = GstPadMode::None;
pub const GST_PAD_MODE_PUSH: GstPadMode = GstPadMode::Push;
pub const GST_PAD_MODE_PULL: GstPadMode = GstPadMode::Pull;

#[derive(Clone, Copy, Debug, Eq, PartialEq)]
#[repr(C)]
pub enum GstPadPresence {
    Always = 0,
    Sometimes = 1,
    Request = 2,
}
pub const GST_PAD_ALWAYS: GstPadPresence = GstPadPresence::Always;
pub const GST_PAD_SOMETIMES: GstPadPresence = GstPadPresence::Sometimes;
pub const GST_PAD_REQUEST: GstPadPresence = GstPadPresence::Request;

#[derive(Clone, Copy, Debug, Eq, PartialEq)]
#[repr(C)]
pub enum GstPadProbeReturn {
    Drop = 0,
    Ok = 1,
    Remove = 2,
    Pass = 3,
    Handled = 4,
}
pub const GST_PAD_PROBE_DROP: GstPadProbeReturn = GstPadProbeReturn::Drop;
pub const GST_PAD_PROBE_OK: GstPadProbeReturn = GstPadProbeReturn::Ok;
pub const GST_PAD_PROBE_REMOVE: GstPadProbeReturn = GstPadProbeReturn::Remove;
pub const GST_PAD_PROBE_PASS: GstPadProbeReturn = GstPadProbeReturn::Pass;
pub const GST_PAD_PROBE_HANDLED: GstPadProbeReturn = GstPadProbeReturn::Handled;

#[derive(Clone, Copy, Debug, Eq, PartialEq)]
#[repr(C)]
pub enum GstParseError {
    Syntax = 0,
    NoSuchElement = 1,
    NoSuchProperty = 2,
    Link = 3,
    CouldNotSetProperty = 4,
    EmptyBin = 5,
    Empty = 6,
    DelayedLink = 7,
}
pub const GST_PARSE_ERROR_SYNTAX: GstParseError = GstParseError::Syntax;
pub const GST_PARSE_ERROR_NO_SUCH_ELEMENT: GstParseError = GstParseError::NoSuchElement;
pub const GST_PARSE_ERROR_NO_SUCH_PROPERTY: GstParseError = GstParseError::NoSuchProperty;
pub const GST_PARSE_ERROR_LINK: GstParseError = GstParseError::Link;
pub const GST_PARSE_ERROR_COULD_NOT_SET_PROPERTY: GstParseError = GstParseError::CouldNotSetProperty;
pub const GST_PARSE_ERROR_EMPTY_BIN: GstParseError = GstParseError::EmptyBin;
pub const GST_PARSE_ERROR_EMPTY: GstParseError = GstParseError::Empty;
pub const GST_PARSE_ERROR_DELAYED_LINK: GstParseError = GstParseError::DelayedLink;

#[derive(Clone, Copy, Debug, Eq, PartialEq)]
#[repr(C)]
pub enum GstPluginError {
    Module = 0,
    Dependencies = 1,
    NameMismatch = 2,
}
pub const GST_PLUGIN_ERROR_MODULE: GstPluginError = GstPluginError::Module;
pub const GST_PLUGIN_ERROR_DEPENDENCIES: GstPluginError = GstPluginError::Dependencies;
pub const GST_PLUGIN_ERROR_NAME_MISMATCH: GstPluginError = GstPluginError::NameMismatch;

#[derive(Clone, Copy, Debug, Eq, PartialEq)]
#[repr(C)]
pub enum GstProgressType {
    Start = 0,
    Continue = 1,
    Complete = 2,
    Canceled = 3,
    Error = 4,
}
pub const GST_PROGRESS_TYPE_START: GstProgressType = GstProgressType::Start;
pub const GST_PROGRESS_TYPE_CONTINUE: GstProgressType = GstProgressType::Continue;
pub const GST_PROGRESS_TYPE_COMPLETE: GstProgressType = GstProgressType::Complete;
pub const GST_PROGRESS_TYPE_CANCELED: GstProgressType = GstProgressType::Canceled;
pub const GST_PROGRESS_TYPE_ERROR: GstProgressType = GstProgressType::Error;

#[derive(Clone, Copy, Debug, Eq, PartialEq)]
#[repr(C)]
pub enum GstQOSType {
    Overflow = 0,
    Underflow = 1,
    Throttle = 2,
}
pub const GST_QOS_TYPE_OVERFLOW: GstQOSType = GstQOSType::Overflow;
pub const GST_QOS_TYPE_UNDERFLOW: GstQOSType = GstQOSType::Underflow;
pub const GST_QOS_TYPE_THROTTLE: GstQOSType = GstQOSType::Throttle;

#[derive(Clone, Copy, Debug, Eq, PartialEq)]
#[repr(C)]
pub enum GstQueryType {
    Unknown = 0,
    Position = 2563,
    Duration = 5123,
    Latency = 7683,
    Jitter = 10243,
    Rate = 12803,
    Seeking = 15363,
    Segment = 17923,
    Convert = 20483,
    Formats = 23043,
    Buffering = 28163,
    Custom = 30723,
    Uri = 33283,
    Allocation = 35846,
    Scheduling = 38401,
    AcceptCaps = 40963,
    Caps = 43523,
    Drain = 46086,
    Context = 48643,
}
pub const GST_QUERY_UNKNOWN: GstQueryType = GstQueryType::Unknown;
pub const GST_QUERY_POSITION: GstQueryType = GstQueryType::Position;
pub const GST_QUERY_DURATION: GstQueryType = GstQueryType::Duration;
pub const GST_QUERY_LATENCY: GstQueryType = GstQueryType::Latency;
pub const GST_QUERY_JITTER: GstQueryType = GstQueryType::Jitter;
pub const GST_QUERY_RATE: GstQueryType = GstQueryType::Rate;
pub const GST_QUERY_SEEKING: GstQueryType = GstQueryType::Seeking;
pub const GST_QUERY_SEGMENT: GstQueryType = GstQueryType::Segment;
pub const GST_QUERY_CONVERT: GstQueryType = GstQueryType::Convert;
pub const GST_QUERY_FORMATS: GstQueryType = GstQueryType::Formats;
pub const GST_QUERY_BUFFERING: GstQueryType = GstQueryType::Buffering;
pub const GST_QUERY_CUSTOM: GstQueryType = GstQueryType::Custom;
pub const GST_QUERY_URI: GstQueryType = GstQueryType::Uri;
pub const GST_QUERY_ALLOCATION: GstQueryType = GstQueryType::Allocation;
pub const GST_QUERY_SCHEDULING: GstQueryType = GstQueryType::Scheduling;
pub const GST_QUERY_ACCEPT_CAPS: GstQueryType = GstQueryType::AcceptCaps;
pub const GST_QUERY_CAPS: GstQueryType = GstQueryType::Caps;
pub const GST_QUERY_DRAIN: GstQueryType = GstQueryType::Drain;
pub const GST_QUERY_CONTEXT: GstQueryType = GstQueryType::Context;

#[derive(Clone, Copy, Debug, Eq, PartialEq)]
#[repr(C)]
pub enum GstRank {
    None = 0,
    Marginal = 64,
    Secondary = 128,
    Primary = 256,
}
pub const GST_RANK_NONE: GstRank = GstRank::None;
pub const GST_RANK_MARGINAL: GstRank = GstRank::Marginal;
pub const GST_RANK_SECONDARY: GstRank = GstRank::Secondary;
pub const GST_RANK_PRIMARY: GstRank = GstRank::Primary;

#[derive(Clone, Copy, Debug, Eq, PartialEq)]
#[repr(C)]
pub enum GstResourceError {
    Failed = 1,
    TooLazy = 2,
    NotFound = 3,
    Busy = 4,
    OpenRead = 5,
    OpenWrite = 6,
    OpenReadWrite = 7,
    Close = 8,
    Read = 9,
    Write = 10,
    Seek = 11,
    Sync = 12,
    Settings = 13,
    NoSpaceLeft = 14,
    NotAuthorized = 15,
    NumErrors = 16,
}
pub const GST_RESOURCE_ERROR_FAILED: GstResourceError = GstResourceError::Failed;
pub const GST_RESOURCE_ERROR_TOO_LAZY: GstResourceError = GstResourceError::TooLazy;
pub const GST_RESOURCE_ERROR_NOT_FOUND: GstResourceError = GstResourceError::NotFound;
pub const GST_RESOURCE_ERROR_BUSY: GstResourceError = GstResourceError::Busy;
pub const GST_RESOURCE_ERROR_OPEN_READ: GstResourceError = GstResourceError::OpenRead;
pub const GST_RESOURCE_ERROR_OPEN_WRITE: GstResourceError = GstResourceError::OpenWrite;
pub const GST_RESOURCE_ERROR_OPEN_READ_WRITE: GstResourceError = GstResourceError::OpenReadWrite;
pub const GST_RESOURCE_ERROR_CLOSE: GstResourceError = GstResourceError::Close;
pub const GST_RESOURCE_ERROR_READ: GstResourceError = GstResourceError::Read;
pub const GST_RESOURCE_ERROR_WRITE: GstResourceError = GstResourceError::Write;
pub const GST_RESOURCE_ERROR_SEEK: GstResourceError = GstResourceError::Seek;
pub const GST_RESOURCE_ERROR_SYNC: GstResourceError = GstResourceError::Sync;
pub const GST_RESOURCE_ERROR_SETTINGS: GstResourceError = GstResourceError::Settings;
pub const GST_RESOURCE_ERROR_NO_SPACE_LEFT: GstResourceError = GstResourceError::NoSpaceLeft;
pub const GST_RESOURCE_ERROR_NOT_AUTHORIZED: GstResourceError = GstResourceError::NotAuthorized;
pub const GST_RESOURCE_ERROR_NUM_ERRORS: GstResourceError = GstResourceError::NumErrors;

#[derive(Clone, Copy, Debug, Eq, PartialEq)]
#[repr(C)]
pub enum GstSearchMode {
    Exact = 0,
    Before = 1,
    After = 2,
}
pub const GST_SEARCH_MODE_EXACT: GstSearchMode = GstSearchMode::Exact;
pub const GST_SEARCH_MODE_BEFORE: GstSearchMode = GstSearchMode::Before;
pub const GST_SEARCH_MODE_AFTER: GstSearchMode = GstSearchMode::After;

#[derive(Clone, Copy, Debug, Eq, PartialEq)]
#[repr(C)]
pub enum GstSeekType {
    None = 0,
    Set = 1,
    End = 2,
}
pub const GST_SEEK_TYPE_NONE: GstSeekType = GstSeekType::None;
pub const GST_SEEK_TYPE_SET: GstSeekType = GstSeekType::Set;
pub const GST_SEEK_TYPE_END: GstSeekType = GstSeekType::End;

#[derive(Clone, Copy, Debug, Eq, PartialEq)]
#[repr(C)]
pub enum GstState {
    VoidPending = 0,
    Null = 1,
    Ready = 2,
    Paused = 3,
    Playing = 4,
}
pub const GST_STATE_VOID_PENDING: GstState = GstState::VoidPending;
pub const GST_STATE_NULL: GstState = GstState::Null;
pub const GST_STATE_READY: GstState = GstState::Ready;
pub const GST_STATE_PAUSED: GstState = GstState::Paused;
pub const GST_STATE_PLAYING: GstState = GstState::Playing;

#[derive(Clone, Copy, Debug, Eq, PartialEq)]
#[repr(C)]
pub enum GstStateChange {
    NullToReady = 10,
    ReadyToPaused = 19,
    PausedToPlaying = 28,
    PlayingToPaused = 35,
    PausedToReady = 26,
    ReadyToNull = 17,
}
pub const GST_STATE_CHANGE_NULL_TO_READY: GstStateChange = GstStateChange::NullToReady;
pub const GST_STATE_CHANGE_READY_TO_PAUSED: GstStateChange = GstStateChange::ReadyToPaused;
pub const GST_STATE_CHANGE_PAUSED_TO_PLAYING: GstStateChange = GstStateChange::PausedToPlaying;
pub const GST_STATE_CHANGE_PLAYING_TO_PAUSED: GstStateChange = GstStateChange::PlayingToPaused;
pub const GST_STATE_CHANGE_PAUSED_TO_READY: GstStateChange = GstStateChange::PausedToReady;
pub const GST_STATE_CHANGE_READY_TO_NULL: GstStateChange = GstStateChange::ReadyToNull;

#[derive(Clone, Copy, Debug, Eq, PartialEq)]
#[repr(C)]
pub enum GstStateChangeReturn {
    Failure = 0,
    Success = 1,
    Async = 2,
    NoPreroll = 3,
}
pub const GST_STATE_CHANGE_FAILURE: GstStateChangeReturn = GstStateChangeReturn::Failure;
pub const GST_STATE_CHANGE_SUCCESS: GstStateChangeReturn = GstStateChangeReturn::Success;
pub const GST_STATE_CHANGE_ASYNC: GstStateChangeReturn = GstStateChangeReturn::Async;
pub const GST_STATE_CHANGE_NO_PREROLL: GstStateChangeReturn = GstStateChangeReturn::NoPreroll;

#[derive(Clone, Copy, Debug, Eq, PartialEq)]
#[repr(C)]
pub enum GstStreamError {
    Failed = 1,
    TooLazy = 2,
    NotImplemented = 3,
    TypeNotFound = 4,
    WrongType = 5,
    CodecNotFound = 6,
    Decode = 7,
    Encode = 8,
    Demux = 9,
    Mux = 10,
    Format = 11,
    Decrypt = 12,
    DecryptNokey = 13,
    NumErrors = 14,
}
pub const GST_STREAM_ERROR_FAILED: GstStreamError = GstStreamError::Failed;
pub const GST_STREAM_ERROR_TOO_LAZY: GstStreamError = GstStreamError::TooLazy;
pub const GST_STREAM_ERROR_NOT_IMPLEMENTED: GstStreamError = GstStreamError::NotImplemented;
pub const GST_STREAM_ERROR_TYPE_NOT_FOUND: GstStreamError = GstStreamError::TypeNotFound;
pub const GST_STREAM_ERROR_WRONG_TYPE: GstStreamError = GstStreamError::WrongType;
pub const GST_STREAM_ERROR_CODEC_NOT_FOUND: GstStreamError = GstStreamError::CodecNotFound;
pub const GST_STREAM_ERROR_DECODE: GstStreamError = GstStreamError::Decode;
pub const GST_STREAM_ERROR_ENCODE: GstStreamError = GstStreamError::Encode;
pub const GST_STREAM_ERROR_DEMUX: GstStreamError = GstStreamError::Demux;
pub const GST_STREAM_ERROR_MUX: GstStreamError = GstStreamError::Mux;
pub const GST_STREAM_ERROR_FORMAT: GstStreamError = GstStreamError::Format;
pub const GST_STREAM_ERROR_DECRYPT: GstStreamError = GstStreamError::Decrypt;
pub const GST_STREAM_ERROR_DECRYPT_NOKEY: GstStreamError = GstStreamError::DecryptNokey;
pub const GST_STREAM_ERROR_NUM_ERRORS: GstStreamError = GstStreamError::NumErrors;

#[derive(Clone, Copy, Debug, Eq, PartialEq)]
#[repr(C)]
pub enum GstStreamStatusType {
    Create = 0,
    Enter = 1,
    Leave = 2,
    Destroy = 3,
    Start = 8,
    Pause = 9,
    Stop = 10,
}
pub const GST_STREAM_STATUS_TYPE_CREATE: GstStreamStatusType = GstStreamStatusType::Create;
pub const GST_STREAM_STATUS_TYPE_ENTER: GstStreamStatusType = GstStreamStatusType::Enter;
pub const GST_STREAM_STATUS_TYPE_LEAVE: GstStreamStatusType = GstStreamStatusType::Leave;
pub const GST_STREAM_STATUS_TYPE_DESTROY: GstStreamStatusType = GstStreamStatusType::Destroy;
pub const GST_STREAM_STATUS_TYPE_START: GstStreamStatusType = GstStreamStatusType::Start;
pub const GST_STREAM_STATUS_TYPE_PAUSE: GstStreamStatusType = GstStreamStatusType::Pause;
pub const GST_STREAM_STATUS_TYPE_STOP: GstStreamStatusType = GstStreamStatusType::Stop;

#[derive(Clone, Copy, Debug, Eq, PartialEq)]
#[repr(C)]
pub enum GstStructureChangeType {
    Link = 0,
    Unlink = 1,
}
pub const GST_STRUCTURE_CHANGE_TYPE_PAD_LINK: GstStructureChangeType = GstStructureChangeType::Link;
pub const GST_STRUCTURE_CHANGE_TYPE_PAD_UNLINK: GstStructureChangeType = GstStructureChangeType::Unlink;

#[derive(Clone, Copy, Debug, Eq, PartialEq)]
#[repr(C)]
pub enum GstTagFlag {
    Undefined = 0,
    Meta = 1,
    Encoded = 2,
    Decoded = 3,
    Count = 4,
}
pub const GST_TAG_FLAG_UNDEFINED: GstTagFlag = GstTagFlag::Undefined;
pub const GST_TAG_FLAG_META: GstTagFlag = GstTagFlag::Meta;
pub const GST_TAG_FLAG_ENCODED: GstTagFlag = GstTagFlag::Encoded;
pub const GST_TAG_FLAG_DECODED: GstTagFlag = GstTagFlag::Decoded;
pub const GST_TAG_FLAG_COUNT: GstTagFlag = GstTagFlag::Count;

#[derive(Clone, Copy, Debug, Eq, PartialEq)]
#[repr(C)]
pub enum GstTagMergeMode {
    Undefined = 0,
    ReplaceAll = 1,
    Replace = 2,
    Append = 3,
    Prepend = 4,
    Keep = 5,
    KeepAll = 6,
    Count = 7,
}
pub const GST_TAG_MERGE_UNDEFINED: GstTagMergeMode = GstTagMergeMode::Undefined;
pub const GST_TAG_MERGE_REPLACE_ALL: GstTagMergeMode = GstTagMergeMode::ReplaceAll;
pub const GST_TAG_MERGE_REPLACE: GstTagMergeMode = GstTagMergeMode::Replace;
pub const GST_TAG_MERGE_APPEND: GstTagMergeMode = GstTagMergeMode::Append;
pub const GST_TAG_MERGE_PREPEND: GstTagMergeMode = GstTagMergeMode::Prepend;
pub const GST_TAG_MERGE_KEEP: GstTagMergeMode = GstTagMergeMode::Keep;
pub const GST_TAG_MERGE_KEEP_ALL: GstTagMergeMode = GstTagMergeMode::KeepAll;
pub const GST_TAG_MERGE_COUNT: GstTagMergeMode = GstTagMergeMode::Count;

#[derive(Clone, Copy, Debug, Eq, PartialEq)]
#[repr(C)]
pub enum GstTagScope {
    Stream = 0,
    Global = 1,
}
pub const GST_TAG_SCOPE_STREAM: GstTagScope = GstTagScope::Stream;
pub const GST_TAG_SCOPE_GLOBAL: GstTagScope = GstTagScope::Global;

#[derive(Clone, Copy, Debug, Eq, PartialEq)]
#[repr(C)]
pub enum GstTaskState {
    Started = 0,
    Stopped = 1,
    Paused = 2,
}
pub const GST_TASK_STARTED: GstTaskState = GstTaskState::Started;
pub const GST_TASK_STOPPED: GstTaskState = GstTaskState::Stopped;
pub const GST_TASK_PAUSED: GstTaskState = GstTaskState::Paused;

#[derive(Clone, Copy, Debug, Eq, PartialEq)]
#[repr(C)]
pub enum GstTocEntryType {
    Angle = -3,
    Version = -2,
    Edition = -1,
    Invalid = 0,
    Title = 1,
    Track = 2,
    Chapter = 3,
}
pub const GST_TOC_ENTRY_TYPE_ANGLE: GstTocEntryType = GstTocEntryType::Angle;
pub const GST_TOC_ENTRY_TYPE_VERSION: GstTocEntryType = GstTocEntryType::Version;
pub const GST_TOC_ENTRY_TYPE_EDITION: GstTocEntryType = GstTocEntryType::Edition;
pub const GST_TOC_ENTRY_TYPE_INVALID: GstTocEntryType = GstTocEntryType::Invalid;
pub const GST_TOC_ENTRY_TYPE_TITLE: GstTocEntryType = GstTocEntryType::Title;
pub const GST_TOC_ENTRY_TYPE_TRACK: GstTocEntryType = GstTocEntryType::Track;
pub const GST_TOC_ENTRY_TYPE_CHAPTER: GstTocEntryType = GstTocEntryType::Chapter;

#[derive(Clone, Copy, Debug, Eq, PartialEq)]
#[repr(C)]
pub enum GstTocLoopType {
    None = 0,
    Forward = 1,
    Reverse = 2,
    PingPong = 3,
}
pub const GST_TOC_LOOP_NONE: GstTocLoopType = GstTocLoopType::None;
pub const GST_TOC_LOOP_FORWARD: GstTocLoopType = GstTocLoopType::Forward;
pub const GST_TOC_LOOP_REVERSE: GstTocLoopType = GstTocLoopType::Reverse;
pub const GST_TOC_LOOP_PING_PONG: GstTocLoopType = GstTocLoopType::PingPong;

#[derive(Clone, Copy, Debug, Eq, PartialEq)]
#[repr(C)]
pub enum GstTocScope {
    Global = 1,
    Current = 2,
}
pub const GST_TOC_SCOPE_GLOBAL: GstTocScope = GstTocScope::Global;
pub const GST_TOC_SCOPE_CURRENT: GstTocScope = GstTocScope::Current;

#[derive(Clone, Copy, Debug, Eq, PartialEq)]
#[repr(C)]
pub enum GstTracerValueScope {
    Process = 0,
    Thread = 1,
    Element = 2,
    Pad = 3,
}
pub const GST_TRACER_VALUE_SCOPE_PROCESS: GstTracerValueScope = GstTracerValueScope::Process;
pub const GST_TRACER_VALUE_SCOPE_THREAD: GstTracerValueScope = GstTracerValueScope::Thread;
pub const GST_TRACER_VALUE_SCOPE_ELEMENT: GstTracerValueScope = GstTracerValueScope::Element;
pub const GST_TRACER_VALUE_SCOPE_PAD: GstTracerValueScope = GstTracerValueScope::Pad;

#[derive(Clone, Copy, Debug, Eq, PartialEq)]
#[repr(C)]
pub enum GstTypeFindProbability {
    None = 0,
    Minimum = 1,
    Possible = 50,
    Likely = 80,
    NearlyCertain = 99,
    Maximum = 100,
}
pub const GST_TYPE_FIND_NONE: GstTypeFindProbability = GstTypeFindProbability::None;
pub const GST_TYPE_FIND_MINIMUM: GstTypeFindProbability = GstTypeFindProbability::Minimum;
pub const GST_TYPE_FIND_POSSIBLE: GstTypeFindProbability = GstTypeFindProbability::Possible;
pub const GST_TYPE_FIND_LIKELY: GstTypeFindProbability = GstTypeFindProbability::Likely;
pub const GST_TYPE_FIND_NEARLY_CERTAIN: GstTypeFindProbability = GstTypeFindProbability::NearlyCertain;
pub const GST_TYPE_FIND_MAXIMUM: GstTypeFindProbability = GstTypeFindProbability::Maximum;

#[derive(Clone, Copy, Debug, Eq, PartialEq)]
#[repr(C)]
pub enum GstURIError {
    UnsupportedProtocol = 0,
    BadUri = 1,
    BadState = 2,
    BadReference = 3,
}
pub const GST_URI_ERROR_UNSUPPORTED_PROTOCOL: GstURIError = GstURIError::UnsupportedProtocol;
pub const GST_URI_ERROR_BAD_URI: GstURIError = GstURIError::BadUri;
pub const GST_URI_ERROR_BAD_STATE: GstURIError = GstURIError::BadState;
pub const GST_URI_ERROR_BAD_REFERENCE: GstURIError = GstURIError::BadReference;

#[derive(Clone, Copy, Debug, Eq, PartialEq)]
#[repr(C)]
pub enum GstURIType {
    Unknown = 0,
    Sink = 1,
    Src = 2,
}
pub const GST_URI_UNKNOWN: GstURIType = GstURIType::Unknown;
pub const GST_URI_SINK: GstURIType = GstURIType::Sink;
pub const GST_URI_SRC: GstURIType = GstURIType::Src;

// Constants
pub const GST_ALLOCATOR_SYSMEM: *const c_char = b"SystemMemory\0" as *const u8 as *const c_char;
pub const GST_BUFFER_COPY_ALL: GstBufferCopyFlags = GstBufferCopyFlags { bits: 15 };
pub const GST_BUFFER_COPY_METADATA: GstBufferCopyFlags = GstBufferCopyFlags { bits: 7 };
pub const GST_BUFFER_OFFSET_NONE: u64 = 18446744073709551615;
pub const GST_CAN_INLINE: c_int = 1;
pub const GST_CAPS_FEATURE_MEMORY_SYSTEM_MEMORY: *const c_char = b"memory:SystemMemory\0" as *const u8 as *const c_char;
pub const GST_CLOCK_TIME_NONE: GstClockTime = 18446744073709551615;
pub const GST_DEBUG_BG_MASK: c_int = 240;
pub const GST_DEBUG_FG_MASK: c_int = 15;
pub const GST_DEBUG_FORMAT_MASK: c_int = 65280;
pub const GST_ELEMENT_FACTORY_KLASS_DECODER: *const c_char = b"Decoder\0" as *const u8 as *const c_char;
pub const GST_ELEMENT_FACTORY_KLASS_DECRYPTOR: *const c_char = b"Decryptor\0" as *const u8 as *const c_char;
pub const GST_ELEMENT_FACTORY_KLASS_DEMUXER: *const c_char = b"Demuxer\0" as *const u8 as *const c_char;
pub const GST_ELEMENT_FACTORY_KLASS_DEPAYLOADER: *const c_char = b"Depayloader\0" as *const u8 as *const c_char;
pub const GST_ELEMENT_FACTORY_KLASS_ENCODER: *const c_char = b"Encoder\0" as *const u8 as *const c_char;
pub const GST_ELEMENT_FACTORY_KLASS_ENCRYPTOR: *const c_char = b"Encryptor\0" as *const u8 as *const c_char;
pub const GST_ELEMENT_FACTORY_KLASS_FORMATTER: *const c_char = b"Formatter\0" as *const u8 as *const c_char;
pub const GST_ELEMENT_FACTORY_KLASS_MEDIA_AUDIO: *const c_char = b"Audio\0" as *const u8 as *const c_char;
pub const GST_ELEMENT_FACTORY_KLASS_MEDIA_IMAGE: *const c_char = b"Image\0" as *const u8 as *const c_char;
pub const GST_ELEMENT_FACTORY_KLASS_MEDIA_METADATA: *const c_char = b"Metadata\0" as *const u8 as *const c_char;
pub const GST_ELEMENT_FACTORY_KLASS_MEDIA_SUBTITLE: *const c_char = b"Subtitle\0" as *const u8 as *const c_char;
pub const GST_ELEMENT_FACTORY_KLASS_MEDIA_VIDEO: *const c_char = b"Video\0" as *const u8 as *const c_char;
pub const GST_ELEMENT_FACTORY_KLASS_MUXER: *const c_char = b"Muxer\0" as *const u8 as *const c_char;
pub const GST_ELEMENT_FACTORY_KLASS_PARSER: *const c_char = b"Parser\0" as *const u8 as *const c_char;
pub const GST_ELEMENT_FACTORY_KLASS_PAYLOADER: *const c_char = b"Payloader\0" as *const u8 as *const c_char;
pub const GST_ELEMENT_FACTORY_KLASS_SINK: *const c_char = b"Sink\0" as *const u8 as *const c_char;
pub const GST_ELEMENT_FACTORY_KLASS_SRC: *const c_char = b"Source\0" as *const u8 as *const c_char;
pub const GST_ELEMENT_FACTORY_TYPE_ANY: GstElementFactoryListType = 562949953421311;
pub const GST_ELEMENT_FACTORY_TYPE_AUDIOVIDEO_SINKS: GstElementFactoryListType = 3940649673949188;
pub const GST_ELEMENT_FACTORY_TYPE_AUDIO_ENCODER: GstElementFactoryListType = 1125899906842626;
pub const GST_ELEMENT_FACTORY_TYPE_DECODABLE: GstElementFactoryListType = 353;
pub const GST_ELEMENT_FACTORY_TYPE_DECODER: GstElementFactoryListType = 1;
pub const GST_ELEMENT_FACTORY_TYPE_DECRYPTOR: GstElementFactoryListType = 1024;
pub const GST_ELEMENT_FACTORY_TYPE_DEMUXER: GstElementFactoryListType = 32;
pub const GST_ELEMENT_FACTORY_TYPE_DEPAYLOADER: GstElementFactoryListType = 256;
pub const GST_ELEMENT_FACTORY_TYPE_ENCODER: GstElementFactoryListType = 2;
pub const GST_ELEMENT_FACTORY_TYPE_ENCRYPTOR: GstElementFactoryListType = 2048;
pub const GST_ELEMENT_FACTORY_TYPE_FORMATTER: GstElementFactoryListType = 512;
pub const GST_ELEMENT_FACTORY_TYPE_MAX_ELEMENTS: GstElementFactoryListType = 281474976710656;
pub const GST_ELEMENT_FACTORY_TYPE_MEDIA_ANY: GstElementFactoryListType = 18446462598732840960;
pub const GST_ELEMENT_FACTORY_TYPE_MEDIA_AUDIO: GstElementFactoryListType = 1125899906842624;
pub const GST_ELEMENT_FACTORY_TYPE_MEDIA_IMAGE: GstElementFactoryListType = 2251799813685248;
pub const GST_ELEMENT_FACTORY_TYPE_MEDIA_METADATA: GstElementFactoryListType = 9007199254740992;
pub const GST_ELEMENT_FACTORY_TYPE_MEDIA_SUBTITLE: GstElementFactoryListType = 4503599627370496;
pub const GST_ELEMENT_FACTORY_TYPE_MEDIA_VIDEO: GstElementFactoryListType = 562949953421312;
pub const GST_ELEMENT_FACTORY_TYPE_MUXER: GstElementFactoryListType = 16;
pub const GST_ELEMENT_FACTORY_TYPE_PARSER: GstElementFactoryListType = 64;
pub const GST_ELEMENT_FACTORY_TYPE_PAYLOADER: GstElementFactoryListType = 128;
pub const GST_ELEMENT_FACTORY_TYPE_SINK: GstElementFactoryListType = 4;
pub const GST_ELEMENT_FACTORY_TYPE_SRC: GstElementFactoryListType = 8;
pub const GST_ELEMENT_FACTORY_TYPE_VIDEO_ENCODER: GstElementFactoryListType = 2814749767106562;
pub const GST_ELEMENT_METADATA_AUTHOR: *const c_char = b"author\0" as *const u8 as *const c_char;
pub const GST_ELEMENT_METADATA_DESCRIPTION: *const c_char = b"description\0" as *const u8 as *const c_char;
pub const GST_ELEMENT_METADATA_DOC_URI: *const c_char = b"doc-uri\0" as *const u8 as *const c_char;
pub const GST_ELEMENT_METADATA_ICON_NAME: *const c_char = b"icon-name\0" as *const u8 as *const c_char;
pub const GST_ELEMENT_METADATA_KLASS: *const c_char = b"klass\0" as *const u8 as *const c_char;
pub const GST_ELEMENT_METADATA_LONGNAME: *const c_char = b"long-name\0" as *const u8 as *const c_char;
pub const GST_ERROR_SYSTEM: *const c_char = b"system error: %s\0" as *const u8 as *const c_char;
pub const GST_EVENT_NUM_SHIFT: c_int = 8;
pub const GST_EVENT_TYPE_BOTH: GstEventTypeFlags = GstEventTypeFlags { bits: 3 };
pub const GST_FLAG_SET_MASK_EXACT: c_uint = 4294967295;
pub const GST_FORMAT_PERCENT_MAX: i64 = 1000000;
pub const GST_FORMAT_PERCENT_SCALE: i64 = 10000;
pub const GST_FOURCC_FORMAT: *const c_char = b"c%c%c%c\0" as *const u8 as *const c_char;
pub const GST_LICENSE_UNKNOWN: *const c_char = b"unknown\0" as *const u8 as *const c_char;
pub const GST_LOCK_FLAG_READWRITE: GstLockFlags = GstLockFlags { bits: 3 };
pub const GST_MAP_READWRITE: GstMapFlags = GstMapFlags { bits: 3 };
pub const GST_META_TAG_MEMORY_STR: *const c_char = b"memory\0" as *const u8 as *const c_char;
pub const GST_MSECOND: GstClockTimeDiff = 1000000;
pub const GST_NSECOND: GstClockTimeDiff = 1;
pub const GST_PARAM_CONTROLLABLE: c_int = 2;
pub const GST_PARAM_MUTABLE_PAUSED: c_int = 8;
pub const GST_PARAM_MUTABLE_PLAYING: c_int = 16;
pub const GST_PARAM_MUTABLE_READY: c_int = 4;
pub const GST_PARAM_USER_SHIFT: c_int = 256;
pub const GST_PROTECTION_SYSTEM_ID_CAPS_FIELD: *const c_char = b"protection-system\0" as *const u8 as *const c_char;
pub const GST_PTR_FORMAT: *const c_char = b"paA\0" as *const u8 as *const c_char;
pub const GST_QUERY_NUM_SHIFT: c_int = 8;
pub const GST_QUERY_TYPE_BOTH: GstQueryTypeFlags = GstQueryTypeFlags { bits: 3 };
pub const GST_SECOND: GstClockTimeDiff = 1000000000;
pub const GST_SEGMENT_FORMAT: *const c_char = b"paB\0" as *const u8 as *const c_char;
pub const GST_STIME_FORMAT: *const c_char = b"c%\0" as *const u8 as *const c_char;
pub const GST_TAG_ALBUM: *const c_char = b"album\0" as *const u8 as *const c_char;
pub const GST_TAG_ALBUM_ARTIST: *const c_char = b"album-artist\0" as *const u8 as *const c_char;
pub const GST_TAG_ALBUM_ARTIST_SORTNAME: *const c_char = b"album-artist-sortname\0" as *const u8 as *const c_char;
pub const GST_TAG_ALBUM_GAIN: *const c_char = b"replaygain-album-gain\0" as *const u8 as *const c_char;
pub const GST_TAG_ALBUM_PEAK: *const c_char = b"replaygain-album-peak\0" as *const u8 as *const c_char;
pub const GST_TAG_ALBUM_SORTNAME: *const c_char = b"album-sortname\0" as *const u8 as *const c_char;
pub const GST_TAG_ALBUM_VOLUME_COUNT: *const c_char = b"album-disc-count\0" as *const u8 as *const c_char;
pub const GST_TAG_ALBUM_VOLUME_NUMBER: *const c_char = b"album-disc-number\0" as *const u8 as *const c_char;
pub const GST_TAG_APPLICATION_DATA: *const c_char = b"application-data\0" as *const u8 as *const c_char;
pub const GST_TAG_APPLICATION_NAME: *const c_char = b"application-name\0" as *const u8 as *const c_char;
pub const GST_TAG_ARTIST: *const c_char = b"artist\0" as *const u8 as *const c_char;
pub const GST_TAG_ARTIST_SORTNAME: *const c_char = b"artist-sortname\0" as *const u8 as *const c_char;
pub const GST_TAG_ATTACHMENT: *const c_char = b"attachment\0" as *const u8 as *const c_char;
pub const GST_TAG_AUDIO_CODEC: *const c_char = b"audio-codec\0" as *const u8 as *const c_char;
pub const GST_TAG_BEATS_PER_MINUTE: *const c_char = b"beats-per-minute\0" as *const u8 as *const c_char;
pub const GST_TAG_BITRATE: *const c_char = b"bitrate\0" as *const u8 as *const c_char;
pub const GST_TAG_CODEC: *const c_char = b"codec\0" as *const u8 as *const c_char;
pub const GST_TAG_COMMENT: *const c_char = b"comment\0" as *const u8 as *const c_char;
pub const GST_TAG_COMPOSER: *const c_char = b"composer\0" as *const u8 as *const c_char;
pub const GST_TAG_COMPOSER_SORTNAME: *const c_char = b"composer-sortname\0" as *const u8 as *const c_char;
pub const GST_TAG_CONDUCTOR: *const c_char = b"conductor\0" as *const u8 as *const c_char;
pub const GST_TAG_CONTACT: *const c_char = b"contact\0" as *const u8 as *const c_char;
pub const GST_TAG_CONTAINER_FORMAT: *const c_char = b"container-format\0" as *const u8 as *const c_char;
pub const GST_TAG_COPYRIGHT: *const c_char = b"copyright\0" as *const u8 as *const c_char;
pub const GST_TAG_COPYRIGHT_URI: *const c_char = b"copyright-uri\0" as *const u8 as *const c_char;
pub const GST_TAG_DATE: *const c_char = b"date\0" as *const u8 as *const c_char;
pub const GST_TAG_DATE_TIME: *const c_char = b"datetime\0" as *const u8 as *const c_char;
pub const GST_TAG_DESCRIPTION: *const c_char = b"description\0" as *const u8 as *const c_char;
pub const GST_TAG_DEVICE_MANUFACTURER: *const c_char = b"device-manufacturer\0" as *const u8 as *const c_char;
pub const GST_TAG_DEVICE_MODEL: *const c_char = b"device-model\0" as *const u8 as *const c_char;
pub const GST_TAG_DURATION: *const c_char = b"duration\0" as *const u8 as *const c_char;
pub const GST_TAG_ENCODED_BY: *const c_char = b"encoded-by\0" as *const u8 as *const c_char;
pub const GST_TAG_ENCODER: *const c_char = b"encoder\0" as *const u8 as *const c_char;
pub const GST_TAG_ENCODER_VERSION: *const c_char = b"encoder-version\0" as *const u8 as *const c_char;
pub const GST_TAG_EXTENDED_COMMENT: *const c_char = b"extended-comment\0" as *const u8 as *const c_char;
pub const GST_TAG_GENRE: *const c_char = b"genre\0" as *const u8 as *const c_char;
pub const GST_TAG_GEO_LOCATION_CAPTURE_DIRECTION: *const c_char = b"geo-location-capture-direction\0" as *const u8 as *const c_char;
pub const GST_TAG_GEO_LOCATION_CITY: *const c_char = b"geo-location-city\0" as *const u8 as *const c_char;
pub const GST_TAG_GEO_LOCATION_COUNTRY: *const c_char = b"geo-location-country\0" as *const u8 as *const c_char;
pub const GST_TAG_GEO_LOCATION_ELEVATION: *const c_char = b"geo-location-elevation\0" as *const u8 as *const c_char;
pub const GST_TAG_GEO_LOCATION_HORIZONTAL_ERROR: *const c_char = b"geo-location-horizontal-error\0" as *const u8 as *const c_char;
pub const GST_TAG_GEO_LOCATION_LATITUDE: *const c_char = b"geo-location-latitude\0" as *const u8 as *const c_char;
pub const GST_TAG_GEO_LOCATION_LONGITUDE: *const c_char = b"geo-location-longitude\0" as *const u8 as *const c_char;
pub const GST_TAG_GEO_LOCATION_MOVEMENT_DIRECTION: *const c_char = b"geo-location-movement-direction\0" as *const u8 as *const c_char;
pub const GST_TAG_GEO_LOCATION_MOVEMENT_SPEED: *const c_char = b"geo-location-movement-speed\0" as *const u8 as *const c_char;
pub const GST_TAG_GEO_LOCATION_NAME: *const c_char = b"geo-location-name\0" as *const u8 as *const c_char;
pub const GST_TAG_GEO_LOCATION_SUBLOCATION: *const c_char = b"geo-location-sublocation\0" as *const u8 as *const c_char;
pub const GST_TAG_GROUPING: *const c_char = b"grouping\0" as *const u8 as *const c_char;
pub const GST_TAG_HOMEPAGE: *const c_char = b"homepage\0" as *const u8 as *const c_char;
pub const GST_TAG_IMAGE: *const c_char = b"image\0" as *const u8 as *const c_char;
pub const GST_TAG_IMAGE_ORIENTATION: *const c_char = b"image-orientation\0" as *const u8 as *const c_char;
pub const GST_TAG_INTERPRETED_BY: *const c_char = b"interpreted-by\0" as *const u8 as *const c_char;
pub const GST_TAG_ISRC: *const c_char = b"isrc\0" as *const u8 as *const c_char;
pub const GST_TAG_KEYWORDS: *const c_char = b"keywords\0" as *const u8 as *const c_char;
pub const GST_TAG_LANGUAGE_CODE: *const c_char = b"language-code\0" as *const u8 as *const c_char;
pub const GST_TAG_LANGUAGE_NAME: *const c_char = b"language-name\0" as *const u8 as *const c_char;
pub const GST_TAG_LICENSE: *const c_char = b"license\0" as *const u8 as *const c_char;
pub const GST_TAG_LICENSE_URI: *const c_char = b"license-uri\0" as *const u8 as *const c_char;
pub const GST_TAG_LOCATION: *const c_char = b"location\0" as *const u8 as *const c_char;
pub const GST_TAG_LYRICS: *const c_char = b"lyrics\0" as *const u8 as *const c_char;
pub const GST_TAG_MAXIMUM_BITRATE: *const c_char = b"maximum-bitrate\0" as *const u8 as *const c_char;
pub const GST_TAG_MIDI_BASE_NOTE: *const c_char = b"midi-base-note\0" as *const u8 as *const c_char;
pub const GST_TAG_MINIMUM_BITRATE: *const c_char = b"minimum-bitrate\0" as *const u8 as *const c_char;
pub const GST_TAG_NOMINAL_BITRATE: *const c_char = b"nominal-bitrate\0" as *const u8 as *const c_char;
pub const GST_TAG_ORGANIZATION: *const c_char = b"organization\0" as *const u8 as *const c_char;
pub const GST_TAG_PERFORMER: *const c_char = b"performer\0" as *const u8 as *const c_char;
pub const GST_TAG_PREVIEW_IMAGE: *const c_char = b"preview-image\0" as *const u8 as *const c_char;
pub const GST_TAG_PRIVATE_DATA: *const c_char = b"private-data\0" as *const u8 as *const c_char;
pub const GST_TAG_PUBLISHER: *const c_char = b"publisher\0" as *const u8 as *const c_char;
pub const GST_TAG_REFERENCE_LEVEL: *const c_char = b"replaygain-reference-level\0" as *const u8 as *const c_char;
pub const GST_TAG_SERIAL: *const c_char = b"serial\0" as *const u8 as *const c_char;
pub const GST_TAG_SHOW_EPISODE_NUMBER: *const c_char = b"show-episode-number\0" as *const u8 as *const c_char;
pub const GST_TAG_SHOW_NAME: *const c_char = b"show-name\0" as *const u8 as *const c_char;
pub const GST_TAG_SHOW_SEASON_NUMBER: *const c_char = b"show-season-number\0" as *const u8 as *const c_char;
pub const GST_TAG_SHOW_SORTNAME: *const c_char = b"show-sortname\0" as *const u8 as *const c_char;
pub const GST_TAG_SUBTITLE_CODEC: *const c_char = b"subtitle-codec\0" as *const u8 as *const c_char;
pub const GST_TAG_TITLE: *const c_char = b"title\0" as *const u8 as *const c_char;
pub const GST_TAG_TITLE_SORTNAME: *const c_char = b"title-sortname\0" as *const u8 as *const c_char;
pub const GST_TAG_TRACK_COUNT: *const c_char = b"track-count\0" as *const u8 as *const c_char;
pub const GST_TAG_TRACK_GAIN: *const c_char = b"replaygain-track-gain\0" as *const u8 as *const c_char;
pub const GST_TAG_TRACK_NUMBER: *const c_char = b"track-number\0" as *const u8 as *const c_char;
pub const GST_TAG_TRACK_PEAK: *const c_char = b"replaygain-track-peak\0" as *const u8 as *const c_char;
pub const GST_TAG_USER_RATING: *const c_char = b"user-rating\0" as *const u8 as *const c_char;
pub const GST_TAG_VERSION: *const c_char = b"version\0" as *const u8 as *const c_char;
pub const GST_TAG_VIDEO_CODEC: *const c_char = b"video-codec\0" as *const u8 as *const c_char;
pub const GST_TIME_FORMAT: *const c_char = b"u:%02u:%02u.%09u\0" as *const u8 as *const c_char;
pub const GST_TOC_REPEAT_COUNT_INFINITE: c_int = -1;
pub const GST_URI_NO_PORT: c_int = 0;
pub const GST_USECOND: GstClockTimeDiff = 1000;
pub const GST_VALUE_EQUAL: c_int = 0;
pub const GST_VALUE_GREATER_THAN: c_int = 1;
pub const GST_VALUE_LESS_THAN: c_int = -1;
pub const GST_VALUE_UNORDERED: c_int = 2;
pub const GST_VERSION_MAJOR: c_int = 1;
1041 1042 1043
pub const GST_VERSION_MICRO: c_int = 0;
pub const GST_VERSION_MINOR: c_int = 12;
pub const GST_VERSION_NANO: c_int = 0;
Sebastian Dröge's avatar
Sebastian Dröge committed
1044 1045 1046 1047

// Flags
bitflags! {
    #[repr(C)]
Sebastian Dröge's avatar
Sebastian Dröge committed
1048 1049 1050
    pub struct GstAllocatorFlags: c_uint {
        const GST_ALLOCATOR_FLAG_CUSTOM_ALLOC = 16;
        const GST_ALLOCATOR_FLAG_LAST = 1048576;
Sebastian Dröge's avatar
Sebastian Dröge committed
1051 1052 1053 1054 1055
    }
}

bitflags! {
    #[repr(C)]
Sebastian Dröge's avatar
Sebastian Dröge committed
1056 1057 1058 1059
    pub struct GstBinFlags: c_uint {
        const GST_BIN_FLAG_NO_RESYNC = 16384;
        const GST_BIN_FLAG_STREAMS_AWARE = 32768;
        const GST_BIN_FLAG_LAST = 524288;
Sebastian Dröge's avatar
Sebastian Dröge committed
1060 1061 1062 1063 1064
    }
}

bitflags! {
    #[repr(C)]
Sebastian Dröge's avatar
Sebastian Dröge committed
1065 1066 1067 1068 1069 1070 1071 1072
    pub struct GstBufferCopyFlags: c_uint {
        const GST_BUFFER_COPY_NONE = 0;
        const GST_BUFFER_COPY_FLAGS = 1;
        const GST_BUFFER_COPY_TIMESTAMPS = 2;
        const GST_BUFFER_COPY_META = 4;
        const GST_BUFFER_COPY_MEMORY = 8;
        const GST_BUFFER_COPY_MERGE = 16;
        const GST_BUFFER_COPY_DEEP = 32;
Sebastian Dröge's avatar
Sebastian Dröge committed
1073 1074 1075 1076 1077
    }
}

bitflags! {
    #[repr(C)]
Sebastian Dröge's avatar
Sebastian Dröge committed
1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091
    pub struct GstBufferFlags: c_uint {
        const GST_BUFFER_FLAG_LIVE = 16;
        const GST_BUFFER_FLAG_DECODE_ONLY = 32;
        const GST_BUFFER_FLAG_DISCONT = 64;
        const GST_BUFFER_FLAG_RESYNC = 128;
        const GST_BUFFER_FLAG_CORRUPTED = 256;
        const GST_BUFFER_FLAG_MARKER = 512;
        const GST_BUFFER_FLAG_HEADER = 1024;
        const GST_BUFFER_FLAG_GAP = 2048;
        const GST_BUFFER_FLAG_DROPPABLE = 4096;
        const GST_BUFFER_FLAG_DELTA_UNIT = 8192;
        const GST_BUFFER_FLAG_TAG_MEMORY = 16384;
        const GST_BUFFER_FLAG_SYNC_AFTER = 32768;
        const GST_BUFFER_FLAG_LAST = 1048576;
Sebastian Dröge's avatar
Sebastian Dröge committed
1092 1093 1094 1095 1096
    }
}

bitflags! {
    #[repr(C)]
Sebastian Dröge's avatar
Sebastian Dröge committed
1097 1098 1099 1100 1101 1102
    pub struct GstBufferPoolAcquireFlags: c_uint {
        const GST_BUFFER_POOL_ACQUIRE_FLAG_NONE = 0;
        const GST_BUFFER_POOL_ACQUIRE_FLAG_KEY_UNIT = 1;
        const GST_BUFFER_POOL_ACQUIRE_FLAG_DONTWAIT = 2;
        const GST_BUFFER_POOL_ACQUIRE_FLAG_DISCONT = 4;
        const GST_BUFFER_POOL_ACQUIRE_FLAG_LAST = 65536;
Sebastian Dröge's avatar
Sebastian Dröge committed
1103 1104 1105 1106 1107
    }
}

bitflags! {
    #[repr(C)]
Sebastian Dröge's avatar
Sebastian Dröge committed
1108 1109 1110
    pub struct GstBusFlags: c_uint {
        const GST_BUS_FLUSHING = 16;
        const GST_BUS_FLAG_LAST = 32;
Sebastian Dröge's avatar
Sebastian Dröge committed
1111 1112 1113 1114 1115
    }
}

bitflags! {
    #[repr(C)]
Sebastian Dröge's avatar
Sebastian Dröge committed
1116 1117
    pub struct GstCapsFlags: c_uint {
        const GST_CAPS_FLAG_ANY = 16;
Sebastian Dröge's avatar
Sebastian Dröge committed
1118 1119 1120 1121 1122
    }
}

bitflags! {
    #[repr(C)]
Sebastian Dröge's avatar
Sebastian Dröge committed
1123 1124 1125 1126 1127 1128 1129 1130 1131
    pub struct GstClockFlags: c_uint {
        const GST_CLOCK_FLAG_CAN_DO_SINGLE_SYNC = 16;
        const GST_CLOCK_FLAG_CAN_DO_SINGLE_ASYNC = 32;
        const GST_CLOCK_FLAG_CAN_DO_PERIODIC_SYNC = 64;
        const GST_CLOCK_FLAG_CAN_DO_PERIODIC_ASYNC = 128;
        const GST_CLOCK_FLAG_CAN_SET_RESOLUTION = 256;
        const GST_CLOCK_FLAG_CAN_SET_MASTER = 512;
        const GST_CLOCK_FLAG_NEEDS_STARTUP_SYNC = 1024;
        const GST_CLOCK_FLAG_LAST = 4096;
Sebastian Dröge's avatar
Sebastian Dröge committed
1132 1133 1134 1135 1136
    }
}

bitflags! {
    #[repr(C)]
Sebastian Dröge's avatar
Sebastian Dröge committed
1137 1138 1139 1140 1141 1142 1143 1144
    pub struct GstDebugGraphDetails: c_uint {
        const GST_DEBUG_GRAPH_SHOW_MEDIA_TYPE = 1;
        const GST_DEBUG_GRAPH_SHOW_CAPS_DETAILS = 2;
        const GST_DEBUG_GRAPH_SHOW_NON_DEFAULT_PARAMS = 4;
        const GST_DEBUG_GRAPH_SHOW_STATES = 8;
        const GST_DEBUG_GRAPH_SHOW_FULL_PARAMS = 16;
        const GST_DEBUG_GRAPH_SHOW_ALL = 15;
        const GST_DEBUG_GRAPH_SHOW_VERBOSE = 4294967295;
Sebastian Dröge's avatar
Sebastian Dröge committed
1145 1146 1147 1148 1149
    }
}

bitflags! {
    #[repr(C)]
Sebastian Dröge's avatar
Sebastian Dröge committed
1150 1151 1152 1153 1154 1155 1156 1157
    pub struct GstElementFlags: c_uint {
        const GST_ELEMENT_FLAG_LOCKED_STATE = 16;
        const GST_ELEMENT_FLAG_SINK = 32;
        const GST_ELEMENT_FLAG_SOURCE = 64;
        const GST_ELEMENT_FLAG_PROVIDE_CLOCK = 128;
        const GST_ELEMENT_FLAG_REQUIRE_CLOCK = 256;
        const GST_ELEMENT_FLAG_INDEXABLE = 512;
        const GST_ELEMENT_FLAG_LAST = 16384;
Sebastian Dröge's avatar
Sebastian Dröge committed
1158 1159 1160 1161 1162
    }
}

bitflags! {
    #[repr(C)]
Sebastian Dröge's avatar
Sebastian Dröge committed
1163 1164 1165 1166 1167 1168
    pub struct GstEventTypeFlags: c_uint {
        const GST_EVENT_TYPE_UPSTREAM = 1;
        const GST_EVENT_TYPE_DOWNSTREAM = 2;
        const GST_EVENT_TYPE_SERIALIZED = 4;
        const GST_EVENT_TYPE_STICKY = 8;
        const GST_EVENT_TYPE_STICKY_MULTI = 16;
Sebastian Dröge's avatar
Sebastian Dröge committed
1169 1170 1171 1172 1173
    }
}

bitflags! {
    #[repr(C)]
Sebastian Dröge's avatar
Sebastian Dröge committed
1174 1175 1176 1177 1178
    pub struct GstLockFlags: c_uint {
        const GST_LOCK_FLAG_READ = 1;
        const GST_LOCK_FLAG_WRITE = 2;
        const GST_LOCK_FLAG_EXCLUSIVE = 4;
        const GST_LOCK_FLAG_LAST = 256;
Sebastian Dröge's avatar
Sebastian Dröge committed
1179 1180 1181 1182 1183
    }
}

bitflags! {
    #[repr(C)]
Sebastian Dröge's avatar
Sebastian Dröge committed
1184 1185 1186 1187
    pub struct GstMapFlags: c_uint {
        const GST_MAP_READ = 1;
        const GST_MAP_WRITE = 2;
        const GST_MAP_FLAG_LAST = 65536;
Sebastian Dröge's avatar
Sebastian Dröge committed
1188 1189 1190 1191 1192
    }
}

bitflags! {
    #[repr(C)]
Sebastian Dröge's avatar
Sebastian Dröge committed
1193 1194 1195 1196 1197 1198 1199 1200
    pub struct GstMemoryFlags: c_uint {
        const GST_MEMORY_FLAG_READONLY = 2;
        const GST_MEMORY_FLAG_NO_SHARE = 16;
        const GST_MEMORY_FLAG_ZERO_PREFIXED = 32;
        const GST_MEMORY_FLAG_ZERO_PADDED = 64;
        const GST_MEMORY_FLAG_PHYSICALLY_CONTIGUOUS = 128;
        const GST_MEMORY_FLAG_NOT_MAPPABLE = 256;
        const GST_MEMORY_FLAG_LAST = 1048576;
Sebastian Dröge's avatar
Sebastian Dröge committed
1201 1202 1203 1204 1205
    }
}

bitflags! {
    #[repr(C)]
Sebastian Dröge's avatar
Sebastian Dröge committed
1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246
    pub struct GstMessageType: c_uint {
        const GST_MESSAGE_UNKNOWN = 0;
        const GST_MESSAGE_EOS = 1;
        const GST_MESSAGE_ERROR = 2;
        const GST_MESSAGE_WARNING = 4;
        const GST_MESSAGE_INFO = 8;
        const GST_MESSAGE_TAG = 16;
        const GST_MESSAGE_BUFFERING = 32;
        const GST_MESSAGE_STATE_CHANGED = 64;
        const GST_MESSAGE_STATE_DIRTY = 128;
        const GST_MESSAGE_STEP_DONE = 256;
        const GST_MESSAGE_CLOCK_PROVIDE = 512;
        const GST_MESSAGE_CLOCK_LOST = 1024;
        const GST_MESSAGE_NEW_CLOCK = 2048;
        const GST_MESSAGE_STRUCTURE_CHANGE = 4096;
        const GST_MESSAGE_STREAM_STATUS = 8192;
        const GST_MESSAGE_APPLICATION = 16384;
        const GST_MESSAGE_ELEMENT = 32768;
        const GST_MESSAGE_SEGMENT_START = 65536;
        const GST_MESSAGE_SEGMENT_DONE = 131072;
        const GST_MESSAGE_DURATION_CHANGED = 262144;
        const GST_MESSAGE_LATENCY = 524288;
        const GST_MESSAGE_ASYNC_START = 1048576;
        const GST_MESSAGE_ASYNC_DONE = 2097152;
        const GST_MESSAGE_REQUEST_STATE = 4194304;
        const GST_MESSAGE_STEP_START = 8388608;
        const GST_MESSAGE_QOS = 16777216;
        const GST_MESSAGE_PROGRESS = 33554432;
        const GST_MESSAGE_TOC = 67108864;
        const GST_MESSAGE_RESET_TIME = 134217728;
        const GST_MESSAGE_STREAM_START = 268435456;
        const GST_MESSAGE_NEED_CONTEXT = 536870912;
        const GST_MESSAGE_HAVE_CONTEXT = 1073741824;
        const GST_MESSAGE_EXTENDED = 2147483648;
        const GST_MESSAGE_DEVICE_ADDED = 2147483649;
        const GST_MESSAGE_DEVICE_REMOVED = 2147483650;
        const GST_MESSAGE_PROPERTY_NOTIFY = 2147483651;
        const GST_MESSAGE_STREAM_COLLECTION = 2147483652;
        const GST_MESSAGE_STREAMS_SELECTED = 2147483653;
        const GST_MESSAGE_REDIRECT = 2147483654;
        const GST_MESSAGE_ANY = 4294967295;
Sebastian Dröge's avatar
Sebastian Dröge committed
1247 1248 1249 1250 1251
    }
}

bitflags! {
    #[repr(C)]
Sebastian Dröge's avatar
Sebastian Dröge committed
1252 1253 1254 1255 1256 1257
    pub struct GstMetaFlags: c_uint {
        const GST_META_FLAG_NONE = 0;
        const GST_META_FLAG_READONLY = 1;
        const GST_META_FLAG_POOLED = 2;
        const GST_META_FLAG_LOCKED = 4;
        const GST_META_FLAG_LAST = 65536;
Sebastian Dröge's avatar
Sebastian Dröge committed
1258 1259 1260 1261 1262
    }
}

bitflags! {
    #[repr(C)]
Sebastian Dröge's avatar
Sebastian Dröge committed
1263 1264 1265 1266 1267
    pub struct GstMiniObjectFlags: c_uint {
        const GST_MINI_OBJECT_FLAG_LOCKABLE = 1;
        const GST_MINI_OBJECT_FLAG_LOCK_READONLY = 2;
        const GST_MINI_OBJECT_FLAG_MAY_BE_LEAKED = 4;
        const GST_MINI_OBJECT_FLAG_LAST = 16;
Sebastian Dröge's avatar
Sebastian Dröge committed
1268 1269 1270 1271 1272
    }
}

bitflags! {
    #[repr(C)]
Sebastian Dröge's avatar
Sebastian Dröge committed
1273 1274 1275
    pub struct GstObjectFlags: c_uint {
        const GST_OBJECT_FLAG_MAY_BE_LEAKED = 1;
        const GST_OBJECT_FLAG_LAST = 16;
Sebastian Dröge's avatar
Sebastian Dröge committed
1276 1277 1278 1279 1280
    }
}

bitflags! {
    #[repr(C)]
Sebastian Dröge's avatar
Sebastian Dröge committed
1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295
    pub struct GstPadFlags: c_uint {
        const GST_PAD_FLAG_BLOCKED = 16;
        const GST_PAD_FLAG_FLUSHING = 32;
        const GST_PAD_FLAG_EOS = 64;
        const GST_PAD_FLAG_BLOCKING = 128;
        const GST_PAD_FLAG_NEED_PARENT = 256;
        const GST_PAD_FLAG_NEED_RECONFIGURE = 512;
        const GST_PAD_FLAG_PENDING_EVENTS = 1024;
        const GST_PAD_FLAG_FIXED_CAPS = 2048;
        const GST_PAD_FLAG_PROXY_CAPS = 4096;
        const GST_PAD_FLAG_PROXY_ALLOCATION = 8192;
        const GST_PAD_FLAG_PROXY_SCHEDULING = 16384;
        const GST_PAD_FLAG_ACCEPT_INTERSECT = 32768;
        const GST_PAD_FLAG_ACCEPT_TEMPLATE = 65536;
        const GST_PAD_FLAG_LAST = 1048576;
Sebastian Dröge's avatar
Sebastian Dröge committed
1296 1297 1298 1299 1300
    }
}

bitflags! {
    #[repr(C)]
Sebastian Dröge's avatar
Sebastian Dröge committed
1301 1302 1303 1304 1305 1306 1307
    pub struct GstPadLinkCheck: c_uint {
        const GST_PAD_LINK_CHECK_NOTHING = 0;
        const GST_PAD_LINK_CHECK_HIERARCHY = 1;
        const GST_PAD_LINK_CHECK_TEMPLATE_CAPS = 2;
        const GST_PAD_LINK_CHECK_CAPS = 4;
        const GST_PAD_LINK_CHECK_NO_RECONFIGURE = 8;
        const GST_PAD_LINK_CHECK_DEFAULT = 5;
Sebastian Dröge's avatar
Sebastian Dröge committed
1308 1309 1310 1311 1312
    }
}

bitflags! {
    #[repr(C)]
Sebastian Dröge's avatar
Sebastian Dröge committed
1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335
    pub struct GstPadProbeType: c_uint {
        const GST_PAD_PROBE_TYPE_INVALID = 0;
        const GST_PAD_PROBE_TYPE_IDLE = 1;
        const GST_PAD_PROBE_TYPE_BLOCK = 2;
        const GST_PAD_PROBE_TYPE_BUFFER = 16;
        const GST_PAD_PROBE_TYPE_BUFFER_LIST = 32;
        const GST_PAD_PROBE_TYPE_EVENT_DOWNSTREAM = 64;
        const GST_PAD_PROBE_TYPE_EVENT_UPSTREAM = 128;
        const GST_PAD_PROBE_TYPE_EVENT_FLUSH = 256;
        const GST_PAD_PROBE_TYPE_QUERY_DOWNSTREAM = 512;
        const GST_PAD_PROBE_TYPE_QUERY_UPSTREAM = 1024;
        const GST_PAD_PROBE_TYPE_PUSH = 4096;
        const GST_PAD_PROBE_TYPE_PULL = 8192;
        const GST_PAD_PROBE_TYPE_BLOCKING = 3;
        const GST_PAD_PROBE_TYPE_DATA_DOWNSTREAM = 112;
        const GST_PAD_PROBE_TYPE_DATA_UPSTREAM = 128;
        const GST_PAD_PROBE_TYPE_DATA_BOTH = 240;
        const GST_PAD_PROBE_TYPE_BLOCK_DOWNSTREAM = 114;
        const GST_PAD_PROBE_TYPE_BLOCK_UPSTREAM = 130;
        const GST_PAD_PROBE_TYPE_EVENT_BOTH = 192;
        const GST_PAD_PROBE_TYPE_QUERY_BOTH = 1536;
        const GST_PAD_PROBE_TYPE_ALL_BOTH = 1776;
        const GST_PAD_PROBE_TYPE_SCHEDULING = 12288;
Sebastian Dröge's avatar
Sebastian Dröge committed
1336 1337 1338 1339 1340
    }
}

bitflags! {
    #[repr(C)]
Sebastian Dröge's avatar
Sebastian Dröge committed
1341 1342
    pub struct GstPadTemplateFlags: c_uint {
        const GST_PAD_TEMPLATE_FLAG_LAST = 256;
Sebastian Dröge's avatar
Sebastian Dröge committed
1343 1344 1345 1346 1347
    }
}

bitflags! {
    #[repr(C)]
Sebastian Dröge's avatar
Sebastian Dröge committed
1348 1349 1350 1351 1352
    pub struct GstParseFlags: c_uint {
        const GST_PARSE_FLAG_NONE = 0;
        const GST_PARSE_FLAG_FATAL_ERRORS = 1;
        const GST_PARSE_FLAG_NO_SINGLE_ELEMENT_BINS = 2;
        const GST_PARSE_FLAG_PLACE_IN_BIN = 4;
Sebastian Dröge's avatar
Sebastian Dröge committed
1353 1354 1355 1356 1357
    }
}

bitflags! {
    #[repr(C)]
Sebastian Dröge's avatar
Sebastian Dröge committed
1358 1359 1360
    pub struct GstPipelineFlags: c_uint {
        const GST_PIPELINE_FLAG_FIXED_CLOCK = 524288;
        const GST_PIPELINE_FLAG_LAST = 8388608;
Sebastian Dröge's avatar
Sebastian Dröge committed
1361 1362 1363 1364 1365
    }
}

bitflags! {
    #[repr(C)]
Sebastian Dröge's avatar
Sebastian Dröge committed
1366 1367 1368 1369 1370 1371
    pub struct GstPluginDependencyFlags: c_uint {
        const GST_PLUGIN_DEPENDENCY_FLAG_NONE = 0;
        const GST_PLUGIN_DEPENDENCY_FLAG_RECURSE = 1;
        const GST_PLUGIN_DEPENDENCY_FLAG_PATHS_ARE_DEFAULT_ONLY = 2;
        const GST_PLUGIN_DEPENDENCY_FLAG_FILE_NAME_IS_SUFFIX = 4;
        const GST_PLUGIN_DEPENDENCY_FLAG_FILE_NAME_IS_PREFIX = 8;
Sebastian Dröge's avatar
Sebastian Dröge committed
1372 1373 1374 1375 1376
    }
}

bitflags! {
    #[repr(C)]
Sebastian Dröge's avatar
Sebastian Dröge committed
1377 1378 1379
    pub struct GstPluginFlags: c_uint {
        const GST_PLUGIN_FLAG_CACHED = 16;
        const GST_PLUGIN_FLAG_BLACKLISTED = 32;
Sebastian Dröge's avatar
Sebastian Dröge committed
1380 1381 1382 1383 1384
    }
}

bitflags! {
    #[repr(C)]
Sebastian Dröge's avatar
Sebastian Dröge committed
1385 1386 1387 1388
    pub struct GstQueryTypeFlags: c_uint {
        const GST_QUERY_TYPE_UPSTREAM = 1;
        const GST_QUERY_TYPE_DOWNSTREAM = 2;
        const GST_QUERY_TYPE_SERIALIZED = 4;
Sebastian Dröge's avatar
Sebastian Dröge committed
1389 1390 1391 1392 1393
    }
}

bitflags! {
    #[repr(C)]
Sebastian Dröge's avatar
Sebastian Dröge committed
1394 1395 1396 1397
    pub struct GstSchedulingFlags: c_uint {
        const GST_SCHEDULING_FLAG_SEEKABLE = 1;
        const GST_SCHEDULING_FLAG_SEQUENTIAL = 2;
        const GST_SCHEDULING_FLAG_BANDWIDTH_LIMITED = 4;
Sebastian Dröge's avatar
Sebastian Dröge committed
1398 1399 1400 1401 1402
    }
}

bitflags! {
    #[repr(C)]
Sebastian Dröge's avatar
Sebastian Dröge committed
1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415
    pub struct GstSeekFlags: c_uint {
        const GST_SEEK_FLAG_NONE = 0;
        const GST_SEEK_FLAG_FLUSH = 1;
        const GST_SEEK_FLAG_ACCURATE = 2;
        const GST_SEEK_FLAG_KEY_UNIT = 4;
        const GST_SEEK_FLAG_SEGMENT = 8;
        const GST_SEEK_FLAG_TRICKMODE = 16;
        const GST_SEEK_FLAG_SKIP = 16;
        const GST_SEEK_FLAG_SNAP_BEFORE = 32;
        const GST_SEEK_FLAG_SNAP_AFTER = 64;
        const GST_SEEK_FLAG_SNAP_NEAREST = 96;
        const GST_SEEK_FLAG_TRICKMODE_KEY_UNITS = 128;
        const GST_SEEK_FLAG_TRICKMODE_NO_AUDIO = 256;
Sebastian Dröge's avatar
Sebastian Dröge committed
1416 1417 1418 1419 1420
    }
}

bitflags! {
    #[repr(C)]
Sebastian Dröge's avatar
Sebastian Dröge committed
1421 1422 1423 1424 1425 1426 1427 1428
    pub struct GstSegmentFlags: c_uint {
        const GST_SEGMENT_FLAG_NONE = 0;
        const GST_SEGMENT_FLAG_RESET = 1;
        const GST_SEGMENT_FLAG_TRICKMODE = 16;
        const GST_SEGMENT_FLAG_SKIP = 16;
        const GST_SEGMENT_FLAG_SEGMENT = 8;
        const GST_SEGMENT_FLAG_TRICKMODE_KEY_UNITS = 128;
        const GST_SEGMENT_FLAG_TRICKMODE_NO_AUDIO = 256;
Sebastian Dröge's avatar
Sebastian Dröge committed
1429 1430 1431 1432 1433
    }
}

bitflags! {
    #[repr(C)]
Sebastian Dröge's avatar
Sebastian Dröge committed
1434 1435
    pub struct GstStackTraceFlags: c_uint {
        const GST_STACK_TRACE_SHOW_FULL = 1;
Sebastian Dröge's avatar
Sebastian Dröge committed
1436 1437 1438 1439 1440
    }
}

bitflags! {
    #[repr(C)]
Sebastian Dröge's avatar
Sebastian Dröge committed
1441 1442 1443 1444 1445
    pub struct GstStreamFlags: c_uint {
        const GST_STREAM_FLAG_NONE = 0;
        const GST_STREAM_FLAG_SPARSE = 1;
        const GST_STREAM_FLAG_SELECT = 2;
        const GST_STREAM_FLAG_UNSELECT = 4;
Sebastian Dröge's avatar
Sebastian Dröge committed
1446 1447 1448 1449 1450
    }
}

bitflags! {
    #[repr(C)]
Sebastian Dröge's avatar
Sebastian Dröge committed
1451 1452 1453 1454 1455 1456
    pub struct GstStreamType: c_uint {
        const GST_STREAM_TYPE_UNKNOWN = 1;
        const GST_STREAM_TYPE_AUDIO = 2;
        const GST_STREAM_TYPE_VIDEO = 4;
        const GST_STREAM_TYPE_CONTAINER = 8;
        const GST_STREAM_TYPE_TEXT = 16;
Sebastian Dröge's avatar
Sebastian Dröge committed
1457 1458 1459 1460 1461
    }
}

bitflags! {
    #[repr(C)]
Sebastian Dröge's avatar
Sebastian Dröge committed
1462 1463 1464 1465
    pub struct GstTracerValueFlags: c_uint {
        const GST_TRACER_VALUE_FLAGS_NONE = 0;
        const GST_TRACER_VALUE_FLAGS_OPTIONAL = 1;
        const GST_TRACER_VALUE_FLAGS_AGGREGATED = 2;
Sebastian Dröge's avatar
Sebastian Dröge committed
1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542
    }
}

// Callbacks
pub type GstBufferForeachMetaFunc = Option<unsafe extern "C" fn(*mut GstBuffer, *mut *mut GstMeta, gpointer) -> gboolean>;
pub type GstBufferListFunc = Option<unsafe extern "C" fn(*mut *mut GstBuffer, c_uint, gpointer) -> gboolean>;
pub type GstBusFunc = Option<unsafe extern "C" fn(*mut GstBus, *mut GstMessage, gpointer) -> gboolean>;
pub type GstBusSyncHandler = Option<unsafe extern "C" fn(*mut GstBus, *mut GstMessage, gpointer) -> GstBusSyncReply>;
pub type GstCapsFilterMapFunc = Option<unsafe extern "C" fn(*mut GstCapsFeatures, *mut GstStructure, gpointer) -> gboolean>;
pub type GstCapsForeachFunc = Option<unsafe extern "C" fn(*mut GstCapsFeatures, *mut GstStructure, gpointer) -> gboolean>;
pub type GstCapsMapFunc = Option<unsafe extern "C" fn(*mut GstCapsFeatures, *mut GstStructure, gpointer) -> gboolean>;
pub type GstClockCallback = Option<unsafe extern "C" fn(*mut GstClock, GstClockTime, GstClockID, gpointer) -> gboolean>;
pub type GstControlBindingConvert = Option<unsafe extern "C" fn(*mut GstControlBinding, c_double, *mut gobject::GValue)>;
pub type GstControlSourceGetValue = Option<unsafe extern "C" fn(*mut GstControlSource, GstClockTime, *mut c_double) -> gboolean>;
pub type GstControlSourceGetValueArray = Option<unsafe extern "C" fn(*mut GstControlSource, GstClockTime, GstClockTime, c_uint, *mut c_double) -> gboolean>;
pub type GstDebugFuncPtr = Option<unsafe extern "C" fn()>;
pub type GstElementCallAsyncFunc = Option<unsafe extern "C" fn(*mut GstElement, gpointer)>;
pub type GstIteratorCopyFunction = Option<unsafe extern "C" fn(*const GstIterator, *mut GstIterator)>;
pub type GstIteratorFoldFunction = Option<unsafe extern "C" fn(*const gobject::GValue, *mut gobject::GValue, gpointer) -> gboolean>;
pub type GstIteratorForeachFunction = Option<unsafe extern "C" fn(*const gobject::GValue, gpointer)>;
pub type GstIteratorFreeFunction = Option<unsafe extern "C" fn(*mut GstIterator)>;
pub type GstIteratorItemFunction = Option<unsafe extern "C" fn(*mut GstIterator, *const gobject::GValue) -> GstIteratorItem>;
pub type GstIteratorNextFunction = Option<unsafe extern "C" fn(*mut GstIterator, *mut gobject::GValue) -> GstIteratorResult>;
pub type GstIteratorResyncFunction = Option<unsafe extern "C" fn(*mut GstIterator)>;
pub type GstLogFunction = Option<unsafe extern "C" fn(*mut GstDebugCategory, GstDebugLevel, *const c_char, *const c_char, c_int, *mut gobject::GObject, *mut GstDebugMessage, gpointer)>;
pub type GstMemoryCopyFunction = Option<unsafe extern "C" fn(*mut GstMemory, ssize_t, ssize_t) -> *mut GstMemory>;
pub type GstMemoryIsSpanFunction = Option<unsafe extern "C" fn(*mut GstMemory, *mut GstMemory, *mut size_t) -> gboolean>;
pub type GstMemoryMapFullFunction = Option<unsafe extern "C" fn(*mut GstMemory, *mut GstMapInfo, size_t) -> gpointer>;
pub type GstMemoryMapFunction = Option<unsafe extern "C" fn(*mut GstMemory, size_t, GstMapFlags) -> gpointer>;
pub type GstMemoryShareFunction = Option<unsafe extern "C" fn(*mut GstMemory, ssize_t, ssize_t) -> *mut GstMemory>;
pub type GstMemoryUnmapFullFunction = Option<unsafe extern "C" fn(*mut GstMemory, *mut GstMapInfo)>;
pub type GstMemoryUnmapFunction = Option<unsafe extern "C" fn(*mut GstMemory)>;
pub type GstMetaFreeFunction = Option<unsafe extern "C" fn(*mut GstMeta, *mut GstBuffer)>;
pub type GstMetaInitFunction = Option<unsafe extern "C" fn(*mut GstMeta, gpointer, *mut GstBuffer) -> gboolean>;
pub type GstMetaTransformFunction = Option<unsafe extern "C" fn(*mut GstBuffer, *mut GstMeta, *mut GstBuffer, glib::GQuark, gpointer) -> gboolean>;
pub type GstMiniObjectCopyFunction = Option<unsafe extern "C" fn(*const GstMiniObject) -> *mut GstMiniObject>;
pub type GstMiniObjectDisposeFunction = Option<unsafe extern "C" fn(*mut GstMiniObject) -> gboolean>;
pub type GstMiniObjectFreeFunction = Option<unsafe extern "C" fn(*mut GstMiniObject)>;
pub type GstMiniObjectNotify = Option<unsafe extern "C" fn(gpointer, *mut GstMiniObject)>;
pub type GstPadActivateFunction = Option<unsafe extern "C" fn(*mut GstPad, *mut GstObject) -> gboolean>;
pub type GstPadActivateModeFunction = Option<unsafe extern "C" fn(*mut GstPad, *mut GstObject, GstPadMode, gboolean) -> gboolean>;
pub type GstPadChainFunction = Option<unsafe extern "C" fn(*mut GstPad, *mut GstObject, *mut GstBuffer) -> GstFlowReturn>;
pub type GstPadChainListFunction = Option<unsafe extern "C" fn(*mut GstPad, *mut GstObject, *mut GstBufferList) -> GstFlowReturn>;
pub type GstPadEventFullFunction = Option<unsafe extern "C" fn(*mut GstPad, *mut GstObject, *mut GstEvent) -> GstFlowReturn>;
pub type GstPadEventFunction = Option<unsafe extern "C" fn(*mut GstPad, *mut GstObject, *mut GstEvent) -> gboolean>;
pub type GstPadForwardFunction = Option<unsafe extern "C" fn(*mut GstPad, gpointer) -> gboolean>;
pub type GstPadGetRangeFunction = Option<unsafe extern "C" fn(*mut GstPad, *mut GstObject, u64, c_uint, *mut *mut GstBuffer) -> GstFlowReturn>;
pub type GstPadIterIntLinkFunction = Option<unsafe extern "C" fn(*mut GstPad, *mut GstObject) -> *mut GstIterator>;
pub type GstPadLinkFunction = Option<unsafe extern "C" fn(*mut GstPad, *mut GstObject, *mut GstPad) -> GstPadLinkReturn>;
pub type GstPadProbeCallback = Option<unsafe extern "C" fn(*mut GstPad, *mut GstPadProbeInfo, gpointer) -> GstPadProbeReturn>;
pub type GstPadQueryFunction = Option<unsafe extern "C" fn(*mut GstPad, *mut GstObject, *mut GstQuery) -> gboolean>;
pub type GstPadStickyEventsForeachFunction = Option<unsafe extern "C" fn(*mut GstPad, *mut *mut GstEvent, gpointer) -> gboolean>;
pub type GstPadUnlinkFunction = Option<unsafe extern "C" fn(*mut GstPad, *mut GstObject)>;
pub type GstPluginFeatureFilter = Option<unsafe extern "C" fn(*mut GstPluginFeature, gpointer) -> gboolean>;
pub type GstPluginFilter = Option<unsafe extern "C" fn(*mut GstPlugin, gpointer) -> gboolean>;
pub type GstPluginInitFullFunc = Option<unsafe extern "C" fn(*mut GstPlugin, gpointer) -> gboolean>;
pub type GstPluginInitFunc = Option<unsafe extern "C" fn(*mut GstPlugin) -> gboolean>;
pub type GstStructureFilterMapFunc = Option<unsafe extern "C" fn(glib::GQuark, *mut gobject::GValue, gpointer) -> gboolean>;
pub type GstStructureForeachFunc = Option<unsafe extern "C" fn(glib::GQuark, *const gobject::GValue, gpointer) -> gboolean>;
pub type GstStructureMapFunc = Option<unsafe extern "C" fn(glib::GQuark, *mut gobject::GValue, gpointer) -> gboolean>;
pub type GstTagForeachFunc = Option<unsafe extern "C" fn(*const GstTagList, *const c_char, gpointer)>;
pub type GstTagMergeFunc = Option<unsafe extern "C" fn(*mut gobject::GValue, *const gobject::GValue)>;
pub type GstTaskFunction = Option<unsafe extern "C" fn(gpointer)>;
pub type GstTaskPoolFunction = Option<unsafe extern "C" fn(*mut c_void)>;
pub type GstTaskThreadFunc = Option<unsafe extern "C" fn(*mut GstTask, *mut glib::GThread, gpointer)>;
pub type GstTypeFindFunction = Option<unsafe extern "C" fn(*mut GstTypeFind, gpointer)>;
pub type GstValueCompareFunc = Option<unsafe extern "C" fn(*const gobject::GValue, *const gobject::GValue) -> c_int>;
pub type GstValueDeserializeFunc = Option<unsafe extern "C" fn(*mut gobject::GValue, *const c_char) -> gboolean>;
pub type GstValueSerializeFunc = Option<unsafe extern "C" fn(*const gobject::GValue) -> *mut c_char>;

// Records
#[repr(C)]
pub struct GstAllocationParams {
    pub flags: GstMemoryFlags,
    pub align: size_t,
    pub prefix: size_t,
    pub padding: size_t,
1543
    pub _gst_reserved: [gpointer; 4],
Sebastian Dröge's avatar
Sebastian Dröge committed
1544 1545 1546 1547 1548 1549 1550
}

#[repr(C)]
pub struct GstAllocatorClass {
    pub object_class: GstObjectClass,
    pub alloc: Option<unsafe extern "C" fn(*mut GstAllocator, size_t, *mut GstAllocationParams) -> *mut GstMemory>,
    pub free: Option<unsafe extern "C" fn(*mut GstAllocator, *mut GstMemory)>,
1551
    pub _gst_reserved: [gpointer; 4],
Sebastian Dröge's avatar
Sebastian Dröge committed
1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562
}

#[repr(C)]
pub struct GstAllocatorPrivate(c_void);

#[repr(C)]
pub struct GstAtomicQueue(c_void);

#[repr(C)]
pub struct GstBinClass {
    pub parent_class: GstElementClass,
1563
    pub pool: *mut glib::GThreadPool,
Sebastian Dröge's avatar
Sebastian Dröge committed
1564 1565 1566 1567 1568 1569 1570 1571
    pub element_added: Option<unsafe extern "C" fn(*mut GstBin, *mut GstElement)>,
    pub element_removed: Option<unsafe extern "C" fn(*mut GstBin, *mut GstElement)>,
    pub add_element: Option<unsafe extern "C" fn(*mut GstBin, *mut GstElement) -> gboolean>,
    pub remove_element: Option<unsafe extern "C" fn(*mut GstBin, *mut GstElement) -> gboolean>,
    pub handle_message: Option<unsafe extern "C" fn(*mut GstBin, *mut GstMessage)>,
    pub do_latency: Option<unsafe extern "C" fn(*mut GstBin) -> gboolean>,
    pub deep_element_added: Option<unsafe extern "C" fn(*mut GstBin, *mut GstBin, *mut GstElement)>,
    pub deep_element_removed: Option<unsafe extern "C" fn(*mut GstBin, *mut GstBin, *mut GstElement)>,
1572
    pub _gst_reserved: [gpointer; 2],
Sebastian Dröge's avatar
Sebastian Dröge committed
1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597
}

#[repr(C)]
pub struct GstBinPrivate(c_void);

#[repr(C)]
pub struct GstBuffer {
    pub mini_object: GstMiniObject,
    pub pool: *mut GstBufferPool,
    pub pts: GstClockTime,
    pub dts: GstClockTime,
    pub duration: GstClockTime,
    pub offset: u64,
    pub offset_end: u64,
}

#[repr(C)]
pub struct GstBufferList(c_void);

#[repr(C)]
pub struct GstBufferPoolAcquireParams {
    pub format: GstFormat,
    pub start: i64,
    pub stop: i64,
    pub flags: GstBufferPoolAcquireFlags,
1598
    pub _gst_reserved: [gpointer; 4],
Sebastian Dröge's avatar
Sebastian Dröge committed
1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614
}

#[repr(C)]
pub struct GstBufferPoolClass {
    pub object_class: GstObjectClass,
    pub get_options: Option<unsafe extern "C" fn(*mut GstBufferPool) -> *mut *mut c_char>,
    pub set_config: Option<unsafe extern "C" fn(*mut GstBufferPool, *mut GstStructure) -> gboolean>,
    pub start: Option<unsafe extern "C" fn(*mut GstBufferPool) -> gboolean>,
    pub stop: Option<unsafe extern "C" fn(*mut GstBufferPool) -> gboolean>,
    pub acquire_buffer: Option<unsafe extern "C" fn(*mut GstBufferPool, *mut *mut GstBuffer, *mut GstBufferPoolAcquireParams) -> GstFlowReturn>,
    pub alloc_buffer: Option<unsafe extern "C" fn(*mut GstBufferPool, *mut *mut GstBuffer, *mut GstBufferPoolAcquireParams) -> GstFlowReturn>,
    pub reset_buffer: Option<unsafe extern "C" fn(*mut GstBufferPool, *mut GstBuffer)>,
    pub release_buffer: Option<unsafe extern "C" fn(*mut GstBufferPool, *mut GstBuffer)>,
    pub free_buffer: Option<unsafe extern "C" fn(*mut GstBufferPool, *mut GstBuffer)>,
    pub flush_start: Option<unsafe extern "C" fn(*mut GstBufferPool)>,
    pub flush_stop: Option<unsafe extern "C" fn(*mut GstBufferPool)>,
1615
    pub _gst_reserved: [gpointer; 2],
Sebastian Dröge's avatar
Sebastian Dröge committed
1616 1617 1618 1619 1620 1621 1622 1623 1624 1625
}

#[repr(C)]
pub struct GstBufferPoolPrivate(c_void);

#[repr(C)]
pub struct GstBusClass {
    pub parent_class: GstObjectClass,
    pub message: Option<unsafe extern "C" fn(*mut GstBus, *mut GstMessage)>,
    pub sync_message: Option<unsafe extern "C" fn(*mut GstBus, *mut GstMessage)>,
1626
    pub _gst_reserved: [gpointer; 4],
Sebastian Dröge's avatar
Sebastian Dröge committed
1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647
}

#[repr(C)]
pub struct GstBusPrivate(c_void);

#[repr(C)]
pub struct GstCaps {
    pub mini_object: GstMiniObject,
}

#[repr(C)]
pub struct GstCapsFeatures(c_void);

#[repr(C)]
pub struct GstChildProxyInterface {
    pub parent: gobject::GTypeInterface,
    pub get_child_by_name: Option<unsafe extern "C" fn(*mut GstChildProxy, *const c_char) -> *mut gobject::GObject>,
    pub get_child_by_index: Option<unsafe extern "C" fn(*mut GstChildProxy, c_uint) -> *mut gobject::GObject>,
    pub get_children_count: Option<unsafe extern "C" fn(*mut GstChildProxy) -> c_uint>,
    pub child_added: Option<unsafe extern "C" fn(*mut GstChildProxy, *mut gobject::GObject, *const c_char)>,
    pub child_removed: Option<unsafe extern "C" fn(*mut GstChildProxy, *mut gobject::GObject, *const c_char)>,
1648
    pub _gst_reserved: [gpointer; 4],
Sebastian Dröge's avatar
Sebastian Dröge committed
1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659
}

#[repr(C)]
pub struct GstClockClass {
    pub parent_class: GstObjectClass,
    pub change_resolution: Option<unsafe extern "C" fn(*mut GstClock, GstClockTime, GstClockTime) -> GstClockTime>,
    pub get_resolution: Option<unsafe extern "C" fn(*mut GstClock) -> GstClockTime>,
    pub get_internal_time: Option<unsafe extern "C" fn(*mut GstClock) -> GstClockTime>,
    pub wait: Option<unsafe extern "C" fn(*mut GstClock, *mut GstClockEntry, *mut GstClockTimeDiff) -> GstClockReturn>,
    pub wait_async: Option<unsafe extern "C" fn(*mut GstClock, *mut GstClockEntry) -> GstClockReturn>,
    pub unschedule: Option<unsafe extern "C" fn(*mut GstClock, *mut GstClockEntry)>,
1660
    pub _gst_reserved: [gpointer; 4],
Sebastian Dröge's avatar
Sebastian Dröge committed
1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675
}

#[repr(C)]
pub struct GstClockEntry {
    pub refcount: c_int,
    pub clock: *mut GstClock,
    pub type_: GstClockEntryType,
    pub time: GstClockTime,
    pub interval: GstClockTime,
    pub status: GstClockReturn,
    pub func: GstClockCallback,
    pub user_data: gpointer,
    pub destroy_data: glib::GDestroyNotify,
    pub unscheduled: gboolean,
    pub woken_up: gboolean,
1676
    pub _gst_reserved: [gpointer; 4],
Sebastian Dröge's avatar
Sebastian Dröge committed
1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691
}

#[repr(C)]
pub struct GstClockPrivate(c_void);

#[repr(C)]
pub struct GstContext(c_void);

#[repr(C)]
pub struct GstControlBindingClass {
    pub parent_class: GstObjectClass,
    pub sync_values: Option<unsafe extern "C" fn(*mut GstControlBinding, *mut GstObject, GstClockTime, GstClockTime) -> gboolean>,
    pub get_value: Option<unsafe extern "C" fn(*mut GstControlBinding, GstClockTime) -> *mut gobject::GValue>,
    pub get_value_array: Option<unsafe extern "C" fn(*mut GstControlBinding, GstClockTime, GstClockTime, c_uint, gpointer) -> gboolean>,
    pub get_g_value_array: Option<unsafe extern "C" fn(*mut GstControlBinding, GstClockTime, GstClockTime, c_uint, *mut gobject::GValue) -> gboolean>,
1692
    pub _gst_reserved: [gpointer; 4],
Sebastian Dröge's avatar
Sebastian Dröge committed
1693 1694 1695 1696 1697 1698 1699 1700
}

#[repr(C)]
pub struct GstControlBindingPrivate(c_void);

#[repr(C)]
pub struct GstControlSourceClass {
    pub parent_class: GstObjectClass,
1701
    pub _gst_reserved: [gpointer; 4],
Sebastian Dröge's avatar
Sebastian Dröge committed
1702 1703 1704 1705 1706 1707 1708
}

#[repr(C)]
pub struct GstDateTime(c_void);

#[repr(C)]
pub struct GstDebugCategory {
1709 1710 1711 1712
    pub threshold: c_int,
    pub color: c_uint,
    pub name: *const c_char,
    pub description: *const c_char,
Sebastian Dröge's avatar
Sebastian Dröge committed
1713 1714 1715 1716 1717 1718 1719 1720 1721 1722
}

#[repr(C)]
pub struct GstDebugMessage