1 // This file was generated by gir (https://github.com/gtk-rs/gir @ d1e88f9) 2 // from gir-files (https://github.com/gtk-rs/gir-files @ 63dd366) 3 // DO NOT EDIT 4 5 #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] 6 #![allow( 7 clippy::approx_constant, 8 clippy::type_complexity, 9 clippy::unreadable_literal 10 )] 11 12 extern crate glib_sys as glib; 13 extern crate gobject_sys as gobject; 14 extern crate libc; 15 16 #[allow(unused_imports)] 17 use libc::{ 18 c_char, c_double, c_float, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void, 19 intptr_t, size_t, ssize_t, time_t, uintptr_t, FILE, 20 }; 21 22 #[allow(unused_imports)] 23 use glib::{gboolean, gconstpointer, gpointer, GType}; 24 25 // Aliases 26 pub type GstClockID = gpointer; 27 pub type GstClockTime = u64; 28 pub type GstClockTimeDiff = i64; 29 pub type GstElementFactoryListType = u64; 30 31 // Enums 32 pub type GstBufferingMode = c_int; 33 pub const GST_BUFFERING_STREAM: GstBufferingMode = 0; 34 pub const GST_BUFFERING_DOWNLOAD: GstBufferingMode = 1; 35 pub const GST_BUFFERING_TIMESHIFT: GstBufferingMode = 2; 36 pub const GST_BUFFERING_LIVE: GstBufferingMode = 3; 37 38 pub type GstBusSyncReply = c_int; 39 pub const GST_BUS_DROP: GstBusSyncReply = 0; 40 pub const GST_BUS_PASS: GstBusSyncReply = 1; 41 pub const GST_BUS_ASYNC: GstBusSyncReply = 2; 42 43 pub type GstCapsIntersectMode = c_int; 44 pub const GST_CAPS_INTERSECT_ZIG_ZAG: GstCapsIntersectMode = 0; 45 pub const GST_CAPS_INTERSECT_FIRST: GstCapsIntersectMode = 1; 46 47 pub type GstClockEntryType = c_int; 48 pub const GST_CLOCK_ENTRY_SINGLE: GstClockEntryType = 0; 49 pub const GST_CLOCK_ENTRY_PERIODIC: GstClockEntryType = 1; 50 51 pub type GstClockReturn = c_int; 52 pub const GST_CLOCK_OK: GstClockReturn = 0; 53 pub const GST_CLOCK_EARLY: GstClockReturn = 1; 54 pub const GST_CLOCK_UNSCHEDULED: GstClockReturn = 2; 55 pub const GST_CLOCK_BUSY: GstClockReturn = 3; 56 pub const GST_CLOCK_BADTIME: GstClockReturn = 4; 57 pub const GST_CLOCK_ERROR: GstClockReturn = 5; 58 pub const GST_CLOCK_UNSUPPORTED: GstClockReturn = 6; 59 pub const GST_CLOCK_DONE: GstClockReturn = 7; 60 61 pub type GstClockType = c_int; 62 pub const GST_CLOCK_TYPE_REALTIME: GstClockType = 0; 63 pub const GST_CLOCK_TYPE_MONOTONIC: GstClockType = 1; 64 pub const GST_CLOCK_TYPE_OTHER: GstClockType = 2; 65 66 pub type GstCoreError = c_int; 67 pub const GST_CORE_ERROR_FAILED: GstCoreError = 1; 68 pub const GST_CORE_ERROR_TOO_LAZY: GstCoreError = 2; 69 pub const GST_CORE_ERROR_NOT_IMPLEMENTED: GstCoreError = 3; 70 pub const GST_CORE_ERROR_STATE_CHANGE: GstCoreError = 4; 71 pub const GST_CORE_ERROR_PAD: GstCoreError = 5; 72 pub const GST_CORE_ERROR_THREAD: GstCoreError = 6; 73 pub const GST_CORE_ERROR_NEGOTIATION: GstCoreError = 7; 74 pub const GST_CORE_ERROR_EVENT: GstCoreError = 8; 75 pub const GST_CORE_ERROR_SEEK: GstCoreError = 9; 76 pub const GST_CORE_ERROR_CAPS: GstCoreError = 10; 77 pub const GST_CORE_ERROR_TAG: GstCoreError = 11; 78 pub const GST_CORE_ERROR_MISSING_PLUGIN: GstCoreError = 12; 79 pub const GST_CORE_ERROR_CLOCK: GstCoreError = 13; 80 pub const GST_CORE_ERROR_DISABLED: GstCoreError = 14; 81 pub const GST_CORE_ERROR_NUM_ERRORS: GstCoreError = 15; 82 83 pub type GstDebugColorMode = c_int; 84 pub const GST_DEBUG_COLOR_MODE_OFF: GstDebugColorMode = 0; 85 pub const GST_DEBUG_COLOR_MODE_ON: GstDebugColorMode = 1; 86 pub const GST_DEBUG_COLOR_MODE_UNIX: GstDebugColorMode = 2; 87 88 pub type GstDebugLevel = c_int; 89 pub const GST_LEVEL_NONE: GstDebugLevel = 0; 90 pub const GST_LEVEL_ERROR: GstDebugLevel = 1; 91 pub const GST_LEVEL_WARNING: GstDebugLevel = 2; 92 pub const GST_LEVEL_FIXME: GstDebugLevel = 3; 93 pub const GST_LEVEL_INFO: GstDebugLevel = 4; 94 pub const GST_LEVEL_DEBUG: GstDebugLevel = 5; 95 pub const GST_LEVEL_LOG: GstDebugLevel = 6; 96 pub const GST_LEVEL_TRACE: GstDebugLevel = 7; 97 pub const GST_LEVEL_MEMDUMP: GstDebugLevel = 9; 98 pub const GST_LEVEL_COUNT: GstDebugLevel = 10; 99 100 pub type GstEventType = c_int; 101 pub const GST_EVENT_UNKNOWN: GstEventType = 0; 102 pub const GST_EVENT_FLUSH_START: GstEventType = 2563; 103 pub const GST_EVENT_FLUSH_STOP: GstEventType = 5127; 104 pub const GST_EVENT_STREAM_START: GstEventType = 10254; 105 pub const GST_EVENT_CAPS: GstEventType = 12814; 106 pub const GST_EVENT_SEGMENT: GstEventType = 17934; 107 pub const GST_EVENT_STREAM_COLLECTION: GstEventType = 19230; 108 pub const GST_EVENT_TAG: GstEventType = 20510; 109 pub const GST_EVENT_BUFFERSIZE: GstEventType = 23054; 110 pub const GST_EVENT_SINK_MESSAGE: GstEventType = 25630; 111 pub const GST_EVENT_STREAM_GROUP_DONE: GstEventType = 26894; 112 pub const GST_EVENT_EOS: GstEventType = 28174; 113 pub const GST_EVENT_TOC: GstEventType = 30750; 114 pub const GST_EVENT_PROTECTION: GstEventType = 33310; 115 pub const GST_EVENT_SEGMENT_DONE: GstEventType = 38406; 116 pub const GST_EVENT_GAP: GstEventType = 40966; 117 pub const GST_EVENT_QOS: GstEventType = 48641; 118 pub const GST_EVENT_SEEK: GstEventType = 51201; 119 pub const GST_EVENT_NAVIGATION: GstEventType = 53761; 120 pub const GST_EVENT_LATENCY: GstEventType = 56321; 121 pub const GST_EVENT_STEP: GstEventType = 58881; 122 pub const GST_EVENT_RECONFIGURE: GstEventType = 61441; 123 pub const GST_EVENT_TOC_SELECT: GstEventType = 64001; 124 pub const GST_EVENT_SELECT_STREAMS: GstEventType = 66561; 125 pub const GST_EVENT_CUSTOM_UPSTREAM: GstEventType = 69121; 126 pub const GST_EVENT_CUSTOM_DOWNSTREAM: GstEventType = 71686; 127 pub const GST_EVENT_CUSTOM_DOWNSTREAM_OOB: GstEventType = 74242; 128 pub const GST_EVENT_CUSTOM_DOWNSTREAM_STICKY: GstEventType = 76830; 129 pub const GST_EVENT_CUSTOM_BOTH: GstEventType = 79367; 130 pub const GST_EVENT_CUSTOM_BOTH_OOB: GstEventType = 81923; 131 132 pub type GstFlowReturn = c_int; 133 pub const GST_FLOW_CUSTOM_SUCCESS_2: GstFlowReturn = 102; 134 pub const GST_FLOW_CUSTOM_SUCCESS_1: GstFlowReturn = 101; 135 pub const GST_FLOW_CUSTOM_SUCCESS: GstFlowReturn = 100; 136 pub const GST_FLOW_OK: GstFlowReturn = 0; 137 pub const GST_FLOW_NOT_LINKED: GstFlowReturn = -1; 138 pub const GST_FLOW_FLUSHING: GstFlowReturn = -2; 139 pub const GST_FLOW_EOS: GstFlowReturn = -3; 140 pub const GST_FLOW_NOT_NEGOTIATED: GstFlowReturn = -4; 141 pub const GST_FLOW_ERROR: GstFlowReturn = -5; 142 pub const GST_FLOW_NOT_SUPPORTED: GstFlowReturn = -6; 143 pub const GST_FLOW_CUSTOM_ERROR: GstFlowReturn = -100; 144 pub const GST_FLOW_CUSTOM_ERROR_1: GstFlowReturn = -101; 145 pub const GST_FLOW_CUSTOM_ERROR_2: GstFlowReturn = -102; 146 147 pub type GstFormat = c_int; 148 pub const GST_FORMAT_UNDEFINED: GstFormat = 0; 149 pub const GST_FORMAT_DEFAULT: GstFormat = 1; 150 pub const GST_FORMAT_BYTES: GstFormat = 2; 151 pub const GST_FORMAT_TIME: GstFormat = 3; 152 pub const GST_FORMAT_BUFFERS: GstFormat = 4; 153 pub const GST_FORMAT_PERCENT: GstFormat = 5; 154 155 pub type GstIteratorItem = c_int; 156 pub const GST_ITERATOR_ITEM_SKIP: GstIteratorItem = 0; 157 pub const GST_ITERATOR_ITEM_PASS: GstIteratorItem = 1; 158 pub const GST_ITERATOR_ITEM_END: GstIteratorItem = 2; 159 160 pub type GstIteratorResult = c_int; 161 pub const GST_ITERATOR_DONE: GstIteratorResult = 0; 162 pub const GST_ITERATOR_OK: GstIteratorResult = 1; 163 pub const GST_ITERATOR_RESYNC: GstIteratorResult = 2; 164 pub const GST_ITERATOR_ERROR: GstIteratorResult = 3; 165 166 pub type GstLibraryError = c_int; 167 pub const GST_LIBRARY_ERROR_FAILED: GstLibraryError = 1; 168 pub const GST_LIBRARY_ERROR_TOO_LAZY: GstLibraryError = 2; 169 pub const GST_LIBRARY_ERROR_INIT: GstLibraryError = 3; 170 pub const GST_LIBRARY_ERROR_SHUTDOWN: GstLibraryError = 4; 171 pub const GST_LIBRARY_ERROR_SETTINGS: GstLibraryError = 5; 172 pub const GST_LIBRARY_ERROR_ENCODE: GstLibraryError = 6; 173 pub const GST_LIBRARY_ERROR_NUM_ERRORS: GstLibraryError = 7; 174 175 pub type GstPadDirection = c_int; 176 pub const GST_PAD_UNKNOWN: GstPadDirection = 0; 177 pub const GST_PAD_SRC: GstPadDirection = 1; 178 pub const GST_PAD_SINK: GstPadDirection = 2; 179 180 pub type GstPadLinkReturn = c_int; 181 pub const GST_PAD_LINK_OK: GstPadLinkReturn = 0; 182 pub const GST_PAD_LINK_WRONG_HIERARCHY: GstPadLinkReturn = -1; 183 pub const GST_PAD_LINK_WAS_LINKED: GstPadLinkReturn = -2; 184 pub const GST_PAD_LINK_WRONG_DIRECTION: GstPadLinkReturn = -3; 185 pub const GST_PAD_LINK_NOFORMAT: GstPadLinkReturn = -4; 186 pub const GST_PAD_LINK_NOSCHED: GstPadLinkReturn = -5; 187 pub const GST_PAD_LINK_REFUSED: GstPadLinkReturn = -6; 188 189 pub type GstPadMode = c_int; 190 pub const GST_PAD_MODE_NONE: GstPadMode = 0; 191 pub const GST_PAD_MODE_PUSH: GstPadMode = 1; 192 pub const GST_PAD_MODE_PULL: GstPadMode = 2; 193 194 pub type GstPadPresence = c_int; 195 pub const GST_PAD_ALWAYS: GstPadPresence = 0; 196 pub const GST_PAD_SOMETIMES: GstPadPresence = 1; 197 pub const GST_PAD_REQUEST: GstPadPresence = 2; 198 199 pub type GstPadProbeReturn = c_int; 200 pub const GST_PAD_PROBE_DROP: GstPadProbeReturn = 0; 201 pub const GST_PAD_PROBE_OK: GstPadProbeReturn = 1; 202 pub const GST_PAD_PROBE_REMOVE: GstPadProbeReturn = 2; 203 pub const GST_PAD_PROBE_PASS: GstPadProbeReturn = 3; 204 pub const GST_PAD_PROBE_HANDLED: GstPadProbeReturn = 4; 205 206 pub type GstParseError = c_int; 207 pub const GST_PARSE_ERROR_SYNTAX: GstParseError = 0; 208 pub const GST_PARSE_ERROR_NO_SUCH_ELEMENT: GstParseError = 1; 209 pub const GST_PARSE_ERROR_NO_SUCH_PROPERTY: GstParseError = 2; 210 pub const GST_PARSE_ERROR_LINK: GstParseError = 3; 211 pub const GST_PARSE_ERROR_COULD_NOT_SET_PROPERTY: GstParseError = 4; 212 pub const GST_PARSE_ERROR_EMPTY_BIN: GstParseError = 5; 213 pub const GST_PARSE_ERROR_EMPTY: GstParseError = 6; 214 pub const GST_PARSE_ERROR_DELAYED_LINK: GstParseError = 7; 215 216 pub type GstPluginError = c_int; 217 pub const GST_PLUGIN_ERROR_MODULE: GstPluginError = 0; 218 pub const GST_PLUGIN_ERROR_DEPENDENCIES: GstPluginError = 1; 219 pub const GST_PLUGIN_ERROR_NAME_MISMATCH: GstPluginError = 2; 220 221 pub type GstProgressType = c_int; 222 pub const GST_PROGRESS_TYPE_START: GstProgressType = 0; 223 pub const GST_PROGRESS_TYPE_CONTINUE: GstProgressType = 1; 224 pub const GST_PROGRESS_TYPE_COMPLETE: GstProgressType = 2; 225 pub const GST_PROGRESS_TYPE_CANCELED: GstProgressType = 3; 226 pub const GST_PROGRESS_TYPE_ERROR: GstProgressType = 4; 227 228 pub type GstPromiseResult = c_int; 229 pub const GST_PROMISE_RESULT_PENDING: GstPromiseResult = 0; 230 pub const GST_PROMISE_RESULT_INTERRUPTED: GstPromiseResult = 1; 231 pub const GST_PROMISE_RESULT_REPLIED: GstPromiseResult = 2; 232 pub const GST_PROMISE_RESULT_EXPIRED: GstPromiseResult = 3; 233 234 pub type GstQOSType = c_int; 235 pub const GST_QOS_TYPE_OVERFLOW: GstQOSType = 0; 236 pub const GST_QOS_TYPE_UNDERFLOW: GstQOSType = 1; 237 pub const GST_QOS_TYPE_THROTTLE: GstQOSType = 2; 238 239 pub type GstQueryType = c_int; 240 pub const GST_QUERY_UNKNOWN: GstQueryType = 0; 241 pub const GST_QUERY_POSITION: GstQueryType = 2563; 242 pub const GST_QUERY_DURATION: GstQueryType = 5123; 243 pub const GST_QUERY_LATENCY: GstQueryType = 7683; 244 pub const GST_QUERY_JITTER: GstQueryType = 10243; 245 pub const GST_QUERY_RATE: GstQueryType = 12803; 246 pub const GST_QUERY_SEEKING: GstQueryType = 15363; 247 pub const GST_QUERY_SEGMENT: GstQueryType = 17923; 248 pub const GST_QUERY_CONVERT: GstQueryType = 20483; 249 pub const GST_QUERY_FORMATS: GstQueryType = 23043; 250 pub const GST_QUERY_BUFFERING: GstQueryType = 28163; 251 pub const GST_QUERY_CUSTOM: GstQueryType = 30723; 252 pub const GST_QUERY_URI: GstQueryType = 33283; 253 pub const GST_QUERY_ALLOCATION: GstQueryType = 35846; 254 pub const GST_QUERY_SCHEDULING: GstQueryType = 38401; 255 pub const GST_QUERY_ACCEPT_CAPS: GstQueryType = 40963; 256 pub const GST_QUERY_CAPS: GstQueryType = 43523; 257 pub const GST_QUERY_DRAIN: GstQueryType = 46086; 258 pub const GST_QUERY_CONTEXT: GstQueryType = 48643; 259 pub const GST_QUERY_BITRATE: GstQueryType = 51202; 260 261 pub type GstRank = c_int; 262 pub const GST_RANK_NONE: GstRank = 0; 263 pub const GST_RANK_MARGINAL: GstRank = 64; 264 pub const GST_RANK_SECONDARY: GstRank = 128; 265 pub const GST_RANK_PRIMARY: GstRank = 256; 266 267 pub type GstResourceError = c_int; 268 pub const GST_RESOURCE_ERROR_FAILED: GstResourceError = 1; 269 pub const GST_RESOURCE_ERROR_TOO_LAZY: GstResourceError = 2; 270 pub const GST_RESOURCE_ERROR_NOT_FOUND: GstResourceError = 3; 271 pub const GST_RESOURCE_ERROR_BUSY: GstResourceError = 4; 272 pub const GST_RESOURCE_ERROR_OPEN_READ: GstResourceError = 5; 273 pub const GST_RESOURCE_ERROR_OPEN_WRITE: GstResourceError = 6; 274 pub const GST_RESOURCE_ERROR_OPEN_READ_WRITE: GstResourceError = 7; 275 pub const GST_RESOURCE_ERROR_CLOSE: GstResourceError = 8; 276 pub const GST_RESOURCE_ERROR_READ: GstResourceError = 9; 277 pub const GST_RESOURCE_ERROR_WRITE: GstResourceError = 10; 278 pub const GST_RESOURCE_ERROR_SEEK: GstResourceError = 11; 279 pub const GST_RESOURCE_ERROR_SYNC: GstResourceError = 12; 280 pub const GST_RESOURCE_ERROR_SETTINGS: GstResourceError = 13; 281 pub const GST_RESOURCE_ERROR_NO_SPACE_LEFT: GstResourceError = 14; 282 pub const GST_RESOURCE_ERROR_NOT_AUTHORIZED: GstResourceError = 15; 283 pub const GST_RESOURCE_ERROR_NUM_ERRORS: GstResourceError = 16; 284 285 pub type GstSearchMode = c_int; 286 pub const GST_SEARCH_MODE_EXACT: GstSearchMode = 0; 287 pub const GST_SEARCH_MODE_BEFORE: GstSearchMode = 1; 288 pub const GST_SEARCH_MODE_AFTER: GstSearchMode = 2; 289 290 pub type GstSeekType = c_int; 291 pub const GST_SEEK_TYPE_NONE: GstSeekType = 0; 292 pub const GST_SEEK_TYPE_SET: GstSeekType = 1; 293 pub const GST_SEEK_TYPE_END: GstSeekType = 2; 294 295 pub type GstState = c_int; 296 pub const GST_STATE_VOID_PENDING: GstState = 0; 297 pub const GST_STATE_NULL: GstState = 1; 298 pub const GST_STATE_READY: GstState = 2; 299 pub const GST_STATE_PAUSED: GstState = 3; 300 pub const GST_STATE_PLAYING: GstState = 4; 301 302 pub type GstStateChange = c_int; 303 pub const GST_STATE_CHANGE_NULL_TO_READY: GstStateChange = 10; 304 pub const GST_STATE_CHANGE_READY_TO_PAUSED: GstStateChange = 19; 305 pub const GST_STATE_CHANGE_PAUSED_TO_PLAYING: GstStateChange = 28; 306 pub const GST_STATE_CHANGE_PLAYING_TO_PAUSED: GstStateChange = 35; 307 pub const GST_STATE_CHANGE_PAUSED_TO_READY: GstStateChange = 26; 308 pub const GST_STATE_CHANGE_READY_TO_NULL: GstStateChange = 17; 309 pub const GST_STATE_CHANGE_NULL_TO_NULL: GstStateChange = 9; 310 pub const GST_STATE_CHANGE_READY_TO_READY: GstStateChange = 18; 311 pub const GST_STATE_CHANGE_PAUSED_TO_PAUSED: GstStateChange = 27; 312 pub const GST_STATE_CHANGE_PLAYING_TO_PLAYING: GstStateChange = 36; 313 314 pub type GstStateChangeReturn = c_int; 315 pub const GST_STATE_CHANGE_FAILURE: GstStateChangeReturn = 0; 316 pub const GST_STATE_CHANGE_SUCCESS: GstStateChangeReturn = 1; 317 pub const GST_STATE_CHANGE_ASYNC: GstStateChangeReturn = 2; 318 pub const GST_STATE_CHANGE_NO_PREROLL: GstStateChangeReturn = 3; 319 320 pub type GstStreamError = c_int; 321 pub const GST_STREAM_ERROR_FAILED: GstStreamError = 1; 322 pub const GST_STREAM_ERROR_TOO_LAZY: GstStreamError = 2; 323 pub const GST_STREAM_ERROR_NOT_IMPLEMENTED: GstStreamError = 3; 324 pub const GST_STREAM_ERROR_TYPE_NOT_FOUND: GstStreamError = 4; 325 pub const GST_STREAM_ERROR_WRONG_TYPE: GstStreamError = 5; 326 pub const GST_STREAM_ERROR_CODEC_NOT_FOUND: GstStreamError = 6; 327 pub const GST_STREAM_ERROR_DECODE: GstStreamError = 7; 328 pub const GST_STREAM_ERROR_ENCODE: GstStreamError = 8; 329 pub const GST_STREAM_ERROR_DEMUX: GstStreamError = 9; 330 pub const GST_STREAM_ERROR_MUX: GstStreamError = 10; 331 pub const GST_STREAM_ERROR_FORMAT: GstStreamError = 11; 332 pub const GST_STREAM_ERROR_DECRYPT: GstStreamError = 12; 333 pub const GST_STREAM_ERROR_DECRYPT_NOKEY: GstStreamError = 13; 334 pub const GST_STREAM_ERROR_NUM_ERRORS: GstStreamError = 14; 335 336 pub type GstStreamStatusType = c_int; 337 pub const GST_STREAM_STATUS_TYPE_CREATE: GstStreamStatusType = 0; 338 pub const GST_STREAM_STATUS_TYPE_ENTER: GstStreamStatusType = 1; 339 pub const GST_STREAM_STATUS_TYPE_LEAVE: GstStreamStatusType = 2; 340 pub const GST_STREAM_STATUS_TYPE_DESTROY: GstStreamStatusType = 3; 341 pub const GST_STREAM_STATUS_TYPE_START: GstStreamStatusType = 8; 342 pub const GST_STREAM_STATUS_TYPE_PAUSE: GstStreamStatusType = 9; 343 pub const GST_STREAM_STATUS_TYPE_STOP: GstStreamStatusType = 10; 344 345 pub type GstStructureChangeType = c_int; 346 pub const GST_STRUCTURE_CHANGE_TYPE_PAD_LINK: GstStructureChangeType = 0; 347 pub const GST_STRUCTURE_CHANGE_TYPE_PAD_UNLINK: GstStructureChangeType = 1; 348 349 pub type GstTagFlag = c_int; 350 pub const GST_TAG_FLAG_UNDEFINED: GstTagFlag = 0; 351 pub const GST_TAG_FLAG_META: GstTagFlag = 1; 352 pub const GST_TAG_FLAG_ENCODED: GstTagFlag = 2; 353 pub const GST_TAG_FLAG_DECODED: GstTagFlag = 3; 354 pub const GST_TAG_FLAG_COUNT: GstTagFlag = 4; 355 356 pub type GstTagMergeMode = c_int; 357 pub const GST_TAG_MERGE_UNDEFINED: GstTagMergeMode = 0; 358 pub const GST_TAG_MERGE_REPLACE_ALL: GstTagMergeMode = 1; 359 pub const GST_TAG_MERGE_REPLACE: GstTagMergeMode = 2; 360 pub const GST_TAG_MERGE_APPEND: GstTagMergeMode = 3; 361 pub const GST_TAG_MERGE_PREPEND: GstTagMergeMode = 4; 362 pub const GST_TAG_MERGE_KEEP: GstTagMergeMode = 5; 363 pub const GST_TAG_MERGE_KEEP_ALL: GstTagMergeMode = 6; 364 pub const GST_TAG_MERGE_COUNT: GstTagMergeMode = 7; 365 366 pub type GstTagScope = c_int; 367 pub const GST_TAG_SCOPE_STREAM: GstTagScope = 0; 368 pub const GST_TAG_SCOPE_GLOBAL: GstTagScope = 1; 369 370 pub type GstTaskState = c_int; 371 pub const GST_TASK_STARTED: GstTaskState = 0; 372 pub const GST_TASK_STOPPED: GstTaskState = 1; 373 pub const GST_TASK_PAUSED: GstTaskState = 2; 374 375 pub type GstTocEntryType = c_int; 376 pub const GST_TOC_ENTRY_TYPE_ANGLE: GstTocEntryType = -3; 377 pub const GST_TOC_ENTRY_TYPE_VERSION: GstTocEntryType = -2; 378 pub const GST_TOC_ENTRY_TYPE_EDITION: GstTocEntryType = -1; 379 pub const GST_TOC_ENTRY_TYPE_INVALID: GstTocEntryType = 0; 380 pub const GST_TOC_ENTRY_TYPE_TITLE: GstTocEntryType = 1; 381 pub const GST_TOC_ENTRY_TYPE_TRACK: GstTocEntryType = 2; 382 pub const GST_TOC_ENTRY_TYPE_CHAPTER: GstTocEntryType = 3; 383 384 pub type GstTocLoopType = c_int; 385 pub const GST_TOC_LOOP_NONE: GstTocLoopType = 0; 386 pub const GST_TOC_LOOP_FORWARD: GstTocLoopType = 1; 387 pub const GST_TOC_LOOP_REVERSE: GstTocLoopType = 2; 388 pub const GST_TOC_LOOP_PING_PONG: GstTocLoopType = 3; 389 390 pub type GstTocScope = c_int; 391 pub const GST_TOC_SCOPE_GLOBAL: GstTocScope = 1; 392 pub const GST_TOC_SCOPE_CURRENT: GstTocScope = 2; 393 394 pub type GstTracerValueScope = c_int; 395 pub const GST_TRACER_VALUE_SCOPE_PROCESS: GstTracerValueScope = 0; 396 pub const GST_TRACER_VALUE_SCOPE_THREAD: GstTracerValueScope = 1; 397 pub const GST_TRACER_VALUE_SCOPE_ELEMENT: GstTracerValueScope = 2; 398 pub const GST_TRACER_VALUE_SCOPE_PAD: GstTracerValueScope = 3; 399 400 pub type GstTypeFindProbability = c_int; 401 pub const GST_TYPE_FIND_NONE: GstTypeFindProbability = 0; 402 pub const GST_TYPE_FIND_MINIMUM: GstTypeFindProbability = 1; 403 pub const GST_TYPE_FIND_POSSIBLE: GstTypeFindProbability = 50; 404 pub const GST_TYPE_FIND_LIKELY: GstTypeFindProbability = 80; 405 pub const GST_TYPE_FIND_NEARLY_CERTAIN: GstTypeFindProbability = 99; 406 pub const GST_TYPE_FIND_MAXIMUM: GstTypeFindProbability = 100; 407 408 pub type GstURIError = c_int; 409 pub const GST_URI_ERROR_UNSUPPORTED_PROTOCOL: GstURIError = 0; 410 pub const GST_URI_ERROR_BAD_URI: GstURIError = 1; 411 pub const GST_URI_ERROR_BAD_STATE: GstURIError = 2; 412 pub const GST_URI_ERROR_BAD_REFERENCE: GstURIError = 3; 413 414 pub type GstURIType = c_int; 415 pub const GST_URI_UNKNOWN: GstURIType = 0; 416 pub const GST_URI_SINK: GstURIType = 1; 417 pub const GST_URI_SRC: GstURIType = 2; 418 419 // Constants 420 pub const GST_ALLOCATOR_SYSMEM: *const c_char = b"SystemMemory\0" as *const u8 as *const c_char; 421 pub const GST_BUFFER_COPY_ALL: GstBufferCopyFlags = 15; 422 pub const GST_BUFFER_COPY_METADATA: GstBufferCopyFlags = 7; 423 pub const GST_BUFFER_OFFSET_NONE: u64 = 18446744073709551615; 424 pub const GST_CAN_INLINE: c_int = 1; 425 pub const GST_CAPS_FEATURE_MEMORY_SYSTEM_MEMORY: *const c_char = 426 b"memory:SystemMemory\0" as *const u8 as *const c_char; 427 pub const GST_CLOCK_TIME_NONE: GstClockTime = 18446744073709551615; 428 pub const GST_DEBUG_BG_MASK: c_int = 240; 429 pub const GST_DEBUG_FG_MASK: c_int = 15; 430 pub const GST_DEBUG_FORMAT_MASK: c_int = 65280; 431 pub const GST_ELEMENT_FACTORY_KLASS_DECODER: *const c_char = 432 b"Decoder\0" as *const u8 as *const c_char; 433 pub const GST_ELEMENT_FACTORY_KLASS_DECRYPTOR: *const c_char = 434 b"Decryptor\0" as *const u8 as *const c_char; 435 pub const GST_ELEMENT_FACTORY_KLASS_DEMUXER: *const c_char = 436 b"Demuxer\0" as *const u8 as *const c_char; 437 pub const GST_ELEMENT_FACTORY_KLASS_DEPAYLOADER: *const c_char = 438 b"Depayloader\0" as *const u8 as *const c_char; 439 pub const GST_ELEMENT_FACTORY_KLASS_ENCODER: *const c_char = 440 b"Encoder\0" as *const u8 as *const c_char; 441 pub const GST_ELEMENT_FACTORY_KLASS_ENCRYPTOR: *const c_char = 442 b"Encryptor\0" as *const u8 as *const c_char; 443 pub const GST_ELEMENT_FACTORY_KLASS_FORMATTER: *const c_char = 444 b"Formatter\0" as *const u8 as *const c_char; 445 pub const GST_ELEMENT_FACTORY_KLASS_HARDWARE: *const c_char = 446 b"Hardware\0" as *const u8 as *const c_char; 447 pub const GST_ELEMENT_FACTORY_KLASS_MEDIA_AUDIO: *const c_char = 448 b"Audio\0" as *const u8 as *const c_char; 449 pub const GST_ELEMENT_FACTORY_KLASS_MEDIA_IMAGE: *const c_char = 450 b"Image\0" as *const u8 as *const c_char; 451 pub const GST_ELEMENT_FACTORY_KLASS_MEDIA_METADATA: *const c_char = 452 b"Metadata\0" as *const u8 as *const c_char; 453 pub const GST_ELEMENT_FACTORY_KLASS_MEDIA_SUBTITLE: *const c_char = 454 b"Subtitle\0" as *const u8 as *const c_char; 455 pub const GST_ELEMENT_FACTORY_KLASS_MEDIA_VIDEO: *const c_char = 456 b"Video\0" as *const u8 as *const c_char; 457 pub const GST_ELEMENT_FACTORY_KLASS_MUXER: *const c_char = b"Muxer\0" as *const u8 as *const c_char; 458 pub const GST_ELEMENT_FACTORY_KLASS_PARSER: *const c_char = 459 b"Parser\0" as *const u8 as *const c_char; 460 pub const GST_ELEMENT_FACTORY_KLASS_PAYLOADER: *const c_char = 461 b"Payloader\0" as *const u8 as *const c_char; 462 pub const GST_ELEMENT_FACTORY_KLASS_SINK: *const c_char = b"Sink\0" as *const u8 as *const c_char; 463 pub const GST_ELEMENT_FACTORY_KLASS_SRC: *const c_char = b"Source\0" as *const u8 as *const c_char; 464 pub const GST_ELEMENT_FACTORY_TYPE_ANY: GstElementFactoryListType = 562949953421311; 465 pub const GST_ELEMENT_FACTORY_TYPE_AUDIOVIDEO_SINKS: GstElementFactoryListType = 3940649673949188; 466 pub const GST_ELEMENT_FACTORY_TYPE_AUDIO_ENCODER: GstElementFactoryListType = 1125899906842626; 467 pub const GST_ELEMENT_FACTORY_TYPE_DECODABLE: GstElementFactoryListType = 1377; 468 pub const GST_ELEMENT_FACTORY_TYPE_DECODER: GstElementFactoryListType = 1; 469 pub const GST_ELEMENT_FACTORY_TYPE_DECRYPTOR: GstElementFactoryListType = 1024; 470 pub const GST_ELEMENT_FACTORY_TYPE_DEMUXER: GstElementFactoryListType = 32; 471 pub const GST_ELEMENT_FACTORY_TYPE_DEPAYLOADER: GstElementFactoryListType = 256; 472 pub const GST_ELEMENT_FACTORY_TYPE_ENCODER: GstElementFactoryListType = 2; 473 pub const GST_ELEMENT_FACTORY_TYPE_ENCRYPTOR: GstElementFactoryListType = 2048; 474 pub const GST_ELEMENT_FACTORY_TYPE_FORMATTER: GstElementFactoryListType = 512; 475 pub const GST_ELEMENT_FACTORY_TYPE_MAX_ELEMENTS: GstElementFactoryListType = 281474976710656; 476 pub const GST_ELEMENT_FACTORY_TYPE_MEDIA_ANY: GstElementFactoryListType = 18446462598732840960; 477 pub const GST_ELEMENT_FACTORY_TYPE_MEDIA_AUDIO: GstElementFactoryListType = 1125899906842624; 478 pub const GST_ELEMENT_FACTORY_TYPE_MEDIA_IMAGE: GstElementFactoryListType = 2251799813685248; 479 pub const GST_ELEMENT_FACTORY_TYPE_MEDIA_METADATA: GstElementFactoryListType = 9007199254740992; 480 pub const GST_ELEMENT_FACTORY_TYPE_MEDIA_SUBTITLE: GstElementFactoryListType = 4503599627370496; 481 pub const GST_ELEMENT_FACTORY_TYPE_MEDIA_VIDEO: GstElementFactoryListType = 562949953421312; 482 pub const GST_ELEMENT_FACTORY_TYPE_MUXER: GstElementFactoryListType = 16; 483 pub const GST_ELEMENT_FACTORY_TYPE_PARSER: GstElementFactoryListType = 64; 484 pub const GST_ELEMENT_FACTORY_TYPE_PAYLOADER: GstElementFactoryListType = 128; 485 pub const GST_ELEMENT_FACTORY_TYPE_SINK: GstElementFactoryListType = 4; 486 pub const GST_ELEMENT_FACTORY_TYPE_SRC: GstElementFactoryListType = 8; 487 pub const GST_ELEMENT_FACTORY_TYPE_VIDEO_ENCODER: GstElementFactoryListType = 2814749767106562; 488 pub const GST_ELEMENT_METADATA_AUTHOR: *const c_char = b"author\0" as *const u8 as *const c_char; 489 pub const GST_ELEMENT_METADATA_DESCRIPTION: *const c_char = 490 b"description\0" as *const u8 as *const c_char; 491 pub const GST_ELEMENT_METADATA_DOC_URI: *const c_char = b"doc-uri\0" as *const u8 as *const c_char; 492 pub const GST_ELEMENT_METADATA_ICON_NAME: *const c_char = 493 b"icon-name\0" as *const u8 as *const c_char; 494 pub const GST_ELEMENT_METADATA_KLASS: *const c_char = b"klass\0" as *const u8 as *const c_char; 495 pub const GST_ELEMENT_METADATA_LONGNAME: *const c_char = 496 b"long-name\0" as *const u8 as *const c_char; 497 pub const GST_EVENT_NUM_SHIFT: c_int = 8; 498 pub const GST_EVENT_TYPE_BOTH: GstEventTypeFlags = 3; 499 pub const GST_FLAG_SET_MASK_EXACT: c_uint = 4294967295; 500 pub const GST_FORMAT_PERCENT_MAX: i64 = 1000000; 501 pub const GST_FORMAT_PERCENT_SCALE: i64 = 10000; 502 pub const GST_GROUP_ID_INVALID: c_int = 0; 503 pub const GST_LICENSE_UNKNOWN: *const c_char = b"unknown\0" as *const u8 as *const c_char; 504 pub const GST_LOCK_FLAG_READWRITE: GstLockFlags = 3; 505 pub const GST_MAP_READWRITE: GstMapFlags = 3; 506 pub const GST_META_TAG_MEMORY_STR: *const c_char = b"memory\0" as *const u8 as *const c_char; 507 pub const GST_MSECOND: GstClockTimeDiff = 1000000; 508 pub const GST_NSECOND: GstClockTimeDiff = 1; 509 pub const GST_PARAM_CONTROLLABLE: c_int = 512; 510 pub const GST_PARAM_MUTABLE_PAUSED: c_int = 2048; 511 pub const GST_PARAM_MUTABLE_PLAYING: c_int = 4096; 512 pub const GST_PARAM_MUTABLE_READY: c_int = 1024; 513 pub const GST_PARAM_USER_SHIFT: c_int = 65536; 514 pub const GST_PROTECTION_SYSTEM_ID_CAPS_FIELD: *const c_char = 515 b"protection-system\0" as *const u8 as *const c_char; 516 pub const GST_PROTECTION_UNSPECIFIED_SYSTEM_ID: *const c_char = 517 b"unspecified-system-id\0" as *const u8 as *const c_char; 518 pub const GST_QUERY_NUM_SHIFT: c_int = 8; 519 pub const GST_QUERY_TYPE_BOTH: GstQueryTypeFlags = 3; 520 pub const GST_SECOND: GstClockTimeDiff = 1000000000; 521 pub const GST_SEQNUM_INVALID: c_int = 0; 522 pub const GST_TAG_ALBUM: *const c_char = b"album\0" as *const u8 as *const c_char; 523 pub const GST_TAG_ALBUM_ARTIST: *const c_char = b"album-artist\0" as *const u8 as *const c_char; 524 pub const GST_TAG_ALBUM_ARTIST_SORTNAME: *const c_char = 525 b"album-artist-sortname\0" as *const u8 as *const c_char; 526 pub const GST_TAG_ALBUM_GAIN: *const c_char = 527 b"replaygain-album-gain\0" as *const u8 as *const c_char; 528 pub const GST_TAG_ALBUM_PEAK: *const c_char = 529 b"replaygain-album-peak\0" as *const u8 as *const c_char; 530 pub const GST_TAG_ALBUM_SORTNAME: *const c_char = b"album-sortname\0" as *const u8 as *const c_char; 531 pub const GST_TAG_ALBUM_VOLUME_COUNT: *const c_char = 532 b"album-disc-count\0" as *const u8 as *const c_char; 533 pub const GST_TAG_ALBUM_VOLUME_NUMBER: *const c_char = 534 b"album-disc-number\0" as *const u8 as *const c_char; 535 pub const GST_TAG_APPLICATION_DATA: *const c_char = 536 b"application-data\0" as *const u8 as *const c_char; 537 pub const GST_TAG_APPLICATION_NAME: *const c_char = 538 b"application-name\0" as *const u8 as *const c_char; 539 pub const GST_TAG_ARTIST: *const c_char = b"artist\0" as *const u8 as *const c_char; 540 pub const GST_TAG_ARTIST_SORTNAME: *const c_char = 541 b"artist-sortname\0" as *const u8 as *const c_char; 542 pub const GST_TAG_ATTACHMENT: *const c_char = b"attachment\0" as *const u8 as *const c_char; 543 pub const GST_TAG_AUDIO_CODEC: *const c_char = b"audio-codec\0" as *const u8 as *const c_char; 544 pub const GST_TAG_BEATS_PER_MINUTE: *const c_char = 545 b"beats-per-minute\0" as *const u8 as *const c_char; 546 pub const GST_TAG_BITRATE: *const c_char = b"bitrate\0" as *const u8 as *const c_char; 547 pub const GST_TAG_CODEC: *const c_char = b"codec\0" as *const u8 as *const c_char; 548 pub const GST_TAG_COMMENT: *const c_char = b"comment\0" as *const u8 as *const c_char; 549 pub const GST_TAG_COMPOSER: *const c_char = b"composer\0" as *const u8 as *const c_char; 550 pub const GST_TAG_COMPOSER_SORTNAME: *const c_char = 551 b"composer-sortname\0" as *const u8 as *const c_char; 552 pub const GST_TAG_CONDUCTOR: *const c_char = b"conductor\0" as *const u8 as *const c_char; 553 pub const GST_TAG_CONTACT: *const c_char = b"contact\0" as *const u8 as *const c_char; 554 pub const GST_TAG_CONTAINER_FORMAT: *const c_char = 555 b"container-format\0" as *const u8 as *const c_char; 556 pub const GST_TAG_COPYRIGHT: *const c_char = b"copyright\0" as *const u8 as *const c_char; 557 pub const GST_TAG_COPYRIGHT_URI: *const c_char = b"copyright-uri\0" as *const u8 as *const c_char; 558 pub const GST_TAG_DATE: *const c_char = b"date\0" as *const u8 as *const c_char; 559 pub const GST_TAG_DATE_TIME: *const c_char = b"datetime\0" as *const u8 as *const c_char; 560 pub const GST_TAG_DESCRIPTION: *const c_char = b"description\0" as *const u8 as *const c_char; 561 pub const GST_TAG_DEVICE_MANUFACTURER: *const c_char = 562 b"device-manufacturer\0" as *const u8 as *const c_char; 563 pub const GST_TAG_DEVICE_MODEL: *const c_char = b"device-model\0" as *const u8 as *const c_char; 564 pub const GST_TAG_DURATION: *const c_char = b"duration\0" as *const u8 as *const c_char; 565 pub const GST_TAG_ENCODED_BY: *const c_char = b"encoded-by\0" as *const u8 as *const c_char; 566 pub const GST_TAG_ENCODER: *const c_char = b"encoder\0" as *const u8 as *const c_char; 567 pub const GST_TAG_ENCODER_VERSION: *const c_char = 568 b"encoder-version\0" as *const u8 as *const c_char; 569 pub const GST_TAG_EXTENDED_COMMENT: *const c_char = 570 b"extended-comment\0" as *const u8 as *const c_char; 571 pub const GST_TAG_GENRE: *const c_char = b"genre\0" as *const u8 as *const c_char; 572 pub const GST_TAG_GEO_LOCATION_CAPTURE_DIRECTION: *const c_char = 573 b"geo-location-capture-direction\0" as *const u8 as *const c_char; 574 pub const GST_TAG_GEO_LOCATION_CITY: *const c_char = 575 b"geo-location-city\0" as *const u8 as *const c_char; 576 pub const GST_TAG_GEO_LOCATION_COUNTRY: *const c_char = 577 b"geo-location-country\0" as *const u8 as *const c_char; 578 pub const GST_TAG_GEO_LOCATION_ELEVATION: *const c_char = 579 b"geo-location-elevation\0" as *const u8 as *const c_char; 580 pub const GST_TAG_GEO_LOCATION_HORIZONTAL_ERROR: *const c_char = 581 b"geo-location-horizontal-error\0" as *const u8 as *const c_char; 582 pub const GST_TAG_GEO_LOCATION_LATITUDE: *const c_char = 583 b"geo-location-latitude\0" as *const u8 as *const c_char; 584 pub const GST_TAG_GEO_LOCATION_LONGITUDE: *const c_char = 585 b"geo-location-longitude\0" as *const u8 as *const c_char; 586 pub const GST_TAG_GEO_LOCATION_MOVEMENT_DIRECTION: *const c_char = 587 b"geo-location-movement-direction\0" as *const u8 as *const c_char; 588 pub const GST_TAG_GEO_LOCATION_MOVEMENT_SPEED: *const c_char = 589 b"geo-location-movement-speed\0" as *const u8 as *const c_char; 590 pub const GST_TAG_GEO_LOCATION_NAME: *const c_char = 591 b"geo-location-name\0" as *const u8 as *const c_char; 592 pub const GST_TAG_GEO_LOCATION_SUBLOCATION: *const c_char = 593 b"geo-location-sublocation\0" as *const u8 as *const c_char; 594 pub const GST_TAG_GROUPING: *const c_char = b"grouping\0" as *const u8 as *const c_char; 595 pub const GST_TAG_HOMEPAGE: *const c_char = b"homepage\0" as *const u8 as *const c_char; 596 pub const GST_TAG_IMAGE: *const c_char = b"image\0" as *const u8 as *const c_char; 597 pub const GST_TAG_IMAGE_ORIENTATION: *const c_char = 598 b"image-orientation\0" as *const u8 as *const c_char; 599 pub const GST_TAG_INTERPRETED_BY: *const c_char = b"interpreted-by\0" as *const u8 as *const c_char; 600 pub const GST_TAG_ISRC: *const c_char = b"isrc\0" as *const u8 as *const c_char; 601 pub const GST_TAG_KEYWORDS: *const c_char = b"keywords\0" as *const u8 as *const c_char; 602 pub const GST_TAG_LANGUAGE_CODE: *const c_char = b"language-code\0" as *const u8 as *const c_char; 603 pub const GST_TAG_LANGUAGE_NAME: *const c_char = b"language-name\0" as *const u8 as *const c_char; 604 pub const GST_TAG_LICENSE: *const c_char = b"license\0" as *const u8 as *const c_char; 605 pub const GST_TAG_LICENSE_URI: *const c_char = b"license-uri\0" as *const u8 as *const c_char; 606 pub const GST_TAG_LOCATION: *const c_char = b"location\0" as *const u8 as *const c_char; 607 pub const GST_TAG_LYRICS: *const c_char = b"lyrics\0" as *const u8 as *const c_char; 608 pub const GST_TAG_MAXIMUM_BITRATE: *const c_char = 609 b"maximum-bitrate\0" as *const u8 as *const c_char; 610 pub const GST_TAG_MIDI_BASE_NOTE: *const c_char = b"midi-base-note\0" as *const u8 as *const c_char; 611 pub const GST_TAG_MINIMUM_BITRATE: *const c_char = 612 b"minimum-bitrate\0" as *const u8 as *const c_char; 613 pub const GST_TAG_NOMINAL_BITRATE: *const c_char = 614 b"nominal-bitrate\0" as *const u8 as *const c_char; 615 pub const GST_TAG_ORGANIZATION: *const c_char = b"organization\0" as *const u8 as *const c_char; 616 pub const GST_TAG_PERFORMER: *const c_char = b"performer\0" as *const u8 as *const c_char; 617 pub const GST_TAG_PREVIEW_IMAGE: *const c_char = b"preview-image\0" as *const u8 as *const c_char; 618 pub const GST_TAG_PRIVATE_DATA: *const c_char = b"private-data\0" as *const u8 as *const c_char; 619 pub const GST_TAG_PUBLISHER: *const c_char = b"publisher\0" as *const u8 as *const c_char; 620 pub const GST_TAG_REFERENCE_LEVEL: *const c_char = 621 b"replaygain-reference-level\0" as *const u8 as *const c_char; 622 pub const GST_TAG_SERIAL: *const c_char = b"serial\0" as *const u8 as *const c_char; 623 pub const GST_TAG_SHOW_EPISODE_NUMBER: *const c_char = 624 b"show-episode-number\0" as *const u8 as *const c_char; 625 pub const GST_TAG_SHOW_NAME: *const c_char = b"show-name\0" as *const u8 as *const c_char; 626 pub const GST_TAG_SHOW_SEASON_NUMBER: *const c_char = 627 b"show-season-number\0" as *const u8 as *const c_char; 628 pub const GST_TAG_SHOW_SORTNAME: *const c_char = b"show-sortname\0" as *const u8 as *const c_char; 629 pub const GST_TAG_SUBTITLE_CODEC: *const c_char = b"subtitle-codec\0" as *const u8 as *const c_char; 630 pub const GST_TAG_TITLE: *const c_char = b"title\0" as *const u8 as *const c_char; 631 pub const GST_TAG_TITLE_SORTNAME: *const c_char = b"title-sortname\0" as *const u8 as *const c_char; 632 pub const GST_TAG_TRACK_COUNT: *const c_char = b"track-count\0" as *const u8 as *const c_char; 633 pub const GST_TAG_TRACK_GAIN: *const c_char = 634 b"replaygain-track-gain\0" as *const u8 as *const c_char; 635 pub const GST_TAG_TRACK_NUMBER: *const c_char = b"track-number\0" as *const u8 as *const c_char; 636 pub const GST_TAG_TRACK_PEAK: *const c_char = 637 b"replaygain-track-peak\0" as *const u8 as *const c_char; 638 pub const GST_TAG_USER_RATING: *const c_char = b"user-rating\0" as *const u8 as *const c_char; 639 pub const GST_TAG_VERSION: *const c_char = b"version\0" as *const u8 as *const c_char; 640 pub const GST_TAG_VIDEO_CODEC: *const c_char = b"video-codec\0" as *const u8 as *const c_char; 641 pub const GST_TOC_REPEAT_COUNT_INFINITE: c_int = -1; 642 pub const GST_URI_NO_PORT: c_int = 0; 643 pub const GST_USECOND: GstClockTimeDiff = 1000; 644 pub const GST_VALUE_EQUAL: c_int = 0; 645 pub const GST_VALUE_GREATER_THAN: c_int = 1; 646 pub const GST_VALUE_LESS_THAN: c_int = -1; 647 pub const GST_VALUE_UNORDERED: c_int = 2; 648 649 // Flags 650 pub type GstAllocatorFlags = c_uint; 651 pub const GST_ALLOCATOR_FLAG_CUSTOM_ALLOC: GstAllocatorFlags = 16; 652 pub const GST_ALLOCATOR_FLAG_LAST: GstAllocatorFlags = 1048576; 653 654 pub type GstBinFlags = c_uint; 655 pub const GST_BIN_FLAG_NO_RESYNC: GstBinFlags = 16384; 656 pub const GST_BIN_FLAG_STREAMS_AWARE: GstBinFlags = 32768; 657 pub const GST_BIN_FLAG_LAST: GstBinFlags = 524288; 658 659 pub type GstBufferCopyFlags = c_uint; 660 pub const GST_BUFFER_COPY_NONE: GstBufferCopyFlags = 0; 661 pub const GST_BUFFER_COPY_FLAGS: GstBufferCopyFlags = 1; 662 pub const GST_BUFFER_COPY_TIMESTAMPS: GstBufferCopyFlags = 2; 663 pub const GST_BUFFER_COPY_META: GstBufferCopyFlags = 4; 664 pub const GST_BUFFER_COPY_MEMORY: GstBufferCopyFlags = 8; 665 pub const GST_BUFFER_COPY_MERGE: GstBufferCopyFlags = 16; 666 pub const GST_BUFFER_COPY_DEEP: GstBufferCopyFlags = 32; 667 668 pub type GstBufferFlags = c_uint; 669 pub const GST_BUFFER_FLAG_LIVE: GstBufferFlags = 16; 670 pub const GST_BUFFER_FLAG_DECODE_ONLY: GstBufferFlags = 32; 671 pub const GST_BUFFER_FLAG_DISCONT: GstBufferFlags = 64; 672 pub const GST_BUFFER_FLAG_RESYNC: GstBufferFlags = 128; 673 pub const GST_BUFFER_FLAG_CORRUPTED: GstBufferFlags = 256; 674 pub const GST_BUFFER_FLAG_MARKER: GstBufferFlags = 512; 675 pub const GST_BUFFER_FLAG_HEADER: GstBufferFlags = 1024; 676 pub const GST_BUFFER_FLAG_GAP: GstBufferFlags = 2048; 677 pub const GST_BUFFER_FLAG_DROPPABLE: GstBufferFlags = 4096; 678 pub const GST_BUFFER_FLAG_DELTA_UNIT: GstBufferFlags = 8192; 679 pub const GST_BUFFER_FLAG_TAG_MEMORY: GstBufferFlags = 16384; 680 pub const GST_BUFFER_FLAG_SYNC_AFTER: GstBufferFlags = 32768; 681 pub const GST_BUFFER_FLAG_NON_DROPPABLE: GstBufferFlags = 65536; 682 pub const GST_BUFFER_FLAG_LAST: GstBufferFlags = 1048576; 683 684 pub type GstBufferPoolAcquireFlags = c_uint; 685 pub const GST_BUFFER_POOL_ACQUIRE_FLAG_NONE: GstBufferPoolAcquireFlags = 0; 686 pub const GST_BUFFER_POOL_ACQUIRE_FLAG_KEY_UNIT: GstBufferPoolAcquireFlags = 1; 687 pub const GST_BUFFER_POOL_ACQUIRE_FLAG_DONTWAIT: GstBufferPoolAcquireFlags = 2; 688 pub const GST_BUFFER_POOL_ACQUIRE_FLAG_DISCONT: GstBufferPoolAcquireFlags = 4; 689 pub const GST_BUFFER_POOL_ACQUIRE_FLAG_LAST: GstBufferPoolAcquireFlags = 65536; 690 691 pub type GstBusFlags = c_uint; 692 pub const GST_BUS_FLUSHING: GstBusFlags = 16; 693 pub const GST_BUS_FLAG_LAST: GstBusFlags = 32; 694 695 pub type GstCapsFlags = c_uint; 696 pub const GST_CAPS_FLAG_ANY: GstCapsFlags = 16; 697 698 pub type GstClockFlags = c_uint; 699 pub const GST_CLOCK_FLAG_CAN_DO_SINGLE_SYNC: GstClockFlags = 16; 700 pub const GST_CLOCK_FLAG_CAN_DO_SINGLE_ASYNC: GstClockFlags = 32; 701 pub const GST_CLOCK_FLAG_CAN_DO_PERIODIC_SYNC: GstClockFlags = 64; 702 pub const GST_CLOCK_FLAG_CAN_DO_PERIODIC_ASYNC: GstClockFlags = 128; 703 pub const GST_CLOCK_FLAG_CAN_SET_RESOLUTION: GstClockFlags = 256; 704 pub const GST_CLOCK_FLAG_CAN_SET_MASTER: GstClockFlags = 512; 705 pub const GST_CLOCK_FLAG_NEEDS_STARTUP_SYNC: GstClockFlags = 1024; 706 pub const GST_CLOCK_FLAG_LAST: GstClockFlags = 4096; 707 708 pub type GstDebugColorFlags = c_uint; 709 pub const GST_DEBUG_FG_BLACK: GstDebugColorFlags = 0; 710 pub const GST_DEBUG_FG_RED: GstDebugColorFlags = 1; 711 pub const GST_DEBUG_FG_GREEN: GstDebugColorFlags = 2; 712 pub const GST_DEBUG_FG_YELLOW: GstDebugColorFlags = 3; 713 pub const GST_DEBUG_FG_BLUE: GstDebugColorFlags = 4; 714 pub const GST_DEBUG_FG_MAGENTA: GstDebugColorFlags = 5; 715 pub const GST_DEBUG_FG_CYAN: GstDebugColorFlags = 6; 716 pub const GST_DEBUG_FG_WHITE: GstDebugColorFlags = 7; 717 pub const GST_DEBUG_BG_BLACK: GstDebugColorFlags = 0; 718 pub const GST_DEBUG_BG_RED: GstDebugColorFlags = 16; 719 pub const GST_DEBUG_BG_GREEN: GstDebugColorFlags = 32; 720 pub const GST_DEBUG_BG_YELLOW: GstDebugColorFlags = 48; 721 pub const GST_DEBUG_BG_BLUE: GstDebugColorFlags = 64; 722 pub const GST_DEBUG_BG_MAGENTA: GstDebugColorFlags = 80; 723 pub const GST_DEBUG_BG_CYAN: GstDebugColorFlags = 96; 724 pub const GST_DEBUG_BG_WHITE: GstDebugColorFlags = 112; 725 pub const GST_DEBUG_BOLD: GstDebugColorFlags = 256; 726 pub const GST_DEBUG_UNDERLINE: GstDebugColorFlags = 512; 727 728 pub type GstDebugGraphDetails = c_uint; 729 pub const GST_DEBUG_GRAPH_SHOW_MEDIA_TYPE: GstDebugGraphDetails = 1; 730 pub const GST_DEBUG_GRAPH_SHOW_CAPS_DETAILS: GstDebugGraphDetails = 2; 731 pub const GST_DEBUG_GRAPH_SHOW_NON_DEFAULT_PARAMS: GstDebugGraphDetails = 4; 732 pub const GST_DEBUG_GRAPH_SHOW_STATES: GstDebugGraphDetails = 8; 733 pub const GST_DEBUG_GRAPH_SHOW_FULL_PARAMS: GstDebugGraphDetails = 16; 734 pub const GST_DEBUG_GRAPH_SHOW_ALL: GstDebugGraphDetails = 15; 735 pub const GST_DEBUG_GRAPH_SHOW_VERBOSE: GstDebugGraphDetails = 4294967295; 736 737 pub type GstElementFlags = c_uint; 738 pub const GST_ELEMENT_FLAG_LOCKED_STATE: GstElementFlags = 16; 739 pub const GST_ELEMENT_FLAG_SINK: GstElementFlags = 32; 740 pub const GST_ELEMENT_FLAG_SOURCE: GstElementFlags = 64; 741 pub const GST_ELEMENT_FLAG_PROVIDE_CLOCK: GstElementFlags = 128; 742 pub const GST_ELEMENT_FLAG_REQUIRE_CLOCK: GstElementFlags = 256; 743 pub const GST_ELEMENT_FLAG_INDEXABLE: GstElementFlags = 512; 744 pub const GST_ELEMENT_FLAG_LAST: GstElementFlags = 16384; 745 746 pub type GstEventTypeFlags = c_uint; 747 pub const GST_EVENT_TYPE_UPSTREAM: GstEventTypeFlags = 1; 748 pub const GST_EVENT_TYPE_DOWNSTREAM: GstEventTypeFlags = 2; 749 pub const GST_EVENT_TYPE_SERIALIZED: GstEventTypeFlags = 4; 750 pub const GST_EVENT_TYPE_STICKY: GstEventTypeFlags = 8; 751 pub const GST_EVENT_TYPE_STICKY_MULTI: GstEventTypeFlags = 16; 752 753 pub type GstLockFlags = c_uint; 754 pub const GST_LOCK_FLAG_READ: GstLockFlags = 1; 755 pub const GST_LOCK_FLAG_WRITE: GstLockFlags = 2; 756 pub const GST_LOCK_FLAG_EXCLUSIVE: GstLockFlags = 4; 757 pub const GST_LOCK_FLAG_LAST: GstLockFlags = 256; 758 759 pub type GstMapFlags = c_uint; 760 pub const GST_MAP_READ: GstMapFlags = 1; 761 pub const GST_MAP_WRITE: GstMapFlags = 2; 762 pub const GST_MAP_FLAG_LAST: GstMapFlags = 65536; 763 764 pub type GstMemoryFlags = c_uint; 765 pub const GST_MEMORY_FLAG_READONLY: GstMemoryFlags = 2; 766 pub const GST_MEMORY_FLAG_NO_SHARE: GstMemoryFlags = 16; 767 pub const GST_MEMORY_FLAG_ZERO_PREFIXED: GstMemoryFlags = 32; 768 pub const GST_MEMORY_FLAG_ZERO_PADDED: GstMemoryFlags = 64; 769 pub const GST_MEMORY_FLAG_PHYSICALLY_CONTIGUOUS: GstMemoryFlags = 128; 770 pub const GST_MEMORY_FLAG_NOT_MAPPABLE: GstMemoryFlags = 256; 771 pub const GST_MEMORY_FLAG_LAST: GstMemoryFlags = 1048576; 772 773 pub type GstMessageType = c_uint; 774 pub const GST_MESSAGE_UNKNOWN: GstMessageType = 0; 775 pub const GST_MESSAGE_EOS: GstMessageType = 1; 776 pub const GST_MESSAGE_ERROR: GstMessageType = 2; 777 pub const GST_MESSAGE_WARNING: GstMessageType = 4; 778 pub const GST_MESSAGE_INFO: GstMessageType = 8; 779 pub const GST_MESSAGE_TAG: GstMessageType = 16; 780 pub const GST_MESSAGE_BUFFERING: GstMessageType = 32; 781 pub const GST_MESSAGE_STATE_CHANGED: GstMessageType = 64; 782 pub const GST_MESSAGE_STATE_DIRTY: GstMessageType = 128; 783 pub const GST_MESSAGE_STEP_DONE: GstMessageType = 256; 784 pub const GST_MESSAGE_CLOCK_PROVIDE: GstMessageType = 512; 785 pub const GST_MESSAGE_CLOCK_LOST: GstMessageType = 1024; 786 pub const GST_MESSAGE_NEW_CLOCK: GstMessageType = 2048; 787 pub const GST_MESSAGE_STRUCTURE_CHANGE: GstMessageType = 4096; 788 pub const GST_MESSAGE_STREAM_STATUS: GstMessageType = 8192; 789 pub const GST_MESSAGE_APPLICATION: GstMessageType = 16384; 790 pub const GST_MESSAGE_ELEMENT: GstMessageType = 32768; 791 pub const GST_MESSAGE_SEGMENT_START: GstMessageType = 65536; 792 pub const GST_MESSAGE_SEGMENT_DONE: GstMessageType = 131072; 793 pub const GST_MESSAGE_DURATION_CHANGED: GstMessageType = 262144; 794 pub const GST_MESSAGE_LATENCY: GstMessageType = 524288; 795 pub const GST_MESSAGE_ASYNC_START: GstMessageType = 1048576; 796 pub const GST_MESSAGE_ASYNC_DONE: GstMessageType = 2097152; 797 pub const GST_MESSAGE_REQUEST_STATE: GstMessageType = 4194304; 798 pub const GST_MESSAGE_STEP_START: GstMessageType = 8388608; 799 pub const GST_MESSAGE_QOS: GstMessageType = 16777216; 800 pub const GST_MESSAGE_PROGRESS: GstMessageType = 33554432; 801 pub const GST_MESSAGE_TOC: GstMessageType = 67108864; 802 pub const GST_MESSAGE_RESET_TIME: GstMessageType = 134217728; 803 pub const GST_MESSAGE_STREAM_START: GstMessageType = 268435456; 804 pub const GST_MESSAGE_NEED_CONTEXT: GstMessageType = 536870912; 805 pub const GST_MESSAGE_HAVE_CONTEXT: GstMessageType = 1073741824; 806 pub const GST_MESSAGE_EXTENDED: GstMessageType = 2147483648; 807 pub const GST_MESSAGE_DEVICE_ADDED: GstMessageType = 2147483649; 808 pub const GST_MESSAGE_DEVICE_REMOVED: GstMessageType = 2147483650; 809 pub const GST_MESSAGE_PROPERTY_NOTIFY: GstMessageType = 2147483651; 810 pub const GST_MESSAGE_STREAM_COLLECTION: GstMessageType = 2147483652; 811 pub const GST_MESSAGE_STREAMS_SELECTED: GstMessageType = 2147483653; 812 pub const GST_MESSAGE_REDIRECT: GstMessageType = 2147483654; 813 pub const GST_MESSAGE_DEVICE_CHANGED: GstMessageType = 2147483655; 814 pub const GST_MESSAGE_ANY: GstMessageType = 4294967295; 815 816 pub type GstMetaFlags = c_uint; 817 pub const GST_META_FLAG_NONE: GstMetaFlags = 0; 818 pub const GST_META_FLAG_READONLY: GstMetaFlags = 1; 819 pub const GST_META_FLAG_POOLED: GstMetaFlags = 2; 820 pub const GST_META_FLAG_LOCKED: GstMetaFlags = 4; 821 pub const GST_META_FLAG_LAST: GstMetaFlags = 65536; 822 823 pub type GstMiniObjectFlags = c_uint; 824 pub const GST_MINI_OBJECT_FLAG_LOCKABLE: GstMiniObjectFlags = 1; 825 pub const GST_MINI_OBJECT_FLAG_LOCK_READONLY: GstMiniObjectFlags = 2; 826 pub const GST_MINI_OBJECT_FLAG_MAY_BE_LEAKED: GstMiniObjectFlags = 4; 827 pub const GST_MINI_OBJECT_FLAG_LAST: GstMiniObjectFlags = 16; 828 829 pub type GstObjectFlags = c_uint; 830 pub const GST_OBJECT_FLAG_MAY_BE_LEAKED: GstObjectFlags = 1; 831 pub const GST_OBJECT_FLAG_LAST: GstObjectFlags = 16; 832 833 pub type GstPadFlags = c_uint; 834 pub const GST_PAD_FLAG_BLOCKED: GstPadFlags = 16; 835 pub const GST_PAD_FLAG_FLUSHING: GstPadFlags = 32; 836 pub const GST_PAD_FLAG_EOS: GstPadFlags = 64; 837 pub const GST_PAD_FLAG_BLOCKING: GstPadFlags = 128; 838 pub const GST_PAD_FLAG_NEED_PARENT: GstPadFlags = 256; 839 pub const GST_PAD_FLAG_NEED_RECONFIGURE: GstPadFlags = 512; 840 pub const GST_PAD_FLAG_PENDING_EVENTS: GstPadFlags = 1024; 841 pub const GST_PAD_FLAG_FIXED_CAPS: GstPadFlags = 2048; 842 pub const GST_PAD_FLAG_PROXY_CAPS: GstPadFlags = 4096; 843 pub const GST_PAD_FLAG_PROXY_ALLOCATION: GstPadFlags = 8192; 844 pub const GST_PAD_FLAG_PROXY_SCHEDULING: GstPadFlags = 16384; 845 pub const GST_PAD_FLAG_ACCEPT_INTERSECT: GstPadFlags = 32768; 846 pub const GST_PAD_FLAG_ACCEPT_TEMPLATE: GstPadFlags = 65536; 847 pub const GST_PAD_FLAG_LAST: GstPadFlags = 1048576; 848 849 pub type GstPadLinkCheck = c_uint; 850 pub const GST_PAD_LINK_CHECK_NOTHING: GstPadLinkCheck = 0; 851 pub const GST_PAD_LINK_CHECK_HIERARCHY: GstPadLinkCheck = 1; 852 pub const GST_PAD_LINK_CHECK_TEMPLATE_CAPS: GstPadLinkCheck = 2; 853 pub const GST_PAD_LINK_CHECK_CAPS: GstPadLinkCheck = 4; 854 pub const GST_PAD_LINK_CHECK_NO_RECONFIGURE: GstPadLinkCheck = 8; 855 pub const GST_PAD_LINK_CHECK_DEFAULT: GstPadLinkCheck = 5; 856 857 pub type GstPadProbeType = c_uint; 858 pub const GST_PAD_PROBE_TYPE_INVALID: GstPadProbeType = 0; 859 pub const GST_PAD_PROBE_TYPE_IDLE: GstPadProbeType = 1; 860 pub const GST_PAD_PROBE_TYPE_BLOCK: GstPadProbeType = 2; 861 pub const GST_PAD_PROBE_TYPE_BUFFER: GstPadProbeType = 16; 862 pub const GST_PAD_PROBE_TYPE_BUFFER_LIST: GstPadProbeType = 32; 863 pub const GST_PAD_PROBE_TYPE_EVENT_DOWNSTREAM: GstPadProbeType = 64; 864 pub const GST_PAD_PROBE_TYPE_EVENT_UPSTREAM: GstPadProbeType = 128; 865 pub const GST_PAD_PROBE_TYPE_EVENT_FLUSH: GstPadProbeType = 256; 866 pub const GST_PAD_PROBE_TYPE_QUERY_DOWNSTREAM: GstPadProbeType = 512; 867 pub const GST_PAD_PROBE_TYPE_QUERY_UPSTREAM: GstPadProbeType = 1024; 868 pub const GST_PAD_PROBE_TYPE_PUSH: GstPadProbeType = 4096; 869 pub const GST_PAD_PROBE_TYPE_PULL: GstPadProbeType = 8192; 870 pub const GST_PAD_PROBE_TYPE_BLOCKING: GstPadProbeType = 3; 871 pub const GST_PAD_PROBE_TYPE_DATA_DOWNSTREAM: GstPadProbeType = 112; 872 pub const GST_PAD_PROBE_TYPE_DATA_UPSTREAM: GstPadProbeType = 128; 873 pub const GST_PAD_PROBE_TYPE_DATA_BOTH: GstPadProbeType = 240; 874 pub const GST_PAD_PROBE_TYPE_BLOCK_DOWNSTREAM: GstPadProbeType = 114; 875 pub const GST_PAD_PROBE_TYPE_BLOCK_UPSTREAM: GstPadProbeType = 130; 876 pub const GST_PAD_PROBE_TYPE_EVENT_BOTH: GstPadProbeType = 192; 877 pub const GST_PAD_PROBE_TYPE_QUERY_BOTH: GstPadProbeType = 1536; 878 pub const GST_PAD_PROBE_TYPE_ALL_BOTH: GstPadProbeType = 1776; 879 pub const GST_PAD_PROBE_TYPE_SCHEDULING: GstPadProbeType = 12288; 880 881 pub type GstPadTemplateFlags = c_uint; 882 pub const GST_PAD_TEMPLATE_FLAG_LAST: GstPadTemplateFlags = 256; 883 884 pub type GstParseFlags = c_uint; 885 pub const GST_PARSE_FLAG_NONE: GstParseFlags = 0; 886 pub const GST_PARSE_FLAG_FATAL_ERRORS: GstParseFlags = 1; 887 pub const GST_PARSE_FLAG_NO_SINGLE_ELEMENT_BINS: GstParseFlags = 2; 888 pub const GST_PARSE_FLAG_PLACE_IN_BIN: GstParseFlags = 4; 889 890 pub type GstPipelineFlags = c_uint; 891 pub const GST_PIPELINE_FLAG_FIXED_CLOCK: GstPipelineFlags = 524288; 892 pub const GST_PIPELINE_FLAG_LAST: GstPipelineFlags = 8388608; 893 894 pub type GstPluginDependencyFlags = c_uint; 895 pub const GST_PLUGIN_DEPENDENCY_FLAG_NONE: GstPluginDependencyFlags = 0; 896 pub const GST_PLUGIN_DEPENDENCY_FLAG_RECURSE: GstPluginDependencyFlags = 1; 897 pub const GST_PLUGIN_DEPENDENCY_FLAG_PATHS_ARE_DEFAULT_ONLY: GstPluginDependencyFlags = 2; 898 pub const GST_PLUGIN_DEPENDENCY_FLAG_FILE_NAME_IS_SUFFIX: GstPluginDependencyFlags = 4; 899 pub const GST_PLUGIN_DEPENDENCY_FLAG_FILE_NAME_IS_PREFIX: GstPluginDependencyFlags = 8; 900 pub const GST_PLUGIN_DEPENDENCY_FLAG_PATHS_ARE_RELATIVE_TO_EXE: GstPluginDependencyFlags = 16; 901 902 pub type GstPluginFlags = c_uint; 903 pub const GST_PLUGIN_FLAG_CACHED: GstPluginFlags = 16; 904 pub const GST_PLUGIN_FLAG_BLACKLISTED: GstPluginFlags = 32; 905 906 pub type GstQueryTypeFlags = c_uint; 907 pub const GST_QUERY_TYPE_UPSTREAM: GstQueryTypeFlags = 1; 908 pub const GST_QUERY_TYPE_DOWNSTREAM: GstQueryTypeFlags = 2; 909 pub const GST_QUERY_TYPE_SERIALIZED: GstQueryTypeFlags = 4; 910 911 pub type GstSchedulingFlags = c_uint; 912 pub const GST_SCHEDULING_FLAG_SEEKABLE: GstSchedulingFlags = 1; 913 pub const GST_SCHEDULING_FLAG_SEQUENTIAL: GstSchedulingFlags = 2; 914 pub const GST_SCHEDULING_FLAG_BANDWIDTH_LIMITED: GstSchedulingFlags = 4; 915 916 pub type GstSeekFlags = c_uint; 917 pub const GST_SEEK_FLAG_NONE: GstSeekFlags = 0; 918 pub const GST_SEEK_FLAG_FLUSH: GstSeekFlags = 1; 919 pub const GST_SEEK_FLAG_ACCURATE: GstSeekFlags = 2; 920 pub const GST_SEEK_FLAG_KEY_UNIT: GstSeekFlags = 4; 921 pub const GST_SEEK_FLAG_SEGMENT: GstSeekFlags = 8; 922 pub const GST_SEEK_FLAG_TRICKMODE: GstSeekFlags = 16; 923 pub const GST_SEEK_FLAG_SKIP: GstSeekFlags = 16; 924 pub const GST_SEEK_FLAG_SNAP_BEFORE: GstSeekFlags = 32; 925 pub const GST_SEEK_FLAG_SNAP_AFTER: GstSeekFlags = 64; 926 pub const GST_SEEK_FLAG_SNAP_NEAREST: GstSeekFlags = 96; 927 pub const GST_SEEK_FLAG_TRICKMODE_KEY_UNITS: GstSeekFlags = 128; 928 pub const GST_SEEK_FLAG_TRICKMODE_NO_AUDIO: GstSeekFlags = 256; 929 930 pub type GstSegmentFlags = c_uint; 931 pub const GST_SEGMENT_FLAG_NONE: GstSegmentFlags = 0; 932 pub const GST_SEGMENT_FLAG_RESET: GstSegmentFlags = 1; 933 pub const GST_SEGMENT_FLAG_TRICKMODE: GstSegmentFlags = 16; 934 pub const GST_SEGMENT_FLAG_SKIP: GstSegmentFlags = 16; 935 pub const GST_SEGMENT_FLAG_SEGMENT: GstSegmentFlags = 8; 936 pub const GST_SEGMENT_FLAG_TRICKMODE_KEY_UNITS: GstSegmentFlags = 128; 937 pub const GST_SEGMENT_FLAG_TRICKMODE_NO_AUDIO: GstSegmentFlags = 256; 938 939 pub type GstStackTraceFlags = c_uint; 940 pub const GST_STACK_TRACE_SHOW_FULL: GstStackTraceFlags = 1; 941 942 pub type GstStreamFlags = c_uint; 943 pub const GST_STREAM_FLAG_NONE: GstStreamFlags = 0; 944 pub const GST_STREAM_FLAG_SPARSE: GstStreamFlags = 1; 945 pub const GST_STREAM_FLAG_SELECT: GstStreamFlags = 2; 946 pub const GST_STREAM_FLAG_UNSELECT: GstStreamFlags = 4; 947 948 pub type GstStreamType = c_uint; 949 pub const GST_STREAM_TYPE_UNKNOWN: GstStreamType = 1; 950 pub const GST_STREAM_TYPE_AUDIO: GstStreamType = 2; 951 pub const GST_STREAM_TYPE_VIDEO: GstStreamType = 4; 952 pub const GST_STREAM_TYPE_CONTAINER: GstStreamType = 8; 953 pub const GST_STREAM_TYPE_TEXT: GstStreamType = 16; 954 955 pub type GstTracerValueFlags = c_uint; 956 pub const GST_TRACER_VALUE_FLAGS_NONE: GstTracerValueFlags = 0; 957 pub const GST_TRACER_VALUE_FLAGS_OPTIONAL: GstTracerValueFlags = 1; 958 pub const GST_TRACER_VALUE_FLAGS_AGGREGATED: GstTracerValueFlags = 2; 959 960 // Unions 961 #[repr(C)] 962 #[derive(Copy, Clone)] 963 pub union GstControlBinding_ABI { 964 pub abi: GstControlBinding_ABI_abi, 965 pub _gst_reserved: [gpointer; 4], 966 } 967 968 impl ::std::fmt::Debug for GstControlBinding_ABI { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result969 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 970 f.debug_struct(&format!("GstControlBinding_ABI @ {:?}", self as *const _)) 971 .field("abi", unsafe { &self.abi }) 972 .field("_gst_reserved", unsafe { &self._gst_reserved }) 973 .finish() 974 } 975 } 976 977 #[repr(C)] 978 #[derive(Copy, Clone)] 979 pub union GstPadProbeInfo_ABI { 980 pub _gst_reserved: [gpointer; 4], 981 pub abi: GstPadProbeInfo_ABI_abi, 982 } 983 984 impl ::std::fmt::Debug for GstPadProbeInfo_ABI { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result985 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 986 f.debug_struct(&format!("GstPadProbeInfo_ABI @ {:?}", self as *const _)) 987 .field("_gst_reserved", unsafe { &self._gst_reserved }) 988 .field("abi", unsafe { &self.abi }) 989 .finish() 990 } 991 } 992 993 #[repr(C)] 994 #[derive(Copy, Clone)] 995 pub union GstPadTemplate_ABI { 996 pub _gst_reserved: [gpointer; 4], 997 pub abi: GstPadTemplate_ABI_abi, 998 } 999 1000 impl ::std::fmt::Debug for GstPadTemplate_ABI { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1001 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1002 f.debug_struct(&format!("GstPadTemplate_ABI @ {:?}", self as *const _)) 1003 .field("_gst_reserved", unsafe { &self._gst_reserved }) 1004 .field("abi", unsafe { &self.abi }) 1005 .finish() 1006 } 1007 } 1008 1009 #[repr(C)] 1010 #[derive(Copy, Clone)] 1011 pub union GstPad_ABI { 1012 pub _gst_reserved: [gpointer; 4], 1013 pub abi: GstPad_ABI_abi, 1014 } 1015 1016 impl ::std::fmt::Debug for GstPad_ABI { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1017 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1018 f.debug_struct(&format!("GstPad_ABI @ {:?}", self as *const _)) 1019 .field("_gst_reserved", unsafe { &self._gst_reserved }) 1020 .field("abi", unsafe { &self.abi }) 1021 .finish() 1022 } 1023 } 1024 1025 // Callbacks 1026 pub type GstBufferForeachMetaFunc = 1027 Option<unsafe extern "C" fn(*mut GstBuffer, *mut *mut GstMeta, gpointer) -> gboolean>; 1028 pub type GstBufferListFunc = 1029 Option<unsafe extern "C" fn(*mut *mut GstBuffer, c_uint, gpointer) -> gboolean>; 1030 pub type GstBusFunc = 1031 Option<unsafe extern "C" fn(*mut GstBus, *mut GstMessage, gpointer) -> gboolean>; 1032 pub type GstBusSyncHandler = 1033 Option<unsafe extern "C" fn(*mut GstBus, *mut GstMessage, gpointer) -> GstBusSyncReply>; 1034 pub type GstCapsFilterMapFunc = 1035 Option<unsafe extern "C" fn(*mut GstCapsFeatures, *mut GstStructure, gpointer) -> gboolean>; 1036 pub type GstCapsForeachFunc = 1037 Option<unsafe extern "C" fn(*mut GstCapsFeatures, *mut GstStructure, gpointer) -> gboolean>; 1038 pub type GstCapsMapFunc = 1039 Option<unsafe extern "C" fn(*mut GstCapsFeatures, *mut GstStructure, gpointer) -> gboolean>; 1040 pub type GstClockCallback = 1041 Option<unsafe extern "C" fn(*mut GstClock, GstClockTime, GstClockID, gpointer) -> gboolean>; 1042 pub type GstControlBindingConvert = 1043 Option<unsafe extern "C" fn(*mut GstControlBinding, c_double, *mut gobject::GValue)>; 1044 pub type GstControlSourceGetValue = 1045 Option<unsafe extern "C" fn(*mut GstControlSource, GstClockTime, *mut c_double) -> gboolean>; 1046 pub type GstControlSourceGetValueArray = Option< 1047 unsafe extern "C" fn( 1048 *mut GstControlSource, 1049 GstClockTime, 1050 GstClockTime, 1051 c_uint, 1052 *mut c_double, 1053 ) -> gboolean, 1054 >; 1055 pub type GstDebugFuncPtr = Option<unsafe extern "C" fn()>; 1056 pub type GstElementCallAsyncFunc = Option<unsafe extern "C" fn(*mut GstElement, gpointer)>; 1057 pub type GstElementForeachPadFunc = 1058 Option<unsafe extern "C" fn(*mut GstElement, *mut GstPad, gpointer) -> gboolean>; 1059 pub type GstIteratorCopyFunction = 1060 Option<unsafe extern "C" fn(*const GstIterator, *mut GstIterator)>; 1061 pub type GstIteratorFoldFunction = Option< 1062 unsafe extern "C" fn(*const gobject::GValue, *mut gobject::GValue, gpointer) -> gboolean, 1063 >; 1064 pub type GstIteratorForeachFunction = 1065 Option<unsafe extern "C" fn(*const gobject::GValue, gpointer)>; 1066 pub type GstIteratorFreeFunction = Option<unsafe extern "C" fn(*mut GstIterator)>; 1067 pub type GstIteratorItemFunction = 1068 Option<unsafe extern "C" fn(*mut GstIterator, *const gobject::GValue) -> GstIteratorItem>; 1069 pub type GstIteratorNextFunction = 1070 Option<unsafe extern "C" fn(*mut GstIterator, *mut gobject::GValue) -> GstIteratorResult>; 1071 pub type GstIteratorResyncFunction = Option<unsafe extern "C" fn(*mut GstIterator)>; 1072 pub type GstLogFunction = Option< 1073 unsafe extern "C" fn( 1074 *mut GstDebugCategory, 1075 GstDebugLevel, 1076 *const c_char, 1077 *const c_char, 1078 c_int, 1079 *mut gobject::GObject, 1080 *mut GstDebugMessage, 1081 gpointer, 1082 ), 1083 >; 1084 pub type GstMemoryCopyFunction = 1085 Option<unsafe extern "C" fn(*mut GstMemory, ssize_t, ssize_t) -> *mut GstMemory>; 1086 pub type GstMemoryIsSpanFunction = 1087 Option<unsafe extern "C" fn(*mut GstMemory, *mut GstMemory, *mut size_t) -> gboolean>; 1088 pub type GstMemoryMapFullFunction = 1089 Option<unsafe extern "C" fn(*mut GstMemory, *mut GstMapInfo, size_t) -> gpointer>; 1090 pub type GstMemoryMapFunction = 1091 Option<unsafe extern "C" fn(*mut GstMemory, size_t, GstMapFlags) -> gpointer>; 1092 pub type GstMemoryShareFunction = 1093 Option<unsafe extern "C" fn(*mut GstMemory, ssize_t, ssize_t) -> *mut GstMemory>; 1094 pub type GstMemoryUnmapFullFunction = Option<unsafe extern "C" fn(*mut GstMemory, *mut GstMapInfo)>; 1095 pub type GstMemoryUnmapFunction = Option<unsafe extern "C" fn(*mut GstMemory)>; 1096 pub type GstMetaFreeFunction = Option<unsafe extern "C" fn(*mut GstMeta, *mut GstBuffer)>; 1097 pub type GstMetaInitFunction = 1098 Option<unsafe extern "C" fn(*mut GstMeta, gpointer, *mut GstBuffer) -> gboolean>; 1099 pub type GstMetaTransformFunction = Option< 1100 unsafe extern "C" fn( 1101 *mut GstBuffer, 1102 *mut GstMeta, 1103 *mut GstBuffer, 1104 glib::GQuark, 1105 gpointer, 1106 ) -> gboolean, 1107 >; 1108 pub type GstMiniObjectCopyFunction = 1109 Option<unsafe extern "C" fn(*const GstMiniObject) -> *mut GstMiniObject>; 1110 pub type GstMiniObjectDisposeFunction = 1111 Option<unsafe extern "C" fn(*mut GstMiniObject) -> gboolean>; 1112 pub type GstMiniObjectFreeFunction = Option<unsafe extern "C" fn(*mut GstMiniObject)>; 1113 pub type GstMiniObjectNotify = Option<unsafe extern "C" fn(gpointer, *mut GstMiniObject)>; 1114 pub type GstPadActivateFunction = 1115 Option<unsafe extern "C" fn(*mut GstPad, *mut GstObject) -> gboolean>; 1116 pub type GstPadActivateModeFunction = 1117 Option<unsafe extern "C" fn(*mut GstPad, *mut GstObject, GstPadMode, gboolean) -> gboolean>; 1118 pub type GstPadChainFunction = 1119 Option<unsafe extern "C" fn(*mut GstPad, *mut GstObject, *mut GstBuffer) -> GstFlowReturn>; 1120 pub type GstPadChainListFunction = 1121 Option<unsafe extern "C" fn(*mut GstPad, *mut GstObject, *mut GstBufferList) -> GstFlowReturn>; 1122 pub type GstPadEventFullFunction = 1123 Option<unsafe extern "C" fn(*mut GstPad, *mut GstObject, *mut GstEvent) -> GstFlowReturn>; 1124 pub type GstPadEventFunction = 1125 Option<unsafe extern "C" fn(*mut GstPad, *mut GstObject, *mut GstEvent) -> gboolean>; 1126 pub type GstPadForwardFunction = Option<unsafe extern "C" fn(*mut GstPad, gpointer) -> gboolean>; 1127 pub type GstPadGetRangeFunction = Option< 1128 unsafe extern "C" fn( 1129 *mut GstPad, 1130 *mut GstObject, 1131 u64, 1132 c_uint, 1133 *mut *mut GstBuffer, 1134 ) -> GstFlowReturn, 1135 >; 1136 pub type GstPadIterIntLinkFunction = 1137 Option<unsafe extern "C" fn(*mut GstPad, *mut GstObject) -> *mut GstIterator>; 1138 pub type GstPadLinkFunction = 1139 Option<unsafe extern "C" fn(*mut GstPad, *mut GstObject, *mut GstPad) -> GstPadLinkReturn>; 1140 pub type GstPadProbeCallback = 1141 Option<unsafe extern "C" fn(*mut GstPad, *mut GstPadProbeInfo, gpointer) -> GstPadProbeReturn>; 1142 pub type GstPadQueryFunction = 1143 Option<unsafe extern "C" fn(*mut GstPad, *mut GstObject, *mut GstQuery) -> gboolean>; 1144 pub type GstPadStickyEventsForeachFunction = 1145 Option<unsafe extern "C" fn(*mut GstPad, *mut *mut GstEvent, gpointer) -> gboolean>; 1146 pub type GstPadUnlinkFunction = Option<unsafe extern "C" fn(*mut GstPad, *mut GstObject)>; 1147 pub type GstPluginFeatureFilter = 1148 Option<unsafe extern "C" fn(*mut GstPluginFeature, gpointer) -> gboolean>; 1149 pub type GstPluginFilter = Option<unsafe extern "C" fn(*mut GstPlugin, gpointer) -> gboolean>; 1150 pub type GstPluginInitFullFunc = Option<unsafe extern "C" fn(*mut GstPlugin, gpointer) -> gboolean>; 1151 pub type GstPluginInitFunc = Option<unsafe extern "C" fn(*mut GstPlugin) -> gboolean>; 1152 pub type GstPromiseChangeFunc = Option<unsafe extern "C" fn(*mut GstPromise, gpointer)>; 1153 pub type GstStructureFilterMapFunc = 1154 Option<unsafe extern "C" fn(glib::GQuark, *mut gobject::GValue, gpointer) -> gboolean>; 1155 pub type GstStructureForeachFunc = 1156 Option<unsafe extern "C" fn(glib::GQuark, *const gobject::GValue, gpointer) -> gboolean>; 1157 pub type GstStructureMapFunc = 1158 Option<unsafe extern "C" fn(glib::GQuark, *mut gobject::GValue, gpointer) -> gboolean>; 1159 pub type GstTagForeachFunc = 1160 Option<unsafe extern "C" fn(*const GstTagList, *const c_char, gpointer)>; 1161 pub type GstTagMergeFunc = 1162 Option<unsafe extern "C" fn(*mut gobject::GValue, *const gobject::GValue)>; 1163 pub type GstTaskFunction = Option<unsafe extern "C" fn(gpointer)>; 1164 pub type GstTaskPoolFunction = Option<unsafe extern "C" fn(*mut c_void)>; 1165 pub type GstTaskThreadFunc = 1166 Option<unsafe extern "C" fn(*mut GstTask, *mut glib::GThread, gpointer)>; 1167 pub type GstTypeFindFunction = Option<unsafe extern "C" fn(*mut GstTypeFind, gpointer)>; 1168 pub type GstValueCompareFunc = 1169 Option<unsafe extern "C" fn(*const gobject::GValue, *const gobject::GValue) -> c_int>; 1170 pub type GstValueDeserializeFunc = 1171 Option<unsafe extern "C" fn(*mut gobject::GValue, *const c_char) -> gboolean>; 1172 pub type GstValueSerializeFunc = 1173 Option<unsafe extern "C" fn(*const gobject::GValue) -> *mut c_char>; 1174 1175 // Records 1176 #[repr(C)] 1177 #[derive(Copy, Clone)] 1178 pub struct GstAllocationParams { 1179 pub flags: GstMemoryFlags, 1180 pub align: size_t, 1181 pub prefix: size_t, 1182 pub padding: size_t, 1183 pub _gst_reserved: [gpointer; 4], 1184 } 1185 1186 impl ::std::fmt::Debug for GstAllocationParams { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1187 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1188 f.debug_struct(&format!("GstAllocationParams @ {:?}", self as *const _)) 1189 .field("flags", &self.flags) 1190 .field("align", &self.align) 1191 .field("prefix", &self.prefix) 1192 .field("padding", &self.padding) 1193 .finish() 1194 } 1195 } 1196 1197 #[repr(C)] 1198 #[derive(Copy, Clone)] 1199 pub struct GstAllocatorClass { 1200 pub object_class: GstObjectClass, 1201 pub alloc: Option< 1202 unsafe extern "C" fn(*mut GstAllocator, size_t, *mut GstAllocationParams) -> *mut GstMemory, 1203 >, 1204 pub free: Option<unsafe extern "C" fn(*mut GstAllocator, *mut GstMemory)>, 1205 pub _gst_reserved: [gpointer; 4], 1206 } 1207 1208 impl ::std::fmt::Debug for GstAllocatorClass { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1209 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1210 f.debug_struct(&format!("GstAllocatorClass @ {:?}", self as *const _)) 1211 .field("object_class", &self.object_class) 1212 .field("alloc", &self.alloc) 1213 .field("free", &self.free) 1214 .finish() 1215 } 1216 } 1217 1218 #[repr(C)] 1219 pub struct _GstAllocatorPrivate(c_void); 1220 1221 pub type GstAllocatorPrivate = *mut _GstAllocatorPrivate; 1222 1223 #[repr(C)] 1224 pub struct GstAtomicQueue(c_void); 1225 1226 impl ::std::fmt::Debug for GstAtomicQueue { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1227 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1228 f.debug_struct(&format!("GstAtomicQueue @ {:?}", self as *const _)) 1229 .finish() 1230 } 1231 } 1232 1233 #[repr(C)] 1234 #[derive(Copy, Clone)] 1235 pub struct GstBinClass { 1236 pub parent_class: GstElementClass, 1237 pub pool: *mut glib::GThreadPool, 1238 pub element_added: Option<unsafe extern "C" fn(*mut GstBin, *mut GstElement)>, 1239 pub element_removed: Option<unsafe extern "C" fn(*mut GstBin, *mut GstElement)>, 1240 pub add_element: Option<unsafe extern "C" fn(*mut GstBin, *mut GstElement) -> gboolean>, 1241 pub remove_element: Option<unsafe extern "C" fn(*mut GstBin, *mut GstElement) -> gboolean>, 1242 pub handle_message: Option<unsafe extern "C" fn(*mut GstBin, *mut GstMessage)>, 1243 pub do_latency: Option<unsafe extern "C" fn(*mut GstBin) -> gboolean>, 1244 pub deep_element_added: Option<unsafe extern "C" fn(*mut GstBin, *mut GstBin, *mut GstElement)>, 1245 pub deep_element_removed: 1246 Option<unsafe extern "C" fn(*mut GstBin, *mut GstBin, *mut GstElement)>, 1247 pub _gst_reserved: [gpointer; 2], 1248 } 1249 1250 impl ::std::fmt::Debug for GstBinClass { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1251 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1252 f.debug_struct(&format!("GstBinClass @ {:?}", self as *const _)) 1253 .field("parent_class", &self.parent_class) 1254 .field("element_added", &self.element_added) 1255 .field("element_removed", &self.element_removed) 1256 .field("add_element", &self.add_element) 1257 .field("remove_element", &self.remove_element) 1258 .field("handle_message", &self.handle_message) 1259 .field("do_latency", &self.do_latency) 1260 .field("deep_element_added", &self.deep_element_added) 1261 .field("deep_element_removed", &self.deep_element_removed) 1262 .finish() 1263 } 1264 } 1265 1266 #[repr(C)] 1267 pub struct _GstBinPrivate(c_void); 1268 1269 pub type GstBinPrivate = *mut _GstBinPrivate; 1270 1271 #[repr(C)] 1272 #[derive(Copy, Clone)] 1273 pub struct GstBuffer { 1274 pub mini_object: GstMiniObject, 1275 pub pool: *mut GstBufferPool, 1276 pub pts: GstClockTime, 1277 pub dts: GstClockTime, 1278 pub duration: GstClockTime, 1279 pub offset: u64, 1280 pub offset_end: u64, 1281 } 1282 1283 impl ::std::fmt::Debug for GstBuffer { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1284 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1285 f.debug_struct(&format!("GstBuffer @ {:?}", self as *const _)) 1286 .field("mini_object", &self.mini_object) 1287 .field("pool", &self.pool) 1288 .field("pts", &self.pts) 1289 .field("dts", &self.dts) 1290 .field("duration", &self.duration) 1291 .field("offset", &self.offset) 1292 .field("offset_end", &self.offset_end) 1293 .finish() 1294 } 1295 } 1296 1297 #[repr(C)] 1298 pub struct GstBufferList(c_void); 1299 1300 impl ::std::fmt::Debug for GstBufferList { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1301 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1302 f.debug_struct(&format!("GstBufferList @ {:?}", self as *const _)) 1303 .finish() 1304 } 1305 } 1306 1307 #[repr(C)] 1308 #[derive(Copy, Clone)] 1309 pub struct GstBufferPoolAcquireParams { 1310 pub format: GstFormat, 1311 pub start: i64, 1312 pub stop: i64, 1313 pub flags: GstBufferPoolAcquireFlags, 1314 pub _gst_reserved: [gpointer; 4], 1315 } 1316 1317 impl ::std::fmt::Debug for GstBufferPoolAcquireParams { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1318 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1319 f.debug_struct(&format!( 1320 "GstBufferPoolAcquireParams @ {:?}", 1321 self as *const _ 1322 )) 1323 .field("format", &self.format) 1324 .field("start", &self.start) 1325 .field("stop", &self.stop) 1326 .field("flags", &self.flags) 1327 .finish() 1328 } 1329 } 1330 1331 #[repr(C)] 1332 #[derive(Copy, Clone)] 1333 pub struct GstBufferPoolClass { 1334 pub object_class: GstObjectClass, 1335 pub get_options: Option<unsafe extern "C" fn(*mut GstBufferPool) -> *mut *const c_char>, 1336 pub set_config: Option<unsafe extern "C" fn(*mut GstBufferPool, *mut GstStructure) -> gboolean>, 1337 pub start: Option<unsafe extern "C" fn(*mut GstBufferPool) -> gboolean>, 1338 pub stop: Option<unsafe extern "C" fn(*mut GstBufferPool) -> gboolean>, 1339 pub acquire_buffer: Option< 1340 unsafe extern "C" fn( 1341 *mut GstBufferPool, 1342 *mut *mut GstBuffer, 1343 *mut GstBufferPoolAcquireParams, 1344 ) -> GstFlowReturn, 1345 >, 1346 pub alloc_buffer: Option< 1347 unsafe extern "C" fn( 1348 *mut GstBufferPool, 1349 *mut *mut GstBuffer, 1350 *mut GstBufferPoolAcquireParams, 1351 ) -> GstFlowReturn, 1352 >, 1353 pub reset_buffer: Option<unsafe extern "C" fn(*mut GstBufferPool, *mut GstBuffer)>, 1354 pub release_buffer: Option<unsafe extern "C" fn(*mut GstBufferPool, *mut GstBuffer)>, 1355 pub free_buffer: Option<unsafe extern "C" fn(*mut GstBufferPool, *mut GstBuffer)>, 1356 pub flush_start: Option<unsafe extern "C" fn(*mut GstBufferPool)>, 1357 pub flush_stop: Option<unsafe extern "C" fn(*mut GstBufferPool)>, 1358 pub _gst_reserved: [gpointer; 2], 1359 } 1360 1361 impl ::std::fmt::Debug for GstBufferPoolClass { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1362 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1363 f.debug_struct(&format!("GstBufferPoolClass @ {:?}", self as *const _)) 1364 .field("object_class", &self.object_class) 1365 .field("get_options", &self.get_options) 1366 .field("set_config", &self.set_config) 1367 .field("start", &self.start) 1368 .field("stop", &self.stop) 1369 .field("acquire_buffer", &self.acquire_buffer) 1370 .field("alloc_buffer", &self.alloc_buffer) 1371 .field("reset_buffer", &self.reset_buffer) 1372 .field("release_buffer", &self.release_buffer) 1373 .field("free_buffer", &self.free_buffer) 1374 .field("flush_start", &self.flush_start) 1375 .field("flush_stop", &self.flush_stop) 1376 .finish() 1377 } 1378 } 1379 1380 #[repr(C)] 1381 pub struct _GstBufferPoolPrivate(c_void); 1382 1383 pub type GstBufferPoolPrivate = *mut _GstBufferPoolPrivate; 1384 1385 #[repr(C)] 1386 #[derive(Copy, Clone)] 1387 pub struct GstBusClass { 1388 pub parent_class: GstObjectClass, 1389 pub message: Option<unsafe extern "C" fn(*mut GstBus, *mut GstMessage)>, 1390 pub sync_message: Option<unsafe extern "C" fn(*mut GstBus, *mut GstMessage)>, 1391 pub _gst_reserved: [gpointer; 4], 1392 } 1393 1394 impl ::std::fmt::Debug for GstBusClass { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1395 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1396 f.debug_struct(&format!("GstBusClass @ {:?}", self as *const _)) 1397 .field("parent_class", &self.parent_class) 1398 .field("message", &self.message) 1399 .field("sync_message", &self.sync_message) 1400 .finish() 1401 } 1402 } 1403 1404 #[repr(C)] 1405 pub struct _GstBusPrivate(c_void); 1406 1407 pub type GstBusPrivate = *mut _GstBusPrivate; 1408 1409 #[repr(C)] 1410 #[derive(Copy, Clone)] 1411 pub struct GstCaps { 1412 pub mini_object: GstMiniObject, 1413 } 1414 1415 impl ::std::fmt::Debug for GstCaps { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1416 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1417 f.debug_struct(&format!("GstCaps @ {:?}", self as *const _)) 1418 .field("mini_object", &self.mini_object) 1419 .finish() 1420 } 1421 } 1422 1423 #[repr(C)] 1424 pub struct GstCapsFeatures(c_void); 1425 1426 impl ::std::fmt::Debug for GstCapsFeatures { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1427 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1428 f.debug_struct(&format!("GstCapsFeatures @ {:?}", self as *const _)) 1429 .finish() 1430 } 1431 } 1432 1433 #[repr(C)] 1434 #[derive(Copy, Clone)] 1435 pub struct GstChildProxyInterface { 1436 pub parent: gobject::GTypeInterface, 1437 pub get_child_by_name: 1438 Option<unsafe extern "C" fn(*mut GstChildProxy, *const c_char) -> *mut gobject::GObject>, 1439 pub get_child_by_index: 1440 Option<unsafe extern "C" fn(*mut GstChildProxy, c_uint) -> *mut gobject::GObject>, 1441 pub get_children_count: Option<unsafe extern "C" fn(*mut GstChildProxy) -> c_uint>, 1442 pub child_added: 1443 Option<unsafe extern "C" fn(*mut GstChildProxy, *mut gobject::GObject, *const c_char)>, 1444 pub child_removed: 1445 Option<unsafe extern "C" fn(*mut GstChildProxy, *mut gobject::GObject, *const c_char)>, 1446 pub _gst_reserved: [gpointer; 4], 1447 } 1448 1449 impl ::std::fmt::Debug for GstChildProxyInterface { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1450 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1451 f.debug_struct(&format!("GstChildProxyInterface @ {:?}", self as *const _)) 1452 .field("parent", &self.parent) 1453 .field("get_child_by_name", &self.get_child_by_name) 1454 .field("get_child_by_index", &self.get_child_by_index) 1455 .field("get_children_count", &self.get_children_count) 1456 .field("child_added", &self.child_added) 1457 .field("child_removed", &self.child_removed) 1458 .finish() 1459 } 1460 } 1461 1462 #[repr(C)] 1463 #[derive(Copy, Clone)] 1464 pub struct GstClockClass { 1465 pub parent_class: GstObjectClass, 1466 pub change_resolution: 1467 Option<unsafe extern "C" fn(*mut GstClock, GstClockTime, GstClockTime) -> GstClockTime>, 1468 pub get_resolution: Option<unsafe extern "C" fn(*mut GstClock) -> GstClockTime>, 1469 pub get_internal_time: Option<unsafe extern "C" fn(*mut GstClock) -> GstClockTime>, 1470 pub wait: Option< 1471 unsafe extern "C" fn( 1472 *mut GstClock, 1473 *mut GstClockEntry, 1474 *mut GstClockTimeDiff, 1475 ) -> GstClockReturn, 1476 >, 1477 pub wait_async: 1478 Option<unsafe extern "C" fn(*mut GstClock, *mut GstClockEntry) -> GstClockReturn>, 1479 pub unschedule: Option<unsafe extern "C" fn(*mut GstClock, *mut GstClockEntry)>, 1480 pub _gst_reserved: [gpointer; 4], 1481 } 1482 1483 impl ::std::fmt::Debug for GstClockClass { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1484 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1485 f.debug_struct(&format!("GstClockClass @ {:?}", self as *const _)) 1486 .field("parent_class", &self.parent_class) 1487 .field("change_resolution", &self.change_resolution) 1488 .field("get_resolution", &self.get_resolution) 1489 .field("get_internal_time", &self.get_internal_time) 1490 .field("wait", &self.wait) 1491 .field("wait_async", &self.wait_async) 1492 .field("unschedule", &self.unschedule) 1493 .finish() 1494 } 1495 } 1496 1497 #[repr(C)] 1498 #[derive(Copy, Clone)] 1499 pub struct GstClockEntry { 1500 pub refcount: c_int, 1501 pub clock: *mut GstClock, 1502 pub type_: GstClockEntryType, 1503 pub time: GstClockTime, 1504 pub interval: GstClockTime, 1505 pub status: GstClockReturn, 1506 pub func: GstClockCallback, 1507 pub user_data: gpointer, 1508 pub destroy_data: glib::GDestroyNotify, 1509 pub unscheduled: gboolean, 1510 pub woken_up: gboolean, 1511 pub _gst_reserved: [gpointer; 4], 1512 } 1513 1514 impl ::std::fmt::Debug for GstClockEntry { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1515 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1516 f.debug_struct(&format!("GstClockEntry @ {:?}", self as *const _)) 1517 .field("refcount", &self.refcount) 1518 .field("clock", &self.clock) 1519 .field("type_", &self.type_) 1520 .field("time", &self.time) 1521 .field("interval", &self.interval) 1522 .field("status", &self.status) 1523 .field("func", &self.func) 1524 .field("user_data", &self.user_data) 1525 .field("destroy_data", &self.destroy_data) 1526 .field("unscheduled", &self.unscheduled) 1527 .field("woken_up", &self.woken_up) 1528 .finish() 1529 } 1530 } 1531 1532 #[repr(C)] 1533 pub struct _GstClockPrivate(c_void); 1534 1535 pub type GstClockPrivate = *mut _GstClockPrivate; 1536 1537 #[repr(C)] 1538 pub struct GstContext(c_void); 1539 1540 impl ::std::fmt::Debug for GstContext { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1541 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1542 f.debug_struct(&format!("GstContext @ {:?}", self as *const _)) 1543 .finish() 1544 } 1545 } 1546 1547 #[repr(C)] 1548 #[derive(Copy, Clone)] 1549 pub struct GstControlBindingClass { 1550 pub parent_class: GstObjectClass, 1551 pub sync_values: Option< 1552 unsafe extern "C" fn( 1553 *mut GstControlBinding, 1554 *mut GstObject, 1555 GstClockTime, 1556 GstClockTime, 1557 ) -> gboolean, 1558 >, 1559 pub get_value: 1560 Option<unsafe extern "C" fn(*mut GstControlBinding, GstClockTime) -> *mut gobject::GValue>, 1561 pub get_value_array: Option< 1562 unsafe extern "C" fn( 1563 *mut GstControlBinding, 1564 GstClockTime, 1565 GstClockTime, 1566 c_uint, 1567 gpointer, 1568 ) -> gboolean, 1569 >, 1570 pub get_g_value_array: Option< 1571 unsafe extern "C" fn( 1572 *mut GstControlBinding, 1573 GstClockTime, 1574 GstClockTime, 1575 c_uint, 1576 *mut gobject::GValue, 1577 ) -> gboolean, 1578 >, 1579 pub _gst_reserved: [gpointer; 4], 1580 } 1581 1582 impl ::std::fmt::Debug for GstControlBindingClass { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1583 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1584 f.debug_struct(&format!("GstControlBindingClass @ {:?}", self as *const _)) 1585 .field("parent_class", &self.parent_class) 1586 .field("sync_values", &self.sync_values) 1587 .field("get_value", &self.get_value) 1588 .field("get_value_array", &self.get_value_array) 1589 .field("get_g_value_array", &self.get_g_value_array) 1590 .finish() 1591 } 1592 } 1593 1594 #[repr(C)] 1595 pub struct _GstControlBindingPrivate(c_void); 1596 1597 pub type GstControlBindingPrivate = *mut _GstControlBindingPrivate; 1598 1599 #[repr(C)] 1600 #[derive(Copy, Clone)] 1601 pub struct GstControlBinding_ABI_abi { 1602 pub priv_: *mut GstControlBindingPrivate, 1603 } 1604 1605 impl ::std::fmt::Debug for GstControlBinding_ABI_abi { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1606 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1607 f.debug_struct(&format!( 1608 "GstControlBinding_ABI_abi @ {:?}", 1609 self as *const _ 1610 )) 1611 .field("priv_", &self.priv_) 1612 .finish() 1613 } 1614 } 1615 1616 #[repr(C)] 1617 #[derive(Copy, Clone)] 1618 pub struct GstControlSourceClass { 1619 pub parent_class: GstObjectClass, 1620 pub _gst_reserved: [gpointer; 4], 1621 } 1622 1623 impl ::std::fmt::Debug for GstControlSourceClass { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1624 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1625 f.debug_struct(&format!("GstControlSourceClass @ {:?}", self as *const _)) 1626 .field("parent_class", &self.parent_class) 1627 .finish() 1628 } 1629 } 1630 1631 #[repr(C)] 1632 pub struct GstDateTime(c_void); 1633 1634 impl ::std::fmt::Debug for GstDateTime { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1635 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1636 f.debug_struct(&format!("GstDateTime @ {:?}", self as *const _)) 1637 .finish() 1638 } 1639 } 1640 1641 #[repr(C)] 1642 #[derive(Copy, Clone)] 1643 pub struct GstDebugCategory { 1644 pub threshold: c_int, 1645 pub color: c_uint, 1646 pub name: *const c_char, 1647 pub description: *const c_char, 1648 } 1649 1650 impl ::std::fmt::Debug for GstDebugCategory { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1651 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1652 f.debug_struct(&format!("GstDebugCategory @ {:?}", self as *const _)) 1653 .finish() 1654 } 1655 } 1656 1657 #[repr(C)] 1658 pub struct _GstDebugMessage(c_void); 1659 1660 pub type GstDebugMessage = *mut _GstDebugMessage; 1661 1662 #[repr(C)] 1663 #[derive(Copy, Clone)] 1664 pub struct GstDeviceClass { 1665 pub parent_class: GstObjectClass, 1666 pub create_element: 1667 Option<unsafe extern "C" fn(*mut GstDevice, *const c_char) -> *mut GstElement>, 1668 pub reconfigure_element: 1669 Option<unsafe extern "C" fn(*mut GstDevice, *mut GstElement) -> gboolean>, 1670 pub _gst_reserved: [gpointer; 4], 1671 } 1672 1673 impl ::std::fmt::Debug for GstDeviceClass { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1674 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1675 f.debug_struct(&format!("GstDeviceClass @ {:?}", self as *const _)) 1676 .field("parent_class", &self.parent_class) 1677 .field("create_element", &self.create_element) 1678 .field("reconfigure_element", &self.reconfigure_element) 1679 .finish() 1680 } 1681 } 1682 1683 #[repr(C)] 1684 #[derive(Copy, Clone)] 1685 pub struct GstDeviceMonitorClass { 1686 pub parent_class: GstObjectClass, 1687 pub _gst_reserved: [gpointer; 4], 1688 } 1689 1690 impl ::std::fmt::Debug for GstDeviceMonitorClass { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1691 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1692 f.debug_struct(&format!("GstDeviceMonitorClass @ {:?}", self as *const _)) 1693 .field("parent_class", &self.parent_class) 1694 .finish() 1695 } 1696 } 1697 1698 #[repr(C)] 1699 pub struct _GstDeviceMonitorPrivate(c_void); 1700 1701 pub type GstDeviceMonitorPrivate = *mut _GstDeviceMonitorPrivate; 1702 1703 #[repr(C)] 1704 pub struct _GstDevicePrivate(c_void); 1705 1706 pub type GstDevicePrivate = *mut _GstDevicePrivate; 1707 1708 #[repr(C)] 1709 #[derive(Copy, Clone)] 1710 pub struct GstDeviceProviderClass { 1711 pub parent_class: GstObjectClass, 1712 pub factory: *mut GstDeviceProviderFactory, 1713 pub probe: Option<unsafe extern "C" fn(*mut GstDeviceProvider) -> *mut glib::GList>, 1714 pub start: Option<unsafe extern "C" fn(*mut GstDeviceProvider) -> gboolean>, 1715 pub stop: Option<unsafe extern "C" fn(*mut GstDeviceProvider)>, 1716 pub metadata: gpointer, 1717 pub _gst_reserved: [gpointer; 4], 1718 } 1719 1720 impl ::std::fmt::Debug for GstDeviceProviderClass { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1721 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1722 f.debug_struct(&format!("GstDeviceProviderClass @ {:?}", self as *const _)) 1723 .field("parent_class", &self.parent_class) 1724 .field("factory", &self.factory) 1725 .field("probe", &self.probe) 1726 .field("start", &self.start) 1727 .field("stop", &self.stop) 1728 .finish() 1729 } 1730 } 1731 1732 #[repr(C)] 1733 pub struct _GstDeviceProviderFactoryClass(c_void); 1734 1735 pub type GstDeviceProviderFactoryClass = *mut _GstDeviceProviderFactoryClass; 1736 1737 #[repr(C)] 1738 pub struct _GstDeviceProviderPrivate(c_void); 1739 1740 pub type GstDeviceProviderPrivate = *mut _GstDeviceProviderPrivate; 1741 1742 #[repr(C)] 1743 pub struct _GstDynamicTypeFactoryClass(c_void); 1744 1745 pub type GstDynamicTypeFactoryClass = *mut _GstDynamicTypeFactoryClass; 1746 1747 #[repr(C)] 1748 #[derive(Copy, Clone)] 1749 pub struct GstElementClass { 1750 pub parent_class: GstObjectClass, 1751 pub metadata: gpointer, 1752 pub elementfactory: *mut GstElementFactory, 1753 pub padtemplates: *mut glib::GList, 1754 pub numpadtemplates: c_int, 1755 pub pad_templ_cookie: u32, 1756 pub pad_added: Option<unsafe extern "C" fn(*mut GstElement, *mut GstPad)>, 1757 pub pad_removed: Option<unsafe extern "C" fn(*mut GstElement, *mut GstPad)>, 1758 pub no_more_pads: Option<unsafe extern "C" fn(*mut GstElement)>, 1759 pub request_new_pad: Option< 1760 unsafe extern "C" fn( 1761 *mut GstElement, 1762 *mut GstPadTemplate, 1763 *const c_char, 1764 *const GstCaps, 1765 ) -> *mut GstPad, 1766 >, 1767 pub release_pad: Option<unsafe extern "C" fn(*mut GstElement, *mut GstPad)>, 1768 pub get_state: Option< 1769 unsafe extern "C" fn( 1770 *mut GstElement, 1771 *mut GstState, 1772 *mut GstState, 1773 GstClockTime, 1774 ) -> GstStateChangeReturn, 1775 >, 1776 pub set_state: Option<unsafe extern "C" fn(*mut GstElement, GstState) -> GstStateChangeReturn>, 1777 pub change_state: 1778 Option<unsafe extern "C" fn(*mut GstElement, GstStateChange) -> GstStateChangeReturn>, 1779 pub state_changed: Option<unsafe extern "C" fn(*mut GstElement, GstState, GstState, GstState)>, 1780 pub set_bus: Option<unsafe extern "C" fn(*mut GstElement, *mut GstBus)>, 1781 pub provide_clock: Option<unsafe extern "C" fn(*mut GstElement) -> *mut GstClock>, 1782 pub set_clock: Option<unsafe extern "C" fn(*mut GstElement, *mut GstClock) -> gboolean>, 1783 pub send_event: Option<unsafe extern "C" fn(*mut GstElement, *mut GstEvent) -> gboolean>, 1784 pub query: Option<unsafe extern "C" fn(*mut GstElement, *mut GstQuery) -> gboolean>, 1785 pub post_message: Option<unsafe extern "C" fn(*mut GstElement, *mut GstMessage) -> gboolean>, 1786 pub set_context: Option<unsafe extern "C" fn(*mut GstElement, *mut GstContext)>, 1787 pub _gst_reserved: [gpointer; 18], 1788 } 1789 1790 impl ::std::fmt::Debug for GstElementClass { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1791 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1792 f.debug_struct(&format!("GstElementClass @ {:?}", self as *const _)) 1793 .field("parent_class", &self.parent_class) 1794 .field("metadata", &self.metadata) 1795 .field("elementfactory", &self.elementfactory) 1796 .field("padtemplates", &self.padtemplates) 1797 .field("numpadtemplates", &self.numpadtemplates) 1798 .field("pad_templ_cookie", &self.pad_templ_cookie) 1799 .field("pad_added", &self.pad_added) 1800 .field("pad_removed", &self.pad_removed) 1801 .field("no_more_pads", &self.no_more_pads) 1802 .field("request_new_pad", &self.request_new_pad) 1803 .field("release_pad", &self.release_pad) 1804 .field("get_state", &self.get_state) 1805 .field("set_state", &self.set_state) 1806 .field("change_state", &self.change_state) 1807 .field("state_changed", &self.state_changed) 1808 .field("set_bus", &self.set_bus) 1809 .field("provide_clock", &self.provide_clock) 1810 .field("set_clock", &self.set_clock) 1811 .field("send_event", &self.send_event) 1812 .field("query", &self.query) 1813 .field("post_message", &self.post_message) 1814 .field("set_context", &self.set_context) 1815 .finish() 1816 } 1817 } 1818 1819 #[repr(C)] 1820 pub struct _GstElementFactoryClass(c_void); 1821 1822 pub type GstElementFactoryClass = *mut _GstElementFactoryClass; 1823 1824 #[repr(C)] 1825 #[derive(Copy, Clone)] 1826 pub struct GstEvent { 1827 pub mini_object: GstMiniObject, 1828 pub type_: GstEventType, 1829 pub timestamp: u64, 1830 pub seqnum: u32, 1831 } 1832 1833 impl ::std::fmt::Debug for GstEvent { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1834 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1835 f.debug_struct(&format!("GstEvent @ {:?}", self as *const _)) 1836 .field("mini_object", &self.mini_object) 1837 .field("type_", &self.type_) 1838 .field("timestamp", &self.timestamp) 1839 .field("seqnum", &self.seqnum) 1840 .finish() 1841 } 1842 } 1843 1844 #[repr(C)] 1845 #[derive(Copy, Clone)] 1846 pub struct GstFormatDefinition { 1847 pub value: GstFormat, 1848 pub nick: *const c_char, 1849 pub description: *const c_char, 1850 pub quark: glib::GQuark, 1851 } 1852 1853 impl ::std::fmt::Debug for GstFormatDefinition { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1854 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1855 f.debug_struct(&format!("GstFormatDefinition @ {:?}", self as *const _)) 1856 .field("value", &self.value) 1857 .field("nick", &self.nick) 1858 .field("description", &self.description) 1859 .field("quark", &self.quark) 1860 .finish() 1861 } 1862 } 1863 1864 #[repr(C)] 1865 #[derive(Copy, Clone)] 1866 pub struct GstGhostPadClass { 1867 pub parent_class: GstProxyPadClass, 1868 pub _gst_reserved: [gpointer; 4], 1869 } 1870 1871 impl ::std::fmt::Debug for GstGhostPadClass { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1872 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1873 f.debug_struct(&format!("GstGhostPadClass @ {:?}", self as *const _)) 1874 .field("parent_class", &self.parent_class) 1875 .finish() 1876 } 1877 } 1878 1879 #[repr(C)] 1880 pub struct _GstGhostPadPrivate(c_void); 1881 1882 pub type GstGhostPadPrivate = *mut _GstGhostPadPrivate; 1883 1884 #[repr(C)] 1885 #[derive(Copy, Clone)] 1886 pub struct GstIterator { 1887 pub copy: GstIteratorCopyFunction, 1888 pub next: GstIteratorNextFunction, 1889 pub item: GstIteratorItemFunction, 1890 pub resync: GstIteratorResyncFunction, 1891 pub free: GstIteratorFreeFunction, 1892 pub pushed: *mut GstIterator, 1893 pub type_: GType, 1894 pub lock: *mut glib::GMutex, 1895 pub cookie: u32, 1896 pub master_cookie: *mut u32, 1897 pub size: c_uint, 1898 pub _gst_reserved: [gpointer; 4], 1899 } 1900 1901 impl ::std::fmt::Debug for GstIterator { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1902 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1903 f.debug_struct(&format!("GstIterator @ {:?}", self as *const _)) 1904 .field("copy", &self.copy) 1905 .field("next", &self.next) 1906 .field("item", &self.item) 1907 .field("resync", &self.resync) 1908 .field("free", &self.free) 1909 .field("pushed", &self.pushed) 1910 .field("type_", &self.type_) 1911 .field("lock", &self.lock) 1912 .field("cookie", &self.cookie) 1913 .field("master_cookie", &self.master_cookie) 1914 .field("size", &self.size) 1915 .finish() 1916 } 1917 } 1918 1919 #[repr(C)] 1920 #[derive(Copy, Clone)] 1921 pub struct GstMapInfo { 1922 pub memory: *mut GstMemory, 1923 pub flags: GstMapFlags, 1924 pub data: *mut u8, 1925 pub size: size_t, 1926 pub maxsize: size_t, 1927 pub user_data: [gpointer; 4], 1928 pub _gst_reserved: [gpointer; 4], 1929 } 1930 1931 impl ::std::fmt::Debug for GstMapInfo { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1932 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1933 f.debug_struct(&format!("GstMapInfo @ {:?}", self as *const _)) 1934 .field("memory", &self.memory) 1935 .field("flags", &self.flags) 1936 .field("data", &self.data) 1937 .field("size", &self.size) 1938 .field("maxsize", &self.maxsize) 1939 .field("user_data", &self.user_data) 1940 .finish() 1941 } 1942 } 1943 1944 #[repr(C)] 1945 #[derive(Copy, Clone)] 1946 pub struct GstMemory { 1947 pub mini_object: GstMiniObject, 1948 pub allocator: *mut GstAllocator, 1949 pub parent: *mut GstMemory, 1950 pub maxsize: size_t, 1951 pub align: size_t, 1952 pub offset: size_t, 1953 pub size: size_t, 1954 } 1955 1956 impl ::std::fmt::Debug for GstMemory { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1957 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1958 f.debug_struct(&format!("GstMemory @ {:?}", self as *const _)) 1959 .field("mini_object", &self.mini_object) 1960 .field("allocator", &self.allocator) 1961 .field("parent", &self.parent) 1962 .field("maxsize", &self.maxsize) 1963 .field("align", &self.align) 1964 .field("offset", &self.offset) 1965 .field("size", &self.size) 1966 .finish() 1967 } 1968 } 1969 1970 #[repr(C)] 1971 #[derive(Copy, Clone)] 1972 pub struct GstMessage { 1973 pub mini_object: GstMiniObject, 1974 pub type_: GstMessageType, 1975 pub timestamp: u64, 1976 pub src: *mut GstObject, 1977 pub seqnum: u32, 1978 pub lock: glib::GMutex, 1979 pub cond: glib::GCond, 1980 } 1981 1982 impl ::std::fmt::Debug for GstMessage { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1983 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1984 f.debug_struct(&format!("GstMessage @ {:?}", self as *const _)) 1985 .field("mini_object", &self.mini_object) 1986 .field("type_", &self.type_) 1987 .field("timestamp", &self.timestamp) 1988 .field("src", &self.src) 1989 .field("seqnum", &self.seqnum) 1990 .finish() 1991 } 1992 } 1993 1994 #[repr(C)] 1995 #[derive(Copy, Clone)] 1996 pub struct GstMeta { 1997 pub flags: GstMetaFlags, 1998 pub info: *const GstMetaInfo, 1999 } 2000 2001 impl ::std::fmt::Debug for GstMeta { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result2002 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 2003 f.debug_struct(&format!("GstMeta @ {:?}", self as *const _)) 2004 .field("flags", &self.flags) 2005 .field("info", &self.info) 2006 .finish() 2007 } 2008 } 2009 2010 #[repr(C)] 2011 #[derive(Copy, Clone)] 2012 pub struct GstMetaInfo { 2013 pub api: GType, 2014 pub type_: GType, 2015 pub size: size_t, 2016 pub init_func: GstMetaInitFunction, 2017 pub free_func: GstMetaFreeFunction, 2018 pub transform_func: GstMetaTransformFunction, 2019 } 2020 2021 impl ::std::fmt::Debug for GstMetaInfo { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result2022 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 2023 f.debug_struct(&format!("GstMetaInfo @ {:?}", self as *const _)) 2024 .field("api", &self.api) 2025 .field("type_", &self.type_) 2026 .field("size", &self.size) 2027 .field("init_func", &self.init_func) 2028 .field("free_func", &self.free_func) 2029 .field("transform_func", &self.transform_func) 2030 .finish() 2031 } 2032 } 2033 2034 #[repr(C)] 2035 #[derive(Copy, Clone)] 2036 pub struct GstMetaTransformCopy { 2037 pub region: gboolean, 2038 pub offset: size_t, 2039 pub size: size_t, 2040 } 2041 2042 impl ::std::fmt::Debug for GstMetaTransformCopy { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result2043 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 2044 f.debug_struct(&format!("GstMetaTransformCopy @ {:?}", self as *const _)) 2045 .field("region", &self.region) 2046 .field("offset", &self.offset) 2047 .field("size", &self.size) 2048 .finish() 2049 } 2050 } 2051 2052 #[repr(C)] 2053 #[derive(Copy, Clone)] 2054 pub struct GstMiniObject { 2055 pub type_: GType, 2056 pub refcount: c_int, 2057 pub lockstate: c_int, 2058 pub flags: c_uint, 2059 pub copy: GstMiniObjectCopyFunction, 2060 pub dispose: GstMiniObjectDisposeFunction, 2061 pub free: GstMiniObjectFreeFunction, 2062 pub priv_uint: c_uint, 2063 pub priv_pointer: gpointer, 2064 } 2065 2066 impl ::std::fmt::Debug for GstMiniObject { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result2067 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 2068 f.debug_struct(&format!("GstMiniObject @ {:?}", self as *const _)) 2069 .field("type_", &self.type_) 2070 .field("refcount", &self.refcount) 2071 .field("lockstate", &self.lockstate) 2072 .field("flags", &self.flags) 2073 .field("copy", &self.copy) 2074 .field("dispose", &self.dispose) 2075 .field("free", &self.free) 2076 .finish() 2077 } 2078 } 2079 2080 #[repr(C)] 2081 #[derive(Copy, Clone)] 2082 pub struct GstObjectClass { 2083 pub parent_class: gobject::GInitiallyUnownedClass, 2084 pub path_string_separator: *const c_char, 2085 pub deep_notify: 2086 Option<unsafe extern "C" fn(*mut GstObject, *mut GstObject, *mut gobject::GParamSpec)>, 2087 pub _gst_reserved: [gpointer; 4], 2088 } 2089 2090 impl ::std::fmt::Debug for GstObjectClass { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result2091 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 2092 f.debug_struct(&format!("GstObjectClass @ {:?}", self as *const _)) 2093 .field("parent_class", &self.parent_class) 2094 .field("path_string_separator", &self.path_string_separator) 2095 .field("deep_notify", &self.deep_notify) 2096 .finish() 2097 } 2098 } 2099 2100 #[repr(C)] 2101 #[derive(Copy, Clone)] 2102 pub struct GstPadClass { 2103 pub parent_class: GstObjectClass, 2104 pub linked: Option<unsafe extern "C" fn(*mut GstPad, *mut GstPad)>, 2105 pub unlinked: Option<unsafe extern "C" fn(*mut GstPad, *mut GstPad)>, 2106 pub _gst_reserved: [gpointer; 4], 2107 } 2108 2109 impl ::std::fmt::Debug for GstPadClass { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result2110 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 2111 f.debug_struct(&format!("GstPadClass @ {:?}", self as *const _)) 2112 .field("parent_class", &self.parent_class) 2113 .field("linked", &self.linked) 2114 .field("unlinked", &self.unlinked) 2115 .finish() 2116 } 2117 } 2118 2119 #[repr(C)] 2120 pub struct _GstPadPrivate(c_void); 2121 2122 pub type GstPadPrivate = *mut _GstPadPrivate; 2123 2124 #[repr(C)] 2125 #[derive(Copy, Clone)] 2126 pub struct GstPadProbeInfo { 2127 pub type_: GstPadProbeType, 2128 pub id: c_ulong, 2129 pub data: gpointer, 2130 pub offset: u64, 2131 pub size: c_uint, 2132 pub ABI: GstPadProbeInfo_ABI, 2133 } 2134 2135 impl ::std::fmt::Debug for GstPadProbeInfo { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result2136 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 2137 f.debug_struct(&format!("GstPadProbeInfo @ {:?}", self as *const _)) 2138 .field("type_", &self.type_) 2139 .field("id", &self.id) 2140 .field("data", &self.data) 2141 .field("offset", &self.offset) 2142 .field("size", &self.size) 2143 .field("ABI", &self.ABI) 2144 .finish() 2145 } 2146 } 2147 2148 #[repr(C)] 2149 #[derive(Copy, Clone)] 2150 pub struct GstPadProbeInfo_ABI_abi { 2151 pub flow_ret: GstFlowReturn, 2152 } 2153 2154 impl ::std::fmt::Debug for GstPadProbeInfo_ABI_abi { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result2155 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 2156 f.debug_struct(&format!("GstPadProbeInfo_ABI_abi @ {:?}", self as *const _)) 2157 .field("flow_ret", &self.flow_ret) 2158 .finish() 2159 } 2160 } 2161 2162 #[repr(C)] 2163 #[derive(Copy, Clone)] 2164 pub struct GstPadTemplateClass { 2165 pub parent_class: GstObjectClass, 2166 pub pad_created: Option<unsafe extern "C" fn(*mut GstPadTemplate, *mut GstPad)>, 2167 pub _gst_reserved: [gpointer; 4], 2168 } 2169 2170 impl ::std::fmt::Debug for GstPadTemplateClass { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result2171 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 2172 f.debug_struct(&format!("GstPadTemplateClass @ {:?}", self as *const _)) 2173 .field("parent_class", &self.parent_class) 2174 .field("pad_created", &self.pad_created) 2175 .finish() 2176 } 2177 } 2178 2179 #[repr(C)] 2180 #[derive(Copy, Clone)] 2181 pub struct GstPadTemplate_ABI_abi { 2182 pub gtype: GType, 2183 } 2184 2185 impl ::std::fmt::Debug for GstPadTemplate_ABI_abi { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result2186 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 2187 f.debug_struct(&format!("GstPadTemplate_ABI_abi @ {:?}", self as *const _)) 2188 .field("gtype", &self.gtype) 2189 .finish() 2190 } 2191 } 2192 2193 #[repr(C)] 2194 #[derive(Copy, Clone)] 2195 pub struct GstPad_ABI_abi { 2196 pub last_flowret: GstFlowReturn, 2197 pub eventfullfunc: GstPadEventFullFunction, 2198 } 2199 2200 impl ::std::fmt::Debug for GstPad_ABI_abi { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result2201 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 2202 f.debug_struct(&format!("GstPad_ABI_abi @ {:?}", self as *const _)) 2203 .field("last_flowret", &self.last_flowret) 2204 .field("eventfullfunc", &self.eventfullfunc) 2205 .finish() 2206 } 2207 } 2208 2209 #[repr(C)] 2210 #[derive(Copy, Clone)] 2211 pub struct GstParamSpecArray { 2212 pub parent_instance: gobject::GParamSpec, 2213 pub element_spec: *mut gobject::GParamSpec, 2214 } 2215 2216 impl ::std::fmt::Debug for GstParamSpecArray { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result2217 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 2218 f.debug_struct(&format!("GstParamSpecArray @ {:?}", self as *const _)) 2219 .field("parent_instance", &self.parent_instance) 2220 .field("element_spec", &self.element_spec) 2221 .finish() 2222 } 2223 } 2224 2225 #[repr(C)] 2226 #[derive(Copy, Clone)] 2227 pub struct GstParamSpecFraction { 2228 pub parent_instance: gobject::GParamSpec, 2229 pub min_num: c_int, 2230 pub min_den: c_int, 2231 pub max_num: c_int, 2232 pub max_den: c_int, 2233 pub def_num: c_int, 2234 pub def_den: c_int, 2235 } 2236 2237 impl ::std::fmt::Debug for GstParamSpecFraction { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result2238 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 2239 f.debug_struct(&format!("GstParamSpecFraction @ {:?}", self as *const _)) 2240 .field("parent_instance", &self.parent_instance) 2241 .field("min_num", &self.min_num) 2242 .field("min_den", &self.min_den) 2243 .field("max_num", &self.max_num) 2244 .field("max_den", &self.max_den) 2245 .field("def_num", &self.def_num) 2246 .field("def_den", &self.def_den) 2247 .finish() 2248 } 2249 } 2250 2251 #[repr(C)] 2252 #[derive(Copy, Clone)] 2253 pub struct GstParentBufferMeta { 2254 pub parent: GstMeta, 2255 pub buffer: *mut GstBuffer, 2256 } 2257 2258 impl ::std::fmt::Debug for GstParentBufferMeta { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result2259 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 2260 f.debug_struct(&format!("GstParentBufferMeta @ {:?}", self as *const _)) 2261 .field("parent", &self.parent) 2262 .field("buffer", &self.buffer) 2263 .finish() 2264 } 2265 } 2266 2267 #[repr(C)] 2268 pub struct GstParseContext(c_void); 2269 2270 impl ::std::fmt::Debug for GstParseContext { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result2271 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 2272 f.debug_struct(&format!("GstParseContext @ {:?}", self as *const _)) 2273 .finish() 2274 } 2275 } 2276 2277 #[repr(C)] 2278 #[derive(Copy, Clone)] 2279 pub struct GstPipelineClass { 2280 pub parent_class: GstBinClass, 2281 pub _gst_reserved: [gpointer; 4], 2282 } 2283 2284 impl ::std::fmt::Debug for GstPipelineClass { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result2285 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 2286 f.debug_struct(&format!("GstPipelineClass @ {:?}", self as *const _)) 2287 .field("parent_class", &self.parent_class) 2288 .finish() 2289 } 2290 } 2291 2292 #[repr(C)] 2293 pub struct _GstPipelinePrivate(c_void); 2294 2295 pub type GstPipelinePrivate = *mut _GstPipelinePrivate; 2296 2297 #[repr(C)] 2298 pub struct _GstPluginClass(c_void); 2299 2300 pub type GstPluginClass = *mut _GstPluginClass; 2301 2302 #[repr(C)] 2303 #[derive(Copy, Clone)] 2304 pub struct GstPluginDesc { 2305 pub major_version: c_int, 2306 pub minor_version: c_int, 2307 pub name: *const c_char, 2308 pub description: *const c_char, 2309 pub plugin_init: GstPluginInitFunc, 2310 pub version: *const c_char, 2311 pub license: *const c_char, 2312 pub source: *const c_char, 2313 pub package: *const c_char, 2314 pub origin: *const c_char, 2315 pub release_datetime: *const c_char, 2316 pub _gst_reserved: [gpointer; 4], 2317 } 2318 2319 impl ::std::fmt::Debug for GstPluginDesc { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result2320 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 2321 f.debug_struct(&format!("GstPluginDesc @ {:?}", self as *const _)) 2322 .field("major_version", &self.major_version) 2323 .field("minor_version", &self.minor_version) 2324 .field("name", &self.name) 2325 .field("description", &self.description) 2326 .field("plugin_init", &self.plugin_init) 2327 .field("version", &self.version) 2328 .field("license", &self.license) 2329 .field("source", &self.source) 2330 .field("package", &self.package) 2331 .field("origin", &self.origin) 2332 .field("release_datetime", &self.release_datetime) 2333 .finish() 2334 } 2335 } 2336 2337 #[repr(C)] 2338 pub struct _GstPluginFeatureClass(c_void); 2339 2340 pub type GstPluginFeatureClass = *mut _GstPluginFeatureClass; 2341 2342 #[repr(C)] 2343 pub struct _GstPoll(c_void); 2344 2345 pub type GstPoll = *mut _GstPoll; 2346 2347 #[repr(C)] 2348 #[derive(Copy, Clone)] 2349 pub struct GstPollFD { 2350 pub fd: c_int, 2351 pub idx: c_int, 2352 } 2353 2354 impl ::std::fmt::Debug for GstPollFD { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result2355 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 2356 f.debug_struct(&format!("GstPollFD @ {:?}", self as *const _)) 2357 .field("fd", &self.fd) 2358 .finish() 2359 } 2360 } 2361 2362 #[repr(C)] 2363 #[derive(Copy, Clone)] 2364 pub struct GstPresetInterface { 2365 pub parent: gobject::GTypeInterface, 2366 pub get_preset_names: Option<unsafe extern "C" fn(*mut GstPreset) -> *mut *mut c_char>, 2367 pub get_property_names: Option<unsafe extern "C" fn(*mut GstPreset) -> *mut *mut c_char>, 2368 pub load_preset: Option<unsafe extern "C" fn(*mut GstPreset, *const c_char) -> gboolean>, 2369 pub save_preset: Option<unsafe extern "C" fn(*mut GstPreset, *const c_char) -> gboolean>, 2370 pub rename_preset: 2371 Option<unsafe extern "C" fn(*mut GstPreset, *const c_char, *const c_char) -> gboolean>, 2372 pub delete_preset: Option<unsafe extern "C" fn(*mut GstPreset, *const c_char) -> gboolean>, 2373 pub set_meta: Option< 2374 unsafe extern "C" fn( 2375 *mut GstPreset, 2376 *const c_char, 2377 *const c_char, 2378 *mut *mut c_char, 2379 ) -> gboolean, 2380 >, 2381 pub get_meta: Option< 2382 unsafe extern "C" fn( 2383 *mut GstPreset, 2384 *const c_char, 2385 *const c_char, 2386 *mut *mut c_char, 2387 ) -> gboolean, 2388 >, 2389 pub _gst_reserved: [gpointer; 4], 2390 } 2391 2392 impl ::std::fmt::Debug for GstPresetInterface { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result2393 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 2394 f.debug_struct(&format!("GstPresetInterface @ {:?}", self as *const _)) 2395 .field("parent", &self.parent) 2396 .field("get_preset_names", &self.get_preset_names) 2397 .field("get_property_names", &self.get_property_names) 2398 .field("load_preset", &self.load_preset) 2399 .field("save_preset", &self.save_preset) 2400 .field("rename_preset", &self.rename_preset) 2401 .field("delete_preset", &self.delete_preset) 2402 .field("set_meta", &self.set_meta) 2403 .field("get_meta", &self.get_meta) 2404 .finish() 2405 } 2406 } 2407 2408 #[repr(C)] 2409 #[derive(Copy, Clone)] 2410 pub struct GstPromise { 2411 pub parent: GstMiniObject, 2412 } 2413 2414 impl ::std::fmt::Debug for GstPromise { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result2415 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 2416 f.debug_struct(&format!("GstPromise @ {:?}", self as *const _)) 2417 .field("parent", &self.parent) 2418 .finish() 2419 } 2420 } 2421 2422 #[repr(C)] 2423 #[derive(Copy, Clone)] 2424 pub struct GstProtectionMeta { 2425 pub meta: GstMeta, 2426 pub info: *mut GstStructure, 2427 } 2428 2429 impl ::std::fmt::Debug for GstProtectionMeta { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result2430 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 2431 f.debug_struct(&format!("GstProtectionMeta @ {:?}", self as *const _)) 2432 .field("meta", &self.meta) 2433 .field("info", &self.info) 2434 .finish() 2435 } 2436 } 2437 2438 #[repr(C)] 2439 #[derive(Copy, Clone)] 2440 pub struct GstProxyPadClass { 2441 pub parent_class: GstPadClass, 2442 pub _gst_reserved: [gpointer; 1], 2443 } 2444 2445 impl ::std::fmt::Debug for GstProxyPadClass { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result2446 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 2447 f.debug_struct(&format!("GstProxyPadClass @ {:?}", self as *const _)) 2448 .field("parent_class", &self.parent_class) 2449 .finish() 2450 } 2451 } 2452 2453 #[repr(C)] 2454 pub struct _GstProxyPadPrivate(c_void); 2455 2456 pub type GstProxyPadPrivate = *mut _GstProxyPadPrivate; 2457 2458 #[repr(C)] 2459 #[derive(Copy, Clone)] 2460 pub struct GstQuery { 2461 pub mini_object: GstMiniObject, 2462 pub type_: GstQueryType, 2463 } 2464 2465 impl ::std::fmt::Debug for GstQuery { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result2466 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 2467 f.debug_struct(&format!("GstQuery @ {:?}", self as *const _)) 2468 .field("mini_object", &self.mini_object) 2469 .field("type_", &self.type_) 2470 .finish() 2471 } 2472 } 2473 2474 #[repr(C)] 2475 #[derive(Copy, Clone)] 2476 pub struct GstReferenceTimestampMeta { 2477 pub parent: GstMeta, 2478 pub reference: *mut GstCaps, 2479 pub timestamp: GstClockTime, 2480 pub duration: GstClockTime, 2481 } 2482 2483 impl ::std::fmt::Debug for GstReferenceTimestampMeta { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result2484 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 2485 f.debug_struct(&format!( 2486 "GstReferenceTimestampMeta @ {:?}", 2487 self as *const _ 2488 )) 2489 .field("parent", &self.parent) 2490 .field("reference", &self.reference) 2491 .field("timestamp", &self.timestamp) 2492 .field("duration", &self.duration) 2493 .finish() 2494 } 2495 } 2496 2497 #[repr(C)] 2498 #[derive(Copy, Clone)] 2499 pub struct GstRegistryClass { 2500 pub parent_class: GstObjectClass, 2501 } 2502 2503 impl ::std::fmt::Debug for GstRegistryClass { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result2504 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 2505 f.debug_struct(&format!("GstRegistryClass @ {:?}", self as *const _)) 2506 .field("parent_class", &self.parent_class) 2507 .finish() 2508 } 2509 } 2510 2511 #[repr(C)] 2512 pub struct _GstRegistryPrivate(c_void); 2513 2514 pub type GstRegistryPrivate = *mut _GstRegistryPrivate; 2515 2516 #[repr(C)] 2517 pub struct GstSample(c_void); 2518 2519 impl ::std::fmt::Debug for GstSample { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result2520 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 2521 f.debug_struct(&format!("GstSample @ {:?}", self as *const _)) 2522 .finish() 2523 } 2524 } 2525 2526 #[repr(C)] 2527 #[derive(Copy, Clone)] 2528 pub struct GstSegment { 2529 pub flags: GstSegmentFlags, 2530 pub rate: c_double, 2531 pub applied_rate: c_double, 2532 pub format: GstFormat, 2533 pub base: u64, 2534 pub offset: u64, 2535 pub start: u64, 2536 pub stop: u64, 2537 pub time: u64, 2538 pub position: u64, 2539 pub duration: u64, 2540 pub _gst_reserved: [gpointer; 4], 2541 } 2542 2543 impl ::std::fmt::Debug for GstSegment { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result2544 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 2545 f.debug_struct(&format!("GstSegment @ {:?}", self as *const _)) 2546 .field("flags", &self.flags) 2547 .field("rate", &self.rate) 2548 .field("applied_rate", &self.applied_rate) 2549 .field("format", &self.format) 2550 .field("base", &self.base) 2551 .field("offset", &self.offset) 2552 .field("start", &self.start) 2553 .field("stop", &self.stop) 2554 .field("time", &self.time) 2555 .field("position", &self.position) 2556 .field("duration", &self.duration) 2557 .finish() 2558 } 2559 } 2560 2561 #[repr(C)] 2562 #[derive(Copy, Clone)] 2563 pub struct GstStaticCaps { 2564 pub caps: *mut GstCaps, 2565 pub string: *const c_char, 2566 pub _gst_reserved: [gpointer; 4], 2567 } 2568 2569 impl ::std::fmt::Debug for GstStaticCaps { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result2570 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 2571 f.debug_struct(&format!("GstStaticCaps @ {:?}", self as *const _)) 2572 .field("caps", &self.caps) 2573 .field("string", &self.string) 2574 .finish() 2575 } 2576 } 2577 2578 #[repr(C)] 2579 #[derive(Copy, Clone)] 2580 pub struct GstStaticPadTemplate { 2581 pub name_template: *const c_char, 2582 pub direction: GstPadDirection, 2583 pub presence: GstPadPresence, 2584 pub static_caps: GstStaticCaps, 2585 } 2586 2587 impl ::std::fmt::Debug for GstStaticPadTemplate { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result2588 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 2589 f.debug_struct(&format!("GstStaticPadTemplate @ {:?}", self as *const _)) 2590 .field("name_template", &self.name_template) 2591 .field("direction", &self.direction) 2592 .field("presence", &self.presence) 2593 .field("static_caps", &self.static_caps) 2594 .finish() 2595 } 2596 } 2597 2598 #[repr(C)] 2599 #[derive(Copy, Clone)] 2600 pub struct GstStreamClass { 2601 pub parent_class: GstObjectClass, 2602 pub _gst_reserved: [gpointer; 4], 2603 } 2604 2605 impl ::std::fmt::Debug for GstStreamClass { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result2606 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 2607 f.debug_struct(&format!("GstStreamClass @ {:?}", self as *const _)) 2608 .field("parent_class", &self.parent_class) 2609 .finish() 2610 } 2611 } 2612 2613 #[repr(C)] 2614 #[derive(Copy, Clone)] 2615 pub struct GstStreamCollectionClass { 2616 pub parent_class: GstObjectClass, 2617 pub stream_notify: Option< 2618 unsafe extern "C" fn(*mut GstStreamCollection, *mut GstStream, *mut gobject::GParamSpec), 2619 >, 2620 pub _gst_reserved: [gpointer; 4], 2621 } 2622 2623 impl ::std::fmt::Debug for GstStreamCollectionClass { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result2624 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 2625 f.debug_struct(&format!( 2626 "GstStreamCollectionClass @ {:?}", 2627 self as *const _ 2628 )) 2629 .field("parent_class", &self.parent_class) 2630 .field("stream_notify", &self.stream_notify) 2631 .finish() 2632 } 2633 } 2634 2635 #[repr(C)] 2636 pub struct _GstStreamCollectionPrivate(c_void); 2637 2638 pub type GstStreamCollectionPrivate = *mut _GstStreamCollectionPrivate; 2639 2640 #[repr(C)] 2641 pub struct _GstStreamPrivate(c_void); 2642 2643 pub type GstStreamPrivate = *mut _GstStreamPrivate; 2644 2645 #[repr(C)] 2646 #[derive(Copy, Clone)] 2647 pub struct GstStructure { 2648 pub type_: GType, 2649 pub name: glib::GQuark, 2650 } 2651 2652 impl ::std::fmt::Debug for GstStructure { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result2653 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 2654 f.debug_struct(&format!("GstStructure @ {:?}", self as *const _)) 2655 .field("type_", &self.type_) 2656 .finish() 2657 } 2658 } 2659 2660 #[repr(C)] 2661 #[derive(Copy, Clone)] 2662 pub struct GstSystemClockClass { 2663 pub parent_class: GstClockClass, 2664 pub _gst_reserved: [gpointer; 4], 2665 } 2666 2667 impl ::std::fmt::Debug for GstSystemClockClass { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result2668 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 2669 f.debug_struct(&format!("GstSystemClockClass @ {:?}", self as *const _)) 2670 .field("parent_class", &self.parent_class) 2671 .finish() 2672 } 2673 } 2674 2675 #[repr(C)] 2676 pub struct _GstSystemClockPrivate(c_void); 2677 2678 pub type GstSystemClockPrivate = *mut _GstSystemClockPrivate; 2679 2680 #[repr(C)] 2681 #[derive(Copy, Clone)] 2682 pub struct GstTagList { 2683 pub mini_object: GstMiniObject, 2684 } 2685 2686 impl ::std::fmt::Debug for GstTagList { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result2687 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 2688 f.debug_struct(&format!("GstTagList @ {:?}", self as *const _)) 2689 .field("mini_object", &self.mini_object) 2690 .finish() 2691 } 2692 } 2693 2694 #[repr(C)] 2695 #[derive(Copy, Clone)] 2696 pub struct GstTagSetterInterface { 2697 pub g_iface: gobject::GTypeInterface, 2698 } 2699 2700 impl ::std::fmt::Debug for GstTagSetterInterface { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result2701 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 2702 f.debug_struct(&format!("GstTagSetterInterface @ {:?}", self as *const _)) 2703 .field("g_iface", &self.g_iface) 2704 .finish() 2705 } 2706 } 2707 2708 #[repr(C)] 2709 #[derive(Copy, Clone)] 2710 pub struct GstTaskClass { 2711 pub parent_class: GstObjectClass, 2712 pub pool: *mut GstTaskPool, 2713 pub _gst_reserved: [gpointer; 4], 2714 } 2715 2716 impl ::std::fmt::Debug for GstTaskClass { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result2717 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 2718 f.debug_struct(&format!("GstTaskClass @ {:?}", self as *const _)) 2719 .field("parent_class", &self.parent_class) 2720 .finish() 2721 } 2722 } 2723 2724 #[repr(C)] 2725 #[derive(Copy, Clone)] 2726 pub struct GstTaskPoolClass { 2727 pub parent_class: GstObjectClass, 2728 pub prepare: Option<unsafe extern "C" fn(*mut GstTaskPool, *mut *mut glib::GError)>, 2729 pub cleanup: Option<unsafe extern "C" fn(*mut GstTaskPool)>, 2730 pub push: Option< 2731 unsafe extern "C" fn( 2732 *mut GstTaskPool, 2733 GstTaskPoolFunction, 2734 gpointer, 2735 *mut *mut glib::GError, 2736 ) -> gpointer, 2737 >, 2738 pub join: Option<unsafe extern "C" fn(*mut GstTaskPool, gpointer)>, 2739 pub _gst_reserved: [gpointer; 4], 2740 } 2741 2742 impl ::std::fmt::Debug for GstTaskPoolClass { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result2743 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 2744 f.debug_struct(&format!("GstTaskPoolClass @ {:?}", self as *const _)) 2745 .field("parent_class", &self.parent_class) 2746 .field("prepare", &self.prepare) 2747 .field("cleanup", &self.cleanup) 2748 .field("push", &self.push) 2749 .field("join", &self.join) 2750 .finish() 2751 } 2752 } 2753 2754 #[repr(C)] 2755 pub struct _GstTaskPrivate(c_void); 2756 2757 pub type GstTaskPrivate = *mut _GstTaskPrivate; 2758 2759 #[repr(C)] 2760 #[derive(Copy, Clone)] 2761 pub struct GstTimedValue { 2762 pub timestamp: GstClockTime, 2763 pub value: c_double, 2764 } 2765 2766 impl ::std::fmt::Debug for GstTimedValue { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result2767 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 2768 f.debug_struct(&format!("GstTimedValue @ {:?}", self as *const _)) 2769 .field("timestamp", &self.timestamp) 2770 .field("value", &self.value) 2771 .finish() 2772 } 2773 } 2774 2775 #[repr(C)] 2776 pub struct GstToc(c_void); 2777 2778 impl ::std::fmt::Debug for GstToc { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result2779 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 2780 f.debug_struct(&format!("GstToc @ {:?}", self as *const _)) 2781 .finish() 2782 } 2783 } 2784 2785 #[repr(C)] 2786 pub struct GstTocEntry(c_void); 2787 2788 impl ::std::fmt::Debug for GstTocEntry { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result2789 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 2790 f.debug_struct(&format!("GstTocEntry @ {:?}", self as *const _)) 2791 .finish() 2792 } 2793 } 2794 2795 #[repr(C)] 2796 #[derive(Copy, Clone)] 2797 pub struct GstTocSetterInterface { 2798 pub g_iface: gobject::GTypeInterface, 2799 } 2800 2801 impl ::std::fmt::Debug for GstTocSetterInterface { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result2802 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 2803 f.debug_struct(&format!("GstTocSetterInterface @ {:?}", self as *const _)) 2804 .field("g_iface", &self.g_iface) 2805 .finish() 2806 } 2807 } 2808 2809 #[repr(C)] 2810 #[derive(Copy, Clone)] 2811 pub struct GstTracerClass { 2812 pub parent_class: GstObjectClass, 2813 pub _gst_reserved: [gpointer; 4], 2814 } 2815 2816 impl ::std::fmt::Debug for GstTracerClass { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result2817 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 2818 f.debug_struct(&format!("GstTracerClass @ {:?}", self as *const _)) 2819 .field("parent_class", &self.parent_class) 2820 .finish() 2821 } 2822 } 2823 2824 #[repr(C)] 2825 pub struct _GstTracerFactoryClass(c_void); 2826 2827 pub type GstTracerFactoryClass = *mut _GstTracerFactoryClass; 2828 2829 #[repr(C)] 2830 pub struct _GstTracerPrivate(c_void); 2831 2832 pub type GstTracerPrivate = *mut _GstTracerPrivate; 2833 2834 #[repr(C)] 2835 pub struct _GstTracerRecordClass(c_void); 2836 2837 pub type GstTracerRecordClass = *mut _GstTracerRecordClass; 2838 2839 #[repr(C)] 2840 #[derive(Copy, Clone)] 2841 pub struct GstTypeFind { 2842 pub peek: Option<unsafe extern "C" fn(gpointer, i64, c_uint) -> *const u8>, 2843 pub suggest: Option<unsafe extern "C" fn(gpointer, c_uint, *mut GstCaps)>, 2844 pub data: gpointer, 2845 pub get_length: Option<unsafe extern "C" fn(gpointer) -> u64>, 2846 pub _gst_reserved: [gpointer; 4], 2847 } 2848 2849 impl ::std::fmt::Debug for GstTypeFind { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result2850 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 2851 f.debug_struct(&format!("GstTypeFind @ {:?}", self as *const _)) 2852 .field("peek", &self.peek) 2853 .field("suggest", &self.suggest) 2854 .field("data", &self.data) 2855 .field("get_length", &self.get_length) 2856 .finish() 2857 } 2858 } 2859 2860 #[repr(C)] 2861 pub struct _GstTypeFindFactoryClass(c_void); 2862 2863 pub type GstTypeFindFactoryClass = *mut _GstTypeFindFactoryClass; 2864 2865 #[repr(C)] 2866 #[derive(Copy, Clone)] 2867 pub struct GstURIHandlerInterface { 2868 pub parent: gobject::GTypeInterface, 2869 pub get_type: Option<unsafe extern "C" fn(GType) -> GstURIType>, 2870 pub get_protocols: Option<unsafe extern "C" fn(GType) -> *const *const c_char>, 2871 pub get_uri: Option<unsafe extern "C" fn(*mut GstURIHandler) -> *mut c_char>, 2872 pub set_uri: Option< 2873 unsafe extern "C" fn(*mut GstURIHandler, *const c_char, *mut *mut glib::GError) -> gboolean, 2874 >, 2875 } 2876 2877 impl ::std::fmt::Debug for GstURIHandlerInterface { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result2878 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 2879 f.debug_struct(&format!("GstURIHandlerInterface @ {:?}", self as *const _)) 2880 .field("parent", &self.parent) 2881 .field("get_type", &self.get_type) 2882 .field("get_protocols", &self.get_protocols) 2883 .field("get_uri", &self.get_uri) 2884 .field("set_uri", &self.set_uri) 2885 .finish() 2886 } 2887 } 2888 2889 #[repr(C)] 2890 pub struct GstUri(c_void); 2891 2892 impl ::std::fmt::Debug for GstUri { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result2893 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 2894 f.debug_struct(&format!("GstUri @ {:?}", self as *const _)) 2895 .finish() 2896 } 2897 } 2898 2899 #[repr(C)] 2900 #[derive(Copy, Clone)] 2901 pub struct GstValueTable { 2902 pub type_: GType, 2903 pub compare: GstValueCompareFunc, 2904 pub serialize: GstValueSerializeFunc, 2905 pub deserialize: GstValueDeserializeFunc, 2906 pub _gst_reserved: [gpointer; 4], 2907 } 2908 2909 impl ::std::fmt::Debug for GstValueTable { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result2910 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 2911 f.debug_struct(&format!("GstValueTable @ {:?}", self as *const _)) 2912 .field("type_", &self.type_) 2913 .field("compare", &self.compare) 2914 .field("serialize", &self.serialize) 2915 .field("deserialize", &self.deserialize) 2916 .finish() 2917 } 2918 } 2919 2920 // Classes 2921 #[repr(C)] 2922 #[derive(Copy, Clone)] 2923 pub struct GstAllocator { 2924 pub object: GstObject, 2925 pub mem_type: *const c_char, 2926 pub mem_map: GstMemoryMapFunction, 2927 pub mem_unmap: GstMemoryUnmapFunction, 2928 pub mem_copy: GstMemoryCopyFunction, 2929 pub mem_share: GstMemoryShareFunction, 2930 pub mem_is_span: GstMemoryIsSpanFunction, 2931 pub mem_map_full: GstMemoryMapFullFunction, 2932 pub mem_unmap_full: GstMemoryUnmapFullFunction, 2933 pub _gst_reserved: [gpointer; 2], 2934 pub priv_: *mut GstAllocatorPrivate, 2935 } 2936 2937 impl ::std::fmt::Debug for GstAllocator { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result2938 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 2939 f.debug_struct(&format!("GstAllocator @ {:?}", self as *const _)) 2940 .field("object", &self.object) 2941 .field("mem_type", &self.mem_type) 2942 .field("mem_map", &self.mem_map) 2943 .field("mem_unmap", &self.mem_unmap) 2944 .field("mem_copy", &self.mem_copy) 2945 .field("mem_share", &self.mem_share) 2946 .field("mem_is_span", &self.mem_is_span) 2947 .field("mem_map_full", &self.mem_map_full) 2948 .field("mem_unmap_full", &self.mem_unmap_full) 2949 .finish() 2950 } 2951 } 2952 2953 #[repr(C)] 2954 #[derive(Copy, Clone)] 2955 pub struct GstBin { 2956 pub element: GstElement, 2957 pub numchildren: c_int, 2958 pub children: *mut glib::GList, 2959 pub children_cookie: u32, 2960 pub child_bus: *mut GstBus, 2961 pub messages: *mut glib::GList, 2962 pub polling: gboolean, 2963 pub state_dirty: gboolean, 2964 pub clock_dirty: gboolean, 2965 pub provided_clock: *mut GstClock, 2966 pub clock_provider: *mut GstElement, 2967 pub priv_: *mut GstBinPrivate, 2968 pub _gst_reserved: [gpointer; 4], 2969 } 2970 2971 impl ::std::fmt::Debug for GstBin { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result2972 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 2973 f.debug_struct(&format!("GstBin @ {:?}", self as *const _)) 2974 .field("element", &self.element) 2975 .field("numchildren", &self.numchildren) 2976 .field("children", &self.children) 2977 .field("children_cookie", &self.children_cookie) 2978 .field("child_bus", &self.child_bus) 2979 .field("messages", &self.messages) 2980 .field("polling", &self.polling) 2981 .field("state_dirty", &self.state_dirty) 2982 .field("clock_dirty", &self.clock_dirty) 2983 .field("provided_clock", &self.provided_clock) 2984 .field("clock_provider", &self.clock_provider) 2985 .finish() 2986 } 2987 } 2988 2989 #[repr(C)] 2990 pub struct GstBitmask(c_void); 2991 2992 impl ::std::fmt::Debug for GstBitmask { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result2993 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 2994 f.debug_struct(&format!("GstBitmask @ {:?}", self as *const _)) 2995 .finish() 2996 } 2997 } 2998 2999 #[repr(C)] 3000 #[derive(Copy, Clone)] 3001 pub struct GstBufferPool { 3002 pub object: GstObject, 3003 pub flushing: c_int, 3004 pub priv_: *mut GstBufferPoolPrivate, 3005 pub _gst_reserved: [gpointer; 4], 3006 } 3007 3008 impl ::std::fmt::Debug for GstBufferPool { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result3009 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 3010 f.debug_struct(&format!("GstBufferPool @ {:?}", self as *const _)) 3011 .field("object", &self.object) 3012 .field("flushing", &self.flushing) 3013 .finish() 3014 } 3015 } 3016 3017 #[repr(C)] 3018 #[derive(Copy, Clone)] 3019 pub struct GstBus { 3020 pub object: GstObject, 3021 pub priv_: *mut GstBusPrivate, 3022 pub _gst_reserved: [gpointer; 4], 3023 } 3024 3025 impl ::std::fmt::Debug for GstBus { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result3026 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 3027 f.debug_struct(&format!("GstBus @ {:?}", self as *const _)) 3028 .field("object", &self.object) 3029 .finish() 3030 } 3031 } 3032 3033 #[repr(C)] 3034 #[derive(Copy, Clone)] 3035 pub struct GstClock { 3036 pub object: GstObject, 3037 pub priv_: *mut GstClockPrivate, 3038 pub _gst_reserved: [gpointer; 4], 3039 } 3040 3041 impl ::std::fmt::Debug for GstClock { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result3042 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 3043 f.debug_struct(&format!("GstClock @ {:?}", self as *const _)) 3044 .field("object", &self.object) 3045 .finish() 3046 } 3047 } 3048 3049 #[repr(C)] 3050 #[derive(Copy, Clone)] 3051 pub struct GstControlBinding { 3052 pub parent: GstObject, 3053 pub name: *mut c_char, 3054 pub pspec: *mut gobject::GParamSpec, 3055 pub object: *mut GstObject, 3056 pub disabled: gboolean, 3057 pub ABI: GstControlBinding_ABI, 3058 } 3059 3060 impl ::std::fmt::Debug for GstControlBinding { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result3061 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 3062 f.debug_struct(&format!("GstControlBinding @ {:?}", self as *const _)) 3063 .field("parent", &self.parent) 3064 .field("name", &self.name) 3065 .field("pspec", &self.pspec) 3066 .field("ABI", &self.ABI) 3067 .finish() 3068 } 3069 } 3070 3071 #[repr(C)] 3072 #[derive(Copy, Clone)] 3073 pub struct GstControlSource { 3074 pub parent: GstObject, 3075 pub get_value: GstControlSourceGetValue, 3076 pub get_value_array: GstControlSourceGetValueArray, 3077 pub _gst_reserved: [gpointer; 4], 3078 } 3079 3080 impl ::std::fmt::Debug for GstControlSource { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result3081 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 3082 f.debug_struct(&format!("GstControlSource @ {:?}", self as *const _)) 3083 .field("parent", &self.parent) 3084 .field("get_value", &self.get_value) 3085 .field("get_value_array", &self.get_value_array) 3086 .finish() 3087 } 3088 } 3089 3090 #[repr(C)] 3091 #[derive(Copy, Clone)] 3092 pub struct GstDevice { 3093 pub parent: GstObject, 3094 pub priv_: *mut GstDevicePrivate, 3095 pub _gst_reserved: [gpointer; 4], 3096 } 3097 3098 impl ::std::fmt::Debug for GstDevice { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result3099 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 3100 f.debug_struct(&format!("GstDevice @ {:?}", self as *const _)) 3101 .field("parent", &self.parent) 3102 .finish() 3103 } 3104 } 3105 3106 #[repr(C)] 3107 #[derive(Copy, Clone)] 3108 pub struct GstDeviceMonitor { 3109 pub parent: GstObject, 3110 pub priv_: *mut GstDeviceMonitorPrivate, 3111 pub _gst_reserved: [gpointer; 4], 3112 } 3113 3114 impl ::std::fmt::Debug for GstDeviceMonitor { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result3115 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 3116 f.debug_struct(&format!("GstDeviceMonitor @ {:?}", self as *const _)) 3117 .field("parent", &self.parent) 3118 .finish() 3119 } 3120 } 3121 3122 #[repr(C)] 3123 #[derive(Copy, Clone)] 3124 pub struct GstDeviceProvider { 3125 pub parent: GstObject, 3126 pub devices: *mut glib::GList, 3127 pub priv_: *mut GstDeviceProviderPrivate, 3128 pub _gst_reserved: [gpointer; 4], 3129 } 3130 3131 impl ::std::fmt::Debug for GstDeviceProvider { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result3132 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 3133 f.debug_struct(&format!("GstDeviceProvider @ {:?}", self as *const _)) 3134 .field("parent", &self.parent) 3135 .field("devices", &self.devices) 3136 .finish() 3137 } 3138 } 3139 3140 #[repr(C)] 3141 pub struct GstDeviceProviderFactory(c_void); 3142 3143 impl ::std::fmt::Debug for GstDeviceProviderFactory { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result3144 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 3145 f.debug_struct(&format!( 3146 "GstDeviceProviderFactory @ {:?}", 3147 self as *const _ 3148 )) 3149 .finish() 3150 } 3151 } 3152 3153 #[repr(C)] 3154 pub struct GstDoubleRange(c_void); 3155 3156 impl ::std::fmt::Debug for GstDoubleRange { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result3157 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 3158 f.debug_struct(&format!("GstDoubleRange @ {:?}", self as *const _)) 3159 .finish() 3160 } 3161 } 3162 3163 #[repr(C)] 3164 pub struct GstDynamicTypeFactory(c_void); 3165 3166 impl ::std::fmt::Debug for GstDynamicTypeFactory { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result3167 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 3168 f.debug_struct(&format!("GstDynamicTypeFactory @ {:?}", self as *const _)) 3169 .finish() 3170 } 3171 } 3172 3173 #[repr(C)] 3174 #[derive(Copy, Clone)] 3175 pub struct GstElement { 3176 pub object: GstObject, 3177 pub state_lock: glib::GRecMutex, 3178 pub state_cond: glib::GCond, 3179 pub state_cookie: u32, 3180 pub target_state: GstState, 3181 pub current_state: GstState, 3182 pub next_state: GstState, 3183 pub pending_state: GstState, 3184 pub last_return: GstStateChangeReturn, 3185 pub bus: *mut GstBus, 3186 pub clock: *mut GstClock, 3187 pub base_time: GstClockTimeDiff, 3188 pub start_time: GstClockTime, 3189 pub numpads: u16, 3190 pub pads: *mut glib::GList, 3191 pub numsrcpads: u16, 3192 pub srcpads: *mut glib::GList, 3193 pub numsinkpads: u16, 3194 pub sinkpads: *mut glib::GList, 3195 pub pads_cookie: u32, 3196 pub contexts: *mut glib::GList, 3197 pub _gst_reserved: [gpointer; 3], 3198 } 3199 3200 impl ::std::fmt::Debug for GstElement { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result3201 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 3202 f.debug_struct(&format!("GstElement @ {:?}", self as *const _)) 3203 .field("object", &self.object) 3204 .field("state_lock", &self.state_lock) 3205 .field("state_cond", &self.state_cond) 3206 .field("state_cookie", &self.state_cookie) 3207 .field("target_state", &self.target_state) 3208 .field("current_state", &self.current_state) 3209 .field("next_state", &self.next_state) 3210 .field("pending_state", &self.pending_state) 3211 .field("last_return", &self.last_return) 3212 .field("bus", &self.bus) 3213 .field("clock", &self.clock) 3214 .field("base_time", &self.base_time) 3215 .field("start_time", &self.start_time) 3216 .field("numpads", &self.numpads) 3217 .field("pads", &self.pads) 3218 .field("numsrcpads", &self.numsrcpads) 3219 .field("srcpads", &self.srcpads) 3220 .field("numsinkpads", &self.numsinkpads) 3221 .field("sinkpads", &self.sinkpads) 3222 .field("pads_cookie", &self.pads_cookie) 3223 .field("contexts", &self.contexts) 3224 .finish() 3225 } 3226 } 3227 3228 #[repr(C)] 3229 pub struct GstElementFactory(c_void); 3230 3231 impl ::std::fmt::Debug for GstElementFactory { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result3232 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 3233 f.debug_struct(&format!("GstElementFactory @ {:?}", self as *const _)) 3234 .finish() 3235 } 3236 } 3237 3238 #[repr(C)] 3239 pub struct GstFlagSet(c_void); 3240 3241 impl ::std::fmt::Debug for GstFlagSet { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result3242 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 3243 f.debug_struct(&format!("GstFlagSet @ {:?}", self as *const _)) 3244 .finish() 3245 } 3246 } 3247 3248 #[repr(C)] 3249 pub struct GstFraction(c_void); 3250 3251 impl ::std::fmt::Debug for GstFraction { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result3252 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 3253 f.debug_struct(&format!("GstFraction @ {:?}", self as *const _)) 3254 .finish() 3255 } 3256 } 3257 3258 #[repr(C)] 3259 pub struct GstFractionRange(c_void); 3260 3261 impl ::std::fmt::Debug for GstFractionRange { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result3262 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 3263 f.debug_struct(&format!("GstFractionRange @ {:?}", self as *const _)) 3264 .finish() 3265 } 3266 } 3267 3268 #[repr(C)] 3269 #[derive(Copy, Clone)] 3270 pub struct GstGhostPad { 3271 pub pad: GstProxyPad, 3272 pub priv_: *mut GstGhostPadPrivate, 3273 } 3274 3275 impl ::std::fmt::Debug for GstGhostPad { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result3276 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 3277 f.debug_struct(&format!("GstGhostPad @ {:?}", self as *const _)) 3278 .field("pad", &self.pad) 3279 .finish() 3280 } 3281 } 3282 3283 #[repr(C)] 3284 pub struct GstInt64Range(c_void); 3285 3286 impl ::std::fmt::Debug for GstInt64Range { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result3287 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 3288 f.debug_struct(&format!("GstInt64Range @ {:?}", self as *const _)) 3289 .finish() 3290 } 3291 } 3292 3293 #[repr(C)] 3294 pub struct GstIntRange(c_void); 3295 3296 impl ::std::fmt::Debug for GstIntRange { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result3297 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 3298 f.debug_struct(&format!("GstIntRange @ {:?}", self as *const _)) 3299 .finish() 3300 } 3301 } 3302 3303 #[repr(C)] 3304 #[derive(Copy, Clone)] 3305 pub struct GstObject { 3306 pub object: gobject::GInitiallyUnowned, 3307 pub lock: glib::GMutex, 3308 pub name: *mut c_char, 3309 pub parent: *mut GstObject, 3310 pub flags: u32, 3311 pub control_bindings: *mut glib::GList, 3312 pub control_rate: u64, 3313 pub last_sync: u64, 3314 pub _gst_reserved: gpointer, 3315 } 3316 3317 impl ::std::fmt::Debug for GstObject { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result3318 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 3319 f.debug_struct(&format!("GstObject @ {:?}", self as *const _)) 3320 .field("object", &self.object) 3321 .field("lock", &self.lock) 3322 .field("name", &self.name) 3323 .field("parent", &self.parent) 3324 .field("flags", &self.flags) 3325 .finish() 3326 } 3327 } 3328 3329 #[repr(C)] 3330 #[derive(Copy, Clone)] 3331 pub struct GstPad { 3332 pub object: GstObject, 3333 pub element_private: gpointer, 3334 pub padtemplate: *mut GstPadTemplate, 3335 pub direction: GstPadDirection, 3336 pub stream_rec_lock: glib::GRecMutex, 3337 pub task: *mut GstTask, 3338 pub block_cond: glib::GCond, 3339 pub probes: glib::GHookList, 3340 pub mode: GstPadMode, 3341 pub activatefunc: GstPadActivateFunction, 3342 pub activatedata: gpointer, 3343 pub activatenotify: glib::GDestroyNotify, 3344 pub activatemodefunc: GstPadActivateModeFunction, 3345 pub activatemodedata: gpointer, 3346 pub activatemodenotify: glib::GDestroyNotify, 3347 pub peer: *mut GstPad, 3348 pub linkfunc: GstPadLinkFunction, 3349 pub linkdata: gpointer, 3350 pub linknotify: glib::GDestroyNotify, 3351 pub unlinkfunc: GstPadUnlinkFunction, 3352 pub unlinkdata: gpointer, 3353 pub unlinknotify: glib::GDestroyNotify, 3354 pub chainfunc: GstPadChainFunction, 3355 pub chaindata: gpointer, 3356 pub chainnotify: glib::GDestroyNotify, 3357 pub chainlistfunc: GstPadChainListFunction, 3358 pub chainlistdata: gpointer, 3359 pub chainlistnotify: glib::GDestroyNotify, 3360 pub getrangefunc: GstPadGetRangeFunction, 3361 pub getrangedata: gpointer, 3362 pub getrangenotify: glib::GDestroyNotify, 3363 pub eventfunc: GstPadEventFunction, 3364 pub eventdata: gpointer, 3365 pub eventnotify: glib::GDestroyNotify, 3366 pub offset: i64, 3367 pub queryfunc: GstPadQueryFunction, 3368 pub querydata: gpointer, 3369 pub querynotify: glib::GDestroyNotify, 3370 pub iterintlinkfunc: GstPadIterIntLinkFunction, 3371 pub iterintlinkdata: gpointer, 3372 pub iterintlinknotify: glib::GDestroyNotify, 3373 pub num_probes: c_int, 3374 pub num_blocked: c_int, 3375 pub priv_: *mut GstPadPrivate, 3376 pub ABI: GstPad_ABI, 3377 } 3378 3379 impl ::std::fmt::Debug for GstPad { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result3380 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 3381 f.debug_struct(&format!("GstPad @ {:?}", self as *const _)) 3382 .field("object", &self.object) 3383 .field("element_private", &self.element_private) 3384 .field("padtemplate", &self.padtemplate) 3385 .field("direction", &self.direction) 3386 .field("ABI", &self.ABI) 3387 .finish() 3388 } 3389 } 3390 3391 #[repr(C)] 3392 #[derive(Copy, Clone)] 3393 pub struct GstPadTemplate { 3394 pub object: GstObject, 3395 pub name_template: *mut c_char, 3396 pub direction: GstPadDirection, 3397 pub presence: GstPadPresence, 3398 pub caps: *mut GstCaps, 3399 pub ABI: GstPadTemplate_ABI, 3400 } 3401 3402 impl ::std::fmt::Debug for GstPadTemplate { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result3403 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 3404 f.debug_struct(&format!("GstPadTemplate @ {:?}", self as *const _)) 3405 .field("object", &self.object) 3406 .field("name_template", &self.name_template) 3407 .field("direction", &self.direction) 3408 .field("presence", &self.presence) 3409 .field("caps", &self.caps) 3410 .field("ABI", &self.ABI) 3411 .finish() 3412 } 3413 } 3414 3415 #[repr(C)] 3416 pub struct GstParamArray(c_void); 3417 3418 impl ::std::fmt::Debug for GstParamArray { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result3419 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 3420 f.debug_struct(&format!("GstParamArray @ {:?}", self as *const _)) 3421 .finish() 3422 } 3423 } 3424 3425 #[repr(C)] 3426 pub struct GstParamFraction(c_void); 3427 3428 impl ::std::fmt::Debug for GstParamFraction { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result3429 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 3430 f.debug_struct(&format!("GstParamFraction @ {:?}", self as *const _)) 3431 .finish() 3432 } 3433 } 3434 3435 #[repr(C)] 3436 #[derive(Copy, Clone)] 3437 pub struct GstPipeline { 3438 pub bin: GstBin, 3439 pub fixed_clock: *mut GstClock, 3440 pub stream_time: GstClockTime, 3441 pub delay: GstClockTime, 3442 pub priv_: *mut GstPipelinePrivate, 3443 pub _gst_reserved: [gpointer; 4], 3444 } 3445 3446 impl ::std::fmt::Debug for GstPipeline { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result3447 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 3448 f.debug_struct(&format!("GstPipeline @ {:?}", self as *const _)) 3449 .field("bin", &self.bin) 3450 .field("fixed_clock", &self.fixed_clock) 3451 .field("stream_time", &self.stream_time) 3452 .field("delay", &self.delay) 3453 .finish() 3454 } 3455 } 3456 3457 #[repr(C)] 3458 pub struct GstPlugin(c_void); 3459 3460 impl ::std::fmt::Debug for GstPlugin { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result3461 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 3462 f.debug_struct(&format!("GstPlugin @ {:?}", self as *const _)) 3463 .finish() 3464 } 3465 } 3466 3467 #[repr(C)] 3468 pub struct GstPluginFeature(c_void); 3469 3470 impl ::std::fmt::Debug for GstPluginFeature { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result3471 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 3472 f.debug_struct(&format!("GstPluginFeature @ {:?}", self as *const _)) 3473 .finish() 3474 } 3475 } 3476 3477 #[repr(C)] 3478 #[derive(Copy, Clone)] 3479 pub struct GstProxyPad { 3480 pub pad: GstPad, 3481 pub priv_: *mut GstProxyPadPrivate, 3482 } 3483 3484 impl ::std::fmt::Debug for GstProxyPad { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result3485 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 3486 f.debug_struct(&format!("GstProxyPad @ {:?}", self as *const _)) 3487 .field("pad", &self.pad) 3488 .finish() 3489 } 3490 } 3491 3492 #[repr(C)] 3493 #[derive(Copy, Clone)] 3494 pub struct GstRegistry { 3495 pub object: GstObject, 3496 pub priv_: *mut GstRegistryPrivate, 3497 } 3498 3499 impl ::std::fmt::Debug for GstRegistry { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result3500 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 3501 f.debug_struct(&format!("GstRegistry @ {:?}", self as *const _)) 3502 .field("object", &self.object) 3503 .finish() 3504 } 3505 } 3506 3507 #[repr(C)] 3508 #[derive(Copy, Clone)] 3509 pub struct GstStream { 3510 pub object: GstObject, 3511 pub stream_id: *const c_char, 3512 pub priv_: *mut GstStreamPrivate, 3513 pub _gst_reserved: [gpointer; 4], 3514 } 3515 3516 impl ::std::fmt::Debug for GstStream { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result3517 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 3518 f.debug_struct(&format!("GstStream @ {:?}", self as *const _)) 3519 .field("stream_id", &self.stream_id) 3520 .finish() 3521 } 3522 } 3523 3524 #[repr(C)] 3525 #[derive(Copy, Clone)] 3526 pub struct GstStreamCollection { 3527 pub object: GstObject, 3528 pub upstream_id: *mut c_char, 3529 pub priv_: *mut GstStreamCollectionPrivate, 3530 pub _gst_reserved: [gpointer; 4], 3531 } 3532 3533 impl ::std::fmt::Debug for GstStreamCollection { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result3534 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 3535 f.debug_struct(&format!("GstStreamCollection @ {:?}", self as *const _)) 3536 .finish() 3537 } 3538 } 3539 3540 #[repr(C)] 3541 #[derive(Copy, Clone)] 3542 pub struct GstSystemClock { 3543 pub clock: GstClock, 3544 pub priv_: *mut GstSystemClockPrivate, 3545 pub _gst_reserved: [gpointer; 4], 3546 } 3547 3548 impl ::std::fmt::Debug for GstSystemClock { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result3549 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 3550 f.debug_struct(&format!("GstSystemClock @ {:?}", self as *const _)) 3551 .field("clock", &self.clock) 3552 .finish() 3553 } 3554 } 3555 3556 #[repr(C)] 3557 #[derive(Copy, Clone)] 3558 pub struct GstTask { 3559 pub object: GstObject, 3560 pub state: GstTaskState, 3561 pub cond: glib::GCond, 3562 pub lock: *mut glib::GRecMutex, 3563 pub func: GstTaskFunction, 3564 pub user_data: gpointer, 3565 pub notify: glib::GDestroyNotify, 3566 pub running: gboolean, 3567 pub thread: *mut glib::GThread, 3568 pub priv_: *mut GstTaskPrivate, 3569 pub _gst_reserved: [gpointer; 4], 3570 } 3571 3572 impl ::std::fmt::Debug for GstTask { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result3573 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 3574 f.debug_struct(&format!("GstTask @ {:?}", self as *const _)) 3575 .field("object", &self.object) 3576 .field("state", &self.state) 3577 .field("cond", &self.cond) 3578 .field("lock", &self.lock) 3579 .field("func", &self.func) 3580 .field("user_data", &self.user_data) 3581 .field("notify", &self.notify) 3582 .field("running", &self.running) 3583 .finish() 3584 } 3585 } 3586 3587 #[repr(C)] 3588 #[derive(Copy, Clone)] 3589 pub struct GstTaskPool { 3590 pub object: GstObject, 3591 pub pool: *mut glib::GThreadPool, 3592 pub _gst_reserved: [gpointer; 4], 3593 } 3594 3595 impl ::std::fmt::Debug for GstTaskPool { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result3596 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 3597 f.debug_struct(&format!("GstTaskPool @ {:?}", self as *const _)) 3598 .field("object", &self.object) 3599 .finish() 3600 } 3601 } 3602 3603 #[repr(C)] 3604 #[derive(Copy, Clone)] 3605 pub struct GstTracer { 3606 pub parent: GstObject, 3607 pub priv_: *mut GstTracerPrivate, 3608 pub _gst_reserved: [gpointer; 4], 3609 } 3610 3611 impl ::std::fmt::Debug for GstTracer { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result3612 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 3613 f.debug_struct(&format!("GstTracer @ {:?}", self as *const _)) 3614 .field("parent", &self.parent) 3615 .finish() 3616 } 3617 } 3618 3619 #[repr(C)] 3620 pub struct GstTracerFactory(c_void); 3621 3622 impl ::std::fmt::Debug for GstTracerFactory { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result3623 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 3624 f.debug_struct(&format!("GstTracerFactory @ {:?}", self as *const _)) 3625 .finish() 3626 } 3627 } 3628 3629 #[repr(C)] 3630 pub struct GstTracerRecord(c_void); 3631 3632 impl ::std::fmt::Debug for GstTracerRecord { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result3633 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 3634 f.debug_struct(&format!("GstTracerRecord @ {:?}", self as *const _)) 3635 .finish() 3636 } 3637 } 3638 3639 #[repr(C)] 3640 pub struct GstTypeFindFactory(c_void); 3641 3642 impl ::std::fmt::Debug for GstTypeFindFactory { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result3643 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 3644 f.debug_struct(&format!("GstTypeFindFactory @ {:?}", self as *const _)) 3645 .finish() 3646 } 3647 } 3648 3649 #[repr(C)] 3650 pub struct GstValueArray(c_void); 3651 3652 impl ::std::fmt::Debug for GstValueArray { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result3653 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 3654 f.debug_struct(&format!("GstValueArray @ {:?}", self as *const _)) 3655 .finish() 3656 } 3657 } 3658 3659 #[repr(C)] 3660 pub struct GstValueList(c_void); 3661 3662 impl ::std::fmt::Debug for GstValueList { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result3663 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 3664 f.debug_struct(&format!("GstValueList @ {:?}", self as *const _)) 3665 .finish() 3666 } 3667 } 3668 3669 // Interfaces 3670 #[repr(C)] 3671 pub struct GstChildProxy(c_void); 3672 3673 impl ::std::fmt::Debug for GstChildProxy { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result3674 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 3675 write!(f, "GstChildProxy @ {:?}", self as *const _) 3676 } 3677 } 3678 3679 #[repr(C)] 3680 pub struct GstPreset(c_void); 3681 3682 impl ::std::fmt::Debug for GstPreset { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result3683 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 3684 write!(f, "GstPreset @ {:?}", self as *const _) 3685 } 3686 } 3687 3688 #[repr(C)] 3689 pub struct GstTagSetter(c_void); 3690 3691 impl ::std::fmt::Debug for GstTagSetter { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result3692 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 3693 write!(f, "GstTagSetter @ {:?}", self as *const _) 3694 } 3695 } 3696 3697 #[repr(C)] 3698 pub struct GstTocSetter(c_void); 3699 3700 impl ::std::fmt::Debug for GstTocSetter { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result3701 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 3702 write!(f, "GstTocSetter @ {:?}", self as *const _) 3703 } 3704 } 3705 3706 #[repr(C)] 3707 pub struct GstURIHandler(c_void); 3708 3709 impl ::std::fmt::Debug for GstURIHandler { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result3710 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 3711 write!(f, "GstURIHandler @ {:?}", self as *const _) 3712 } 3713 } 3714 3715 extern "C" { 3716 3717 //========================================================================= 3718 // GstBufferingMode 3719 //========================================================================= gst_buffering_mode_get_type() -> GType3720 pub fn gst_buffering_mode_get_type() -> GType; 3721 3722 //========================================================================= 3723 // GstBusSyncReply 3724 //========================================================================= gst_bus_sync_reply_get_type() -> GType3725 pub fn gst_bus_sync_reply_get_type() -> GType; 3726 3727 //========================================================================= 3728 // GstCapsIntersectMode 3729 //========================================================================= gst_caps_intersect_mode_get_type() -> GType3730 pub fn gst_caps_intersect_mode_get_type() -> GType; 3731 3732 //========================================================================= 3733 // GstClockEntryType 3734 //========================================================================= gst_clock_entry_type_get_type() -> GType3735 pub fn gst_clock_entry_type_get_type() -> GType; 3736 3737 //========================================================================= 3738 // GstClockReturn 3739 //========================================================================= gst_clock_return_get_type() -> GType3740 pub fn gst_clock_return_get_type() -> GType; 3741 3742 //========================================================================= 3743 // GstClockType 3744 //========================================================================= gst_clock_type_get_type() -> GType3745 pub fn gst_clock_type_get_type() -> GType; 3746 3747 //========================================================================= 3748 // GstCoreError 3749 //========================================================================= gst_core_error_get_type() -> GType3750 pub fn gst_core_error_get_type() -> GType; gst_core_error_quark() -> glib::GQuark3751 pub fn gst_core_error_quark() -> glib::GQuark; 3752 3753 //========================================================================= 3754 // GstDebugColorMode 3755 //========================================================================= gst_debug_color_mode_get_type() -> GType3756 pub fn gst_debug_color_mode_get_type() -> GType; 3757 3758 //========================================================================= 3759 // GstDebugLevel 3760 //========================================================================= gst_debug_level_get_type() -> GType3761 pub fn gst_debug_level_get_type() -> GType; gst_debug_level_get_name(level: GstDebugLevel) -> *const c_char3762 pub fn gst_debug_level_get_name(level: GstDebugLevel) -> *const c_char; 3763 3764 //========================================================================= 3765 // GstEventType 3766 //========================================================================= gst_event_type_get_type() -> GType3767 pub fn gst_event_type_get_type() -> GType; gst_event_type_get_flags(type_: GstEventType) -> GstEventTypeFlags3768 pub fn gst_event_type_get_flags(type_: GstEventType) -> GstEventTypeFlags; gst_event_type_get_name(type_: GstEventType) -> *const c_char3769 pub fn gst_event_type_get_name(type_: GstEventType) -> *const c_char; gst_event_type_to_quark(type_: GstEventType) -> glib::GQuark3770 pub fn gst_event_type_to_quark(type_: GstEventType) -> glib::GQuark; 3771 3772 //========================================================================= 3773 // GstFlowReturn 3774 //========================================================================= gst_flow_return_get_type() -> GType3775 pub fn gst_flow_return_get_type() -> GType; 3776 3777 //========================================================================= 3778 // GstFormat 3779 //========================================================================= gst_format_get_type() -> GType3780 pub fn gst_format_get_type() -> GType; gst_format_get_by_nick(nick: *const c_char) -> GstFormat3781 pub fn gst_format_get_by_nick(nick: *const c_char) -> GstFormat; gst_format_get_details(format: GstFormat) -> *const GstFormatDefinition3782 pub fn gst_format_get_details(format: GstFormat) -> *const GstFormatDefinition; gst_format_get_name(format: GstFormat) -> *const c_char3783 pub fn gst_format_get_name(format: GstFormat) -> *const c_char; gst_format_iterate_definitions() -> *mut GstIterator3784 pub fn gst_format_iterate_definitions() -> *mut GstIterator; gst_format_register(nick: *const c_char, description: *const c_char) -> GstFormat3785 pub fn gst_format_register(nick: *const c_char, description: *const c_char) -> GstFormat; gst_format_to_quark(format: GstFormat) -> glib::GQuark3786 pub fn gst_format_to_quark(format: GstFormat) -> glib::GQuark; 3787 3788 //========================================================================= 3789 // GstIteratorItem 3790 //========================================================================= gst_iterator_item_get_type() -> GType3791 pub fn gst_iterator_item_get_type() -> GType; 3792 3793 //========================================================================= 3794 // GstIteratorResult 3795 //========================================================================= gst_iterator_result_get_type() -> GType3796 pub fn gst_iterator_result_get_type() -> GType; 3797 3798 //========================================================================= 3799 // GstLibraryError 3800 //========================================================================= gst_library_error_get_type() -> GType3801 pub fn gst_library_error_get_type() -> GType; gst_library_error_quark() -> glib::GQuark3802 pub fn gst_library_error_quark() -> glib::GQuark; 3803 3804 //========================================================================= 3805 // GstPadDirection 3806 //========================================================================= gst_pad_direction_get_type() -> GType3807 pub fn gst_pad_direction_get_type() -> GType; 3808 3809 //========================================================================= 3810 // GstPadLinkReturn 3811 //========================================================================= gst_pad_link_return_get_type() -> GType3812 pub fn gst_pad_link_return_get_type() -> GType; 3813 3814 //========================================================================= 3815 // GstPadMode 3816 //========================================================================= gst_pad_mode_get_type() -> GType3817 pub fn gst_pad_mode_get_type() -> GType; gst_pad_mode_get_name(mode: GstPadMode) -> *const c_char3818 pub fn gst_pad_mode_get_name(mode: GstPadMode) -> *const c_char; 3819 3820 //========================================================================= 3821 // GstPadPresence 3822 //========================================================================= gst_pad_presence_get_type() -> GType3823 pub fn gst_pad_presence_get_type() -> GType; 3824 3825 //========================================================================= 3826 // GstPadProbeReturn 3827 //========================================================================= gst_pad_probe_return_get_type() -> GType3828 pub fn gst_pad_probe_return_get_type() -> GType; 3829 3830 //========================================================================= 3831 // GstParseError 3832 //========================================================================= gst_parse_error_get_type() -> GType3833 pub fn gst_parse_error_get_type() -> GType; gst_parse_error_quark() -> glib::GQuark3834 pub fn gst_parse_error_quark() -> glib::GQuark; 3835 3836 //========================================================================= 3837 // GstPluginError 3838 //========================================================================= gst_plugin_error_get_type() -> GType3839 pub fn gst_plugin_error_get_type() -> GType; gst_plugin_error_quark() -> glib::GQuark3840 pub fn gst_plugin_error_quark() -> glib::GQuark; 3841 3842 //========================================================================= 3843 // GstProgressType 3844 //========================================================================= gst_progress_type_get_type() -> GType3845 pub fn gst_progress_type_get_type() -> GType; 3846 3847 //========================================================================= 3848 // GstPromiseResult 3849 //========================================================================= gst_promise_result_get_type() -> GType3850 pub fn gst_promise_result_get_type() -> GType; 3851 3852 //========================================================================= 3853 // GstQOSType 3854 //========================================================================= gst_qos_type_get_type() -> GType3855 pub fn gst_qos_type_get_type() -> GType; 3856 3857 //========================================================================= 3858 // GstQueryType 3859 //========================================================================= gst_query_type_get_type() -> GType3860 pub fn gst_query_type_get_type() -> GType; gst_query_type_get_flags(type_: GstQueryType) -> GstQueryTypeFlags3861 pub fn gst_query_type_get_flags(type_: GstQueryType) -> GstQueryTypeFlags; gst_query_type_get_name(type_: GstQueryType) -> *const c_char3862 pub fn gst_query_type_get_name(type_: GstQueryType) -> *const c_char; gst_query_type_to_quark(type_: GstQueryType) -> glib::GQuark3863 pub fn gst_query_type_to_quark(type_: GstQueryType) -> glib::GQuark; 3864 3865 //========================================================================= 3866 // GstRank 3867 //========================================================================= gst_rank_get_type() -> GType3868 pub fn gst_rank_get_type() -> GType; 3869 3870 //========================================================================= 3871 // GstResourceError 3872 //========================================================================= gst_resource_error_get_type() -> GType3873 pub fn gst_resource_error_get_type() -> GType; gst_resource_error_quark() -> glib::GQuark3874 pub fn gst_resource_error_quark() -> glib::GQuark; 3875 3876 //========================================================================= 3877 // GstSearchMode 3878 //========================================================================= gst_search_mode_get_type() -> GType3879 pub fn gst_search_mode_get_type() -> GType; 3880 3881 //========================================================================= 3882 // GstSeekType 3883 //========================================================================= gst_seek_type_get_type() -> GType3884 pub fn gst_seek_type_get_type() -> GType; 3885 3886 //========================================================================= 3887 // GstState 3888 //========================================================================= gst_state_get_type() -> GType3889 pub fn gst_state_get_type() -> GType; 3890 3891 //========================================================================= 3892 // GstStateChange 3893 //========================================================================= gst_state_change_get_type() -> GType3894 pub fn gst_state_change_get_type() -> GType; 3895 #[cfg(any(feature = "v1_14", feature = "dox"))] gst_state_change_get_name(transition: GstStateChange) -> *const c_char3896 pub fn gst_state_change_get_name(transition: GstStateChange) -> *const c_char; 3897 3898 //========================================================================= 3899 // GstStateChangeReturn 3900 //========================================================================= gst_state_change_return_get_type() -> GType3901 pub fn gst_state_change_return_get_type() -> GType; 3902 3903 //========================================================================= 3904 // GstStreamError 3905 //========================================================================= gst_stream_error_get_type() -> GType3906 pub fn gst_stream_error_get_type() -> GType; gst_stream_error_quark() -> glib::GQuark3907 pub fn gst_stream_error_quark() -> glib::GQuark; 3908 3909 //========================================================================= 3910 // GstStreamStatusType 3911 //========================================================================= gst_stream_status_type_get_type() -> GType3912 pub fn gst_stream_status_type_get_type() -> GType; 3913 3914 //========================================================================= 3915 // GstStructureChangeType 3916 //========================================================================= gst_structure_change_type_get_type() -> GType3917 pub fn gst_structure_change_type_get_type() -> GType; 3918 3919 //========================================================================= 3920 // GstTagFlag 3921 //========================================================================= gst_tag_flag_get_type() -> GType3922 pub fn gst_tag_flag_get_type() -> GType; 3923 3924 //========================================================================= 3925 // GstTagMergeMode 3926 //========================================================================= gst_tag_merge_mode_get_type() -> GType3927 pub fn gst_tag_merge_mode_get_type() -> GType; 3928 3929 //========================================================================= 3930 // GstTagScope 3931 //========================================================================= gst_tag_scope_get_type() -> GType3932 pub fn gst_tag_scope_get_type() -> GType; 3933 3934 //========================================================================= 3935 // GstTaskState 3936 //========================================================================= gst_task_state_get_type() -> GType3937 pub fn gst_task_state_get_type() -> GType; 3938 3939 //========================================================================= 3940 // GstTocEntryType 3941 //========================================================================= gst_toc_entry_type_get_type() -> GType3942 pub fn gst_toc_entry_type_get_type() -> GType; gst_toc_entry_type_get_nick(type_: GstTocEntryType) -> *const c_char3943 pub fn gst_toc_entry_type_get_nick(type_: GstTocEntryType) -> *const c_char; 3944 3945 //========================================================================= 3946 // GstTocLoopType 3947 //========================================================================= gst_toc_loop_type_get_type() -> GType3948 pub fn gst_toc_loop_type_get_type() -> GType; 3949 3950 //========================================================================= 3951 // GstTocScope 3952 //========================================================================= gst_toc_scope_get_type() -> GType3953 pub fn gst_toc_scope_get_type() -> GType; 3954 3955 //========================================================================= 3956 // GstTracerValueScope 3957 //========================================================================= gst_tracer_value_scope_get_type() -> GType3958 pub fn gst_tracer_value_scope_get_type() -> GType; 3959 3960 //========================================================================= 3961 // GstTypeFindProbability 3962 //========================================================================= gst_type_find_probability_get_type() -> GType3963 pub fn gst_type_find_probability_get_type() -> GType; 3964 3965 //========================================================================= 3966 // GstURIError 3967 //========================================================================= gst_uri_error_get_type() -> GType3968 pub fn gst_uri_error_get_type() -> GType; gst_uri_error_quark() -> glib::GQuark3969 pub fn gst_uri_error_quark() -> glib::GQuark; 3970 3971 //========================================================================= 3972 // GstURIType 3973 //========================================================================= gst_uri_type_get_type() -> GType3974 pub fn gst_uri_type_get_type() -> GType; 3975 3976 //========================================================================= 3977 // GstAllocatorFlags 3978 //========================================================================= gst_allocator_flags_get_type() -> GType3979 pub fn gst_allocator_flags_get_type() -> GType; 3980 3981 //========================================================================= 3982 // GstBinFlags 3983 //========================================================================= gst_bin_flags_get_type() -> GType3984 pub fn gst_bin_flags_get_type() -> GType; 3985 3986 //========================================================================= 3987 // GstBufferCopyFlags 3988 //========================================================================= gst_buffer_copy_flags_get_type() -> GType3989 pub fn gst_buffer_copy_flags_get_type() -> GType; 3990 3991 //========================================================================= 3992 // GstBufferFlags 3993 //========================================================================= gst_buffer_flags_get_type() -> GType3994 pub fn gst_buffer_flags_get_type() -> GType; 3995 3996 //========================================================================= 3997 // GstBufferPoolAcquireFlags 3998 //========================================================================= gst_buffer_pool_acquire_flags_get_type() -> GType3999 pub fn gst_buffer_pool_acquire_flags_get_type() -> GType; 4000 4001 //========================================================================= 4002 // GstBusFlags 4003 //========================================================================= gst_bus_flags_get_type() -> GType4004 pub fn gst_bus_flags_get_type() -> GType; 4005 4006 //========================================================================= 4007 // GstCapsFlags 4008 //========================================================================= gst_caps_flags_get_type() -> GType4009 pub fn gst_caps_flags_get_type() -> GType; 4010 4011 //========================================================================= 4012 // GstClockFlags 4013 //========================================================================= gst_clock_flags_get_type() -> GType4014 pub fn gst_clock_flags_get_type() -> GType; 4015 4016 //========================================================================= 4017 // GstDebugColorFlags 4018 //========================================================================= gst_debug_color_flags_get_type() -> GType4019 pub fn gst_debug_color_flags_get_type() -> GType; 4020 4021 //========================================================================= 4022 // GstDebugGraphDetails 4023 //========================================================================= gst_debug_graph_details_get_type() -> GType4024 pub fn gst_debug_graph_details_get_type() -> GType; 4025 4026 //========================================================================= 4027 // GstElementFlags 4028 //========================================================================= gst_element_flags_get_type() -> GType4029 pub fn gst_element_flags_get_type() -> GType; 4030 4031 //========================================================================= 4032 // GstEventTypeFlags 4033 //========================================================================= gst_event_type_flags_get_type() -> GType4034 pub fn gst_event_type_flags_get_type() -> GType; 4035 4036 //========================================================================= 4037 // GstLockFlags 4038 //========================================================================= gst_lock_flags_get_type() -> GType4039 pub fn gst_lock_flags_get_type() -> GType; 4040 4041 //========================================================================= 4042 // GstMapFlags 4043 //========================================================================= gst_map_flags_get_type() -> GType4044 pub fn gst_map_flags_get_type() -> GType; 4045 4046 //========================================================================= 4047 // GstMemoryFlags 4048 //========================================================================= gst_memory_flags_get_type() -> GType4049 pub fn gst_memory_flags_get_type() -> GType; 4050 4051 //========================================================================= 4052 // GstMessageType 4053 //========================================================================= gst_message_type_get_type() -> GType4054 pub fn gst_message_type_get_type() -> GType; gst_message_type_get_name(type_: GstMessageType) -> *const c_char4055 pub fn gst_message_type_get_name(type_: GstMessageType) -> *const c_char; gst_message_type_to_quark(type_: GstMessageType) -> glib::GQuark4056 pub fn gst_message_type_to_quark(type_: GstMessageType) -> glib::GQuark; 4057 4058 //========================================================================= 4059 // GstMetaFlags 4060 //========================================================================= gst_meta_flags_get_type() -> GType4061 pub fn gst_meta_flags_get_type() -> GType; 4062 4063 //========================================================================= 4064 // GstMiniObjectFlags 4065 //========================================================================= gst_mini_object_flags_get_type() -> GType4066 pub fn gst_mini_object_flags_get_type() -> GType; 4067 4068 //========================================================================= 4069 // GstObjectFlags 4070 //========================================================================= gst_object_flags_get_type() -> GType4071 pub fn gst_object_flags_get_type() -> GType; 4072 4073 //========================================================================= 4074 // GstPadFlags 4075 //========================================================================= gst_pad_flags_get_type() -> GType4076 pub fn gst_pad_flags_get_type() -> GType; 4077 4078 //========================================================================= 4079 // GstPadLinkCheck 4080 //========================================================================= gst_pad_link_check_get_type() -> GType4081 pub fn gst_pad_link_check_get_type() -> GType; 4082 4083 //========================================================================= 4084 // GstPadProbeType 4085 //========================================================================= gst_pad_probe_type_get_type() -> GType4086 pub fn gst_pad_probe_type_get_type() -> GType; 4087 4088 //========================================================================= 4089 // GstPadTemplateFlags 4090 //========================================================================= gst_pad_template_flags_get_type() -> GType4091 pub fn gst_pad_template_flags_get_type() -> GType; 4092 4093 //========================================================================= 4094 // GstParseFlags 4095 //========================================================================= gst_parse_flags_get_type() -> GType4096 pub fn gst_parse_flags_get_type() -> GType; 4097 4098 //========================================================================= 4099 // GstPipelineFlags 4100 //========================================================================= gst_pipeline_flags_get_type() -> GType4101 pub fn gst_pipeline_flags_get_type() -> GType; 4102 4103 //========================================================================= 4104 // GstPluginDependencyFlags 4105 //========================================================================= gst_plugin_dependency_flags_get_type() -> GType4106 pub fn gst_plugin_dependency_flags_get_type() -> GType; 4107 4108 //========================================================================= 4109 // GstPluginFlags 4110 //========================================================================= gst_plugin_flags_get_type() -> GType4111 pub fn gst_plugin_flags_get_type() -> GType; 4112 4113 //========================================================================= 4114 // GstQueryTypeFlags 4115 //========================================================================= gst_query_type_flags_get_type() -> GType4116 pub fn gst_query_type_flags_get_type() -> GType; 4117 4118 //========================================================================= 4119 // GstSchedulingFlags 4120 //========================================================================= gst_scheduling_flags_get_type() -> GType4121 pub fn gst_scheduling_flags_get_type() -> GType; 4122 4123 //========================================================================= 4124 // GstSeekFlags 4125 //========================================================================= gst_seek_flags_get_type() -> GType4126 pub fn gst_seek_flags_get_type() -> GType; 4127 4128 //========================================================================= 4129 // GstSegmentFlags 4130 //========================================================================= gst_segment_flags_get_type() -> GType4131 pub fn gst_segment_flags_get_type() -> GType; 4132 4133 //========================================================================= 4134 // GstStackTraceFlags 4135 //========================================================================= gst_stack_trace_flags_get_type() -> GType4136 pub fn gst_stack_trace_flags_get_type() -> GType; 4137 4138 //========================================================================= 4139 // GstStreamFlags 4140 //========================================================================= gst_stream_flags_get_type() -> GType4141 pub fn gst_stream_flags_get_type() -> GType; 4142 4143 //========================================================================= 4144 // GstStreamType 4145 //========================================================================= gst_stream_type_get_type() -> GType4146 pub fn gst_stream_type_get_type() -> GType; 4147 #[cfg(any(feature = "v1_10", feature = "dox"))] gst_stream_type_get_name(stype: GstStreamType) -> *const c_char4148 pub fn gst_stream_type_get_name(stype: GstStreamType) -> *const c_char; 4149 4150 //========================================================================= 4151 // GstTracerValueFlags 4152 //========================================================================= gst_tracer_value_flags_get_type() -> GType4153 pub fn gst_tracer_value_flags_get_type() -> GType; 4154 4155 //========================================================================= 4156 // GstAllocationParams 4157 //========================================================================= gst_allocation_params_get_type() -> GType4158 pub fn gst_allocation_params_get_type() -> GType; gst_allocation_params_copy( params: *const GstAllocationParams, ) -> *mut GstAllocationParams4159 pub fn gst_allocation_params_copy( 4160 params: *const GstAllocationParams, 4161 ) -> *mut GstAllocationParams; gst_allocation_params_free(params: *mut GstAllocationParams)4162 pub fn gst_allocation_params_free(params: *mut GstAllocationParams); gst_allocation_params_init(params: *mut GstAllocationParams)4163 pub fn gst_allocation_params_init(params: *mut GstAllocationParams); 4164 4165 //========================================================================= 4166 // GstAtomicQueue 4167 //========================================================================= gst_atomic_queue_get_type() -> GType4168 pub fn gst_atomic_queue_get_type() -> GType; gst_atomic_queue_new(initial_size: c_uint) -> *mut GstAtomicQueue4169 pub fn gst_atomic_queue_new(initial_size: c_uint) -> *mut GstAtomicQueue; gst_atomic_queue_length(queue: *mut GstAtomicQueue) -> c_uint4170 pub fn gst_atomic_queue_length(queue: *mut GstAtomicQueue) -> c_uint; gst_atomic_queue_peek(queue: *mut GstAtomicQueue) -> gpointer4171 pub fn gst_atomic_queue_peek(queue: *mut GstAtomicQueue) -> gpointer; gst_atomic_queue_pop(queue: *mut GstAtomicQueue) -> gpointer4172 pub fn gst_atomic_queue_pop(queue: *mut GstAtomicQueue) -> gpointer; gst_atomic_queue_push(queue: *mut GstAtomicQueue, data: gpointer)4173 pub fn gst_atomic_queue_push(queue: *mut GstAtomicQueue, data: gpointer); gst_atomic_queue_ref(queue: *mut GstAtomicQueue)4174 pub fn gst_atomic_queue_ref(queue: *mut GstAtomicQueue); gst_atomic_queue_unref(queue: *mut GstAtomicQueue)4175 pub fn gst_atomic_queue_unref(queue: *mut GstAtomicQueue); 4176 4177 //========================================================================= 4178 // GstBuffer 4179 //========================================================================= gst_buffer_get_type() -> GType4180 pub fn gst_buffer_get_type() -> GType; gst_buffer_new() -> *mut GstBuffer4181 pub fn gst_buffer_new() -> *mut GstBuffer; gst_buffer_new_allocate( allocator: *mut GstAllocator, size: size_t, params: *mut GstAllocationParams, ) -> *mut GstBuffer4182 pub fn gst_buffer_new_allocate( 4183 allocator: *mut GstAllocator, 4184 size: size_t, 4185 params: *mut GstAllocationParams, 4186 ) -> *mut GstBuffer; gst_buffer_new_wrapped(data: gpointer, size: size_t) -> *mut GstBuffer4187 pub fn gst_buffer_new_wrapped(data: gpointer, size: size_t) -> *mut GstBuffer; 4188 #[cfg(any(feature = "v1_16", feature = "dox"))] gst_buffer_new_wrapped_bytes(bytes: *mut glib::GBytes) -> *mut GstBuffer4189 pub fn gst_buffer_new_wrapped_bytes(bytes: *mut glib::GBytes) -> *mut GstBuffer; gst_buffer_new_wrapped_full( flags: GstMemoryFlags, data: gpointer, maxsize: size_t, offset: size_t, size: size_t, user_data: gpointer, notify: glib::GDestroyNotify, ) -> *mut GstBuffer4190 pub fn gst_buffer_new_wrapped_full( 4191 flags: GstMemoryFlags, 4192 data: gpointer, 4193 maxsize: size_t, 4194 offset: size_t, 4195 size: size_t, 4196 user_data: gpointer, 4197 notify: glib::GDestroyNotify, 4198 ) -> *mut GstBuffer; gst_buffer_add_meta( buffer: *mut GstBuffer, info: *const GstMetaInfo, params: gpointer, ) -> *mut GstMeta4199 pub fn gst_buffer_add_meta( 4200 buffer: *mut GstBuffer, 4201 info: *const GstMetaInfo, 4202 params: gpointer, 4203 ) -> *mut GstMeta; 4204 #[cfg(any(feature = "v1_6", feature = "dox"))] gst_buffer_add_parent_buffer_meta( buffer: *mut GstBuffer, ref_: *mut GstBuffer, ) -> *mut GstParentBufferMeta4205 pub fn gst_buffer_add_parent_buffer_meta( 4206 buffer: *mut GstBuffer, 4207 ref_: *mut GstBuffer, 4208 ) -> *mut GstParentBufferMeta; 4209 #[cfg(any(feature = "v1_6", feature = "dox"))] gst_buffer_add_protection_meta( buffer: *mut GstBuffer, info: *mut GstStructure, ) -> *mut GstProtectionMeta4210 pub fn gst_buffer_add_protection_meta( 4211 buffer: *mut GstBuffer, 4212 info: *mut GstStructure, 4213 ) -> *mut GstProtectionMeta; 4214 #[cfg(any(feature = "v1_14", feature = "dox"))] gst_buffer_add_reference_timestamp_meta( buffer: *mut GstBuffer, reference: *mut GstCaps, timestamp: GstClockTime, duration: GstClockTime, ) -> *mut GstReferenceTimestampMeta4215 pub fn gst_buffer_add_reference_timestamp_meta( 4216 buffer: *mut GstBuffer, 4217 reference: *mut GstCaps, 4218 timestamp: GstClockTime, 4219 duration: GstClockTime, 4220 ) -> *mut GstReferenceTimestampMeta; gst_buffer_append(buf1: *mut GstBuffer, buf2: *mut GstBuffer) -> *mut GstBuffer4221 pub fn gst_buffer_append(buf1: *mut GstBuffer, buf2: *mut GstBuffer) -> *mut GstBuffer; gst_buffer_append_memory(buffer: *mut GstBuffer, mem: *mut GstMemory)4222 pub fn gst_buffer_append_memory(buffer: *mut GstBuffer, mem: *mut GstMemory); gst_buffer_append_region( buf1: *mut GstBuffer, buf2: *mut GstBuffer, offset: ssize_t, size: ssize_t, ) -> *mut GstBuffer4223 pub fn gst_buffer_append_region( 4224 buf1: *mut GstBuffer, 4225 buf2: *mut GstBuffer, 4226 offset: ssize_t, 4227 size: ssize_t, 4228 ) -> *mut GstBuffer; 4229 #[cfg(any(feature = "v1_6", feature = "dox"))] gst_buffer_copy_deep(buf: *const GstBuffer) -> *mut GstBuffer4230 pub fn gst_buffer_copy_deep(buf: *const GstBuffer) -> *mut GstBuffer; gst_buffer_copy_into( dest: *mut GstBuffer, src: *mut GstBuffer, flags: GstBufferCopyFlags, offset: size_t, size: size_t, ) -> gboolean4231 pub fn gst_buffer_copy_into( 4232 dest: *mut GstBuffer, 4233 src: *mut GstBuffer, 4234 flags: GstBufferCopyFlags, 4235 offset: size_t, 4236 size: size_t, 4237 ) -> gboolean; gst_buffer_copy_region( parent: *mut GstBuffer, flags: GstBufferCopyFlags, offset: size_t, size: size_t, ) -> *mut GstBuffer4238 pub fn gst_buffer_copy_region( 4239 parent: *mut GstBuffer, 4240 flags: GstBufferCopyFlags, 4241 offset: size_t, 4242 size: size_t, 4243 ) -> *mut GstBuffer; gst_buffer_extract( buffer: *mut GstBuffer, offset: size_t, dest: gpointer, size: size_t, ) -> size_t4244 pub fn gst_buffer_extract( 4245 buffer: *mut GstBuffer, 4246 offset: size_t, 4247 dest: gpointer, 4248 size: size_t, 4249 ) -> size_t; 4250 #[cfg(any(feature = "v1_0_10", feature = "dox"))] gst_buffer_extract_dup( buffer: *mut GstBuffer, offset: size_t, size: size_t, dest: *mut u8, dest_size: *mut size_t, )4251 pub fn gst_buffer_extract_dup( 4252 buffer: *mut GstBuffer, 4253 offset: size_t, 4254 size: size_t, 4255 dest: *mut u8, 4256 dest_size: *mut size_t, 4257 ); gst_buffer_fill( buffer: *mut GstBuffer, offset: size_t, src: gconstpointer, size: size_t, ) -> size_t4258 pub fn gst_buffer_fill( 4259 buffer: *mut GstBuffer, 4260 offset: size_t, 4261 src: gconstpointer, 4262 size: size_t, 4263 ) -> size_t; gst_buffer_find_memory( buffer: *mut GstBuffer, offset: size_t, size: size_t, idx: *mut c_uint, length: *mut c_uint, skip: *mut size_t, ) -> gboolean4264 pub fn gst_buffer_find_memory( 4265 buffer: *mut GstBuffer, 4266 offset: size_t, 4267 size: size_t, 4268 idx: *mut c_uint, 4269 length: *mut c_uint, 4270 skip: *mut size_t, 4271 ) -> gboolean; gst_buffer_foreach_meta( buffer: *mut GstBuffer, func: GstBufferForeachMetaFunc, user_data: gpointer, ) -> gboolean4272 pub fn gst_buffer_foreach_meta( 4273 buffer: *mut GstBuffer, 4274 func: GstBufferForeachMetaFunc, 4275 user_data: gpointer, 4276 ) -> gboolean; gst_buffer_get_all_memory(buffer: *mut GstBuffer) -> *mut GstMemory4277 pub fn gst_buffer_get_all_memory(buffer: *mut GstBuffer) -> *mut GstMemory; 4278 #[cfg(any(feature = "v1_10", feature = "dox"))] gst_buffer_get_flags(buffer: *mut GstBuffer) -> GstBufferFlags4279 pub fn gst_buffer_get_flags(buffer: *mut GstBuffer) -> GstBufferFlags; gst_buffer_get_memory(buffer: *mut GstBuffer, idx: c_uint) -> *mut GstMemory4280 pub fn gst_buffer_get_memory(buffer: *mut GstBuffer, idx: c_uint) -> *mut GstMemory; gst_buffer_get_memory_range( buffer: *mut GstBuffer, idx: c_uint, length: c_int, ) -> *mut GstMemory4281 pub fn gst_buffer_get_memory_range( 4282 buffer: *mut GstBuffer, 4283 idx: c_uint, 4284 length: c_int, 4285 ) -> *mut GstMemory; gst_buffer_get_meta(buffer: *mut GstBuffer, api: GType) -> *mut GstMeta4286 pub fn gst_buffer_get_meta(buffer: *mut GstBuffer, api: GType) -> *mut GstMeta; 4287 #[cfg(any(feature = "v1_14", feature = "dox"))] gst_buffer_get_n_meta(buffer: *mut GstBuffer, api_type: GType) -> c_uint4288 pub fn gst_buffer_get_n_meta(buffer: *mut GstBuffer, api_type: GType) -> c_uint; 4289 #[cfg(any(feature = "v1_14", feature = "dox"))] gst_buffer_get_reference_timestamp_meta( buffer: *mut GstBuffer, reference: *mut GstCaps, ) -> *mut GstReferenceTimestampMeta4290 pub fn gst_buffer_get_reference_timestamp_meta( 4291 buffer: *mut GstBuffer, 4292 reference: *mut GstCaps, 4293 ) -> *mut GstReferenceTimestampMeta; gst_buffer_get_size(buffer: *mut GstBuffer) -> size_t4294 pub fn gst_buffer_get_size(buffer: *mut GstBuffer) -> size_t; gst_buffer_get_sizes( buffer: *mut GstBuffer, offset: *mut size_t, maxsize: *mut size_t, ) -> size_t4295 pub fn gst_buffer_get_sizes( 4296 buffer: *mut GstBuffer, 4297 offset: *mut size_t, 4298 maxsize: *mut size_t, 4299 ) -> size_t; gst_buffer_get_sizes_range( buffer: *mut GstBuffer, idx: c_uint, length: c_int, offset: *mut size_t, maxsize: *mut size_t, ) -> size_t4300 pub fn gst_buffer_get_sizes_range( 4301 buffer: *mut GstBuffer, 4302 idx: c_uint, 4303 length: c_int, 4304 offset: *mut size_t, 4305 maxsize: *mut size_t, 4306 ) -> size_t; gst_buffer_has_flags(buffer: *mut GstBuffer, flags: GstBufferFlags) -> gboolean4307 pub fn gst_buffer_has_flags(buffer: *mut GstBuffer, flags: GstBufferFlags) -> gboolean; gst_buffer_insert_memory(buffer: *mut GstBuffer, idx: c_int, mem: *mut GstMemory)4308 pub fn gst_buffer_insert_memory(buffer: *mut GstBuffer, idx: c_int, mem: *mut GstMemory); 4309 #[cfg(any(feature = "v1_4", feature = "dox"))] gst_buffer_is_all_memory_writable(buffer: *mut GstBuffer) -> gboolean4310 pub fn gst_buffer_is_all_memory_writable(buffer: *mut GstBuffer) -> gboolean; 4311 #[cfg(any(feature = "v1_4", feature = "dox"))] gst_buffer_is_memory_range_writable( buffer: *mut GstBuffer, idx: c_uint, length: c_int, ) -> gboolean4312 pub fn gst_buffer_is_memory_range_writable( 4313 buffer: *mut GstBuffer, 4314 idx: c_uint, 4315 length: c_int, 4316 ) -> gboolean; gst_buffer_iterate_meta(buffer: *mut GstBuffer, state: *mut gpointer) -> *mut GstMeta4317 pub fn gst_buffer_iterate_meta(buffer: *mut GstBuffer, state: *mut gpointer) -> *mut GstMeta; 4318 #[cfg(any(feature = "v1_12", feature = "dox"))] gst_buffer_iterate_meta_filtered( buffer: *mut GstBuffer, state: *mut gpointer, meta_api_type: GType, ) -> *mut GstMeta4319 pub fn gst_buffer_iterate_meta_filtered( 4320 buffer: *mut GstBuffer, 4321 state: *mut gpointer, 4322 meta_api_type: GType, 4323 ) -> *mut GstMeta; gst_buffer_map( buffer: *mut GstBuffer, info: *mut GstMapInfo, flags: GstMapFlags, ) -> gboolean4324 pub fn gst_buffer_map( 4325 buffer: *mut GstBuffer, 4326 info: *mut GstMapInfo, 4327 flags: GstMapFlags, 4328 ) -> gboolean; gst_buffer_map_range( buffer: *mut GstBuffer, idx: c_uint, length: c_int, info: *mut GstMapInfo, flags: GstMapFlags, ) -> gboolean4329 pub fn gst_buffer_map_range( 4330 buffer: *mut GstBuffer, 4331 idx: c_uint, 4332 length: c_int, 4333 info: *mut GstMapInfo, 4334 flags: GstMapFlags, 4335 ) -> gboolean; gst_buffer_memcmp( buffer: *mut GstBuffer, offset: size_t, mem: gconstpointer, size: size_t, ) -> c_int4336 pub fn gst_buffer_memcmp( 4337 buffer: *mut GstBuffer, 4338 offset: size_t, 4339 mem: gconstpointer, 4340 size: size_t, 4341 ) -> c_int; gst_buffer_memset( buffer: *mut GstBuffer, offset: size_t, val: u8, size: size_t, ) -> size_t4342 pub fn gst_buffer_memset( 4343 buffer: *mut GstBuffer, 4344 offset: size_t, 4345 val: u8, 4346 size: size_t, 4347 ) -> size_t; gst_buffer_n_memory(buffer: *mut GstBuffer) -> c_uint4348 pub fn gst_buffer_n_memory(buffer: *mut GstBuffer) -> c_uint; gst_buffer_peek_memory(buffer: *mut GstBuffer, idx: c_uint) -> *mut GstMemory4349 pub fn gst_buffer_peek_memory(buffer: *mut GstBuffer, idx: c_uint) -> *mut GstMemory; gst_buffer_prepend_memory(buffer: *mut GstBuffer, mem: *mut GstMemory)4350 pub fn gst_buffer_prepend_memory(buffer: *mut GstBuffer, mem: *mut GstMemory); gst_buffer_remove_all_memory(buffer: *mut GstBuffer)4351 pub fn gst_buffer_remove_all_memory(buffer: *mut GstBuffer); gst_buffer_remove_memory(buffer: *mut GstBuffer, idx: c_uint)4352 pub fn gst_buffer_remove_memory(buffer: *mut GstBuffer, idx: c_uint); gst_buffer_remove_memory_range(buffer: *mut GstBuffer, idx: c_uint, length: c_int)4353 pub fn gst_buffer_remove_memory_range(buffer: *mut GstBuffer, idx: c_uint, length: c_int); gst_buffer_remove_meta(buffer: *mut GstBuffer, meta: *mut GstMeta) -> gboolean4354 pub fn gst_buffer_remove_meta(buffer: *mut GstBuffer, meta: *mut GstMeta) -> gboolean; gst_buffer_replace_all_memory(buffer: *mut GstBuffer, mem: *mut GstMemory)4355 pub fn gst_buffer_replace_all_memory(buffer: *mut GstBuffer, mem: *mut GstMemory); gst_buffer_replace_memory(buffer: *mut GstBuffer, idx: c_uint, mem: *mut GstMemory)4356 pub fn gst_buffer_replace_memory(buffer: *mut GstBuffer, idx: c_uint, mem: *mut GstMemory); gst_buffer_replace_memory_range( buffer: *mut GstBuffer, idx: c_uint, length: c_int, mem: *mut GstMemory, )4357 pub fn gst_buffer_replace_memory_range( 4358 buffer: *mut GstBuffer, 4359 idx: c_uint, 4360 length: c_int, 4361 mem: *mut GstMemory, 4362 ); gst_buffer_resize(buffer: *mut GstBuffer, offset: ssize_t, size: ssize_t)4363 pub fn gst_buffer_resize(buffer: *mut GstBuffer, offset: ssize_t, size: ssize_t); gst_buffer_resize_range( buffer: *mut GstBuffer, idx: c_uint, length: c_int, offset: ssize_t, size: ssize_t, ) -> gboolean4364 pub fn gst_buffer_resize_range( 4365 buffer: *mut GstBuffer, 4366 idx: c_uint, 4367 length: c_int, 4368 offset: ssize_t, 4369 size: ssize_t, 4370 ) -> gboolean; 4371 #[cfg(any(feature = "v1_10", feature = "dox"))] gst_buffer_set_flags(buffer: *mut GstBuffer, flags: GstBufferFlags) -> gboolean4372 pub fn gst_buffer_set_flags(buffer: *mut GstBuffer, flags: GstBufferFlags) -> gboolean; gst_buffer_set_size(buffer: *mut GstBuffer, size: ssize_t)4373 pub fn gst_buffer_set_size(buffer: *mut GstBuffer, size: ssize_t); gst_buffer_unmap(buffer: *mut GstBuffer, info: *mut GstMapInfo)4374 pub fn gst_buffer_unmap(buffer: *mut GstBuffer, info: *mut GstMapInfo); 4375 #[cfg(any(feature = "v1_10", feature = "dox"))] gst_buffer_unset_flags(buffer: *mut GstBuffer, flags: GstBufferFlags) -> gboolean4376 pub fn gst_buffer_unset_flags(buffer: *mut GstBuffer, flags: GstBufferFlags) -> gboolean; 4377 #[cfg(any(feature = "v1_2", feature = "dox"))] gst_buffer_get_max_memory() -> c_uint4378 pub fn gst_buffer_get_max_memory() -> c_uint; 4379 4380 //========================================================================= 4381 // GstBufferList 4382 //========================================================================= gst_buffer_list_get_type() -> GType4383 pub fn gst_buffer_list_get_type() -> GType; gst_buffer_list_new() -> *mut GstBufferList4384 pub fn gst_buffer_list_new() -> *mut GstBufferList; gst_buffer_list_new_sized(size: c_uint) -> *mut GstBufferList4385 pub fn gst_buffer_list_new_sized(size: c_uint) -> *mut GstBufferList; 4386 #[cfg(any(feature = "v1_14", feature = "dox"))] gst_buffer_list_calculate_size(list: *mut GstBufferList) -> size_t4387 pub fn gst_buffer_list_calculate_size(list: *mut GstBufferList) -> size_t; 4388 #[cfg(any(feature = "v1_6", feature = "dox"))] gst_buffer_list_copy_deep(list: *const GstBufferList) -> *mut GstBufferList4389 pub fn gst_buffer_list_copy_deep(list: *const GstBufferList) -> *mut GstBufferList; gst_buffer_list_foreach( list: *mut GstBufferList, func: GstBufferListFunc, user_data: gpointer, ) -> gboolean4390 pub fn gst_buffer_list_foreach( 4391 list: *mut GstBufferList, 4392 func: GstBufferListFunc, 4393 user_data: gpointer, 4394 ) -> gboolean; gst_buffer_list_get(list: *mut GstBufferList, idx: c_uint) -> *mut GstBuffer4395 pub fn gst_buffer_list_get(list: *mut GstBufferList, idx: c_uint) -> *mut GstBuffer; 4396 #[cfg(any(feature = "v1_14", feature = "dox"))] gst_buffer_list_get_writable(list: *mut GstBufferList, idx: c_uint) -> *mut GstBuffer4397 pub fn gst_buffer_list_get_writable(list: *mut GstBufferList, idx: c_uint) -> *mut GstBuffer; gst_buffer_list_insert(list: *mut GstBufferList, idx: c_int, buffer: *mut GstBuffer)4398 pub fn gst_buffer_list_insert(list: *mut GstBufferList, idx: c_int, buffer: *mut GstBuffer); gst_buffer_list_length(list: *mut GstBufferList) -> c_uint4399 pub fn gst_buffer_list_length(list: *mut GstBufferList) -> c_uint; gst_buffer_list_remove(list: *mut GstBufferList, idx: c_uint, length: c_uint)4400 pub fn gst_buffer_list_remove(list: *mut GstBufferList, idx: c_uint, length: c_uint); 4401 4402 //========================================================================= 4403 // GstCaps 4404 //========================================================================= gst_caps_get_type() -> GType4405 pub fn gst_caps_get_type() -> GType; gst_caps_new_any() -> *mut GstCaps4406 pub fn gst_caps_new_any() -> *mut GstCaps; gst_caps_new_empty() -> *mut GstCaps4407 pub fn gst_caps_new_empty() -> *mut GstCaps; gst_caps_new_empty_simple(media_type: *const c_char) -> *mut GstCaps4408 pub fn gst_caps_new_empty_simple(media_type: *const c_char) -> *mut GstCaps; gst_caps_new_full(struct1: *mut GstStructure, ...) -> *mut GstCaps4409 pub fn gst_caps_new_full(struct1: *mut GstStructure, ...) -> *mut GstCaps; 4410 //pub fn gst_caps_new_full_valist(structure: *mut GstStructure, var_args: /*Unimplemented*/va_list) -> *mut GstCaps; gst_caps_new_simple( media_type: *const c_char, fieldname: *const c_char, ... ) -> *mut GstCaps4411 pub fn gst_caps_new_simple( 4412 media_type: *const c_char, 4413 fieldname: *const c_char, 4414 ... 4415 ) -> *mut GstCaps; gst_caps_append(caps1: *mut GstCaps, caps2: *mut GstCaps)4416 pub fn gst_caps_append(caps1: *mut GstCaps, caps2: *mut GstCaps); gst_caps_append_structure(caps: *mut GstCaps, structure: *mut GstStructure)4417 pub fn gst_caps_append_structure(caps: *mut GstCaps, structure: *mut GstStructure); 4418 #[cfg(any(feature = "v1_2", feature = "dox"))] gst_caps_append_structure_full( caps: *mut GstCaps, structure: *mut GstStructure, features: *mut GstCapsFeatures, )4419 pub fn gst_caps_append_structure_full( 4420 caps: *mut GstCaps, 4421 structure: *mut GstStructure, 4422 features: *mut GstCapsFeatures, 4423 ); gst_caps_can_intersect(caps1: *const GstCaps, caps2: *const GstCaps) -> gboolean4424 pub fn gst_caps_can_intersect(caps1: *const GstCaps, caps2: *const GstCaps) -> gboolean; gst_caps_copy(caps: *const GstCaps) -> *mut GstCaps4425 pub fn gst_caps_copy(caps: *const GstCaps) -> *mut GstCaps; 4426 #[cfg(any(feature = "v1_16", feature = "dox"))] gst_caps_copy_nth(caps: *const GstCaps, nth: c_uint) -> *mut GstCaps4427 pub fn gst_caps_copy_nth(caps: *const GstCaps, nth: c_uint) -> *mut GstCaps; 4428 #[cfg(any(feature = "v1_6", feature = "dox"))] gst_caps_filter_and_map_in_place( caps: *mut GstCaps, func: GstCapsFilterMapFunc, user_data: gpointer, )4429 pub fn gst_caps_filter_and_map_in_place( 4430 caps: *mut GstCaps, 4431 func: GstCapsFilterMapFunc, 4432 user_data: gpointer, 4433 ); gst_caps_fixate(caps: *mut GstCaps) -> *mut GstCaps4434 pub fn gst_caps_fixate(caps: *mut GstCaps) -> *mut GstCaps; 4435 #[cfg(any(feature = "v1_6", feature = "dox"))] gst_caps_foreach( caps: *const GstCaps, func: GstCapsForeachFunc, user_data: gpointer, ) -> gboolean4436 pub fn gst_caps_foreach( 4437 caps: *const GstCaps, 4438 func: GstCapsForeachFunc, 4439 user_data: gpointer, 4440 ) -> gboolean; 4441 #[cfg(any(feature = "v1_2", feature = "dox"))] gst_caps_get_features(caps: *const GstCaps, index: c_uint) -> *mut GstCapsFeatures4442 pub fn gst_caps_get_features(caps: *const GstCaps, index: c_uint) -> *mut GstCapsFeatures; gst_caps_get_size(caps: *const GstCaps) -> c_uint4443 pub fn gst_caps_get_size(caps: *const GstCaps) -> c_uint; gst_caps_get_structure(caps: *const GstCaps, index: c_uint) -> *mut GstStructure4444 pub fn gst_caps_get_structure(caps: *const GstCaps, index: c_uint) -> *mut GstStructure; gst_caps_intersect(caps1: *mut GstCaps, caps2: *mut GstCaps) -> *mut GstCaps4445 pub fn gst_caps_intersect(caps1: *mut GstCaps, caps2: *mut GstCaps) -> *mut GstCaps; gst_caps_intersect_full( caps1: *mut GstCaps, caps2: *mut GstCaps, mode: GstCapsIntersectMode, ) -> *mut GstCaps4446 pub fn gst_caps_intersect_full( 4447 caps1: *mut GstCaps, 4448 caps2: *mut GstCaps, 4449 mode: GstCapsIntersectMode, 4450 ) -> *mut GstCaps; gst_caps_is_always_compatible(caps1: *const GstCaps, caps2: *const GstCaps) -> gboolean4451 pub fn gst_caps_is_always_compatible(caps1: *const GstCaps, caps2: *const GstCaps) -> gboolean; gst_caps_is_any(caps: *const GstCaps) -> gboolean4452 pub fn gst_caps_is_any(caps: *const GstCaps) -> gboolean; gst_caps_is_empty(caps: *const GstCaps) -> gboolean4453 pub fn gst_caps_is_empty(caps: *const GstCaps) -> gboolean; gst_caps_is_equal(caps1: *const GstCaps, caps2: *const GstCaps) -> gboolean4454 pub fn gst_caps_is_equal(caps1: *const GstCaps, caps2: *const GstCaps) -> gboolean; gst_caps_is_equal_fixed(caps1: *const GstCaps, caps2: *const GstCaps) -> gboolean4455 pub fn gst_caps_is_equal_fixed(caps1: *const GstCaps, caps2: *const GstCaps) -> gboolean; gst_caps_is_fixed(caps: *const GstCaps) -> gboolean4456 pub fn gst_caps_is_fixed(caps: *const GstCaps) -> gboolean; gst_caps_is_strictly_equal(caps1: *const GstCaps, caps2: *const GstCaps) -> gboolean4457 pub fn gst_caps_is_strictly_equal(caps1: *const GstCaps, caps2: *const GstCaps) -> gboolean; gst_caps_is_subset(subset: *const GstCaps, superset: *const GstCaps) -> gboolean4458 pub fn gst_caps_is_subset(subset: *const GstCaps, superset: *const GstCaps) -> gboolean; gst_caps_is_subset_structure( caps: *const GstCaps, structure: *const GstStructure, ) -> gboolean4459 pub fn gst_caps_is_subset_structure( 4460 caps: *const GstCaps, 4461 structure: *const GstStructure, 4462 ) -> gboolean; 4463 #[cfg(any(feature = "v1_2", feature = "dox"))] gst_caps_is_subset_structure_full( caps: *const GstCaps, structure: *const GstStructure, features: *const GstCapsFeatures, ) -> gboolean4464 pub fn gst_caps_is_subset_structure_full( 4465 caps: *const GstCaps, 4466 structure: *const GstStructure, 4467 features: *const GstCapsFeatures, 4468 ) -> gboolean; 4469 #[cfg(any(feature = "v1_6", feature = "dox"))] gst_caps_map_in_place( caps: *mut GstCaps, func: GstCapsMapFunc, user_data: gpointer, ) -> gboolean4470 pub fn gst_caps_map_in_place( 4471 caps: *mut GstCaps, 4472 func: GstCapsMapFunc, 4473 user_data: gpointer, 4474 ) -> gboolean; gst_caps_merge(caps1: *mut GstCaps, caps2: *mut GstCaps) -> *mut GstCaps4475 pub fn gst_caps_merge(caps1: *mut GstCaps, caps2: *mut GstCaps) -> *mut GstCaps; gst_caps_merge_structure( caps: *mut GstCaps, structure: *mut GstStructure, ) -> *mut GstCaps4476 pub fn gst_caps_merge_structure( 4477 caps: *mut GstCaps, 4478 structure: *mut GstStructure, 4479 ) -> *mut GstCaps; 4480 #[cfg(any(feature = "v1_2", feature = "dox"))] gst_caps_merge_structure_full( caps: *mut GstCaps, structure: *mut GstStructure, features: *mut GstCapsFeatures, ) -> *mut GstCaps4481 pub fn gst_caps_merge_structure_full( 4482 caps: *mut GstCaps, 4483 structure: *mut GstStructure, 4484 features: *mut GstCapsFeatures, 4485 ) -> *mut GstCaps; gst_caps_normalize(caps: *mut GstCaps) -> *mut GstCaps4486 pub fn gst_caps_normalize(caps: *mut GstCaps) -> *mut GstCaps; gst_caps_remove_structure(caps: *mut GstCaps, idx: c_uint)4487 pub fn gst_caps_remove_structure(caps: *mut GstCaps, idx: c_uint); 4488 #[cfg(any(feature = "v1_2", feature = "dox"))] gst_caps_set_features(caps: *mut GstCaps, index: c_uint, features: *mut GstCapsFeatures)4489 pub fn gst_caps_set_features(caps: *mut GstCaps, index: c_uint, features: *mut GstCapsFeatures); 4490 #[cfg(any(feature = "v1_16", feature = "dox"))] gst_caps_set_features_simple(caps: *mut GstCaps, features: *mut GstCapsFeatures)4491 pub fn gst_caps_set_features_simple(caps: *mut GstCaps, features: *mut GstCapsFeatures); gst_caps_set_simple(caps: *mut GstCaps, field: *const c_char, ...)4492 pub fn gst_caps_set_simple(caps: *mut GstCaps, field: *const c_char, ...); 4493 //pub fn gst_caps_set_simple_valist(caps: *mut GstCaps, field: *const c_char, varargs: /*Unimplemented*/va_list); gst_caps_set_value( caps: *mut GstCaps, field: *const c_char, value: *const gobject::GValue, )4494 pub fn gst_caps_set_value( 4495 caps: *mut GstCaps, 4496 field: *const c_char, 4497 value: *const gobject::GValue, 4498 ); gst_caps_simplify(caps: *mut GstCaps) -> *mut GstCaps4499 pub fn gst_caps_simplify(caps: *mut GstCaps) -> *mut GstCaps; gst_caps_steal_structure(caps: *mut GstCaps, index: c_uint) -> *mut GstStructure4500 pub fn gst_caps_steal_structure(caps: *mut GstCaps, index: c_uint) -> *mut GstStructure; gst_caps_subtract(minuend: *mut GstCaps, subtrahend: *mut GstCaps) -> *mut GstCaps4501 pub fn gst_caps_subtract(minuend: *mut GstCaps, subtrahend: *mut GstCaps) -> *mut GstCaps; gst_caps_to_string(caps: *const GstCaps) -> *mut c_char4502 pub fn gst_caps_to_string(caps: *const GstCaps) -> *mut c_char; gst_caps_truncate(caps: *mut GstCaps) -> *mut GstCaps4503 pub fn gst_caps_truncate(caps: *mut GstCaps) -> *mut GstCaps; gst_caps_from_string(string: *const c_char) -> *mut GstCaps4504 pub fn gst_caps_from_string(string: *const c_char) -> *mut GstCaps; 4505 4506 //========================================================================= 4507 // GstCapsFeatures 4508 //========================================================================= gst_caps_features_get_type() -> GType4509 pub fn gst_caps_features_get_type() -> GType; 4510 #[cfg(any(feature = "v1_2", feature = "dox"))] gst_caps_features_new(feature1: *const c_char, ...) -> *mut GstCapsFeatures4511 pub fn gst_caps_features_new(feature1: *const c_char, ...) -> *mut GstCapsFeatures; 4512 #[cfg(any(feature = "v1_2", feature = "dox"))] gst_caps_features_new_any() -> *mut GstCapsFeatures4513 pub fn gst_caps_features_new_any() -> *mut GstCapsFeatures; 4514 #[cfg(any(feature = "v1_2", feature = "dox"))] gst_caps_features_new_empty() -> *mut GstCapsFeatures4515 pub fn gst_caps_features_new_empty() -> *mut GstCapsFeatures; 4516 #[cfg(any(feature = "v1_2", feature = "dox"))] gst_caps_features_new_id(feature1: glib::GQuark, ...) -> *mut GstCapsFeatures4517 pub fn gst_caps_features_new_id(feature1: glib::GQuark, ...) -> *mut GstCapsFeatures; 4518 //#[cfg(any(feature = "v1_2", feature = "dox"))] 4519 //pub fn gst_caps_features_new_id_valist(feature1: glib::GQuark, varargs: /*Unimplemented*/va_list) -> *mut GstCapsFeatures; 4520 //#[cfg(any(feature = "v1_2", feature = "dox"))] 4521 //pub fn gst_caps_features_new_valist(feature1: *const c_char, varargs: /*Unimplemented*/va_list) -> *mut GstCapsFeatures; 4522 #[cfg(any(feature = "v1_2", feature = "dox"))] gst_caps_features_add(features: *mut GstCapsFeatures, feature: *const c_char)4523 pub fn gst_caps_features_add(features: *mut GstCapsFeatures, feature: *const c_char); 4524 #[cfg(any(feature = "v1_2", feature = "dox"))] gst_caps_features_add_id(features: *mut GstCapsFeatures, feature: glib::GQuark)4525 pub fn gst_caps_features_add_id(features: *mut GstCapsFeatures, feature: glib::GQuark); 4526 #[cfg(any(feature = "v1_2", feature = "dox"))] gst_caps_features_contains( features: *const GstCapsFeatures, feature: *const c_char, ) -> gboolean4527 pub fn gst_caps_features_contains( 4528 features: *const GstCapsFeatures, 4529 feature: *const c_char, 4530 ) -> gboolean; 4531 #[cfg(any(feature = "v1_2", feature = "dox"))] gst_caps_features_contains_id( features: *const GstCapsFeatures, feature: glib::GQuark, ) -> gboolean4532 pub fn gst_caps_features_contains_id( 4533 features: *const GstCapsFeatures, 4534 feature: glib::GQuark, 4535 ) -> gboolean; 4536 #[cfg(any(feature = "v1_2", feature = "dox"))] gst_caps_features_copy(features: *const GstCapsFeatures) -> *mut GstCapsFeatures4537 pub fn gst_caps_features_copy(features: *const GstCapsFeatures) -> *mut GstCapsFeatures; 4538 #[cfg(any(feature = "v1_2", feature = "dox"))] gst_caps_features_free(features: *mut GstCapsFeatures)4539 pub fn gst_caps_features_free(features: *mut GstCapsFeatures); 4540 #[cfg(any(feature = "v1_2", feature = "dox"))] gst_caps_features_get_nth(features: *const GstCapsFeatures, i: c_uint) -> *const c_char4541 pub fn gst_caps_features_get_nth(features: *const GstCapsFeatures, i: c_uint) -> *const c_char; 4542 #[cfg(any(feature = "v1_2", feature = "dox"))] gst_caps_features_get_nth_id( features: *const GstCapsFeatures, i: c_uint, ) -> glib::GQuark4543 pub fn gst_caps_features_get_nth_id( 4544 features: *const GstCapsFeatures, 4545 i: c_uint, 4546 ) -> glib::GQuark; 4547 #[cfg(any(feature = "v1_2", feature = "dox"))] gst_caps_features_get_size(features: *const GstCapsFeatures) -> c_uint4548 pub fn gst_caps_features_get_size(features: *const GstCapsFeatures) -> c_uint; 4549 #[cfg(any(feature = "v1_2", feature = "dox"))] gst_caps_features_is_any(features: *const GstCapsFeatures) -> gboolean4550 pub fn gst_caps_features_is_any(features: *const GstCapsFeatures) -> gboolean; 4551 #[cfg(any(feature = "v1_2", feature = "dox"))] gst_caps_features_is_equal( features1: *const GstCapsFeatures, features2: *const GstCapsFeatures, ) -> gboolean4552 pub fn gst_caps_features_is_equal( 4553 features1: *const GstCapsFeatures, 4554 features2: *const GstCapsFeatures, 4555 ) -> gboolean; 4556 #[cfg(any(feature = "v1_2", feature = "dox"))] gst_caps_features_remove(features: *mut GstCapsFeatures, feature: *const c_char)4557 pub fn gst_caps_features_remove(features: *mut GstCapsFeatures, feature: *const c_char); 4558 #[cfg(any(feature = "v1_2", feature = "dox"))] gst_caps_features_remove_id(features: *mut GstCapsFeatures, feature: glib::GQuark)4559 pub fn gst_caps_features_remove_id(features: *mut GstCapsFeatures, feature: glib::GQuark); 4560 #[cfg(any(feature = "v1_2", feature = "dox"))] gst_caps_features_set_parent_refcount( features: *mut GstCapsFeatures, refcount: *mut c_int, ) -> gboolean4561 pub fn gst_caps_features_set_parent_refcount( 4562 features: *mut GstCapsFeatures, 4563 refcount: *mut c_int, 4564 ) -> gboolean; 4565 #[cfg(any(feature = "v1_2", feature = "dox"))] gst_caps_features_to_string(features: *const GstCapsFeatures) -> *mut c_char4566 pub fn gst_caps_features_to_string(features: *const GstCapsFeatures) -> *mut c_char; 4567 #[cfg(any(feature = "v1_2", feature = "dox"))] gst_caps_features_from_string(features: *const c_char) -> *mut GstCapsFeatures4568 pub fn gst_caps_features_from_string(features: *const c_char) -> *mut GstCapsFeatures; 4569 4570 //========================================================================= 4571 // GstContext 4572 //========================================================================= gst_context_get_type() -> GType4573 pub fn gst_context_get_type() -> GType; 4574 #[cfg(any(feature = "v1_2", feature = "dox"))] gst_context_new(context_type: *const c_char, persistent: gboolean) -> *mut GstContext4575 pub fn gst_context_new(context_type: *const c_char, persistent: gboolean) -> *mut GstContext; 4576 #[cfg(any(feature = "v1_2", feature = "dox"))] gst_context_get_context_type(context: *const GstContext) -> *const c_char4577 pub fn gst_context_get_context_type(context: *const GstContext) -> *const c_char; 4578 #[cfg(any(feature = "v1_2", feature = "dox"))] gst_context_get_structure(context: *const GstContext) -> *const GstStructure4579 pub fn gst_context_get_structure(context: *const GstContext) -> *const GstStructure; 4580 #[cfg(any(feature = "v1_2", feature = "dox"))] gst_context_has_context_type( context: *const GstContext, context_type: *const c_char, ) -> gboolean4581 pub fn gst_context_has_context_type( 4582 context: *const GstContext, 4583 context_type: *const c_char, 4584 ) -> gboolean; 4585 #[cfg(any(feature = "v1_2", feature = "dox"))] gst_context_is_persistent(context: *const GstContext) -> gboolean4586 pub fn gst_context_is_persistent(context: *const GstContext) -> gboolean; 4587 #[cfg(any(feature = "v1_2", feature = "dox"))] gst_context_writable_structure(context: *mut GstContext) -> *mut GstStructure4588 pub fn gst_context_writable_structure(context: *mut GstContext) -> *mut GstStructure; 4589 4590 //========================================================================= 4591 // GstDateTime 4592 //========================================================================= gst_date_time_get_type() -> GType4593 pub fn gst_date_time_get_type() -> GType; gst_date_time_new( tzoffset: c_float, year: c_int, month: c_int, day: c_int, hour: c_int, minute: c_int, seconds: c_double, ) -> *mut GstDateTime4594 pub fn gst_date_time_new( 4595 tzoffset: c_float, 4596 year: c_int, 4597 month: c_int, 4598 day: c_int, 4599 hour: c_int, 4600 minute: c_int, 4601 seconds: c_double, 4602 ) -> *mut GstDateTime; gst_date_time_new_from_g_date_time(dt: *mut glib::GDateTime) -> *mut GstDateTime4603 pub fn gst_date_time_new_from_g_date_time(dt: *mut glib::GDateTime) -> *mut GstDateTime; gst_date_time_new_from_iso8601_string(string: *const c_char) -> *mut GstDateTime4604 pub fn gst_date_time_new_from_iso8601_string(string: *const c_char) -> *mut GstDateTime; gst_date_time_new_from_unix_epoch_local_time(secs: i64) -> *mut GstDateTime4605 pub fn gst_date_time_new_from_unix_epoch_local_time(secs: i64) -> *mut GstDateTime; gst_date_time_new_from_unix_epoch_utc(secs: i64) -> *mut GstDateTime4606 pub fn gst_date_time_new_from_unix_epoch_utc(secs: i64) -> *mut GstDateTime; gst_date_time_new_local_time( year: c_int, month: c_int, day: c_int, hour: c_int, minute: c_int, seconds: c_double, ) -> *mut GstDateTime4607 pub fn gst_date_time_new_local_time( 4608 year: c_int, 4609 month: c_int, 4610 day: c_int, 4611 hour: c_int, 4612 minute: c_int, 4613 seconds: c_double, 4614 ) -> *mut GstDateTime; gst_date_time_new_now_local_time() -> *mut GstDateTime4615 pub fn gst_date_time_new_now_local_time() -> *mut GstDateTime; gst_date_time_new_now_utc() -> *mut GstDateTime4616 pub fn gst_date_time_new_now_utc() -> *mut GstDateTime; gst_date_time_new_y(year: c_int) -> *mut GstDateTime4617 pub fn gst_date_time_new_y(year: c_int) -> *mut GstDateTime; gst_date_time_new_ym(year: c_int, month: c_int) -> *mut GstDateTime4618 pub fn gst_date_time_new_ym(year: c_int, month: c_int) -> *mut GstDateTime; gst_date_time_new_ymd(year: c_int, month: c_int, day: c_int) -> *mut GstDateTime4619 pub fn gst_date_time_new_ymd(year: c_int, month: c_int, day: c_int) -> *mut GstDateTime; gst_date_time_get_day(datetime: *const GstDateTime) -> c_int4620 pub fn gst_date_time_get_day(datetime: *const GstDateTime) -> c_int; gst_date_time_get_hour(datetime: *const GstDateTime) -> c_int4621 pub fn gst_date_time_get_hour(datetime: *const GstDateTime) -> c_int; gst_date_time_get_microsecond(datetime: *const GstDateTime) -> c_int4622 pub fn gst_date_time_get_microsecond(datetime: *const GstDateTime) -> c_int; gst_date_time_get_minute(datetime: *const GstDateTime) -> c_int4623 pub fn gst_date_time_get_minute(datetime: *const GstDateTime) -> c_int; gst_date_time_get_month(datetime: *const GstDateTime) -> c_int4624 pub fn gst_date_time_get_month(datetime: *const GstDateTime) -> c_int; gst_date_time_get_second(datetime: *const GstDateTime) -> c_int4625 pub fn gst_date_time_get_second(datetime: *const GstDateTime) -> c_int; gst_date_time_get_time_zone_offset(datetime: *const GstDateTime) -> c_float4626 pub fn gst_date_time_get_time_zone_offset(datetime: *const GstDateTime) -> c_float; gst_date_time_get_year(datetime: *const GstDateTime) -> c_int4627 pub fn gst_date_time_get_year(datetime: *const GstDateTime) -> c_int; gst_date_time_has_day(datetime: *const GstDateTime) -> gboolean4628 pub fn gst_date_time_has_day(datetime: *const GstDateTime) -> gboolean; gst_date_time_has_month(datetime: *const GstDateTime) -> gboolean4629 pub fn gst_date_time_has_month(datetime: *const GstDateTime) -> gboolean; gst_date_time_has_second(datetime: *const GstDateTime) -> gboolean4630 pub fn gst_date_time_has_second(datetime: *const GstDateTime) -> gboolean; gst_date_time_has_time(datetime: *const GstDateTime) -> gboolean4631 pub fn gst_date_time_has_time(datetime: *const GstDateTime) -> gboolean; gst_date_time_has_year(datetime: *const GstDateTime) -> gboolean4632 pub fn gst_date_time_has_year(datetime: *const GstDateTime) -> gboolean; gst_date_time_ref(datetime: *mut GstDateTime) -> *mut GstDateTime4633 pub fn gst_date_time_ref(datetime: *mut GstDateTime) -> *mut GstDateTime; gst_date_time_to_g_date_time(datetime: *mut GstDateTime) -> *mut glib::GDateTime4634 pub fn gst_date_time_to_g_date_time(datetime: *mut GstDateTime) -> *mut glib::GDateTime; gst_date_time_to_iso8601_string(datetime: *mut GstDateTime) -> *mut c_char4635 pub fn gst_date_time_to_iso8601_string(datetime: *mut GstDateTime) -> *mut c_char; gst_date_time_unref(datetime: *mut GstDateTime)4636 pub fn gst_date_time_unref(datetime: *mut GstDateTime); 4637 4638 //========================================================================= 4639 // GstDebugCategory 4640 //========================================================================= gst_debug_category_free(category: *mut GstDebugCategory)4641 pub fn gst_debug_category_free(category: *mut GstDebugCategory); gst_debug_category_get_color(category: *mut GstDebugCategory) -> c_uint4642 pub fn gst_debug_category_get_color(category: *mut GstDebugCategory) -> c_uint; gst_debug_category_get_description(category: *mut GstDebugCategory) -> *const c_char4643 pub fn gst_debug_category_get_description(category: *mut GstDebugCategory) -> *const c_char; gst_debug_category_get_name(category: *mut GstDebugCategory) -> *const c_char4644 pub fn gst_debug_category_get_name(category: *mut GstDebugCategory) -> *const c_char; gst_debug_category_get_threshold(category: *mut GstDebugCategory) -> GstDebugLevel4645 pub fn gst_debug_category_get_threshold(category: *mut GstDebugCategory) -> GstDebugLevel; gst_debug_category_reset_threshold(category: *mut GstDebugCategory)4646 pub fn gst_debug_category_reset_threshold(category: *mut GstDebugCategory); gst_debug_category_set_threshold(category: *mut GstDebugCategory, level: GstDebugLevel)4647 pub fn gst_debug_category_set_threshold(category: *mut GstDebugCategory, level: GstDebugLevel); 4648 4649 //========================================================================= 4650 // GstDebugMessage 4651 //========================================================================= gst_debug_message_get(message: *mut GstDebugMessage) -> *const c_char4652 pub fn gst_debug_message_get(message: *mut GstDebugMessage) -> *const c_char; 4653 4654 //========================================================================= 4655 // GstDeviceProviderClass 4656 //========================================================================= 4657 #[cfg(any(feature = "v1_4", feature = "dox"))] gst_device_provider_class_add_metadata( klass: *mut GstDeviceProviderClass, key: *const c_char, value: *const c_char, )4658 pub fn gst_device_provider_class_add_metadata( 4659 klass: *mut GstDeviceProviderClass, 4660 key: *const c_char, 4661 value: *const c_char, 4662 ); 4663 #[cfg(any(feature = "v1_4", feature = "dox"))] gst_device_provider_class_add_static_metadata( klass: *mut GstDeviceProviderClass, key: *const c_char, value: *const c_char, )4664 pub fn gst_device_provider_class_add_static_metadata( 4665 klass: *mut GstDeviceProviderClass, 4666 key: *const c_char, 4667 value: *const c_char, 4668 ); 4669 #[cfg(any(feature = "v1_4", feature = "dox"))] gst_device_provider_class_get_metadata( klass: *mut GstDeviceProviderClass, key: *const c_char, ) -> *const c_char4670 pub fn gst_device_provider_class_get_metadata( 4671 klass: *mut GstDeviceProviderClass, 4672 key: *const c_char, 4673 ) -> *const c_char; 4674 #[cfg(any(feature = "v1_4", feature = "dox"))] gst_device_provider_class_set_metadata( klass: *mut GstDeviceProviderClass, longname: *const c_char, classification: *const c_char, description: *const c_char, author: *const c_char, )4675 pub fn gst_device_provider_class_set_metadata( 4676 klass: *mut GstDeviceProviderClass, 4677 longname: *const c_char, 4678 classification: *const c_char, 4679 description: *const c_char, 4680 author: *const c_char, 4681 ); 4682 #[cfg(any(feature = "v1_4", feature = "dox"))] gst_device_provider_class_set_static_metadata( klass: *mut GstDeviceProviderClass, longname: *const c_char, classification: *const c_char, description: *const c_char, author: *const c_char, )4683 pub fn gst_device_provider_class_set_static_metadata( 4684 klass: *mut GstDeviceProviderClass, 4685 longname: *const c_char, 4686 classification: *const c_char, 4687 description: *const c_char, 4688 author: *const c_char, 4689 ); 4690 4691 //========================================================================= 4692 // GstElementClass 4693 //========================================================================= gst_element_class_add_metadata( klass: *mut GstElementClass, key: *const c_char, value: *const c_char, )4694 pub fn gst_element_class_add_metadata( 4695 klass: *mut GstElementClass, 4696 key: *const c_char, 4697 value: *const c_char, 4698 ); gst_element_class_add_pad_template( klass: *mut GstElementClass, templ: *mut GstPadTemplate, )4699 pub fn gst_element_class_add_pad_template( 4700 klass: *mut GstElementClass, 4701 templ: *mut GstPadTemplate, 4702 ); gst_element_class_add_static_metadata( klass: *mut GstElementClass, key: *const c_char, value: *const c_char, )4703 pub fn gst_element_class_add_static_metadata( 4704 klass: *mut GstElementClass, 4705 key: *const c_char, 4706 value: *const c_char, 4707 ); 4708 #[cfg(any(feature = "v1_8", feature = "dox"))] gst_element_class_add_static_pad_template( klass: *mut GstElementClass, static_templ: *mut GstStaticPadTemplate, )4709 pub fn gst_element_class_add_static_pad_template( 4710 klass: *mut GstElementClass, 4711 static_templ: *mut GstStaticPadTemplate, 4712 ); 4713 #[cfg(any(feature = "v1_14", feature = "dox"))] gst_element_class_add_static_pad_template_with_gtype( klass: *mut GstElementClass, static_templ: *mut GstStaticPadTemplate, pad_type: GType, )4714 pub fn gst_element_class_add_static_pad_template_with_gtype( 4715 klass: *mut GstElementClass, 4716 static_templ: *mut GstStaticPadTemplate, 4717 pad_type: GType, 4718 ); gst_element_class_get_metadata( klass: *mut GstElementClass, key: *const c_char, ) -> *const c_char4719 pub fn gst_element_class_get_metadata( 4720 klass: *mut GstElementClass, 4721 key: *const c_char, 4722 ) -> *const c_char; gst_element_class_get_pad_template( element_class: *mut GstElementClass, name: *const c_char, ) -> *mut GstPadTemplate4723 pub fn gst_element_class_get_pad_template( 4724 element_class: *mut GstElementClass, 4725 name: *const c_char, 4726 ) -> *mut GstPadTemplate; gst_element_class_get_pad_template_list( element_class: *mut GstElementClass, ) -> *mut glib::GList4727 pub fn gst_element_class_get_pad_template_list( 4728 element_class: *mut GstElementClass, 4729 ) -> *mut glib::GList; gst_element_class_set_metadata( klass: *mut GstElementClass, longname: *const c_char, classification: *const c_char, description: *const c_char, author: *const c_char, )4730 pub fn gst_element_class_set_metadata( 4731 klass: *mut GstElementClass, 4732 longname: *const c_char, 4733 classification: *const c_char, 4734 description: *const c_char, 4735 author: *const c_char, 4736 ); gst_element_class_set_static_metadata( klass: *mut GstElementClass, longname: *const c_char, classification: *const c_char, description: *const c_char, author: *const c_char, )4737 pub fn gst_element_class_set_static_metadata( 4738 klass: *mut GstElementClass, 4739 longname: *const c_char, 4740 classification: *const c_char, 4741 description: *const c_char, 4742 author: *const c_char, 4743 ); 4744 4745 //========================================================================= 4746 // GstEvent 4747 //========================================================================= gst_event_get_type() -> GType4748 pub fn gst_event_get_type() -> GType; gst_event_new_buffer_size( format: GstFormat, minsize: i64, maxsize: i64, async: gboolean, ) -> *mut GstEvent4749 pub fn gst_event_new_buffer_size( 4750 format: GstFormat, 4751 minsize: i64, 4752 maxsize: i64, 4753 async: gboolean, 4754 ) -> *mut GstEvent; gst_event_new_caps(caps: *mut GstCaps) -> *mut GstEvent4755 pub fn gst_event_new_caps(caps: *mut GstCaps) -> *mut GstEvent; gst_event_new_custom(type_: GstEventType, structure: *mut GstStructure) -> *mut GstEvent4756 pub fn gst_event_new_custom(type_: GstEventType, structure: *mut GstStructure) 4757 -> *mut GstEvent; gst_event_new_eos() -> *mut GstEvent4758 pub fn gst_event_new_eos() -> *mut GstEvent; gst_event_new_flush_start() -> *mut GstEvent4759 pub fn gst_event_new_flush_start() -> *mut GstEvent; gst_event_new_flush_stop(reset_time: gboolean) -> *mut GstEvent4760 pub fn gst_event_new_flush_stop(reset_time: gboolean) -> *mut GstEvent; gst_event_new_gap(timestamp: GstClockTime, duration: GstClockTime) -> *mut GstEvent4761 pub fn gst_event_new_gap(timestamp: GstClockTime, duration: GstClockTime) -> *mut GstEvent; gst_event_new_latency(latency: GstClockTime) -> *mut GstEvent4762 pub fn gst_event_new_latency(latency: GstClockTime) -> *mut GstEvent; gst_event_new_navigation(structure: *mut GstStructure) -> *mut GstEvent4763 pub fn gst_event_new_navigation(structure: *mut GstStructure) -> *mut GstEvent; 4764 #[cfg(any(feature = "v1_6", feature = "dox"))] gst_event_new_protection( system_id: *const c_char, data: *mut GstBuffer, origin: *const c_char, ) -> *mut GstEvent4765 pub fn gst_event_new_protection( 4766 system_id: *const c_char, 4767 data: *mut GstBuffer, 4768 origin: *const c_char, 4769 ) -> *mut GstEvent; gst_event_new_qos( type_: GstQOSType, proportion: c_double, diff: GstClockTimeDiff, timestamp: GstClockTime, ) -> *mut GstEvent4770 pub fn gst_event_new_qos( 4771 type_: GstQOSType, 4772 proportion: c_double, 4773 diff: GstClockTimeDiff, 4774 timestamp: GstClockTime, 4775 ) -> *mut GstEvent; gst_event_new_reconfigure() -> *mut GstEvent4776 pub fn gst_event_new_reconfigure() -> *mut GstEvent; gst_event_new_seek( rate: c_double, format: GstFormat, flags: GstSeekFlags, start_type: GstSeekType, start: i64, stop_type: GstSeekType, stop: i64, ) -> *mut GstEvent4777 pub fn gst_event_new_seek( 4778 rate: c_double, 4779 format: GstFormat, 4780 flags: GstSeekFlags, 4781 start_type: GstSeekType, 4782 start: i64, 4783 stop_type: GstSeekType, 4784 stop: i64, 4785 ) -> *mut GstEvent; gst_event_new_segment(segment: *const GstSegment) -> *mut GstEvent4786 pub fn gst_event_new_segment(segment: *const GstSegment) -> *mut GstEvent; gst_event_new_segment_done(format: GstFormat, position: i64) -> *mut GstEvent4787 pub fn gst_event_new_segment_done(format: GstFormat, position: i64) -> *mut GstEvent; 4788 #[cfg(any(feature = "v1_10", feature = "dox"))] gst_event_new_select_streams(streams: *mut glib::GList) -> *mut GstEvent4789 pub fn gst_event_new_select_streams(streams: *mut glib::GList) -> *mut GstEvent; gst_event_new_sink_message(name: *const c_char, msg: *mut GstMessage) -> *mut GstEvent4790 pub fn gst_event_new_sink_message(name: *const c_char, msg: *mut GstMessage) -> *mut GstEvent; gst_event_new_step( format: GstFormat, amount: u64, rate: c_double, flush: gboolean, intermediate: gboolean, ) -> *mut GstEvent4791 pub fn gst_event_new_step( 4792 format: GstFormat, 4793 amount: u64, 4794 rate: c_double, 4795 flush: gboolean, 4796 intermediate: gboolean, 4797 ) -> *mut GstEvent; 4798 #[cfg(any(feature = "v1_10", feature = "dox"))] gst_event_new_stream_collection(collection: *mut GstStreamCollection) -> *mut GstEvent4799 pub fn gst_event_new_stream_collection(collection: *mut GstStreamCollection) -> *mut GstEvent; 4800 #[cfg(any(feature = "v1_10", feature = "dox"))] gst_event_new_stream_group_done(group_id: c_uint) -> *mut GstEvent4801 pub fn gst_event_new_stream_group_done(group_id: c_uint) -> *mut GstEvent; gst_event_new_stream_start(stream_id: *const c_char) -> *mut GstEvent4802 pub fn gst_event_new_stream_start(stream_id: *const c_char) -> *mut GstEvent; gst_event_new_tag(taglist: *mut GstTagList) -> *mut GstEvent4803 pub fn gst_event_new_tag(taglist: *mut GstTagList) -> *mut GstEvent; gst_event_new_toc(toc: *mut GstToc, updated: gboolean) -> *mut GstEvent4804 pub fn gst_event_new_toc(toc: *mut GstToc, updated: gboolean) -> *mut GstEvent; gst_event_new_toc_select(uid: *const c_char) -> *mut GstEvent4805 pub fn gst_event_new_toc_select(uid: *const c_char) -> *mut GstEvent; gst_event_copy_segment(event: *mut GstEvent, segment: *mut GstSegment)4806 pub fn gst_event_copy_segment(event: *mut GstEvent, segment: *mut GstSegment); 4807 #[cfg(any(feature = "v1_4", feature = "dox"))] gst_event_get_running_time_offset(event: *mut GstEvent) -> i644808 pub fn gst_event_get_running_time_offset(event: *mut GstEvent) -> i64; gst_event_get_seqnum(event: *mut GstEvent) -> u324809 pub fn gst_event_get_seqnum(event: *mut GstEvent) -> u32; gst_event_get_structure(event: *mut GstEvent) -> *const GstStructure4810 pub fn gst_event_get_structure(event: *mut GstEvent) -> *const GstStructure; gst_event_has_name(event: *mut GstEvent, name: *const c_char) -> gboolean4811 pub fn gst_event_has_name(event: *mut GstEvent, name: *const c_char) -> gboolean; gst_event_parse_buffer_size( event: *mut GstEvent, format: *mut GstFormat, minsize: *mut i64, maxsize: *mut i64, async: *mut gboolean, )4812 pub fn gst_event_parse_buffer_size( 4813 event: *mut GstEvent, 4814 format: *mut GstFormat, 4815 minsize: *mut i64, 4816 maxsize: *mut i64, 4817 async: *mut gboolean, 4818 ); gst_event_parse_caps(event: *mut GstEvent, caps: *mut *mut GstCaps)4819 pub fn gst_event_parse_caps(event: *mut GstEvent, caps: *mut *mut GstCaps); gst_event_parse_flush_stop(event: *mut GstEvent, reset_time: *mut gboolean)4820 pub fn gst_event_parse_flush_stop(event: *mut GstEvent, reset_time: *mut gboolean); gst_event_parse_gap( event: *mut GstEvent, timestamp: *mut GstClockTime, duration: *mut GstClockTime, )4821 pub fn gst_event_parse_gap( 4822 event: *mut GstEvent, 4823 timestamp: *mut GstClockTime, 4824 duration: *mut GstClockTime, 4825 ); 4826 #[cfg(any(feature = "v1_2", feature = "dox"))] gst_event_parse_group_id(event: *mut GstEvent, group_id: *mut c_uint) -> gboolean4827 pub fn gst_event_parse_group_id(event: *mut GstEvent, group_id: *mut c_uint) -> gboolean; gst_event_parse_latency(event: *mut GstEvent, latency: *mut GstClockTime)4828 pub fn gst_event_parse_latency(event: *mut GstEvent, latency: *mut GstClockTime); 4829 #[cfg(any(feature = "v1_6", feature = "dox"))] gst_event_parse_protection( event: *mut GstEvent, system_id: *mut *const c_char, data: *mut *mut GstBuffer, origin: *mut *const c_char, )4830 pub fn gst_event_parse_protection( 4831 event: *mut GstEvent, 4832 system_id: *mut *const c_char, 4833 data: *mut *mut GstBuffer, 4834 origin: *mut *const c_char, 4835 ); gst_event_parse_qos( event: *mut GstEvent, type_: *mut GstQOSType, proportion: *mut c_double, diff: *mut GstClockTimeDiff, timestamp: *mut GstClockTime, )4836 pub fn gst_event_parse_qos( 4837 event: *mut GstEvent, 4838 type_: *mut GstQOSType, 4839 proportion: *mut c_double, 4840 diff: *mut GstClockTimeDiff, 4841 timestamp: *mut GstClockTime, 4842 ); gst_event_parse_seek( event: *mut GstEvent, rate: *mut c_double, format: *mut GstFormat, flags: *mut GstSeekFlags, start_type: *mut GstSeekType, start: *mut i64, stop_type: *mut GstSeekType, stop: *mut i64, )4843 pub fn gst_event_parse_seek( 4844 event: *mut GstEvent, 4845 rate: *mut c_double, 4846 format: *mut GstFormat, 4847 flags: *mut GstSeekFlags, 4848 start_type: *mut GstSeekType, 4849 start: *mut i64, 4850 stop_type: *mut GstSeekType, 4851 stop: *mut i64, 4852 ); 4853 #[cfg(any(feature = "v1_16", feature = "dox"))] gst_event_parse_seek_trickmode_interval( event: *mut GstEvent, interval: *mut GstClockTime, )4854 pub fn gst_event_parse_seek_trickmode_interval( 4855 event: *mut GstEvent, 4856 interval: *mut GstClockTime, 4857 ); gst_event_parse_segment(event: *mut GstEvent, segment: *mut *const GstSegment)4858 pub fn gst_event_parse_segment(event: *mut GstEvent, segment: *mut *const GstSegment); gst_event_parse_segment_done( event: *mut GstEvent, format: *mut GstFormat, position: *mut i64, )4859 pub fn gst_event_parse_segment_done( 4860 event: *mut GstEvent, 4861 format: *mut GstFormat, 4862 position: *mut i64, 4863 ); 4864 #[cfg(any(feature = "v1_10", feature = "dox"))] gst_event_parse_select_streams(event: *mut GstEvent, streams: *mut *mut glib::GList)4865 pub fn gst_event_parse_select_streams(event: *mut GstEvent, streams: *mut *mut glib::GList); gst_event_parse_sink_message(event: *mut GstEvent, msg: *mut *mut GstMessage)4866 pub fn gst_event_parse_sink_message(event: *mut GstEvent, msg: *mut *mut GstMessage); gst_event_parse_step( event: *mut GstEvent, format: *mut GstFormat, amount: *mut u64, rate: *mut c_double, flush: *mut gboolean, intermediate: *mut gboolean, )4867 pub fn gst_event_parse_step( 4868 event: *mut GstEvent, 4869 format: *mut GstFormat, 4870 amount: *mut u64, 4871 rate: *mut c_double, 4872 flush: *mut gboolean, 4873 intermediate: *mut gboolean, 4874 ); 4875 #[cfg(any(feature = "v1_10", feature = "dox"))] gst_event_parse_stream(event: *mut GstEvent, stream: *mut *mut GstStream)4876 pub fn gst_event_parse_stream(event: *mut GstEvent, stream: *mut *mut GstStream); 4877 #[cfg(any(feature = "v1_10", feature = "dox"))] gst_event_parse_stream_collection( event: *mut GstEvent, collection: *mut *mut GstStreamCollection, )4878 pub fn gst_event_parse_stream_collection( 4879 event: *mut GstEvent, 4880 collection: *mut *mut GstStreamCollection, 4881 ); 4882 #[cfg(any(feature = "v1_2", feature = "dox"))] gst_event_parse_stream_flags(event: *mut GstEvent, flags: *mut GstStreamFlags)4883 pub fn gst_event_parse_stream_flags(event: *mut GstEvent, flags: *mut GstStreamFlags); 4884 #[cfg(any(feature = "v1_10", feature = "dox"))] gst_event_parse_stream_group_done(event: *mut GstEvent, group_id: *mut c_uint)4885 pub fn gst_event_parse_stream_group_done(event: *mut GstEvent, group_id: *mut c_uint); gst_event_parse_stream_start(event: *mut GstEvent, stream_id: *mut *const c_char)4886 pub fn gst_event_parse_stream_start(event: *mut GstEvent, stream_id: *mut *const c_char); gst_event_parse_tag(event: *mut GstEvent, taglist: *mut *mut GstTagList)4887 pub fn gst_event_parse_tag(event: *mut GstEvent, taglist: *mut *mut GstTagList); gst_event_parse_toc(event: *mut GstEvent, toc: *mut *mut GstToc, updated: *mut gboolean)4888 pub fn gst_event_parse_toc(event: *mut GstEvent, toc: *mut *mut GstToc, updated: *mut gboolean); gst_event_parse_toc_select(event: *mut GstEvent, uid: *mut *mut c_char)4889 pub fn gst_event_parse_toc_select(event: *mut GstEvent, uid: *mut *mut c_char); 4890 #[cfg(any(feature = "v1_2", feature = "dox"))] gst_event_set_group_id(event: *mut GstEvent, group_id: c_uint)4891 pub fn gst_event_set_group_id(event: *mut GstEvent, group_id: c_uint); 4892 #[cfg(any(feature = "v1_4", feature = "dox"))] gst_event_set_running_time_offset(event: *mut GstEvent, offset: i64)4893 pub fn gst_event_set_running_time_offset(event: *mut GstEvent, offset: i64); 4894 #[cfg(any(feature = "v1_16", feature = "dox"))] gst_event_set_seek_trickmode_interval(event: *mut GstEvent, interval: GstClockTime)4895 pub fn gst_event_set_seek_trickmode_interval(event: *mut GstEvent, interval: GstClockTime); gst_event_set_seqnum(event: *mut GstEvent, seqnum: u32)4896 pub fn gst_event_set_seqnum(event: *mut GstEvent, seqnum: u32); 4897 #[cfg(any(feature = "v1_10", feature = "dox"))] gst_event_set_stream(event: *mut GstEvent, stream: *mut GstStream)4898 pub fn gst_event_set_stream(event: *mut GstEvent, stream: *mut GstStream); 4899 #[cfg(any(feature = "v1_2", feature = "dox"))] gst_event_set_stream_flags(event: *mut GstEvent, flags: GstStreamFlags)4900 pub fn gst_event_set_stream_flags(event: *mut GstEvent, flags: GstStreamFlags); gst_event_writable_structure(event: *mut GstEvent) -> *mut GstStructure4901 pub fn gst_event_writable_structure(event: *mut GstEvent) -> *mut GstStructure; 4902 4903 //========================================================================= 4904 // GstIterator 4905 //========================================================================= gst_iterator_get_type() -> GType4906 pub fn gst_iterator_get_type() -> GType; gst_iterator_new( size: c_uint, type_: GType, lock: *mut glib::GMutex, master_cookie: *mut u32, copy: GstIteratorCopyFunction, next: GstIteratorNextFunction, item: GstIteratorItemFunction, resync: GstIteratorResyncFunction, free: GstIteratorFreeFunction, ) -> *mut GstIterator4907 pub fn gst_iterator_new( 4908 size: c_uint, 4909 type_: GType, 4910 lock: *mut glib::GMutex, 4911 master_cookie: *mut u32, 4912 copy: GstIteratorCopyFunction, 4913 next: GstIteratorNextFunction, 4914 item: GstIteratorItemFunction, 4915 resync: GstIteratorResyncFunction, 4916 free: GstIteratorFreeFunction, 4917 ) -> *mut GstIterator; gst_iterator_new_list( type_: GType, lock: *mut glib::GMutex, master_cookie: *mut u32, list: *mut *mut glib::GList, owner: *mut gobject::GObject, item: GstIteratorItemFunction, ) -> *mut GstIterator4918 pub fn gst_iterator_new_list( 4919 type_: GType, 4920 lock: *mut glib::GMutex, 4921 master_cookie: *mut u32, 4922 list: *mut *mut glib::GList, 4923 owner: *mut gobject::GObject, 4924 item: GstIteratorItemFunction, 4925 ) -> *mut GstIterator; gst_iterator_new_single( type_: GType, object: *const gobject::GValue, ) -> *mut GstIterator4926 pub fn gst_iterator_new_single( 4927 type_: GType, 4928 object: *const gobject::GValue, 4929 ) -> *mut GstIterator; gst_iterator_copy(it: *const GstIterator) -> *mut GstIterator4930 pub fn gst_iterator_copy(it: *const GstIterator) -> *mut GstIterator; gst_iterator_filter( it: *mut GstIterator, func: glib::GCompareFunc, user_data: *const gobject::GValue, ) -> *mut GstIterator4931 pub fn gst_iterator_filter( 4932 it: *mut GstIterator, 4933 func: glib::GCompareFunc, 4934 user_data: *const gobject::GValue, 4935 ) -> *mut GstIterator; gst_iterator_find_custom( it: *mut GstIterator, func: glib::GCompareFunc, elem: *mut gobject::GValue, user_data: gpointer, ) -> gboolean4936 pub fn gst_iterator_find_custom( 4937 it: *mut GstIterator, 4938 func: glib::GCompareFunc, 4939 elem: *mut gobject::GValue, 4940 user_data: gpointer, 4941 ) -> gboolean; gst_iterator_fold( it: *mut GstIterator, func: GstIteratorFoldFunction, ret: *mut gobject::GValue, user_data: gpointer, ) -> GstIteratorResult4942 pub fn gst_iterator_fold( 4943 it: *mut GstIterator, 4944 func: GstIteratorFoldFunction, 4945 ret: *mut gobject::GValue, 4946 user_data: gpointer, 4947 ) -> GstIteratorResult; gst_iterator_foreach( it: *mut GstIterator, func: GstIteratorForeachFunction, user_data: gpointer, ) -> GstIteratorResult4948 pub fn gst_iterator_foreach( 4949 it: *mut GstIterator, 4950 func: GstIteratorForeachFunction, 4951 user_data: gpointer, 4952 ) -> GstIteratorResult; gst_iterator_free(it: *mut GstIterator)4953 pub fn gst_iterator_free(it: *mut GstIterator); gst_iterator_next(it: *mut GstIterator, elem: *mut gobject::GValue) -> GstIteratorResult4954 pub fn gst_iterator_next(it: *mut GstIterator, elem: *mut gobject::GValue) 4955 -> GstIteratorResult; gst_iterator_push(it: *mut GstIterator, other: *mut GstIterator)4956 pub fn gst_iterator_push(it: *mut GstIterator, other: *mut GstIterator); gst_iterator_resync(it: *mut GstIterator)4957 pub fn gst_iterator_resync(it: *mut GstIterator); 4958 4959 //========================================================================= 4960 // GstMemory 4961 //========================================================================= gst_memory_get_type() -> GType4962 pub fn gst_memory_get_type() -> GType; gst_memory_new_wrapped( flags: GstMemoryFlags, data: gpointer, maxsize: size_t, offset: size_t, size: size_t, user_data: gpointer, notify: glib::GDestroyNotify, ) -> *mut GstMemory4963 pub fn gst_memory_new_wrapped( 4964 flags: GstMemoryFlags, 4965 data: gpointer, 4966 maxsize: size_t, 4967 offset: size_t, 4968 size: size_t, 4969 user_data: gpointer, 4970 notify: glib::GDestroyNotify, 4971 ) -> *mut GstMemory; gst_memory_copy(mem: *mut GstMemory, offset: ssize_t, size: ssize_t) -> *mut GstMemory4972 pub fn gst_memory_copy(mem: *mut GstMemory, offset: ssize_t, size: ssize_t) -> *mut GstMemory; gst_memory_get_sizes( mem: *mut GstMemory, offset: *mut size_t, maxsize: *mut size_t, ) -> size_t4973 pub fn gst_memory_get_sizes( 4974 mem: *mut GstMemory, 4975 offset: *mut size_t, 4976 maxsize: *mut size_t, 4977 ) -> size_t; gst_memory_init( mem: *mut GstMemory, flags: GstMemoryFlags, allocator: *mut GstAllocator, parent: *mut GstMemory, maxsize: size_t, align: size_t, offset: size_t, size: size_t, )4978 pub fn gst_memory_init( 4979 mem: *mut GstMemory, 4980 flags: GstMemoryFlags, 4981 allocator: *mut GstAllocator, 4982 parent: *mut GstMemory, 4983 maxsize: size_t, 4984 align: size_t, 4985 offset: size_t, 4986 size: size_t, 4987 ); gst_memory_is_span( mem1: *mut GstMemory, mem2: *mut GstMemory, offset: *mut size_t, ) -> gboolean4988 pub fn gst_memory_is_span( 4989 mem1: *mut GstMemory, 4990 mem2: *mut GstMemory, 4991 offset: *mut size_t, 4992 ) -> gboolean; 4993 #[cfg(any(feature = "v1_2", feature = "dox"))] gst_memory_is_type(mem: *mut GstMemory, mem_type: *const c_char) -> gboolean4994 pub fn gst_memory_is_type(mem: *mut GstMemory, mem_type: *const c_char) -> gboolean; gst_memory_make_mapped( mem: *mut GstMemory, info: *mut GstMapInfo, flags: GstMapFlags, ) -> *mut GstMemory4995 pub fn gst_memory_make_mapped( 4996 mem: *mut GstMemory, 4997 info: *mut GstMapInfo, 4998 flags: GstMapFlags, 4999 ) -> *mut GstMemory; gst_memory_map( mem: *mut GstMemory, info: *mut GstMapInfo, flags: GstMapFlags, ) -> gboolean5000 pub fn gst_memory_map( 5001 mem: *mut GstMemory, 5002 info: *mut GstMapInfo, 5003 flags: GstMapFlags, 5004 ) -> gboolean; gst_memory_resize(mem: *mut GstMemory, offset: ssize_t, size: size_t)5005 pub fn gst_memory_resize(mem: *mut GstMemory, offset: ssize_t, size: size_t); gst_memory_share(mem: *mut GstMemory, offset: ssize_t, size: ssize_t) -> *mut GstMemory5006 pub fn gst_memory_share(mem: *mut GstMemory, offset: ssize_t, size: ssize_t) -> *mut GstMemory; gst_memory_unmap(mem: *mut GstMemory, info: *mut GstMapInfo)5007 pub fn gst_memory_unmap(mem: *mut GstMemory, info: *mut GstMapInfo); 5008 5009 //========================================================================= 5010 // GstMessage 5011 //========================================================================= gst_message_get_type() -> GType5012 pub fn gst_message_get_type() -> GType; gst_message_new_application( src: *mut GstObject, structure: *mut GstStructure, ) -> *mut GstMessage5013 pub fn gst_message_new_application( 5014 src: *mut GstObject, 5015 structure: *mut GstStructure, 5016 ) -> *mut GstMessage; gst_message_new_async_done( src: *mut GstObject, running_time: GstClockTime, ) -> *mut GstMessage5017 pub fn gst_message_new_async_done( 5018 src: *mut GstObject, 5019 running_time: GstClockTime, 5020 ) -> *mut GstMessage; gst_message_new_async_start(src: *mut GstObject) -> *mut GstMessage5021 pub fn gst_message_new_async_start(src: *mut GstObject) -> *mut GstMessage; gst_message_new_buffering(src: *mut GstObject, percent: c_int) -> *mut GstMessage5022 pub fn gst_message_new_buffering(src: *mut GstObject, percent: c_int) -> *mut GstMessage; gst_message_new_clock_lost(src: *mut GstObject, clock: *mut GstClock) -> *mut GstMessage5023 pub fn gst_message_new_clock_lost(src: *mut GstObject, clock: *mut GstClock) 5024 -> *mut GstMessage; gst_message_new_clock_provide( src: *mut GstObject, clock: *mut GstClock, ready: gboolean, ) -> *mut GstMessage5025 pub fn gst_message_new_clock_provide( 5026 src: *mut GstObject, 5027 clock: *mut GstClock, 5028 ready: gboolean, 5029 ) -> *mut GstMessage; gst_message_new_custom( type_: GstMessageType, src: *mut GstObject, structure: *mut GstStructure, ) -> *mut GstMessage5030 pub fn gst_message_new_custom( 5031 type_: GstMessageType, 5032 src: *mut GstObject, 5033 structure: *mut GstStructure, 5034 ) -> *mut GstMessage; 5035 #[cfg(any(feature = "v1_4", feature = "dox"))] gst_message_new_device_added( src: *mut GstObject, device: *mut GstDevice, ) -> *mut GstMessage5036 pub fn gst_message_new_device_added( 5037 src: *mut GstObject, 5038 device: *mut GstDevice, 5039 ) -> *mut GstMessage; 5040 #[cfg(any(feature = "v1_16", feature = "dox"))] gst_message_new_device_changed( src: *mut GstObject, device: *mut GstDevice, changed_device: *mut GstDevice, ) -> *mut GstMessage5041 pub fn gst_message_new_device_changed( 5042 src: *mut GstObject, 5043 device: *mut GstDevice, 5044 changed_device: *mut GstDevice, 5045 ) -> *mut GstMessage; 5046 #[cfg(any(feature = "v1_4", feature = "dox"))] gst_message_new_device_removed( src: *mut GstObject, device: *mut GstDevice, ) -> *mut GstMessage5047 pub fn gst_message_new_device_removed( 5048 src: *mut GstObject, 5049 device: *mut GstDevice, 5050 ) -> *mut GstMessage; gst_message_new_duration_changed(src: *mut GstObject) -> *mut GstMessage5051 pub fn gst_message_new_duration_changed(src: *mut GstObject) -> *mut GstMessage; gst_message_new_element( src: *mut GstObject, structure: *mut GstStructure, ) -> *mut GstMessage5052 pub fn gst_message_new_element( 5053 src: *mut GstObject, 5054 structure: *mut GstStructure, 5055 ) -> *mut GstMessage; gst_message_new_eos(src: *mut GstObject) -> *mut GstMessage5056 pub fn gst_message_new_eos(src: *mut GstObject) -> *mut GstMessage; gst_message_new_error( src: *mut GstObject, error: *mut glib::GError, debug: *const c_char, ) -> *mut GstMessage5057 pub fn gst_message_new_error( 5058 src: *mut GstObject, 5059 error: *mut glib::GError, 5060 debug: *const c_char, 5061 ) -> *mut GstMessage; 5062 #[cfg(any(feature = "v1_10", feature = "dox"))] gst_message_new_error_with_details( src: *mut GstObject, error: *mut glib::GError, debug: *const c_char, details: *mut GstStructure, ) -> *mut GstMessage5063 pub fn gst_message_new_error_with_details( 5064 src: *mut GstObject, 5065 error: *mut glib::GError, 5066 debug: *const c_char, 5067 details: *mut GstStructure, 5068 ) -> *mut GstMessage; 5069 #[cfg(any(feature = "v1_2", feature = "dox"))] gst_message_new_have_context( src: *mut GstObject, context: *mut GstContext, ) -> *mut GstMessage5070 pub fn gst_message_new_have_context( 5071 src: *mut GstObject, 5072 context: *mut GstContext, 5073 ) -> *mut GstMessage; gst_message_new_info( src: *mut GstObject, error: *mut glib::GError, debug: *const c_char, ) -> *mut GstMessage5074 pub fn gst_message_new_info( 5075 src: *mut GstObject, 5076 error: *mut glib::GError, 5077 debug: *const c_char, 5078 ) -> *mut GstMessage; 5079 #[cfg(any(feature = "v1_10", feature = "dox"))] gst_message_new_info_with_details( src: *mut GstObject, error: *mut glib::GError, debug: *const c_char, details: *mut GstStructure, ) -> *mut GstMessage5080 pub fn gst_message_new_info_with_details( 5081 src: *mut GstObject, 5082 error: *mut glib::GError, 5083 debug: *const c_char, 5084 details: *mut GstStructure, 5085 ) -> *mut GstMessage; gst_message_new_latency(src: *mut GstObject) -> *mut GstMessage5086 pub fn gst_message_new_latency(src: *mut GstObject) -> *mut GstMessage; 5087 #[cfg(any(feature = "v1_2", feature = "dox"))] gst_message_new_need_context( src: *mut GstObject, context_type: *const c_char, ) -> *mut GstMessage5088 pub fn gst_message_new_need_context( 5089 src: *mut GstObject, 5090 context_type: *const c_char, 5091 ) -> *mut GstMessage; gst_message_new_new_clock(src: *mut GstObject, clock: *mut GstClock) -> *mut GstMessage5092 pub fn gst_message_new_new_clock(src: *mut GstObject, clock: *mut GstClock) -> *mut GstMessage; gst_message_new_progress( src: *mut GstObject, type_: GstProgressType, code: *const c_char, text: *const c_char, ) -> *mut GstMessage5093 pub fn gst_message_new_progress( 5094 src: *mut GstObject, 5095 type_: GstProgressType, 5096 code: *const c_char, 5097 text: *const c_char, 5098 ) -> *mut GstMessage; 5099 #[cfg(any(feature = "v1_10", feature = "dox"))] gst_message_new_property_notify( src: *mut GstObject, property_name: *const c_char, val: *mut gobject::GValue, ) -> *mut GstMessage5100 pub fn gst_message_new_property_notify( 5101 src: *mut GstObject, 5102 property_name: *const c_char, 5103 val: *mut gobject::GValue, 5104 ) -> *mut GstMessage; gst_message_new_qos( src: *mut GstObject, live: gboolean, running_time: u64, stream_time: u64, timestamp: u64, duration: u64, ) -> *mut GstMessage5105 pub fn gst_message_new_qos( 5106 src: *mut GstObject, 5107 live: gboolean, 5108 running_time: u64, 5109 stream_time: u64, 5110 timestamp: u64, 5111 duration: u64, 5112 ) -> *mut GstMessage; 5113 #[cfg(any(feature = "v1_10", feature = "dox"))] gst_message_new_redirect( src: *mut GstObject, location: *const c_char, tag_list: *mut GstTagList, entry_struct: *const GstStructure, ) -> *mut GstMessage5114 pub fn gst_message_new_redirect( 5115 src: *mut GstObject, 5116 location: *const c_char, 5117 tag_list: *mut GstTagList, 5118 entry_struct: *const GstStructure, 5119 ) -> *mut GstMessage; gst_message_new_request_state(src: *mut GstObject, state: GstState) -> *mut GstMessage5120 pub fn gst_message_new_request_state(src: *mut GstObject, state: GstState) -> *mut GstMessage; gst_message_new_reset_time( src: *mut GstObject, running_time: GstClockTime, ) -> *mut GstMessage5121 pub fn gst_message_new_reset_time( 5122 src: *mut GstObject, 5123 running_time: GstClockTime, 5124 ) -> *mut GstMessage; gst_message_new_segment_done( src: *mut GstObject, format: GstFormat, position: i64, ) -> *mut GstMessage5125 pub fn gst_message_new_segment_done( 5126 src: *mut GstObject, 5127 format: GstFormat, 5128 position: i64, 5129 ) -> *mut GstMessage; gst_message_new_segment_start( src: *mut GstObject, format: GstFormat, position: i64, ) -> *mut GstMessage5130 pub fn gst_message_new_segment_start( 5131 src: *mut GstObject, 5132 format: GstFormat, 5133 position: i64, 5134 ) -> *mut GstMessage; gst_message_new_state_changed( src: *mut GstObject, oldstate: GstState, newstate: GstState, pending: GstState, ) -> *mut GstMessage5135 pub fn gst_message_new_state_changed( 5136 src: *mut GstObject, 5137 oldstate: GstState, 5138 newstate: GstState, 5139 pending: GstState, 5140 ) -> *mut GstMessage; gst_message_new_state_dirty(src: *mut GstObject) -> *mut GstMessage5141 pub fn gst_message_new_state_dirty(src: *mut GstObject) -> *mut GstMessage; gst_message_new_step_done( src: *mut GstObject, format: GstFormat, amount: u64, rate: c_double, flush: gboolean, intermediate: gboolean, duration: u64, eos: gboolean, ) -> *mut GstMessage5142 pub fn gst_message_new_step_done( 5143 src: *mut GstObject, 5144 format: GstFormat, 5145 amount: u64, 5146 rate: c_double, 5147 flush: gboolean, 5148 intermediate: gboolean, 5149 duration: u64, 5150 eos: gboolean, 5151 ) -> *mut GstMessage; gst_message_new_step_start( src: *mut GstObject, active: gboolean, format: GstFormat, amount: u64, rate: c_double, flush: gboolean, intermediate: gboolean, ) -> *mut GstMessage5152 pub fn gst_message_new_step_start( 5153 src: *mut GstObject, 5154 active: gboolean, 5155 format: GstFormat, 5156 amount: u64, 5157 rate: c_double, 5158 flush: gboolean, 5159 intermediate: gboolean, 5160 ) -> *mut GstMessage; 5161 #[cfg(any(feature = "v1_10", feature = "dox"))] gst_message_new_stream_collection( src: *mut GstObject, collection: *mut GstStreamCollection, ) -> *mut GstMessage5162 pub fn gst_message_new_stream_collection( 5163 src: *mut GstObject, 5164 collection: *mut GstStreamCollection, 5165 ) -> *mut GstMessage; gst_message_new_stream_start(src: *mut GstObject) -> *mut GstMessage5166 pub fn gst_message_new_stream_start(src: *mut GstObject) -> *mut GstMessage; gst_message_new_stream_status( src: *mut GstObject, type_: GstStreamStatusType, owner: *mut GstElement, ) -> *mut GstMessage5167 pub fn gst_message_new_stream_status( 5168 src: *mut GstObject, 5169 type_: GstStreamStatusType, 5170 owner: *mut GstElement, 5171 ) -> *mut GstMessage; 5172 #[cfg(any(feature = "v1_10", feature = "dox"))] gst_message_new_streams_selected( src: *mut GstObject, collection: *mut GstStreamCollection, ) -> *mut GstMessage5173 pub fn gst_message_new_streams_selected( 5174 src: *mut GstObject, 5175 collection: *mut GstStreamCollection, 5176 ) -> *mut GstMessage; gst_message_new_structure_change( src: *mut GstObject, type_: GstStructureChangeType, owner: *mut GstElement, busy: gboolean, ) -> *mut GstMessage5177 pub fn gst_message_new_structure_change( 5178 src: *mut GstObject, 5179 type_: GstStructureChangeType, 5180 owner: *mut GstElement, 5181 busy: gboolean, 5182 ) -> *mut GstMessage; gst_message_new_tag(src: *mut GstObject, tag_list: *mut GstTagList) -> *mut GstMessage5183 pub fn gst_message_new_tag(src: *mut GstObject, tag_list: *mut GstTagList) -> *mut GstMessage; gst_message_new_toc( src: *mut GstObject, toc: *mut GstToc, updated: gboolean, ) -> *mut GstMessage5184