gstreamer-video-sys-0.24.0/.cargo_vcs_info.json0000644000000001610000000000100150260ustar { "git": { "sha1": "c5b2b64f1b42cee2ddabed3df27b03ddaf1ed194" }, "path_in_vcs": "gstreamer-video/sys" }gstreamer-video-sys-0.24.0/CHANGELOG.md000064400000000000000000002626151046102023000154450ustar 00000000000000# Changelog All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html), specifically the [variant used by Rust](http://doc.crates.io/manifest.html#the-version-field). ## [0.24.0] - 2025-07-15 ### Changed - Compatible with gtk-rs-core 0.21 / gtk4-rs 0.10. - Update GStreamer gir files to latest (upcoming) 1.28 APIs. - Minimum support Rust version is updated from 1.71.1 to 1.83. - `gst::Structure` fields and fields of related API are using `gst::IdStr` when built against GStreamer 1.26 and use a local implementation of that as fallback on older versions to offer the same API. - Rework of `gst_validate` action and action type API. - Rework of `gst_play::PlayMessage` API to be easier to use correctly. - Remove `bool` result from `gst::BufferList::foreach()` as return values are more flexibly handled via mutable variables captured by the closure. - `gst::Element::foreach_pad()` returns `ControlFlow` instead of `bool` from callback now. - Return iterators instead of `Vec`s from more functions. - Make `gst::event::SelectStreams` builder API for convenient. - Add `#[must_use]` annotations to all iterator structs. - Return `gst_video::VideoInfo` and `gst_audio::AudioInfo` references from more functions instead of copies. - Change some `gst::Clock` functions to not return `Option`s anymore. - Change `gst_sdp::SDPMedia::set_media_from_caps()` to a method. - Various `gst_allocators` allocator API was moved to extension traits and renamed to not have the same name as a method of the parent class. ### Added - Allow setting generic properties as part of the `gst_app::AppSink` and `AppSrc`, `gst::Bin` and `gst::Pipeline` builders. - Bindings for the `gstreamer-mse` library. - Bindings for the `gstreamer-d3d12` library. ### Removed - API deprecated in previous releases was removed. - `gst_webrtc::DataChannel` duplicated signal API was removed. ## [0.23.7] - 2025-06-20 ### Fixed - Provide existing messages immediately from a `gst::Bus` stream when creating it instead of only providing them on the next message. ### Added - `gst::QueryType` enum and accessor for it from queries. ### Changed - Don't unnecessarily store buffer twice in `gst_gl::GLVideoFrame`. - Don't store memory twice in `gst::memory::MemoryMap` and `MappedMemory`. ## [0.23.6] - 2025-05-13 ### Fixed - Lower debug message level when allocation queries in subclasses fail. - Catch panics from typefinders implemented in Rust. - Use correctly aligned arrays in `gst_audio` tests. - Drop pad probes and callbacks from `appsink` when releasing a `gst_utils::StreamProducer`. - Leak in `gst::ElementImpl::parent_request_new_pad()`. - Request a new keyframe from `gst_utils::StreamProducer` when discarding a buffer. ### Added - Implement `gst::ByteSliceExt` over all `AsRef<[u8]>` instead of just `&[u8]` and `&mut [u8]`. - `gst::Allocator::memory_type()` getter. - Setters for `gst::AllocationParams` and implement `Copy`, `PartialEq` and `Eq`. - New API for creating a `gst_audio::AudioInfo` and `gst_video::VideoInfo` builder from an existing value. - Setters for `gst_video::VideoAlignment` and implement `Default`. - Implement `Default`, `Copy` and `Clone` for `gst::BufferPoolAcquireParams` and add setters. - `gst::ChildProxy::set_child_property_from_str()` convenience API. - `gst::BufferList::drain()` for iterating over a buffer list while draining it. - `gst_utils::StreamProducer::wait_for_keyframe()` configuration. - `gst_utils::ConsumptionLink` getter for the stream producer. - Bindings for `gst_tag` language code API. ### Changed - Update various dependencies. - Update to GStreamer 1.26.1 gir files. ## [0.23.5] - 2025-02-17 ### Fixed - Properly validate `gst::IntRange::with_step()` step size - Fix `gst::Buffer` serde serialization - Forward gap events by default in `gst_utils::StreamProducer`. - Correctly account for alternate interlace mode in `gst_video::VideoMeta::add_full()`. - Return `Result`s instead of `bool`s in new `gst_play` API. ### Added - Support for `TracerImpl::USE_STRUCTURE_PARAMS` with GStreamer < 1.26. - Bindings for `gst_analytics::ODMtd`. - Bindings for `TopSurroundRight` and `TopSurroundLeft` audio channels. - Bindings for AV1 and H266 codec helpers API. - Bindings for `gst_audio::reorder_channels_with_reorder_map()`. ### Changed - Updated GStreamer gir files for latest 1.26 APIs. - Documentation links URL was updated. ## [0.23.4] - 2024-12-21 ### Fixed - `gst_video::VideoFrame::plane_data()` does not return a truncated buffer for the alpha plane in A420 and similar formats anymore. - `FnMut` closures are now correctly passed via a mutable reference to FFI code. - Order of arguments in `gst_video::VideoFormat::from_mask()` was corrected. ### Added - Bindings for 1.26 `gst_analytics::Tensor` API. - `gst::DebugCategory::as_ptr()` and `Hash` impl, `gst::DebugMessage::as_ptr()`. - Support for hex-dumping `&mut [u8]` in addition to `&[u8]`, `gst::Buffer`, etc. - Functions to work with meta `glib::Type`s. ### Changed - Updated GStreamer gir files for latest 1.26 APIs. ## [0.23.3] - 2024-11-01 ### Fixed - Bind `gst::Pad::proxy_query_caps()` to the correct C function. - Update `gst_utils::StreamProducer` appsrc latency upon appsink latency event. - Fix type of `gst_app::AppSinkBuilder::processing_deadline()`. ### Added - Various new `gst::Iterator` constructors for convenience. ### Changed - Updated GStreamer gir files for latest 1.26 APIs. ## [0.23.2] - 2024-09-28 ### Fixed - Lifetime of `gst::TagList::index()` return value is correctly bound to `&self` now. - Don't assume `gst::Structure` name / field names have `'static` lifetime. - Set pad probe data to `NULL` if `HANDLED` is returned and the item is an event, buffer or buffer list. - Don't unnecessarily add `#[link]` attribute to the `extern "C"` sections to allow linking against gstreamer-full and make static linking easier. ### Changed - Add `#[must_use]` to `gst_video::VideoTimeCode::add_interval()`. ### Added - Add API to take events/buffers from a `gst::PadProbeInfo`. - Add `gst::EventViewMut` and `gst::Event::view_mut()`, and a few setters for event fields. - Add `gst::MessageViewMut` and `gst::Message::view_mut()`, and a few setters for message fields. ## [0.23.1] - 2024-08-27 ### Fixed - Support `gst_utils::StreamProducer` API on platforms without 64 bit atomics. - Fix off-by-one in `gst::BufferList::remove()` range end handling. - Pass an empty tag array instead of NULL in `gst::CustomMeta::register_simple()`. - Fix various new clippy warnings. ### Added - Add getters for `gst::format::Percent`. ## [0.23.0] - 2024-07-11 ### Changed - Compatible with gtk-rs-core 0.20 / gtk4-rs 0.9. - Update GStreamer gir files to latest (upcoming) 1.26 APIs. - Minimum support Rust version is updated from 1.70 to 1.71.1. - Move `gst::Meta` tags into separate modules and improve API around them. - Improve `gst::Meta` transform functions and make the API more generic, and as part of that add support the video meta transform. - Pass an immutable instead of mutable output buffer reference to `gst_rtp::RtpHeaderExtension::write()` function. - Make `gst_net::PtpClock::new()` constructor fallible. - Change `gst_rtsp_server::RTSPToken` API to be consistent with `gst::Structure`, specifically add a builder. - Change `from_glib_ptr_borrow()` functions to work with references instead of raw pointers for improved safety. - Improve code generation when building with `panic=abort`. - Change `gst::BufferList` APIs to work with ranges instead of index+length. - Use various `usize` instead of `u32` for various indices in `gst::Buffer`, `gst::Caps`, `gst::Structure` and related APIs. - `gst::Clock` calibration-related API uses plain `u64` instead of `gst::ClockTime` for the clock rate. - `gst::debug!` and related macros use `obj = x` instead of `obj: x` for specifying the target object now. Similar for `imp` and `id`. The old syntax is still supported but deprecated. The new syntax works better with tooling, especially rustfmt. ### Added - Mutable access to the `gst_webrtc::WebRTCSessionDescription` fields. - `gst::StructureBuilder::field_if_some()` and the same for related builders to only set a value if `Some(x)` is provided. - `gst::StructureBuilder::field_from_iter()` and `field_if_not_empty()` for various builders. - `gst::PadBuilder` API for selecting an automatically generated name. - Adapter for the `log` crate around the GStreamer debug log system. This allows the macros from the `log` crate to be output via the GStreamer debug log system. - Bindings for the double click `gst_video::Navigation` event. - Bindings for `gst_pbutils` missing/install plugins API. - Setters for `gst_editing_services::FrameCompositionMeta`. - `ges::UriClipAsset::new()`. ## [0.22.6] - 2024-06-19 ### Fixed - When logging with an id and a formatted log message this would previously panic. - A couple of clippy warnings. ## [0.22.5] - 2024-05-23 ### Fixed - A couple of clippy warnings and compiler warnings about unused imports with latest rustc. - Memory leak in builder for the `SelectStreams` event. - Add parameter validity assertions to various `BufferList` and `Caps` APIs where these assertions were missing to avoid assertions in C. ### Added - `StreamProducer::set_forward_preroll()` API to configure if the preroll buffer should be directly forwarded or not yet. ### Changed - Remove nonsensical gstreamer-video test that fails with latest GStreamer main. - Update to itertools 0.13. ## [0.22.4] - 2024-04-08 ### Added - Implement `From` / `ToValue` for `gst_audio::AudioConverterConfig` and `gst_video::VideoConverterConfig`. ### Changed - Fixed various 1.77 clippy warnings. ## [0.22.3] - 2024-03-19 ### Changed - Change `ges::CompositionMeta` position fields to `f64`s in correspondence with the C API. - Change `gst_analytics::AnalyticsMtdRef::obj_type()` to an `Option` in correspondence with the C API. ### Added - `gst::Fraction::new_raw()` and `from_integer()` const constructors. ## [0.22.2] - 2024-02-26 ### Changed - Update GStreamer gir files and add more new 1.24 API. ### Fixed - Add `gst::Object` as parent class for various `gst_rtp` types. - Handle all already queued messages in `gst::BusStream` instead of just new messages. ### Added - Add `gst::CustomMeta::is_registered()`. ## [0.22.1] - 2024-02-13 ### Changed - Update GStreamer gir files and add more new 1.24 API. ### Fixed - Make `AnalyticsODLocation` struct fields public. - `MetaRefMut::upcast_mut()` returns a mutable reference now. ## [0.22.0] - 2024-02-08 ### Changed - Compatible with gtk-rs-core 0.19 / gtk4-rs 0.8. - Update GStreamer gir files to latest (upcoming) 1.24 APIs. - Various standalone functions were moved to separate modules or methods. - `gst::Rank` is not implemented as an enum but as a struct with associated constants now. - Optimized `gst::Buffer::from_slice()` and `Memory::from_slice()` implementations that have one heap allocation fewer. - Various `gst::Buffer` and `gst::Memory` functions take ranges now instead of offset/size parameters. ### Added - Bindings for `gst_gl::GLContext::thread_add()`, `GLFrameBuffer::draw_to_texture()`. - New `gst_gl::GLVideoFrame` type that replaces `gst_video::VideoFrame` for GL-specific API, and comes with mostly the same interface. - Basic gstreamer-tag bindings. - `gst::Buffer:dump()` and `dump_range()` together with the same API on `gst::Memory` for hex-dumping the whole buffer/memory content. - Implement `Clone` on `gst::MetaRef`. - Bindings for `gst::Buffer::map_range_readable()` and its writable variant. - Array-based accessor for `gst_video::VideoFrame` and `gst_audio::AudioBuffer` plane data. - Support for handling custom authentication in `gstreamer-rtsp-server`. - Accessors for various base class struct fields. - Owned buffer getter for `AudioBuffer` / `VideoFrame`. - `gst_rtp::RTPSourceMeta` bindings. - `gst::macos_main()` bindings. - gstreamer-analytics bindings. ### Fixed - API typo in owned `gst::ReferenceTimestampMeta` reference getter. - Allow variable expansion in `gst::loggable_error!` macro. - `gstreamer-gl-*` crates can build docs again on stable. ### Removed - `gst::Pad::caps()` property getter. Use `current_caps()` instead which does the same thing. - Various deprecated APIs that were deprecated in previous releases. - Getter for a mutable buffer reference from `AudioBuffer` / `VideoFrame` as that allowed invalidating the buffer map. ### Fixed ## [0.21.3] - 2023-12-18 ### Added - Update GStreamer gir files to latest (upcoming) 1.24 APIs. - Add an example for writing subclasses with virtual methods. - Add `gst::ClockTime::absdiff()` and same for similar types. ### Fixed - In `Play` example, set bus to flushing before dropping `Play` instance. - Add missing `docsrs` configuration for correct documentation generation. - Make `gst_pbutils::element_properties` module public. - Add missing `gst_audio::AudioFilterImpl::parent_allowed_caps()`. - Fix assertions in `gst::Memory` copy/share/resize functions. ### Changed - Update to itertool 0.12, pretty-hex 0.4. ## [0.21.2] - 2023-11-11 ### Changed - Update GStreamer gir files to latest (upcoming) 1.24 APIs. - Update to latest gir code generator from the gtk-rs 0.18 branch. ### Fixed - Big endian video format order is correct again. - `gst::MetaRef::has_tags()` and `tags()` API actually works and works based on the tags of the concrete meta instance. - `gst::MetaRef::tags()` returns strings with arbitrary lifetimes now because they're statically stored anyway. - Fix another potential deadlock in `gst_utils::StreamProducer` when sending force-keyunit events. ### Added - Bindings for `gst_video::VBIEncoder` and `VBIParser`. - Accessors for the different `gst::PadProbeData` types on `PadProbeInfo`. - `Default` impl for `gst::AllocationParams`. - `From` / `TryFrom` implementations between formatted types (e.g. `gst::Bytes`) and `usize`. - `gst::MetaRef::copy()` to copy metas from one buffer to another. - `gst::ElementImpl::catch_panic_future()` to wrap a `Future` in such a way that panics are converted to GStreamer error messages and the element is marked as unusable. - `gst_gl::GLDisplay::handle()` to get a raw display handle. ## [0.21.1] - 2023-10-04 ### Changed - Update GStreamer gir files to latest (upcoming) 1.24 APIs. ### Fixed - Use correct media links in the tutorials code. - Fix a couple of new 1.72/1.73 clippy warnings. - Fix description of gstreamer-validate crate. - Copyright/license files for the gstreamer-gl were added. - Ordering of raw video formats follows the rules of latest libgstvideo now. - Fix potential deadlock in `gst_utils::StreamProducer` when sending force-keyunit events. ### Added - `max-time` / `max-bytes` setters to `gst_app::AppSink` builder. - `gst::CustomMeta::register_simple()`. ## [0.21.0] - 2023-08-08 ### Changed - Minimum supported Rust version is updated to 1.70.0. - Compatible with gtk-rs-core 0.18. - `gst::Bin::add_many()`, `remove_many()` and `gst::Element::link_many()`, `unlink_many()` are more generic now. - `gst_base::Aggregator::src_pad()` returns an `AggregatorPad`. - `gst::Bus::add_watch()` now returns a guard value that automatically removes the watch when it goes out of scope. - `gst::Bin`, `Pipeline` and `Pad` constructors don't take the optional name parameter anymore but it can instead be provided via the builder API. - `gst::Pad` and `GhostPad` builders inherit name from the pad template (or target) if possible and no other name is provided explicitly. - The preroll samples and selected sticky events are forwarded to `StreamProducer` consumers. ### Added - Support for the upcoming GStreamer 1.24 APIs. - Support for inline variable names in format strings for error/warning/info messages. - Methods for converting between floating point seconds and `gst::ClockTime`. - Various additions to the gst-validate bindings. - `Display` implementations for error/warning/info messages. - More useful `Debug` implementations for messages, events and queries and `gst_pbutils::DiscovererInfo` related structs. - API for listing/checking `gst::Meta` tags. ## [0.20.7] - 2023-07-05 ### Fixed - Fix `wait-for-eos` property name string in `appsink`. - Fix various memory leaks in `BaseTransform` subclassing bindings. - Mark some GES APIs as `Send+Sync`. ### Added - Implement `DiscovererInfo::debug()` and on related structs. + Add subclassing bindings for `GESFormatter`. ## [0.20.6] - 2023-06-06 ### Added - Getter for the `gst_rtsp_server::RTSPContext` URI field. ### Fixed - `gst_pbutils::DiscovererStreamInfo::stream_id()` can return `NULL`. This is mapped to the empty string for this release to keep backwards compatibility. - `gst_pbutils::DiscovererStreamInfo` iterator methods can be called on any subclass directly now without casting. - Debug logs use the actual function name against instead of the name of a closure generated by the log macros. ### Changed - Minor performance improvements to debug logging. ## [0.20.5] - 2023-04-22 ### Added - `glib::HasParamSpec` impl for miniobjects to allow using them with the properties derive macro. - `Default` impl for `gst_player::Player`. ## [0.20.4] - 2023-04-07 ### Fixed - Work around `gst_webrtc::WebRTCICE::add_candidate()` API breakage in 1.24. ### Changed - Reduce size of `gst_audio::AudioBuffer` and `gst_video::VideoFrame` by a factor of two by not storing an unnecessary copy of the audio/video info. ## [0.20.3] - 2023-03-14 ### Fixed - `gst::ParamSpecArray` uses the correct `glib::Type` now. - Work around accidental ABI breakage in 1.18 gst-rtsp-server `GstRTSPClient`. ### Added - Document `gst_utils::StreamProducer::forward_eos()` default value. ## [0.20.2] - 2023-02-21 ### Added - `glib::HasParamSpec` impl for `gst::ClockTime` - `Default` impl for `gst_play::Play` - Constructors for non-raw `gst_audio::AudioCapsBuilder` / `gst_video::VideoCapsBuilder` ## [0.20.1] - 2023-02-13 ### Fixed - Fix memory leaks when converting a `gst_audio::AudioBuffer` or `gst_video::VideoFrame` to a `gst::Buffer` or FFI type. ## [0.20.0] - 2023-02-10 ### Fixed - Make `gst_gL::GLDisplay::create_context()` `other_context` parameter optional. - Make allocation query caps optional. ### Added - Conversions between `gst::Signed` and `T` and signed integer types. - Bindings for the object lock via `gst::Object::lock()`. - Various `FromIterator`, `Extend` and `From` impls for creating `Caps`, `Structure`, `Buffer`, `BufferList`, `CapsFeatures` and other types. - `PartialEq` impls between owned/borrowed miniobjects/structures. - API for appending items to `gst::Array` and `gst::List`. ### Changed - Compatible with the 0.17 gtk-rs release. - Updated minimum supported Rust version to 1.64. - Require GStreamer 1.22.0 or newer when enabling the `v1_22` feature. - Require the object lock to be taken for various `gst_gl::GLDisplay` methods. - Renamed `gst::TagSetter::add()` to `add_tags()` to avoid name conflict with `Bin::add()`. - Mark various un-extendable enums as exhaustive. - Make use of `glib::GStr` and related API in caps, structure, tags and logging API to reduce temporary string allocations. - Various code optimizations to reduce generated code size and allow more optimal code to be generated. - Reduce size of various types, including reduction of `gst_audio::AudioInfo` from 832 to 320 bytes. - Use actual function name instead of module name in log output. - Change `gst_utils::StreamProducer` API to forward buffers by default and allow temporarily discarding via new `set_discard()` function. ## [0.19.8] - 2023-02-09 ### Changed - Update GStreamer .gir files to 1.22.0 release. ### Fixed - Marked `gst::MessageType` as non-exhaustive. ### Added - Added bindings for `gst::Message::structure_mut()`. - Added subclassing support for `gst_allocators::FdAllocator` and `DmabufAllocator`. ## [0.19.7] - 2023-01-19 ### Fixed - Work around the possibility that the caps in the allocation query can be `NULL` by returning any caps for now. This will be handled properly with a minimal API change in the 0.20 release. ## [0.19.6] - 2023-01-18 ### Fixed - The `AppSrc` and `AppSink` builders now assert that GStreamer is initialized before creating an instance. ## [0.19.5] - 2022-12-27 ### Fixed - Clear video frame values when mapping as GL texture to avoid out of bounds reads when trying to access the GL texture as raw video frame. - Allow returning `Handled` from `BufferList` pad probes. ### Changed - Update GStreamer .gir files to latest 1.21 git. ## [0.19.4] - 2022-12-16 ### Added - Subclassing bindings for `gst_audio::AudioFilter`. ### Fixed - Various new clippy warnings. ### Changed - Update GStreamer .gir files to 1.21.3 release. ## [0.19.3] - 2022-11-28 ### Added - `FromIterator` and `Extend` for `Caps`. - `PartialEq` impls between owned/borrowed miniobjects/structures. ### Fixed - Sticky event ordering for instant-rate-change. ### Changed - Updated GStreamer .gir files to post 1.22.2 release. ## [0.19.2] - 2022-11-13 ### Added - Subclassing support for `gst::Allocator`. - `gst_gl::GLBaseMemory::context()` to retrieve the GL context used by the memory. ### Changed - Updated GStreamer .gir files to 1.22.2 release. ### Fixed - `gst::Allocator::register()` does not cause use-after free with GStreamer < 1.20.5 anymore. - Don't generate version constants in `gstreamer-editing-services-sys` as they are useless and change with every update. ### Changed - Fixed various new clippy warnings. ## [0.19.1] - 2022-10-24 ### Changed - Make it possible to use objects not just as reference in the logging macros. ## [0.19.0] - 2022-10-22 ### Added - Builders for element construction. `gst::ElementFactory::make()` returns a builder now that allows to easily set the name or any other property at construction time. The old API is available as `make_with_name()`. - Builders for `Bin` and `Pipeline` as well as a `Default` trait implementation to simplify object construction. - Builders for `appsrc` and `appsink`, which allow type-safe construction of both elements while also allowing to easily set all their properties at construction time. - Builders for the GStreamer-specific fraction/array param/property specs. - Infrastructure for casting between `gst::Memory` subtypes/supertypes, and make use of it for GL memory. - Bindings for the `gstreamer-allocator` library with support for file descriptor-based and DMABUF memory. - Complete bindings for `gst_video` `Navigation` events. - Constructors for error/warning/info messages with a pre-built `glib::Error`. This also leads to some minor simplification of the existing API. - Accessors for static pads of various base classes for making accessing them cheaper and less error-prone than getting them by name. - Builder for pad templates. - Static PTP clock API for statistics, initialization and deinitialization. - New `gstreamer-utils` crate that currently contains only a `StreamProducer` API. This allows building 1:N bridges between live pipelines via `appsink` / `appsrc` elements. - Bindings for the new `gstreamer-play` library that was added in 1.20. - `gst::Caps::new_empty_simple()` to create caps without fields and just a name. - `gst_audio::AudioCapsBuilder` and `gst_video::VideoCapsBuilder` for building (possibly) unfixed raw audio/videos caps with typed setters for the various fields. This makes it impossible to mix up types and e.g. use an `u32` instead of an `i32` for the width of video caps. - `gst::Buffer::ptr_eq()` to compare buffers by pointer instead of doing a deep comparison, and also `ptr_eq()` on all other miniobject types. - Accessors for `gst_webrtc::WebRTCICECandidateStats` fields. - Bindings for the `gstreamer-validate` API. - Subclassing bindings for `gst_audio::AudioVisualizer` base class for easily writing audio visualization elements. - `gst_pbutils::EncodingProfile` API for element properties. - Support for returning buffer lists from `BaseSrc` / `PushSrc` subclasses. - Support for implementing `gst::Bin::do_latency()`. - Minimal bindings for the `gstreamer-mpegts` library. ### Fixed - Signature for `gst_base::Aggregator::connect_samples_selected()` to remove unnecessary generic parameter and make it straightforward to use. - Various APIs had optional parameters/return types corrected to match the C API more closely. - Logging does not evaluate its arguments anymore if the debug category is not enabled or below the current threshold. - Registering custom metas is now possible without transform function. - `gst::subclass::ElementImpl::request_new_pad()` signature uses a `&str` instead of an owned `String` now. ### Removed - `fragile` dependency and instead use the same functionality from `glib`. - `gst_audio::AudioAggregator` `ignore_inactive_pads` property, which was duplicated from the `Aggregator` base class. ### Changed - Compatible with the 0.16 gtk-rs release. - Updated minimum supported GStreamer version from 1.8 to 1.14. - Updated to the latest GStreamer 1.22 APIs while still supporting up to GStreamer 1.14. Any new 1.22 APIs might still change until the stable 1.22 release. - Updated minimum supported Rust version to 1.63. - In `EventView` / `QueryView`, getters that return references now return references that can outlive the view and are only bound by the lifetime of the corresponding event/query. - In addition `Query`, `Event` and `Message` views are implemented more consistently now, which makes them easier to use and as a side effect allows to pass e.g. more strongly typed queries to functions that only accept a single query type. - Various improvements to `gst::ClockTime`, `gst::format::Bytes`, `gst::format::Signed` and related types and their usage in the API, which should make its use from applications easier and less error-prone. Check the `gst::format` module-level documentation for details. - `gst::StreamsSelected` event builder takes the selected streams as iterator instead of slice. - For consistency with other macros the `gst` prefix of the logging macros was also removed. - Various iterator implementations were added and the existing ones were optimized by implementing more specialized traits and custom implementations for a couple of iterator functions. - GStreamer initialization safety checks were optimized. - `gst::Bus::post()` takes ownership of the passed messages like the C API. - Better and easier to read `Debug` impls for `Caps`, `TagList`, `Structure` and `Promise`. - `ser_de` feature was renamed to `serde`. - `gst::Tracer` implementations get result enums passed as `Result`s now instead of single enums. - `gst::Pad`, `ProxyPad`, `GhostPad` default functions are all associated functions instead of methods now to avoid conflicts between multiple types with the same method. - `Pad` tasks are catching panics from the task function and if the parent of the pad is an element then the panic is converted into an error message and the task is simply stopped. Otherwise the panic is rethrown. ## [0.18.8] - 2022-04-26 ### Added - Bindings for `RTPBasePayload` and `RTPBaseDepayload`. - Accessors for `RTPBuffer` buffer. - Bindings for `RTPBuffer` length calculation API. - More complete `gst::Task` bindings. ### Fixed - Export `gst::subclass::TaskPoolFunction`. ## [0.18.7] - 2022-04-04 ### Added - Bindings for `VideoAggregator` and the `VideoAggregatorPad`s. - Bindings for `AudioAggregator` and the `AudioAggregatorPad`s. - Bindings for `TaskPool`. - Various helper functions for `VideoFormatInfo`, `VideoInfo` and `VideoFrame`. ## [0.18.6] - 2022-03-08 ### Fixed - Require `Send` and not `Sync` for the values of an `gst::Array` / `gst::List`. ### Changed - Simplify and speed up log message string construction ## [0.18.5] - 2022-02-20 ### Changed - Require GStreamer 1.20.0 at least when building with `v1_20`. Earlier versions were already going to fail due to API mismatches before. ### Added - `gst::BufferPool` subclassing support. - `Debug` impl for `gst::MiniObject`. - `gst_rtsp_server::RTSPOnvifServer` and related API, including subclassing support. ### Fixed - Handle empty slices correctly at the FFI layer. - `MiniObjectRef::downcast_ref()` and similar functions return the correct type now. While this is an API change, the previous API would've never worked. ## [0.18.4] - 2022-02-04 ### Changed - Update gir files to GStreamer 1.20.0 release. ### Added - `gst_video::VideoCodecFrame::input_buffer_owned()` for getting an owned reference. ### Fixed - All documentation links in the `README.md`s are correct again. ## [0.18.3] - 2022-01-31 ### Added - `Default` implementation for `gst_video::VideoOverlayComposition` when targeting GStreamer 1.20. - `gst_video::VideoOverlayComposition::add_rectangle()` in addition to the addition of all rectangles via an iterator during construction. - Subclassing support for `gst_rtp::RTPHeaderExtension`. - `gst_webrtc::WebRTCError` for programmatically handling WebRTC errors. ### Fixed - `gst_rtp::RTPHeaderExtension` has `gst::Element` set as parent class now. - Global functions are re-exported from the `gst_rtp` crate root. ### Changed - GIO-style async operations in GES no longer need `Send`-able closures. ### Removed - `fragile` is no longer a dependency and instead the corresponding GLib API is used. ## [0.18.2] - 2022-01-24 ### Added - `glib::FromValue` for mini object references. - Bindings for `gst::DebugCategory::get_line()`. ## [0.18.1] - 2022-01-18 ### Fixed - `Message::view()` also handles the redirect message now. - `Message` and `Query` view variants that return references now borrow again from the underlying query and not the view enum, allowing to use them in a wider scope. ### Changed - All miniobjects, `VideoTimeCode`, `Structure` and `CapsFeatures` are marked as `#[repr(transparent)]` now to ensure that their memory representation is exactly the underlying raw pointer. ## [0.18.0] - 2022-01-16 ### Added - `gst_rtp::RtpHeaderExtension::read()` and `write()`. - `gst::ElementMetadata` has a `const` constructor now. - `gst_rtp::RtpBuffer` API works on buffer references instead of plain buffers for statically enforcing writability and usage in more places. - `gst_video::VideoCodecAlphaMeta` and `gst::CustomMeta`. - `gst::MiniObject` for generically passing around mini objects instead of their concrete types. - `gst_app::AppSink` `new-event` callback and `pull_object()` function. - `gst_pbutils::PbUtilsCapsDescriptionFlags` and `pb_utils_get_caps_description_flags()`. - `gst_rtp::RtpBuffer::remove_extension_data()`. - `gst_video::VideoDecoder` subframe API. - `gst_webrtc::WebRTCSCTPTransport`. - `gst::ElementFactory` `create_with_properties()` / `make_with_properties()`. - `gst_video::VideoContentLightLevel` and `VideoMasteringDisplayInfo` for HDR signalling. - Lots of missing `GES` API. - `gst::AllocationParams` and support in the allocation query. - `propose_allocation()` and `decide_allocation()` support in the various base classes. - `Iterator` implementation for `gst_video::VideoOverlayComposition`. - `Extend`, `IntoIterator` and `FromIterator` implementations for `Buffer`, `Caps`, `BufferList`, `CapsFeatures`, `StreamCollection` and `Structure` for more natural Rust APIs. - `instant-rate-change` events/messages bindings. - Support for arithmetic operations on `Option` and related types. - `gst_video::ColorBalance`. - `gst::MetaFlags`. - `gst_base::Aggregator::set_position()`. - Convenience getters for `gst::ElementFactory` and `gst::DeviceProviderFactory` metadata. - `gst_rtp::RtpBuffer::set_padding()`, `get_padding()` and `payload_mut()`. - `#[must_use]` to many types and functions. - `gst::Event`, `gst::Message` and `gst::Structure` `has_name()`. - `gst_video::Navigation` subclassing support and API improvements. - `gst::Structure` and `gst::Caps` `foreach()`, `map_in_place()` and `filter_map_in_place()`. - `gst_gl::GLBufferPool` and various GL constants and functions. - `gst_pbutils` codec utils APIs. ### Fixed - `gst_base::BaseTransform::prepare_output_buffer()` correctly reflects buffer writability. ### Changed - Compatible with the 0.15 gtk-rs release. - Updated to the latest GStreamer 1.20 APIs while still supporting up to GStreamer 1.8. Any new 1.20 APIs might still change until the stable 1.20 release. - Update all code to the Rust 2021 edition. This causes no user-facing changes. - `gst::Sample::segment()` returns a reference instead of a copy of the segment. - `gst::Object::set_property_from_str()` returns a `Result` now instead of silently failing like the C version. - Allow handling passed in buffers in `gst_base::PushSrc::create`. - Allow passing in `None` in `gst_player::Player::set_uri()`. - Use `[[f32; 4]; 4]` instead of `[f32; 16]` for affine transformation matrix. - `gst::Pad::sticky_event()` statically gets the event of the requested type instead of requiring to match on it afterwards. - Clean up `gst_pbutils` `EncodingProfile` API to be harder to misuse and less confusing. - Various `gst::Array`, `gst::List`, `gst::IntRange` and `gst::Fraction` API improvements that should reduce some friction. - Directly generate `NUL`-terminated C strings in debug log API instead of having multiple allocations per message. - Various functions return `glib::SList` and `glib::List` now to avoid copying into a `Vec` if only iteration is needed. - `gst::ChildProxy` API is more consistent with object property API. - Improved `gst::Buffer::foreach()`, `gst::Pad::sticky_events_foreach()` and `gst::BufferList::foreach()` APIs. - Don't post error messages from `propose_allocation()` and `decide_allocation()`. ## [0.17.4] - 2021-09-13 ### Added - Add constructor for device provider metadata. ## [0.17.3] - 2021-08-23 ### Fixed - `gst::Value::deserialize()` takes the target type as parameter now. This is technically an API change but the function would've never worked previously. ### Added - The release date-time parameter to `gst::plugin_define!` is optional now like in the C version of the macro. - Bindings to `gst::Tracer` and `gst::TracerFactory` for allowing to implement custom tracers in Rust. - Bindings for the new `gst::Value::deserialize_with_psec()` function from GStreamer 1.20. - serde `Serialize`/`Deserialize` impls for `gst::PadDirection`, `gst::PadPresence`, `gst::URIType` and `gst::Rank`. ## [0.17.2] - 2021-08-05 ### Fixed - Various new clippy warnings. - Compilation of `gstreamer-audio` on big-endian platforms. ### Added - Support for 1.20 `Gap` event `GapFlags`. - Support for 1.20 `Structure::serialize()` / `Caps::serialize()`. ## [0.17.1] - 2021-07-13 ### Fixed - Store 1.19 as plugin version when building plugins with `v1_20`. Otherwise plugins fail to load with GStreamer versions below 1.20.0. - Fix documentation for `gst::Element::request_pad_simple()` to actually show up. ## [0.17.0] - 2021-06-28 ### Fixed - Use `#[repr(transparent)]` where it is more correct and remove unneeded `#[repr(C)]` annotations. - Don't provide direct access to the logged object in logging functions as the object might currently be finalized and might be unsafe to access. - Moved X11/EGL/Wayland-specific GL APIs into their own crates instead of having them inside gstreamer-gl and behind feature flags. This simplifies conditional usage of them in applications. - Various nullability issues: parameters and return values that should've been or shouldn't have been nullable were fixed. - Print source object correctly in `gst::Message` `Debug` impl. - `gst_rtsp_server::RTSPServer::attach()` is fallible. - `gst::ElementFactoryListType` is a proper bitflags type now instead of generic `u64`. - `gst::PluginFeature::load()` returns the same type as the one passed in. - Value returned by `gst::PromiseFuture` can no longer be freed while still in scope. - Only assign to `GError**`s in subclassing code if they're not `NULL`. ### Added - Bindings for the GStreamer Controller library and the corresponding core API. - Subclassing support for `gst_player::PlayerVideoRenderer`. - `gst::PARAM_FLAG_CONTROLLABLE` and related bindings. - `gst_video::VideoOrientation` and `VideoOrientationMethod` bindings. - Support for removing pad probes from inside the pad probe callback. - `gst_check::Harness::pull_until_eos()` bindings. - `ges::TransitionClip` and `OperationClip`. - Bindings for `gst_gl::GLMemory` and related APIs. - Subclassing support for `gst_gl::GLFilter` and `gst_gl::BaseSrc`. - `gst::TagList::remove()`. - `gst::CapsFeatures` and `gst::Structure` API based on `glib::Quark`s instead of strings. - Subclassing support for `gst_video::VideoFilter`. - Bindings for various new 1.20 APIs: `gst_app::LeakyType`, `gst_video::VideoDecoderRequestSyncPointFlags`, `gst_rtp::RTPHeaderExtension`, `gst_audio::AudioLevelMeta`, `gst_webrtc::WebRTCKind` and various other new flags/enum types. - Subclassing support for `gst_rtsp_server::RTSPMountPoints`. ### Removed - Deprecated APIs in 0.16. - Don't declare that `gst_app::AppSink` and `AppSrc` inherit from `gst_base::BaseSink` and `BaseSrc` to avoid exposing API that is meant for subclasses to applications. - `gst_app::AppSrc` and `AppSink` signals that are also covered by the callbacks. The callbacks are more flexible and have lower overhead. - Duplicated getters/setters for `gst_base::BaseSink` and `BaseTransform` properties. ### Changed - Compatible with the 0.14 gtk-rs release. - Updated to the new GStreamer 1.20 APIs while still supporting up to GStreamer 1.8. Any new 1.20 APIs might still change until the stable 1.20 release. - FFI and safe high-level bindings are in the same repository now and use the same version numbers. - The .gir files are shared with gtk-rs and the GStreamer-specific ones are in a separate git submodule. - Update all code to the Rust 2018 edition. As part of this, most macros lost their `gst_` prefix. - Re-export dependency crates from the different preludes. - Getter functions don't have a `get_` prefix anymore and GObject property accessors don't include the `_property_` part in the middle of their function names anymore. Applications developers should use [`fix-getters-calls`](https://crates.io/crates/fix-getters-calls) to ease migration of their applications. Use [`fix-getters-def`](https://crates.io/crates/fix-getters-def) if you also want your `get` functions definition to comply with the API standards applied in this release. - Lots of changes to the subclassing API. Check the various elements in [gst-plugins-rs](https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs) for examples. - Major improvements to the documentation infrastructure and generated documentation. - `gst::ClockID` bindings are refactored to use different types for single-shot and periodic clock ids, which makes misuse harder. - `gst::ProxyPad` extension trait uses trait functions instead of associated functions now for usability reasons. - Use `Result` for overriding flow returns from pad probes. - `gst_video::VideoInfo::align()` returns a `Result` instead of a `bool`. - Use actual error types instead of `()` in `gst_sdp` APIs. - `Display` impl for `gst::ClockTime` provides better human-readable strings. - `gst::Element::link_filtered()` and `link_pads_filtered()` takes a non-optional caps now. That's easier to use and for not providing caps the non-filtered variants of the functions exist. - Replace various manual bindings with auto-generated ones. - `gst::Element::get_request_pad()` is replaced by `request_pad_simple()` as a simpler version of `request_pad()` and in accordance with the deprecation in GStreamer 1.20. - `gst::ClockTime` and APIs working on it were changed to make possibility of using `GST_CLOCK_TIME_NONE` expressed in the type system. `Option` can be `None` while `gst::ClockTime` is always a valid time. ## [0.16.7] - 2021-02-13 ### Fixed - Usage of the logging system with a GStreamer library with the logging system compiled out does not crash any longer. - Double-free in `gst_video::VideoTimeCode` API when converting between validated and unvalidated timecodes. ### Added - `gst::Element::get_current_state()` and `get_pending_state()` convenience APIs. - `gst_audio::AudioConverterConfig` for setting the configuration on e.g. the `audiomixer` element. The low-level `AudioConverter` API is still not included in the bindings. ## [0.16.6] - 2020-12-20 ### Fixed - `VideoTimeCodeInterval`'s `Ord` and `PartialEq` implementations compare against the correct fields now. - `SDPMessage::medias_mut()` iterator does not crash any longer. ### Added - `PartialEq` and `Eq` implementations on `VideoAlignment`. - Alignment API for `VideoMeta` and `get_plane_height()` / `get_plane_size()`. - `VideoInfo::align_full()`. ## [0.16.5] - 2020-11-23 ### Fixed - Make sure to use `$crate` in more macros to allow them to work without anything special in scope already. - Update documentation location. - Don't panic if C code stores invalid seqnums in events and the seqnum is used directly or via the `Display` impl. - Fix docs build for some crates on docs.rs. - Fix `Debug` impl for `gst_video::VideoTimeCode` to print the correct type name. - Fix plugin version to be 1.18 instead of 1.17 when compiling a plugin with `v1_18`. ### Added - Event handling support in pad probes, that is returning `PadProbeReturn::Handled` for events. - `EventRef::get_structure_mut()` getter that allows changing the events' structures. ### Changed - Remove unnecessary `PhantomData` markers and use `repr(transparent)` instead of `repr(C)` where it is more correct. ## [0.16.4] - 2020-10-09 ### Fixed - Correctly implement `ExactSizeIterator` on the `AudioFormat` and `VideoFormat` iterators. Previously they returned the overall size instead of the remaining size, and they didn't implement `Iterator::size_hint()`. - Don't implement `ExactSizeIterator` on the buffer `gst::Meta` iterator. The overall length is not known easily and the implementation would've simply panicked in the past. ### Added - `gst::ClockID::wait_async_stream()` for async integration for clock waiting. - `From` / `TryFrom` impls for converting between `gst::ClockTime` and `std::time::Duration`. ## [0.16.3] - 2020-09-08 ### Fixed - Reset vfuncs if calling `BaseTransformClass::configure()` multiple times. - Fix `gst::debug_remove_default_log_function()` to actually remove the default log function. ### Added - Some more new APIs added in 1.18. - API for getting an owned buffer from a readable `gst_video::VideoFrame` / `VideoFrameRef`. ### Changed - Updated bindings to 1.18.0. This stabilized GStreamer 1.18 support and any API behind the "v1_18" feature is considered stable now. - Factor out some common code from `gst::Pad::ProbeInfo` code. This reduces the code generated for each pad probe considerably. - Update paste dependency to 1.0 and pretty-hex to 0.2. ## [0.16.2] - 2020-07-27 ### Fixed - Use correct pointer for the plane data in `gst_audio::AudioBuffer`. ### Added - Add `gst::GhostPad` convenience constructors that take a target pad, similar to the ones that existed in 0.15 and before. - Add `gst::parse_bin_from_description_with_name` that allows setting a name for the created bin without having to use unsafe code in application code. ## [0.16.1] - 2020-07-10 ### Fixed - Allow calling `gst::DebugCategory::new()` before `gst::init()` again. ## [0.16.0] - 2020-07-06 ### Added - Updated bindings to 1.17.2, adding experimental 1.18 support. This can be opted-in via the "v1_18" feature flag but there might still be API changes in the newly added API. - `gst::MemoryRef::dump()` for dumping contents of a memory. - `gst::Bus::stream()` instead of a custom constructor on the `BusStream`. - Use more accurate types for `Seqnum`, `GroupId` and `MetaSeqnum`. These are now proper wrapper types instead of plain integers, which makes misuse harder. - Provide `TryFrom` impls for conversion between `glib::DateTime` and `gst::DateTime`. - Add `get_allocator()` functions to `gst_base::{Aggregator, BaseTransform, BaseSrc}`, and allow overriding `BaseSrc::alloc()`. - Add subclassing bindings for `gst_base::PushSrc`. - Add new `gst::BufferCursor` API that allows to handle a buffer as `Read`, `Write` and `Seek` and accesses the underlying memories of the buffer individually without mapping them all together. - Add `gst::Plugin::get_plugin_name()`. - Support for `gst_video::VideoAFDMeta` and `VideoBarMeta`. - API for getting all / iterating over all `gst_audio::AudioFormat` and `gst_video::VideoFormat`. - Bindings and subclassing bindings for `gst_video::VideoSink`. - `gst::Pad` can be constructed via the builder pattern and `gst::PadBuilder` now, which allows to safely set the pad functions and various other fields during construction. The `PadBuilder` works on any `gst::Pad` subclass and also has special support for `GhostPad`s by allowing to set pad functions of the proxy pad. - `gst::Message`, `gst::Event` and `gst::Query` type constructors are now on the specific target type instead of various `new_XXX()` functions on the basic type. E.g. `gst::message::Eos::new()`. - Support for overriding `gst_audio::AudioSrc/Sink::reset()`. - Support for overriding `gst_base::BaseParse::stop()`. - Support for overriding `gst::Element::post_message()`. - Added bindings for `gst::BufferList::foreach()` and `foreach_mut()`. - Added bindings for `gst::Buffer::foreach_meta()` and `foreach_meta_mut()`. ### Fixed - Allow using any `glib::Object` as target object for logging instead of just `gst::Object`. - Remove restriction API from `gst_pbutils::EncodingContainerProfile`. They are supposed to be used only with the other encoding profiles. - Return `&'static str` for various `gst::StructureRef` functions where the string is backed by a `glib::Quark`. - Fix various `gst::DateTime` functions to actually return `Option`s. - Add support for filling in a buffer passed to the `gst::Pad` getrange function, allow passing one in into `get_range()` and `pull_range()` and provide the corresponding API on `gst_base::BaseSrc` too. - Allocator in audio/video `Decoder` base classes is optional and can return `None`. - `gst_video::ValidVideoTimeCode::add_interval()` always returns a valid timecode again. - Allow resolving a `gst::Promise` with `None` and also handle that correctly in the callback. This is allowed by the API. - Allow calling various debugging related functions before `gst::init()`. - Various enum/function versions were fixed to only show up if the corresponding version feature is enabled. - `gst::Pad` function setters are marked unsafe now as changing the functions is not thread-safe. - Remove `gst::Object::set_name()` as changing the name after construction generally causes problems and is potentially unsafe. - Remove `gst::Pad::set_pad_template()` as changing the pad template after construction is generally unsafe. - `gst::Pad::stream_lock()` borrows the pad now instead of taking a new reference. - Unimplemented `Jitter` and `Buffer` queries were removed from the bindings. These are not implemented in C and only have a type registered. - Various `LAST`, `NONE` variants of enums and flags were removed as these only make sense in C. - Call the parent impl of various vfuncs that were omitted before to not require further subclasses of them to implement them but automatically call the parent ones. ### Changed - Use `NonZeroU64/U32` for various ID types to allow further optimizations. - Use `thiserror` crate for deriving error types. - Switch from `lazy_static` to `once_cell`. - Change various miniobject functions like `gst::Caps::append()` from taking the object by value to modifying it internally. This makes them easier to use and only applies to functions that are defined on the non-reference type and take ownership of the values passed in. - Use `mem::ManuallyDrop` instead of `mem::forget()` everywhere. - Replace most `mem::transmute()` calls with safer alternatives. - `gst:StreamCollection` API was changed to the builder pattern for construction as the collection must not be changed after construction. - `gst::ProxyPad` default functions are plain functions on `ProxyPad` now instead of trait functions to allow easier usage of them. - Use proper error types in various `TryFrom` impls. - `gst_video::VideoMeta::add()` returns a `Result` now instead of panicking. - Various constructors were renamed from `new_with_XXX()` and `new_from_XXX()` to the more idiomatic `with_XXX()` and `from_XXX()`. - Miniobject bindings are simplified now and there is no `gst::GstRc` type anymore, instead everything is directly implemented on the concrete types. As part of this the `gst::MiniObject` trait was also removed as it was unneeded now. ## [0.15.7] - 2020-06-08 ### Fixed - Allow multiple filter types per process with `gst::Iterator::filter()`. - Check that `VideoInfo` is valid when creating a `VideoFrame`. - Don't potentially dereference a `NULL` pointer when getting the format from an invalid `VideoInfo` or `AudioInfo`. - Don't unmap borrowed `VideoFrameRef`s. ### Added - `gst::ProtectionMeta`, `gst_video::VideoAffineTransformationMeta`, `VideoCropMeta` and `VideoRegionOfInterestMeta` bindings. - Various new `gst_rtp::RTPBuffer` methods. - `gst_audio::audio_buffer_truncate()`, `AudioMeta` and `AudioBuffer` bindings. ## [0.15.6] - 2020-05-28 ### Fixed - Assert that the data passed to `VideoCaptionMeta::add()` is not empty. - Don't store strong references to the object in the bus, appsink and appsrc futures `Stream` / `Sink` adapters. This would keep them alive unnecessarily and would prevent the `Stream` / `Sink` to ever "finish" on its own. - Handle receiving a `None` reply in the change function of `gst::Promise`. This is apparently valid. For backwards compatibility reasons this is currently replaced with an empty structure but in 0.16 the API will explicitly handle `None`. ### Added - `gst::Stream::debug()` and `gst::StreamCollection::debug()` for converting into a structured string with the actual contents of each. - `gst::Structure::from_iter()` and `gst::Caps::from_iter()` to create structures/caps from iterators. - `gst::Event` support for getting/setting the `gst::Stream` in the `StreamStart` event. - `gst_video::calculate_display_ratio()` and `::guess_framerate()`. - Various video related `gst::CapsFeatures` in `gst_video`. - `TryFrom`/`From` impls for converting between `gst::Structure` and `gst_video::VideoConverterConfig`. - Various `glib::Value` trait impls for `SDPMessage`, `StructureRef`, `CapsFeatureRef` and all borrowed variants of miniobjects to be able to work with the borrowed, non-owned variants when handling `glib::Value`s. ## [0.15.5] - 2020-05-03 ### Fixed - Revert: Allow logging any `glib::Object` and not just `gst::Object`. This broke API in subtle ways and needs to wait until 0.16 - Replace `%` in log output with `%%` to prevent accidental C formatting - Add missing manual traits to the documentation ### Added - `BufferRef::peek_memory_mut()` to give a mutable reference to a given memory - Different iterators for iterating over the memories of a buffer - Support for `gst_audio::AudioClippingMeta` - `gst::Plugin::get_plugin_name()` was added - `gst::Element::get_current_clock_time()` and `gst::Element::get_current_running_time() helper functions - `gst::State` and `StateChange` API for calculating next/previous state and convert from/to the components of a state change ### Changed - Use `mem::ManuallyDrop` instead of `mem::forget` everywhere ## [0.15.4] - 2020-03-09 ### Fixed - Allow logging any `glib::Object` and not just `gst::Object` - Fix floating reference handling in `RTSPMedia::take_pipeline()` - Hold `GMutex` guards for the remainder of the function and warn if they're directly dropped - Work around empty/any caps handling bugs in `Caps::fixate()` ### Added - Add `BaseTransform::prepare_output_buffer()` subclassing support - `RTSPServer`, `RTSPClient`, `RTSPMedia` and `RTSPMediaFactory` subclassing support - Handle panicking in `appsrc`/`appsink` callbacks by posting an error message instead of killing the process ## [0.15.3] - 2020-02-15 ### Fixed - `UniqueFlowCombiner::clear()` should take a mutable reference. - `AudioStreamAlign` doesn't require mutable references for getters anymore. - Don't use bool return value of `gst_video_info_set_format()` and `gst_video_info_align()` with GStreamer < 1.11.1 as it returned void back then. We'd otherwise use some random value. - Make `VideoInfo::align()` is available since 1.8. - Fix changing/clearing of `AppSrc`, `AppSink` callbacks and `Bus` sync handler. Before 1.16.3 this was not thread-safe and caused crashes. When running with older versions changing them causes a panic now and unsetting the bus sync handler has not effect. With newer versions it works correctly. ### Added - Add `Clone` impls for `BufferPoolConfig` and `PlayerConfig`. - Add `VideoConverter` bindings. - Add `Future`s variant for `gst::Promise` constructor. - Add `Future`s variant for `gst_video::convert_sample_async()`. - Add `submit_input_buffer()`, `generate_output()`, `before_transform()`, `copy_metadata()` and `transform_meta()` virtual method support for `BaseTransform`. - Add `AppSink` `Stream` adapter and `AppSrc` `Sink` adapter for integrating both into Rust async contexts. ### Changed - More generic implementations of `VideoFrame` / `VideoFrameRef` functions to allow usage in more generic contexts. ## [0.15.2] - 2020-01-30 ### Fixed - Fix another race condition in the `gst::Bus` `Stream` that could cause it to not wake up although a message is available. ## [0.15.1] - 2020-01-23 ### Added - Use static inner lifetime for `VideoCodecState` so that it can be stored safely on the heap. - Getters/setters for `BinFlags` on `gst::Bin`. - `gst::Caps::builder_full()` for building caps with multiple structures conveniently. - `gst::Element::call_async_future()` for asynchronously spawning a closure and returning a `Future` for awaiting its return value. ### Fixed - Various clippy warnings. - Getters/setters for `PadFlags` on `gst::Pad` now provide the correct behaviour. - Take mutex before popping messages in the `gst::Bus` `Stream` to close a small race condition that could cause it to not be woken up. - `gst::ChildProxy` implementers do not have to provide `child_added()` and `child_removed()` functions anymore but these are optional now. - Manually implement `Debug` impls for various generic types where to `Debug` impl should not depend on their type parameters also implementing `Debug`. ## [0.15.0] - 2019-12-18 ### Added - `StructureRef::get_optional()` for returning `None` if the field does not exist instead of `Err` - Bindings for `gstreamer-rtp` library, mostly `RTPBuffer` - Support for writing `Preset`, `TagSetter`, `Clock`, `SystemClock` subclasses - Bindings for `Typefind::get_length()` - Bindings for `BaseSrcImpl::get_times()` - Bindings (incl. subclassing) for `AudioSink` and `AudioSrc` - Missing `Send`/`Sync` impl for various types ### Fixed - Cleanup of cargo features/dependencies to improve build times - Serde serialization with optional values. Attention: This changes the format of the serialization! - `VideoEncoder`/`VideoDecoder` `proxy_getcaps()` can't return `None` - Use non-panicking UTF8 conversion in log handler. We don't want to panic just because some C code printed a non-UTF8 string - Re-rexport all traits from the crate level and also ensure that all traits are actually included in the preludes - Actually export `is_video_overlay_prepare_window_handle_message()` function - Use `FnMut` for the `appsink` callbacks instead of `Fn` - `Promise` change function returns the actual reply to the promise now instead of just passing the promise itself - Memory leak in `Iterator::filter()` - `BinImpl::add()` takes ownership of floating references - `DeviceImpl::create_element()` preserves floating flag - `BinImpl::remove()` takes a strong reference of the element now as the last reference might be owned by the bin and otherwise we would potentially have a use-after-free afterwards - `BaseParseFrame` and `VideoCodecFrame` take a `&mut self` now for various functions that actually change the frame ### Changed - Minimum supported Rust version is 1.39 - Allow passing `None` to `VideoEncoder::finish_frame()` - Various `to_string()` methods were moved into the `Display` trait impl and for some types `to_str()` was added to return a `&'static str` - .gir files were updated to 1.16.2 release - `Sample` constructor uses the builder pattern now - `VideoMeta::add_full()` is simplified and requires parameters - `BasetransformImpl::set_caps()` returns a `Result` instead of `bool` - SDP data type getters for strings return an `Option` now as these can be `None` in practice although not allowed by the SDP spec - Various functions returning `Option`s were changed to return `Results` if `None` actually signalled an error instead of just a missing value ### Removed - "subclassing" and "futures" cargo features. These are enabled by default now ## [0.14.5] - 2019-09-17 ### Added - Support subclassing of `gst::Device`, `gst::DeviceProvider`, `gst_audio::AudioDecoder` and `::AudioEncoder` - Support for `Element::set_clock` and `::provide_clock` virtual methods - `ElementClass::add_metadata` was added - `gst_video::VideoDecoder` and `::VideoEncoder` got support for `get_caps`, `negotiate`, `src/sink_query/event` and the `drain` virtual methods - `Element::num_pads`, `::num_src_pads` and `::num_sink_pads` functions - `gst_video::VideoDecoder` and `::VideoEncoder` got `get_allocator` bindings - `gst::Iterator` implements `IntoIterator` now for providing `std::iter::Iterator>` adapter - Error macros for audio/video decoder subclasses to handle decoding errors more gracefully and only actually error out after many consecutive errors ### Fixed - Macros now also work in Rust 2018 edition without `#[macro_use]` but explicit imports - The log handler unit test runs reliable in parallel with other tests - Manually implement `Debug` for `gst::Iterator` to allow it for any `T` instead of `T: Debug` - `Device::create_element` has correct reference count handling now - Return `NotNegotiated` in the video codec base classes if setting the output state fails instead of `Error` ## [0.14.4] - 2019-08-14 ### Added - Bindings for adding/removing custom log functions - Bindings for `calculate_linear_regression()` - Constants for base class custom flow returns ### Fixed - Ownership of pad in `Element::release_pad()` virtual method implementations ## [0.14.3] - 2019-07-16 ### Added - `Buffer::unset_flags()` for unsetting specific buffer flags - `VideoBufferFlags` flags type and `VideoBufferExt::set_video_flags()`, `unset_video_flags()` and `get_video_flags()` for working with video buffer flags from safe code. ### Fixed - Setting buffer flags does not override arbitrary other flags anymore but only sets the flags in question. This is necessary to not override extension buffer flags like `gst_video::VideoBufferFlags`. ## [0.14.2] - 2019-07-15 ### Added - Support for `ReferenceTimestampMeta` ## [0.14.1] - 2019-07-06 ### Added - Various new WebRTC enum types from 1.14.1/1.16.0 ### Fixed - Correctly generate interlaced `VideoInfo` by using `gst_video_info_set_interlaced_format()` instead of the generic function. - serde serialization unit tests for `gst::format` succeed again now. ### Changed - `Debug` impls for `VideoFormatInfo` and `AudioFormatInfo` now print all the details of the format instead of only the name, and the `Debug` impls for `VideoInfo` and `AudioInfo` also print the format now. ## [0.14.0] - 2019-06-24 ### Added - Bindings for `GLSyncMeta`. - Bindings for setting/getting `TagScope` on a `TagList` - Bindings for `GLDisplayWayland` and `GLDisplayX11` in addition to the already existing `GLDisplayEGL` - Bindings for `Bus::pop_filtered()` and related functions - Bindings for getting/setting `Object`, `Element`, `Bin`, `Pipeline` and `Plugin` flags - Bindings for `VideoCaptionMeta` - `Debug` impl of `Buffer` now also shows the metas of the buffers - Expose flow return in `PadProbeInfo` for overriding the return value - Bindings for `VideoDecoder` and `VideoEncoder`, including subclassing support - Bindings for `Memory`, `Allocator` and `VideoBufferPool` - Bindings for `VideoFormatInfo::pack` and `::unpack` for format conversion - Bindings for `BaseParse`, including subclassing support - Various new arithmetic operation impls for fractions, formatted values and `ClockTime` - Bindings for `VideoInfo::align()` ### Changed - The `SDPMessage` and `SDPMedia` bindings were completely rewritten as they were broken before and caused crashes in various usages. As part of this there's also some more convenience API available on these types, like iterators for example, and API to modify the `SDPMedia` contained in a `SDPMessage`. - Update to GStreamer 1.16. - Regenerate with latest gir. - Run all autogenerated code through rustfmt after generation too. - Updated to latest versions of GLib/GIO/etc crates. - Updated to futures 0.3 / `std::future` - `ProxyPad` default functions moved to an extension trait instead of plain functions on `ProxyPad`, making them more in sync with the default `Pad` functions - GStreamer plugins are now exporting the new 1.14+ plugin symbols if they were configured for GStreamer 1.14+ - Arithmetic operations on formatted values and `ClockTime` do overflow checks now and replace the result with the `NONE` value on overflow - `TryFrom`/`TryInto` traits are used in various places now instead of the previous ad-hoc implementations of them. - Registering element/typefind/device monitor factories requires passing a value of `gst::Rank` now instead of an arbitrary `u32` ### Fixed - Use correct type for destroying pad task closure data. This was previously using the wrong type, causing crashes at runtime. - `DeviceAdded`/`DeviceRemoved` message getters are transfer full so we don't need to take an additional reference that would be leaked. - `AppSink` callbacks are correctly marked as `Send` instead of `Send+Sync`, allowing a wider range of closures to be used for them. - Handle `PadProbeReturn::Handled` return values from pad probes more correctly. - `ToOwned::to_owned()` on miniobjects has to create copies instead of only increasing the reference count. Otherwise it was possible to create multiple mutable and immutable references to the same object at the same time. - Various functions take references to owned miniobjects instead of borrowed references as it was otherwise possible to create multiple mutable or immutable references to the same object at the same time. - `URIHandler::set_uri` does not accept `None` anymore as this is not allowed by the C function. - Comparisons and addition of `TypeFindProbability` and `Rank` work correctly now - Various `Display` implementations were fixed to not cause a stack overflow due to infinite recursion anymore - Various `::to_string()` functions don't take ownership of C strings anymore that they do not own, which caused double frees before ### Removed - MIKEY related bindings from the SDP library. The bindings were broken and until someone needs them these are not available anymore. ## [0.13.0] - 2019-02-22 ### Added - Subclassing infrastructure was moved directly into the bindings, making the `gst-plugin` crate deprecated. This involves many API changes but generally cleans up code and makes it more flexible. Take a look at the `gst-plugins-rs` crate for various examples. - Bindings for GStreamer GL library - Bindings for `CapsFeatures` and `Meta` - Bindings for `ParentBufferMeta, `VideoMeta` and `VideoOverlayCompositionMeta` - Bindings for `VideoOverlayComposition` and `VideoOverlayRectangle` - Bindings for `VideoTimeCode` - Bindings for `NetAddressMeta` - Bindings for registering custom tags - `UniqueFlowCombiner` and `UniqueAdapter` wrappers that make use of the Rust compile-time mutability checks and expose more API in a safe way, and as a side-effect implement `Sync` and `Send` now - `Bus::add_watch_local()` and `gst_video::convert_frame_async_local()` that allows to use a closure that does not implement `Send` but can only be called from the thread owning the main context. - More complete bindings for `Allocation` `Query` - `pbutils` functions for codec descriptions - `TagList::iter()` for iterating over all tags while getting a single value per tag. The old `::iter_tag_list()` function was renamed to `::iter_generic()` and still provides access to each value for a tag - `Bus::iter()` and `Bus::iter_timed()` iterators around the corresponding `::pop*()` functions - Getters for `VideoColorimetry` to access its fields - `Debug` impls for various missing types. - serde serialization of `Value` can also handle `Buffer` now - Extensive comments to all examples with explanations - Transmuxing example showing how to use `typefind`, `multiqueue` and dynamic pads - basic-tutorial-12 was ported and added ### Changed - Rust 1.31 is the minimum supported Rust version now - Update to latest gir code generator and glib bindings - Functions returning e.g. `gst::FlowReturn` or other "combined" enums were changed to return split enums like `Result` to allow usage of the standard Rust error handling. - Various functions and callbacks returning `bool` or `Option<_>` were changed to return a `Result<_, glib::BoolError>` or `Result<_, gst::LoggableError>` or `Result<_, gst::ErrorMessage>` for better integration with Rust's error handling infrastructure. - Some infallible functions returning `bool` were changed to return `()`. - `MiniObject` subclasses are now newtype wrappers around the underlying `GstRc` wrapper. This does not change the API in any breaking way for the current usages, but allows `MiniObject`s to also be implemented in other crates and makes sure `rustdoc` places the documentation in the right places. - `BinExt` extension trait was renamed to `GstBinExt` to prevent conflicts with `gtk::Bin` if both are imported - `Buffer::from_slice()` can't possible return `None` ### Fixed - `gst::tag::Album` is the album tag now instead of artist sortname - Return `0` for the channel mask corresponding to negative `AudioChannelPosition`s. - `PartialOrd` and related traits are implemented via pointer equality on `ClockId` instead of using the compare function. Two clock ids with the same timestamp are not necessarily the same. - Various functions that are actually fallible are now returning an `Option<_>`. - Various `clippy` warnings ## [0.12.2] - 2018-11-26 ### Fixed - PTP clock constructor actually creates a PTP instead of NTP clock ### Added - Bindings for GStreamer Editing Services - Bindings for GStreamer Check testing library - Bindings for the encoding profile API (encodebin) - VideoFrame, VideoInfo, AudioInfo, StructureRef implements Send and Sync now - VideoFrame has a function to get the raw FFI pointer - From impls from the Error/Success enums to the combined enums like FlowReturn - Bin-to-dot file functions were added to the Bin trait - gst_base::Adapter implements SendUnique now ### Changed - All references were updated from GitHub to freedesktop.org GitLab - Fix various links in the README.md - Link to the correct location for the documentation - Remove GitLab badge as that only works with gitlab.com currently ## [0.12.1] - 2018-09-21 ### Added - More complete bindings for the gst_video::VideoOverlay interface, especially gst_video::is_video_overlay_prepare_window_handle_message() ## [0.12.0] - 2018-09-08 ### Added - Bindings for the GStreamer SDP and WebRTC libraries - Generic API for working with tags that is based on string tag names and glib::Value for the tag values - Bindings for Aggregator and AggregatorPad - Bindings for BaseTransform/BaseSrc::get_buffer_pool() - Optional serde implementations for the basic GStreamer data flow and metadata types ### Changed - Use ptr::NonNull in various places - Updated to muldiv 0.2, num-rational 0.2 - Bus::create_watch() can't return None - Remove CallbackGuard as unwinding across FFI boundaries is not undefined behaviour anymore but will directly cause a panic - Changed from the futures to the futures-preview crate as an optional dependency - Various Caps operations take a &CapsRef instead of &Caps - "deep-notify" signal takes the whole ParamSpec as parameter instead of only the signal name - Some structs were changed from empty struct to empty enums - Pad probe code does not take an additional reference to the data anymore, potentially passing writable events/buffers into the probe - ValueExt::compare() is implemented around std::cmp::Ordering now instead of a custom enum that was basically the same ### Fixed - Pad::add_probe() can return None if an IDLE probe was already called and removed in the meantime - Various compiler and clippy warnings ### Removed - std::Iterator impl for gst::Iterator. It was awkward to use because the gst::Iterator could fail at each iteration ## [0.11.6] - 2018-08-27 ### Fixed - Build with NLL/two-phase borrows - Explicitly define [bin] section for discoverer example to fix a cargo warning ### Added - Add unsafe gst::deinit() function - Ord/PartialOrd impls on gst::Seqnum - Getter for current pad mode - gst::Pad::sticky_events_foreach() for iterating over all sticky events in a thread-safe way ## [0.11.5] - 2018-07-24 ### Fixed - `gst::Bus`'s sync handler must unref every message if `gst::BusSyncReply::Drop` is returned, otherwise they are all leaked ## [0.11.4] - 2018-07-19 ### Fixed - `gst::Caps::subtract()` does not leak its arguments anymore - `gst::Caps::get_structure()` gracefully returns `None` if the index is out of bounds instead of a `g_return_val_if_fail()` - `gst::Structure::new()` has to give away ownership of the info structure but didn't. For 0.11 we internally copy, in 0.12 it will take the info structure by value - Typefind tests don't fail anymore if the system has typefind factories without caps ### Added - An additional assertion that ensures that miniobjects are actually writable before creating a mutable reference ## [0.11.3] - 2018-06-08 ### Added - `gst::Bus::remove_watch()` is now available to remove a bus watch again - `fmt::Debug` impls for `AudioInfo` and `VideoInfo` were added - `fmt::Debug` impls for mini objects also print the pointer value now to make it easier to track them in debug logs - `PlayerVisualization` has accessors for the name and description fields now, without which there is no sensible way to use them or to set a player visualization ## [0.11.2] - 2018-05-09 ### Fixed - Work-around various floating reference handling changes between 1.12 and 1.14 to be able to run with both versions without memory leaks or other reference count problems. This affects NetTimeProvider, BufferPool, DeviceMonitor, Stream, StreamCollection, and Player, NetClientClock, NetClock, PtpClock which were already previously fixed. ### Changed - Change the appsrc need-data and all appsink callbacks to not require the Sync bound anymore and change from Fn to FnMut. They can only be called from a single thread at a time. This change is only done for the corresponding callbacks, not the signals. ## [0.11.1] - 2018-04-07 ### Fixed - Fix Structure::to_string() to not run into an infinite recursion but call the method on the contained StructureRef instead of on itself ## [0.11.0] - 2018-03-20 ### Changed - Updated everything to GStreamer 1.14.0 - Event, Message and Query types were refactored to improve usability. Especially newly constructed queries allow to directly use the type-specific functions to be used without first creating a view - VideoFrameRef::copy_to_ref() and ::copy_plane_to_ref() are gone now and the original functions work with refs instead of full frames - PadProbeId and NotifyIds are not Copy/Clone anymore and are taken by value - GstPlayer has GstObject as parent class now ### Added - GstPbutils, GstSdp, GstRtsp and GstRtspServer bindings - GstPromise, GstAudioStreamAlign and various other 1.14 API - GstVideoFilter and GstBufferPool bindings - Element::call_async() - Debug impl For Toc and TocEntry - Various new examples (RTP FEC, RTSP server, tag usage, ...) ### Fixed - Memory leak in gst_video::convert_sample_async() ## [0.10.2] - 2018-02-18 ### Fixed - Fix building of messages with custom fields for types that don't have a GstStructure ### Added - VideoFrameRef::copy_to_ref() and ::copy_plane_to_ref(), which work with VideoFrameRefs instead of full VideoFrames - Getters for the BaseSrc/Sink/Transform configured segment - Document the gstreamer-player-1.0 dependency in the README.md ## [0.10.1] - 2018-01-03 ### Fixed - Don't require &mut self for TagSetterExtManual::add() ### Added - A TagSetter example application - Bindings for gst_video::convert_sample() and ::convert_sample_async() - Bindings for gst_video::VideoRectangle - Debug impl for Sample and ::with_buffer_list() constructor - A borrowing version of VideoFrame: VideoFrameRef - Bindings for GstVideoFilter ### Changed - Deprecated Sample::get_info() in favour of ::get_structure() - Player has gst::Object as another parent class now ## [0.10.0] - 2017-12-22 ### Fixed - Various clippy warnings - Memory leak of the tag list in Toc::merge_tags() - Property getters use Values of the correct type - Event::get_structure(), Message::get_structure() and Query::get_structure() can return None for the structure - Various other nullability fixes all over the API, changing functions to accept Option<> or returning Option<>, or only plain types - Functions taking paths/filenames now actually take Paths instead of &strs - Element::remove_pad() is not giving away a new reference to the pad anymore, which caused a memory leak of all pads ever removed - Precision handling in ClockTime's Display impl - Video/AudioInfo are only Send, not Sync ### Added - Various enums now also derive useful traits like Copy, Clone and Hash in addition to PartialEq, Eq and Debug - TagList::merge() and insert() for combining tag lists - EventType gained many useful functions to work with event types and a PartialOrd impl to check expected event order of event types where it matters - MessageRef/EventRef/QueryRef implement ToOwned - Bindings for Registry and PluginFeature - Event::set_running_time_offset() for adjusting the offset while events pass through the pipeline - Event/Message GroupIds and Seqnums now have a newtype wrapper around u32 instead of the plain value, making usage of them slightly more typesafe. Also add an "invalid" value for both, as exists in latest GStreamer now. - FormattedValue, GenericFormattedValue and related types were implemented now, which allows more convenient and type-safe usage of formatted values (time, bytes, etc) - Bindings for force-keyunit and still-frame events were added - MappedBuffer/BufferMap now implement various other useful traits, including AsRef<[u8]>, AsMut, Deref, DerefMut, Debug, PartialEq and Eq - Add VideoMultiviewFramePacking enum, and use it in Player - Bindings for the GStreamer Net library, including PTP/NTP/network client clocks and the GStreamer NetClock provider for network synchronization of pipelines - IteratorError implements std::error:Error - Plugin::add_dependency() and ::add_dependency_simple() was added - Rank and TypeFindProbability implement PartialOrd/Ord now - Bindings for TypeFind, TypeFindFactory and the typefind helpers - StreamCollection::iter() for iterating over all contained streams - ErrorMessage type that can be used e.g. in a Result for passing an error message from somewhere to upper layers to then be posted on an element the same way gst_element_error!() would've done ### Changed - Sample::new(), TagList::add(), Structure::set() and similar functions take the values (ToSendValue impls) by reference instead of value. They were not consumed by the function before. - The Debug impls of various types, including Event/Buffer/Message/Query/Structure were improved to print all the fields, similar to what GST_PTR_FORMAT would do in C - Switched to lazy_static 1.0 - Gap event and Duration tag are using ClockTimes now, as well as various Player signals - Segment is now based on a generic type FormattedSegment that can take any format (time, bytes, etc) or a GenericFormattedValue for more type-safety and convenience. Also functions for "casting" between a generic segment and a segment with a specific format exist on this now - AppSrc and AppSink now have a builder for the callbacks, making it unnecessary to always provide all callbacks even if only one is actually needed - Various functions that returned bool for errors, are now returning a Result - Player configuration is now a custom type with more convenient API - Player VideoInfo uses a Fraction instead of (u32,u32) for the framerate and pixel-aspect-ratio - VideoFrame API has more consistent API between writable and read-only variants - Buffer::copy_into() was added, and ::copy_region() now takes a BufferCopyFlags parameter instead of always using the default flags - ChildProxy::set_child_property() takes a &ToValue now to follow the API of Object::set_property() and improve usability - Proxy/GhostPad default pad functions use the correct specific pad type now instead of a generic Pad - Bus::add_signal_watch_full() takes a Priority for the priority instead of u32 - Clock::(un)adjust_with_calibration() takes no clock parameter anymore ### Removed - FormatValue was removed in favour of GenericFormattedValue and the connected traits and specific format impls ## [0.9.1] - 2017-11-26 ### Fixed - Export `FlowError`/`FlowSuccess`, `ClockError`/`ClockSuccess`, `PadLinkError`/`PadLinkSuccess` too ## [0.9.0] - 2017-11-26 ### Added - Bindings for (outputting to) the GStreamer logging system - Bindings for the GStreamer base library - Bindings for all the `Pad` functions to override pad behaviour, and pad task functions - Bindings for `StaticCaps` and `StaticPadTemplate` - Bindings for `deep-notify` signal on `Object` - Support for directly creating `Error`/`Warning`/`Info` `Messages` and posting them from an element with context information (file, line, module, etc.) similar to the C `GST_ELEMENT_ERROR` macro - Support for setting custom fields in `Messages`/`Events` during construction - Support for creating Buffers out of anything that is `AsRef<[u8]>` or `AsMut<[u8]>` - Support for using the `Read` trait on `Adapter` - Functions for getting all sink/src/all pads of an `Element`, and all children of a `Bin` - Builder for `Caps` and `Structures` in addition to the existing functions - `AppSrc`/`AppSink` implement `BaseSrc`/`BaseSink` and `URIHandler` - Rust ports of the basic tutorials 1 to 8 from https://gstreamer.freedesktop.org/documentation/tutorials/ - "Getting started" and "Installation" sections to the README.md - "dox" feature for generating documentation for all available configurations ### Fixed - `StackTraceFlags` are only available since 1.12 - Worked around macOS requiring a `NSRunLoop` running on the main thread in all examples and tutorials, to be able to show a window or anything else ### Changed - `ClockTime` is now a wrapper around `Option` to handle the `CLOCK_TIME_NONE` case better. This wrapper implements all the arithmetic and other traits as needed and ensures that no accidental calculations with `CLOCK_TIME_NONE` can happen - "Values with format", like in `Duration`/`Position`/`Convert` queries or `Seek` events now return a `FormatValue` type. This contains the actual `Format` together with the value and does any required conversions. This also makes it harder to accidentally mix e.g. values in bytes and time - `PadProbeId` does not implement `Clone`/`Copy` anymore - Property notify watches return a custom type instead of ulong - `Error`/`Warning`/`Info` `Messages` can only be created with specific kinds of `glib::Error` now. Using arbitrary ones does not work - `Iterator` bindings were completely rewritten and provide the item type as a generic type parameter now, greatly simplifying its usage - All `glib::Values` are now `glib::SendValue` instead, e.g. in `Caps` and `Structures`, as their content must be possible to send to different threads safely - `Message::get_src()` can return `None` - Allow `None` as `Caps` in `AppSrc`/`AppSink` - Allow everything implementing `Into>` to be used as a pad name - Moved `copy()` from `GstRc` directly to `MiniObject` - Success/Error enums (like `FlowReturn`, `PadLinkReturn`, `StateChangeReturn`) now implement an `into_result()` function that splits them into a `Result` with the good and bad cases. Also mark them as `#[must_use]` to make it harder to accidentally ignore errors. - Error enums implement the `Error` trait - Many examples use the `failure` crate for error handling now, cleaning up the error handling code quite a bit - Lots of other code cleanup, compiler/clippy warning cleanup, etc. ## [0.8.2] - 2017-11-11 ### Fixed - Implement StaticType of BufferRef instead of Buffer. Buffer aka GstRc already implements StaticType if BufferRef does, and without this it was not possible to use Buffers in GValues. - Free memory of the appsink/appsrc callbacks with the correct type. It was crashing because of using the wrong type before. - Fix documentation URLs in Cargo.toml. ### Added - Installation instructions and links to documentation for getting started to README.md. ## [0.8.1] - 2017-09-15 ### Added - Implement Send+Sync for Query, Message and Event, and their corresponding Ref types. ### Fixed - Constructor for gst_player::Player now works properly with GStreamer 1.12 when passing a video renderer or signal dispatcher. There was a reference counting bug. - Instead of returning &'static references from functions, return references with a generic, unbound lifetime instead. See https://github.com/rust-lang/rust/pull/42417#issue-233404573 - Various "unused external crate" warnings and clippy warnings everywhere. ### Changed - Remove Cargo.lock from GIT, it's not very useful for library crates. - Run everything through latest rustfmt-nightly. - Use while-let (instead of loop and if-let) and CLOCK_TIME_NONE (instead of u64::MAX) in the examples. ## 0.8.0 - 2017-08-31 - Initial release of the autogenerated GStreamer bindings. Older versions (< 0.8.0) of the bindings can be found [here](https://github.com/arturoc/gstreamer1.0-rs). The API of the two is incompatible. [Unreleased]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.24.0...HEAD [0.24.0]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.23.7...0.24.0 [0.23.7]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.23.6...0.23.7 [0.23.6]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.23.5...0.23.6 [0.23.5]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.23.4...0.23.5 [0.23.4]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.23.3...0.23.4 [0.23.3]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.23.2...0.23.3 [0.23.2]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.23.1...0.23.2 [0.23.1]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.23.0...0.23.1 [0.23.0]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.22.6...0.23.0 [0.22.6]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.22.5...0.22.6 [0.22.5]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.22.4...0.22.5 [0.22.4]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.22.3...0.22.4 [0.22.3]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.22.2...0.22.3 [0.22.2]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.22.1...0.22.2 [0.22.1]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.22.0...0.22.1 [0.22.0]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.21.3...0.22.0 [0.21.3]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.21.2...0.21.3 [0.21.2]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.21.1...0.21.2 [0.21.1]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.21.0...0.21.1 [0.21.0]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.20.7...0.21.0 [0.20.7]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.20.6...0.20.7 [0.20.6]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.20.5...0.20.6 [0.20.5]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.20.4...0.20.5 [0.20.4]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.20.3...0.20.4 [0.20.3]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.20.2...0.20.3 [0.20.2]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.20.1...0.20.2 [0.20.1]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.20.0...0.20.1 [0.20.0]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.19.8...0.20.0 [0.19.8]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.19.7...0.19.8 [0.19.7]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.19.6...0.19.7 [0.19.6]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.19.5...0.19.6 [0.19.5]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.19.4...0.19.5 [0.19.4]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.19.3...0.19.4 [0.19.3]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.19.2...0.19.3 [0.19.2]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.19.1...0.19.2 [0.19.1]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.19.0...0.19.1 [0.19.0]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.18.8...0.19.0 [0.18.8]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.18.7...0.18.8 [0.18.7]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.18.6...0.18.7 [0.18.6]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.18.5...0.18.6 [0.18.5]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.18.4...0.18.5 [0.18.4]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.18.3...0.18.4 [0.18.3]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.18.2...0.18.3 [0.18.2]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.18.1...0.18.2 [0.18.1]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.18.0...0.18.1 [0.18.0]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.17.4...0.18.0 [0.17.4]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.17.3...0.17.4 [0.17.3]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.17.2...0.17.3 [0.17.2]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.17.1...0.17.2 [0.17.1]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.17.0...0.17.1 [0.17.0]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.16.7...0.17.0 [0.16.7]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.16.6...0.16.7 [0.16.6]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.16.5...0.16.6 [0.16.5]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.16.4...0.16.5 [0.16.4]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.16.3...0.16.4 [0.16.3]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.16.2...0.16.3 [0.16.2]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.16.1...0.16.2 [0.16.1]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.16.0...0.16.1 [0.16.0]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.15.7...0.16.0 [0.15.7]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.15.6...0.15.7 [0.15.6]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.15.5...0.15.6 [0.15.5]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.15.4...0.15.5 [0.15.4]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.15.3...0.15.4 [0.15.3]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.15.2...0.15.3 [0.15.2]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.15.1...0.15.2 [0.15.1]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.15.0...0.15.1 [0.15.0]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.14.2...0.15.0 [0.14.2]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.14.1...0.14.2 [0.14.1]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.14.0...0.14.1 [0.14.0]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.13.0...0.14.0 [0.13.0]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.12.2...0.13.0 [0.12.2]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.12.1...0.12.2 [0.12.1]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.12.0...0.12.1 [0.12.0]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.11.6...0.12.0 [0.11.6]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.11.5...0.11.6 [0.11.5]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.11.4...0.11.5 [0.11.4]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.11.3...0.11.4 [0.11.3]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.11.2...0.11.3 [0.11.2]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.11.1...0.11.2 [0.11.1]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.11.0...0.11.1 [0.11.0]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.10.2...0.11.0 [0.10.2]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.10.1...0.10.2 [0.10.1]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.10.0...0.10.1 [0.10.0]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.9.1...0.10.0 [0.9.1]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.9.0...0.9.1 [0.9.0]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.8.1...0.9.0 [0.8.2]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.8.1...0.8.2 [0.8.1]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/compare/0.8.0...0.8.1 gstreamer-video-sys-0.24.0/COPYRIGHT000064400000000000000000000022331046102023000151130ustar 00000000000000The gstreamer-rs project is dual-licensed under Apache 2.0 and MIT terms, with the exception of the sys crates which are licensed only under the terms of the MIT license. Copyrights in the gstreamer-rs project are retained by their contributors. No copyright assignment is required to contribute to the gstreamer-rs project. Some files include explicit copyright notices and/or license notices. For full authorship information, see the version control history. Except as otherwise noted (below and/or in individual files), gstreamer-rs is licensed under the Apache License, Version 2.0 or or the MIT license or , at your option. All the sys crates (e.g. gstreamer/sys and gstreamer-base/sys) are licensed only under the terms of the MIT license. This project provides interoperability with various GStreamer libraries but doesn't distribute any parts of them. Distributing compiled libraries and executables that link to those libraries may be subject to terms of the GNU LGPL or other licenses. For more information check the license of each GStreamer library. gstreamer-video-sys-0.24.0/Cargo.lock0000644000000333610000000000100130110ustar # This file is automatically @generated by Cargo. # It is not intended for manual editing. version = 4 [[package]] name = "bitflags" version = "2.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1b8e56985ec62d17e9c1001dc89c88ecd7dc08e47eba5ec7c29c7b5eeecde967" [[package]] name = "cfg-expr" version = "0.20.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0d0390889d58f934f01cd49736275b4c2da15bcfc328c78ff2349907e6cabf22" dependencies = [ "smallvec", "target-lexicon", ] [[package]] name = "cfg-if" version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9555578bc9e57714c812a1f84e4fc5b4d21fcb063490c624de019f7464c91268" [[package]] name = "equivalent" version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f" [[package]] name = "errno" version = "0.3.13" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "778e2ac28f6c47af28e4907f13ffd1e1ddbd400980a9abd7c8df189bf578a5ad" dependencies = [ "libc", "windows-sys 0.60.2", ] [[package]] name = "fastrand" version = "2.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "37909eebbb50d72f9059c3b6d82c0463f2ff062c9e95845c43a6c9c0355411be" [[package]] name = "getrandom" version = "0.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "26145e563e54f2cadc477553f1ec5ee650b00862f0a58bcd12cbdc5f0ea2d2f4" dependencies = [ "cfg-if", "libc", "r-efi", "wasi", ] [[package]] name = "glib-sys" version = "0.21.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4b2be4c74454fb4a6bd3328320737d0fa3d6939e2d570f5d846da00cb222f6a0" dependencies = [ "libc", "system-deps", ] [[package]] name = "gobject-sys" version = "0.21.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ab318a786f9abd49d388013b9161fa0ef8218ea6118ee7111c95e62186f7d31f" dependencies = [ "glib-sys", "libc", "system-deps", ] [[package]] name = "gstreamer-base-sys" version = "0.24.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dfad00fa63ddd8132306feef9d5095a3636192f09d925adfd0a9be0d82b9ea91" dependencies = [ "glib-sys", "gobject-sys", "gstreamer-sys", "libc", "system-deps", ] [[package]] name = "gstreamer-sys" version = "0.24.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "36f46b35f9dc4b5a0dca3f19d2118bb5355c3112f228a99a84ed555f48ce5cf9" dependencies = [ "cfg-if", "glib-sys", "gobject-sys", "libc", "system-deps", ] [[package]] name = "gstreamer-video-sys" version = "0.24.0" dependencies = [ "glib-sys", "gobject-sys", "gstreamer-base-sys", "gstreamer-sys", "libc", "shell-words", "system-deps", "tempfile", ] [[package]] name = "hashbrown" version = "0.15.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5971ac85611da7067dbfcabef3c70ebb5606018acd9e2a3903a0da507521e0d5" [[package]] name = "heck" version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" [[package]] name = "indexmap" version = "2.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fe4cd85333e22411419a0bcae1297d25e58c9443848b11dc6a86fefe8c78a661" dependencies = [ "equivalent", "hashbrown", ] [[package]] name = "libc" version = "0.2.174" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1171693293099992e19cddea4e8b849964e9846f4acee11b3948bcc337be8776" [[package]] name = "linux-raw-sys" version = "0.9.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cd945864f07fe9f5371a27ad7b52a172b4b499999f1d97574c9fa68373937e12" [[package]] name = "memchr" version = "2.7.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "32a282da65faaf38286cf3be983213fcf1d2e2a58700e808f83f4ea9a4804bc0" [[package]] name = "once_cell" version = "1.21.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d" [[package]] name = "pkg-config" version = "0.3.32" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7edddbd0b52d732b21ad9a5fab5c704c14cd949e5e9a1ec5929a24fded1b904c" [[package]] name = "proc-macro2" version = "1.0.95" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "02b3e5e68a3a1a02aad3ec490a98007cbc13c37cbe84a3cd7b8e406d76e7f778" dependencies = [ "unicode-ident", ] [[package]] name = "quote" version = "1.0.40" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1885c039570dc00dcb4ff087a89e185fd56bae234ddc7f056a945bf36467248d" dependencies = [ "proc-macro2", ] [[package]] name = "r-efi" version = "5.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f" [[package]] name = "rustix" version = "1.0.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c71e83d6afe7ff64890ec6b71d6a69bb8a610ab78ce364b3352876bb4c801266" dependencies = [ "bitflags", "errno", "libc", "linux-raw-sys", "windows-sys 0.59.0", ] [[package]] name = "serde" version = "1.0.219" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5f0e2c6ed6606019b4e29e69dbaba95b11854410e5347d525002456dbbb786b6" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" version = "1.0.219" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5b0276cf7f2c73365f7157c8123c21cd9a50fbbd844757af28ca1f5925fc2a00" dependencies = [ "proc-macro2", "quote", "syn", ] [[package]] name = "serde_spanned" version = "0.6.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bf41e0cfaf7226dca15e8197172c295a782857fcb97fad1808a166870dee75a3" dependencies = [ "serde", ] [[package]] name = "shell-words" version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "24188a676b6ae68c3b2cb3a01be17fbf7240ce009799bb56d5b1409051e78fde" [[package]] name = "smallvec" version = "1.15.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03" [[package]] name = "syn" version = "2.0.104" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "17b6f705963418cdb9927482fa304bc562ece2fdd4f616084c50b7023b435a40" dependencies = [ "proc-macro2", "quote", "unicode-ident", ] [[package]] name = "system-deps" version = "7.0.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e4be53aa0cba896d2dc615bd42bbc130acdcffa239e0a2d965ea5b3b2a86ffdb" dependencies = [ "cfg-expr", "heck", "pkg-config", "toml", "version-compare", ] [[package]] name = "target-lexicon" version = "0.13.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e502f78cdbb8ba4718f566c418c52bc729126ffd16baee5baa718cf25dd5a69a" [[package]] name = "tempfile" version = "3.20.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e8a64e3985349f2441a1a9ef0b853f869006c3855f2cda6862a94d26ebb9d6a1" dependencies = [ "fastrand", "getrandom", "once_cell", "rustix", "windows-sys 0.59.0", ] [[package]] name = "toml" version = "0.8.23" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dc1beb996b9d83529a9e75c17a1686767d148d70663143c7854d8b4a09ced362" dependencies = [ "serde", "serde_spanned", "toml_datetime", "toml_edit", ] [[package]] name = "toml_datetime" version = "0.6.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "22cddaf88f4fbc13c51aebbf5f8eceb5c7c5a9da2ac40a13519eb5b0a0e8f11c" dependencies = [ "serde", ] [[package]] name = "toml_edit" version = "0.22.27" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "41fe8c660ae4257887cf66394862d21dbca4a6ddd26f04a3560410406a2f819a" dependencies = [ "indexmap", "serde", "serde_spanned", "toml_datetime", "winnow", ] [[package]] name = "unicode-ident" version = "1.0.18" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5a5f39404a5da50712a4c1eecf25e90dd62b613502b7e925fd4e4d19b5c96512" [[package]] name = "version-compare" version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "852e951cb7832cb45cb1169900d19760cfa39b82bc0ea9c0e5a14ae88411c98b" [[package]] name = "wasi" version = "0.14.2+wasi-0.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9683f9a5a998d873c0d21fcbe3c083009670149a8fab228644b8bd36b2c48cb3" dependencies = [ "wit-bindgen-rt", ] [[package]] name = "windows-sys" version = "0.59.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b" dependencies = [ "windows-targets 0.52.6", ] [[package]] name = "windows-sys" version = "0.60.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f2f500e4d28234f72040990ec9d39e3a6b950f9f22d3dba18416c35882612bcb" dependencies = [ "windows-targets 0.53.2", ] [[package]] name = "windows-targets" version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" dependencies = [ "windows_aarch64_gnullvm 0.52.6", "windows_aarch64_msvc 0.52.6", "windows_i686_gnu 0.52.6", "windows_i686_gnullvm 0.52.6", "windows_i686_msvc 0.52.6", "windows_x86_64_gnu 0.52.6", "windows_x86_64_gnullvm 0.52.6", "windows_x86_64_msvc 0.52.6", ] [[package]] name = "windows-targets" version = "0.53.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c66f69fcc9ce11da9966ddb31a40968cad001c5bedeb5c2b82ede4253ab48aef" dependencies = [ "windows_aarch64_gnullvm 0.53.0", "windows_aarch64_msvc 0.53.0", "windows_i686_gnu 0.53.0", "windows_i686_gnullvm 0.53.0", "windows_i686_msvc 0.53.0", "windows_x86_64_gnu 0.53.0", "windows_x86_64_gnullvm 0.53.0", "windows_x86_64_msvc 0.53.0", ] [[package]] name = "windows_aarch64_gnullvm" version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" [[package]] name = "windows_aarch64_gnullvm" version = "0.53.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "86b8d5f90ddd19cb4a147a5fa63ca848db3df085e25fee3cc10b39b6eebae764" [[package]] name = "windows_aarch64_msvc" version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" [[package]] name = "windows_aarch64_msvc" version = "0.53.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c7651a1f62a11b8cbd5e0d42526e55f2c99886c77e007179efff86c2b137e66c" [[package]] name = "windows_i686_gnu" version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" [[package]] name = "windows_i686_gnu" version = "0.53.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c1dc67659d35f387f5f6c479dc4e28f1d4bb90ddd1a5d3da2e5d97b42d6272c3" [[package]] name = "windows_i686_gnullvm" version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" [[package]] name = "windows_i686_gnullvm" version = "0.53.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9ce6ccbdedbf6d6354471319e781c0dfef054c81fbc7cf83f338a4296c0cae11" [[package]] name = "windows_i686_msvc" version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" [[package]] name = "windows_i686_msvc" version = "0.53.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "581fee95406bb13382d2f65cd4a908ca7b1e4c2f1917f143ba16efe98a589b5d" [[package]] name = "windows_x86_64_gnu" version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" [[package]] name = "windows_x86_64_gnu" version = "0.53.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2e55b5ac9ea33f2fc1716d1742db15574fd6fc8dadc51caab1c16a3d3b4190ba" [[package]] name = "windows_x86_64_gnullvm" version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" [[package]] name = "windows_x86_64_gnullvm" version = "0.53.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0a6e035dd0599267ce1ee132e51c27dd29437f63325753051e71dd9e42406c57" [[package]] name = "windows_x86_64_msvc" version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" [[package]] name = "windows_x86_64_msvc" version = "0.53.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "271414315aff87387382ec3d271b52d7ae78726f5d44ac98b4f4030c91880486" [[package]] name = "winnow" version = "0.7.12" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f3edebf492c8125044983378ecb5766203ad3b4c2f7a922bd7dd207f6d443e95" dependencies = [ "memchr", ] [[package]] name = "wit-bindgen-rt" version = "0.39.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6f42320e61fe2cfd34354ecb597f86f413484a798ba44a8ca1165c58d42da6c1" dependencies = [ "bitflags", ] gstreamer-video-sys-0.24.0/Cargo.toml0000644000000050110000000000100130230ustar # THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" rust-version = "1.83" name = "gstreamer-video-sys" version = "0.24.0" authors = ["Sebastian Dröge "] build = "build.rs" autolib = false autobins = false autoexamples = false autotests = false autobenches = false description = "FFI bindings to libgstvideo-1.0" homepage = "https://gstreamer.freedesktop.org" documentation = "https://gstreamer.freedesktop.org/documentation/rust/stable/latest/docs/gstreamer_video_sys/" readme = "README.md" keywords = [ "ffi", "gstreamer", "gnome", "multimedia", ] categories = [ "api-bindings", "multimedia", ] license = "MIT" repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs" [package.metadata.docs.rs] all-features = true rustc-args = [ "--cfg", "docsrs", ] rustdoc-args = [ "--cfg", "docsrs", "--generate-link-to-definition", ] [package.metadata.system-deps.gstreamer_video_1_0] name = "gstreamer-video-1.0" version = "1.14" [package.metadata.system-deps.gstreamer_video_1_0.v1_16] version = "1.16" [package.metadata.system-deps.gstreamer_video_1_0.v1_18] version = "1.18" [package.metadata.system-deps.gstreamer_video_1_0.v1_20] version = "1.20" [package.metadata.system-deps.gstreamer_video_1_0.v1_22] version = "1.22" [package.metadata.system-deps.gstreamer_video_1_0.v1_24] version = "1.24" [package.metadata.system-deps.gstreamer_video_1_0.v1_26] version = "1.26" [package.metadata.system-deps.gstreamer_video_1_0.v1_28] version = "1.27" [features] v1_16 = [] v1_18 = ["v1_16"] v1_20 = ["v1_18"] v1_22 = ["v1_20"] v1_24 = ["v1_22"] v1_26 = ["v1_24"] v1_28 = ["v1_26"] [lib] name = "gstreamer_video_sys" path = "src/lib.rs" [[test]] name = "abi" path = "tests/abi.rs" [dependencies.glib-sys] version = "0.21" [dependencies.gobject-sys] version = "0.21" [dependencies.gstreamer-base-sys] version = "0.24" [dependencies.gstreamer-sys] version = "0.24" [dependencies.libc] version = "0.2" [dev-dependencies.shell-words] version = "1.0.0" [dev-dependencies.tempfile] version = "3" [build-dependencies.system-deps] version = "7" gstreamer-video-sys-0.24.0/Cargo.toml.orig000064400000000000000000000034671046102023000165210ustar 00000000000000[build-dependencies] system-deps = "7" [dependencies] libc = "0.2" [dependencies.glib-sys] workspace = true [dependencies.gobject-sys] workspace = true [dependencies.gstreamer-sys] workspace = true [dependencies.gstreamer-base-sys] workspace = true [dev-dependencies] shell-words = "1.0.0" tempfile = "3" [features] v1_16 = [] v1_18 = ["v1_16"] v1_20 = ["v1_18"] v1_22 = ["v1_20"] v1_24 = ["v1_22"] v1_26 = ["v1_24"] v1_28 = ["v1_26"] [lib] name = "gstreamer_video_sys" [package] authors = ["Sebastian Dröge "] build = "build.rs" description = "FFI bindings to libgstvideo-1.0" documentation = "https://gstreamer.freedesktop.org/documentation/rust/stable/latest/docs/gstreamer_video_sys/" keywords = ["ffi", "gstreamer", "gnome", "multimedia"] license = "MIT" name = "gstreamer-video-sys" readme = "README.md" [package.version] workspace = true [package.categories] workspace = true [package.repository] workspace = true [package.homepage] workspace = true [package.edition] workspace = true [package.rust-version] workspace = true [package.metadata.docs.rs] all-features = true rustc-args = ["--cfg", "docsrs"] rustdoc-args = ["--cfg", "docsrs", "--generate-link-to-definition"] [package.metadata.system-deps.gstreamer_video_1_0] name = "gstreamer-video-1.0" version = "1.14" [package.metadata.system-deps.gstreamer_video_1_0.v1_16] version = "1.16" [package.metadata.system-deps.gstreamer_video_1_0.v1_18] version = "1.18" [package.metadata.system-deps.gstreamer_video_1_0.v1_20] version = "1.20" [package.metadata.system-deps.gstreamer_video_1_0.v1_22] version = "1.22" [package.metadata.system-deps.gstreamer_video_1_0.v1_24] version = "1.24" [package.metadata.system-deps.gstreamer_video_1_0.v1_26] version = "1.26" [package.metadata.system-deps.gstreamer_video_1_0.v1_28] version = "1.27" gstreamer-video-sys-0.24.0/Gir.toml000064400000000000000000000030731046102023000152410ustar 00000000000000[options] girs_directories = ["../../gir-files", "../../gst-gir-files"] library = "GstVideo" version = "1.0" min_cfg_version = "1.14" work_mode = "sys" single_version_file = true extra_versions = [ "1.26", "1.24", "1.22", "1.20", "1.18", "1.16", ] external_libraries = [ "GLib", "GObject", ] ignore = [ "GstVideo.VIDEO_FORMATS_ALL", "GstVideo.VIDEO_FORMATS_ALL_STR", "GstVideo.VIDEO_FORMATS_ANY", "GstVideo.VIDEO_FORMATS_ANY_STR", "GstVideo.VIDEO_DMA_DRM_CAPS_MAKE", ] [external_libraries] gstreamer="Gst" gstreamer_base="GstBase" [[object]] name = "GstVideo.VideoOverlayFormatFlags" status = "generate" [[object.function]] name = "get_type" version = "1.16" [[object]] name = "GstVideo.VideoTimeCodeFlags" status = "generate" [[object.function]] name = "get_type" version = "1.18" [[object]] name = "GstVideo.VideoCodecFrameFlags" status = "generate" [[object.function]] name = "get_type" version = "1.20" [[object]] name = "GstVideo.VideoGLTextureType" status = "generate" [[object.function]] name = "get_type" version = "1.20" [[object]] name = "GstVideo.VideoGLTextureOrientation" status = "generate" [[object.function]] name = "get_type" version = "1.20" [[object]] name = "GstVideo.*" status = "generate" [[object.function]] name = "video_caption_meta_api_get_type" version = "1.16" [[object.function]] name = "video_afd_meta_api_get_type" version = "1.18" [[object.function]] name = "video_bar_meta_api_get_type" version = "1.18" gstreamer-video-sys-0.24.0/LICENSE000064400000000000000000000017771046102023000146410ustar 00000000000000Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. gstreamer-video-sys-0.24.0/README.md000064400000000000000000000031061046102023000150770ustar 00000000000000# gstreamer-sys [![crates.io](https://img.shields.io/crates/v/gstreamer-video-sys.svg)](https://crates.io/crates/gstreamer-video-sys) [![pipeline status](https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/badges/main/pipeline.svg)](https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/commits/main) [GStreamer](https://gstreamer.freedesktop.org/) (Video library) FFI bindings for Rust. These bindings are providing unsafe FFI API that can be used to interface with GStreamer. Generally they are meant to be used as the building block for higher-level abstractions like: * Bindings for GStreamer applications and plugins: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs * Various GStreamer plugins written in Rust: https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs The bindings are autogenerated with [gir](https://github.com/gtk-rs/gir/) based on the [GObject-Introspection](https://wiki.gnome.org/Projects/GObjectIntrospection/) API metadata provided by the GStreamer project. ## LICENSE gstreamer-sys and all crates contained here are licensed under the MIT license ([LICENSE](LICENSE) or http://opensource.org/licenses/MIT). GStreamer itself is licensed under the Lesser General Public License version 2.1 or (at your option) any later version: https://www.gnu.org/licenses/lgpl-2.1.html ## Contribution Any kinds of contributions are welcome as a pull request. Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in gstreamer-rs by you shall be licensed under the MIT license as above, without any additional terms or conditions. gstreamer-video-sys-0.24.0/build.rs000064400000000000000000000007761046102023000152770ustar 00000000000000// This file was generated by gir (https://github.com/gtk-rs/gir) // from gir-files (https://github.com/gtk-rs/gir-files) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // DO NOT EDIT #[cfg(not(docsrs))] use std::process; #[cfg(docsrs)] fn main() {} // prevent linking libraries to avoid documentation failure #[cfg(not(docsrs))] fn main() { if let Err(s) = system_deps::Config::new().probe() { println!("cargo:warning={s}"); process::exit(1); } } gstreamer-video-sys-0.24.0/src/auto/versions.txt000064400000000000000000000003421046102023000177670ustar 00000000000000Generated by gir (https://github.com/gtk-rs/gir @ 19ccbbc9a3d1) from gir-files (https://github.com/gtk-rs/gir-files @ 5c1e490fe50a) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ fddf588f73ea) gstreamer-video-sys-0.24.0/src/lib.rs000064400000000000000000005733021046102023000155350ustar 00000000000000// This file was generated by gir (https://github.com/gtk-rs/gir) // from gir-files (https://github.com/gtk-rs/gir-files) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] #![allow( clippy::approx_constant, clippy::type_complexity, clippy::unreadable_literal, clippy::upper_case_acronyms )] #![cfg_attr(docsrs, feature(doc_cfg))] use glib_sys as glib; use gobject_sys as gobject; use gstreamer_base_sys as gst_base; use gstreamer_sys as gst; #[cfg(unix)] #[allow(unused_imports)] use libc::{dev_t, gid_t, pid_t, socklen_t, uid_t}; #[allow(unused_imports)] use libc::{intptr_t, off_t, size_t, ssize_t, time_t, uintptr_t, FILE}; #[allow(unused_imports)] use std::ffi::{ c_char, c_double, c_float, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void, }; #[allow(unused_imports)] use glib::{gboolean, gconstpointer, gpointer, GType}; // Enums pub type GstAncillaryMetaField = c_int; pub const GST_ANCILLARY_META_FIELD_PROGRESSIVE: GstAncillaryMetaField = 0; pub const GST_ANCILLARY_META_FIELD_INTERLACED_FIRST: GstAncillaryMetaField = 16; pub const GST_ANCILLARY_META_FIELD_INTERLACED_SECOND: GstAncillaryMetaField = 17; pub type GstColorBalanceType = c_int; pub const GST_COLOR_BALANCE_HARDWARE: GstColorBalanceType = 0; pub const GST_COLOR_BALANCE_SOFTWARE: GstColorBalanceType = 1; pub type GstNavigationCommand = c_int; pub const GST_NAVIGATION_COMMAND_INVALID: GstNavigationCommand = 0; pub const GST_NAVIGATION_COMMAND_MENU1: GstNavigationCommand = 1; pub const GST_NAVIGATION_COMMAND_MENU2: GstNavigationCommand = 2; pub const GST_NAVIGATION_COMMAND_MENU3: GstNavigationCommand = 3; pub const GST_NAVIGATION_COMMAND_MENU4: GstNavigationCommand = 4; pub const GST_NAVIGATION_COMMAND_MENU5: GstNavigationCommand = 5; pub const GST_NAVIGATION_COMMAND_MENU6: GstNavigationCommand = 6; pub const GST_NAVIGATION_COMMAND_MENU7: GstNavigationCommand = 7; pub const GST_NAVIGATION_COMMAND_LEFT: GstNavigationCommand = 20; pub const GST_NAVIGATION_COMMAND_RIGHT: GstNavigationCommand = 21; pub const GST_NAVIGATION_COMMAND_UP: GstNavigationCommand = 22; pub const GST_NAVIGATION_COMMAND_DOWN: GstNavigationCommand = 23; pub const GST_NAVIGATION_COMMAND_ACTIVATE: GstNavigationCommand = 24; pub const GST_NAVIGATION_COMMAND_PREV_ANGLE: GstNavigationCommand = 30; pub const GST_NAVIGATION_COMMAND_NEXT_ANGLE: GstNavigationCommand = 31; pub type GstNavigationEventType = c_int; pub const GST_NAVIGATION_EVENT_INVALID: GstNavigationEventType = 0; pub const GST_NAVIGATION_EVENT_KEY_PRESS: GstNavigationEventType = 1; pub const GST_NAVIGATION_EVENT_KEY_RELEASE: GstNavigationEventType = 2; pub const GST_NAVIGATION_EVENT_MOUSE_BUTTON_PRESS: GstNavigationEventType = 3; pub const GST_NAVIGATION_EVENT_MOUSE_BUTTON_RELEASE: GstNavigationEventType = 4; pub const GST_NAVIGATION_EVENT_MOUSE_MOVE: GstNavigationEventType = 5; pub const GST_NAVIGATION_EVENT_COMMAND: GstNavigationEventType = 6; #[cfg(feature = "v1_18")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub const GST_NAVIGATION_EVENT_MOUSE_SCROLL: GstNavigationEventType = 7; #[cfg(feature = "v1_22")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub const GST_NAVIGATION_EVENT_TOUCH_DOWN: GstNavigationEventType = 8; #[cfg(feature = "v1_22")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub const GST_NAVIGATION_EVENT_TOUCH_MOTION: GstNavigationEventType = 9; #[cfg(feature = "v1_22")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub const GST_NAVIGATION_EVENT_TOUCH_UP: GstNavigationEventType = 10; #[cfg(feature = "v1_22")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub const GST_NAVIGATION_EVENT_TOUCH_FRAME: GstNavigationEventType = 11; #[cfg(feature = "v1_22")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub const GST_NAVIGATION_EVENT_TOUCH_CANCEL: GstNavigationEventType = 12; #[cfg(feature = "v1_26")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))] pub const GST_NAVIGATION_EVENT_MOUSE_DOUBLE_CLICK: GstNavigationEventType = 13; pub type GstNavigationMessageType = c_int; pub const GST_NAVIGATION_MESSAGE_INVALID: GstNavigationMessageType = 0; pub const GST_NAVIGATION_MESSAGE_MOUSE_OVER: GstNavigationMessageType = 1; pub const GST_NAVIGATION_MESSAGE_COMMANDS_CHANGED: GstNavigationMessageType = 2; pub const GST_NAVIGATION_MESSAGE_ANGLES_CHANGED: GstNavigationMessageType = 3; pub const GST_NAVIGATION_MESSAGE_EVENT: GstNavigationMessageType = 4; pub type GstNavigationQueryType = c_int; pub const GST_NAVIGATION_QUERY_INVALID: GstNavigationQueryType = 0; pub const GST_NAVIGATION_QUERY_COMMANDS: GstNavigationQueryType = 1; pub const GST_NAVIGATION_QUERY_ANGLES: GstNavigationQueryType = 2; pub type GstVideoAFDSpec = c_int; pub const GST_VIDEO_AFD_SPEC_DVB_ETSI: GstVideoAFDSpec = 0; pub const GST_VIDEO_AFD_SPEC_ATSC_A53: GstVideoAFDSpec = 1; pub const GST_VIDEO_AFD_SPEC_SMPTE_ST2016_1: GstVideoAFDSpec = 2; pub type GstVideoAFDValue = c_int; pub const GST_VIDEO_AFD_UNAVAILABLE: GstVideoAFDValue = 0; pub const GST_VIDEO_AFD_16_9_TOP_ALIGNED: GstVideoAFDValue = 2; pub const GST_VIDEO_AFD_14_9_TOP_ALIGNED: GstVideoAFDValue = 3; pub const GST_VIDEO_AFD_GREATER_THAN_16_9: GstVideoAFDValue = 4; pub const GST_VIDEO_AFD_4_3_FULL_16_9_FULL: GstVideoAFDValue = 8; pub const GST_VIDEO_AFD_4_3_FULL_4_3_PILLAR: GstVideoAFDValue = 9; pub const GST_VIDEO_AFD_16_9_LETTER_16_9_FULL: GstVideoAFDValue = 10; pub const GST_VIDEO_AFD_14_9_LETTER_14_9_PILLAR: GstVideoAFDValue = 11; pub const GST_VIDEO_AFD_4_3_FULL_14_9_CENTER: GstVideoAFDValue = 13; pub const GST_VIDEO_AFD_16_9_LETTER_14_9_CENTER: GstVideoAFDValue = 14; pub const GST_VIDEO_AFD_16_9_LETTER_4_3_CENTER: GstVideoAFDValue = 15; pub type GstVideoAlphaMode = c_int; pub const GST_VIDEO_ALPHA_MODE_COPY: GstVideoAlphaMode = 0; pub const GST_VIDEO_ALPHA_MODE_SET: GstVideoAlphaMode = 1; pub const GST_VIDEO_ALPHA_MODE_MULT: GstVideoAlphaMode = 2; pub type GstVideoAncillaryDID = c_int; pub const GST_VIDEO_ANCILLARY_DID_UNDEFINED: GstVideoAncillaryDID = 0; pub const GST_VIDEO_ANCILLARY_DID_DELETION: GstVideoAncillaryDID = 128; pub const GST_VIDEO_ANCILLARY_DID_HANC_3G_AUDIO_DATA_FIRST: GstVideoAncillaryDID = 160; pub const GST_VIDEO_ANCILLARY_DID_HANC_3G_AUDIO_DATA_LAST: GstVideoAncillaryDID = 167; pub const GST_VIDEO_ANCILLARY_DID_HANC_HDTV_AUDIO_DATA_FIRST: GstVideoAncillaryDID = 224; pub const GST_VIDEO_ANCILLARY_DID_HANC_HDTV_AUDIO_DATA_LAST: GstVideoAncillaryDID = 231; pub const GST_VIDEO_ANCILLARY_DID_HANC_SDTV_AUDIO_DATA_1_FIRST: GstVideoAncillaryDID = 236; pub const GST_VIDEO_ANCILLARY_DID_HANC_SDTV_AUDIO_DATA_1_LAST: GstVideoAncillaryDID = 239; pub const GST_VIDEO_ANCILLARY_DID_CAMERA_POSITION: GstVideoAncillaryDID = 240; pub const GST_VIDEO_ANCILLARY_DID_HANC_ERROR_DETECTION: GstVideoAncillaryDID = 244; pub const GST_VIDEO_ANCILLARY_DID_HANC_SDTV_AUDIO_DATA_2_FIRST: GstVideoAncillaryDID = 248; pub const GST_VIDEO_ANCILLARY_DID_HANC_SDTV_AUDIO_DATA_2_LAST: GstVideoAncillaryDID = 255; pub type GstVideoAncillaryDID16 = c_int; pub const GST_VIDEO_ANCILLARY_DID16_S334_EIA_708: GstVideoAncillaryDID16 = 24833; pub const GST_VIDEO_ANCILLARY_DID16_S334_EIA_608: GstVideoAncillaryDID16 = 24834; pub const GST_VIDEO_ANCILLARY_DID16_S2016_3_AFD_BAR: GstVideoAncillaryDID16 = 16645; pub type GstVideoCaptionType = c_int; pub const GST_VIDEO_CAPTION_TYPE_UNKNOWN: GstVideoCaptionType = 0; pub const GST_VIDEO_CAPTION_TYPE_CEA608_RAW: GstVideoCaptionType = 1; pub const GST_VIDEO_CAPTION_TYPE_CEA608_S334_1A: GstVideoCaptionType = 2; pub const GST_VIDEO_CAPTION_TYPE_CEA708_RAW: GstVideoCaptionType = 3; pub const GST_VIDEO_CAPTION_TYPE_CEA708_CDP: GstVideoCaptionType = 4; pub type GstVideoChromaMethod = c_int; pub const GST_VIDEO_CHROMA_METHOD_NEAREST: GstVideoChromaMethod = 0; pub const GST_VIDEO_CHROMA_METHOD_LINEAR: GstVideoChromaMethod = 1; pub type GstVideoChromaMode = c_int; pub const GST_VIDEO_CHROMA_MODE_FULL: GstVideoChromaMode = 0; pub const GST_VIDEO_CHROMA_MODE_UPSAMPLE_ONLY: GstVideoChromaMode = 1; pub const GST_VIDEO_CHROMA_MODE_DOWNSAMPLE_ONLY: GstVideoChromaMode = 2; pub const GST_VIDEO_CHROMA_MODE_NONE: GstVideoChromaMode = 3; pub type GstVideoColorMatrix = c_int; pub const GST_VIDEO_COLOR_MATRIX_UNKNOWN: GstVideoColorMatrix = 0; pub const GST_VIDEO_COLOR_MATRIX_RGB: GstVideoColorMatrix = 1; pub const GST_VIDEO_COLOR_MATRIX_FCC: GstVideoColorMatrix = 2; pub const GST_VIDEO_COLOR_MATRIX_BT709: GstVideoColorMatrix = 3; pub const GST_VIDEO_COLOR_MATRIX_BT601: GstVideoColorMatrix = 4; pub const GST_VIDEO_COLOR_MATRIX_SMPTE240M: GstVideoColorMatrix = 5; pub const GST_VIDEO_COLOR_MATRIX_BT2020: GstVideoColorMatrix = 6; pub type GstVideoColorPrimaries = c_int; pub const GST_VIDEO_COLOR_PRIMARIES_UNKNOWN: GstVideoColorPrimaries = 0; pub const GST_VIDEO_COLOR_PRIMARIES_BT709: GstVideoColorPrimaries = 1; pub const GST_VIDEO_COLOR_PRIMARIES_BT470M: GstVideoColorPrimaries = 2; pub const GST_VIDEO_COLOR_PRIMARIES_BT470BG: GstVideoColorPrimaries = 3; pub const GST_VIDEO_COLOR_PRIMARIES_SMPTE170M: GstVideoColorPrimaries = 4; pub const GST_VIDEO_COLOR_PRIMARIES_SMPTE240M: GstVideoColorPrimaries = 5; pub const GST_VIDEO_COLOR_PRIMARIES_FILM: GstVideoColorPrimaries = 6; pub const GST_VIDEO_COLOR_PRIMARIES_BT2020: GstVideoColorPrimaries = 7; pub const GST_VIDEO_COLOR_PRIMARIES_ADOBERGB: GstVideoColorPrimaries = 8; pub const GST_VIDEO_COLOR_PRIMARIES_SMPTEST428: GstVideoColorPrimaries = 9; pub const GST_VIDEO_COLOR_PRIMARIES_SMPTERP431: GstVideoColorPrimaries = 10; pub const GST_VIDEO_COLOR_PRIMARIES_SMPTEEG432: GstVideoColorPrimaries = 11; pub const GST_VIDEO_COLOR_PRIMARIES_EBU3213: GstVideoColorPrimaries = 12; pub type GstVideoColorRange = c_int; pub const GST_VIDEO_COLOR_RANGE_UNKNOWN: GstVideoColorRange = 0; pub const GST_VIDEO_COLOR_RANGE_0_255: GstVideoColorRange = 1; pub const GST_VIDEO_COLOR_RANGE_16_235: GstVideoColorRange = 2; pub type GstVideoDitherMethod = c_int; pub const GST_VIDEO_DITHER_NONE: GstVideoDitherMethod = 0; pub const GST_VIDEO_DITHER_VERTERR: GstVideoDitherMethod = 1; pub const GST_VIDEO_DITHER_FLOYD_STEINBERG: GstVideoDitherMethod = 2; pub const GST_VIDEO_DITHER_SIERRA_LITE: GstVideoDitherMethod = 3; pub const GST_VIDEO_DITHER_BAYER: GstVideoDitherMethod = 4; pub type GstVideoFieldOrder = c_int; pub const GST_VIDEO_FIELD_ORDER_UNKNOWN: GstVideoFieldOrder = 0; pub const GST_VIDEO_FIELD_ORDER_TOP_FIELD_FIRST: GstVideoFieldOrder = 1; pub const GST_VIDEO_FIELD_ORDER_BOTTOM_FIELD_FIRST: GstVideoFieldOrder = 2; pub type GstVideoFormat = c_int; pub const GST_VIDEO_FORMAT_UNKNOWN: GstVideoFormat = 0; pub const GST_VIDEO_FORMAT_ENCODED: GstVideoFormat = 1; pub const GST_VIDEO_FORMAT_I420: GstVideoFormat = 2; pub const GST_VIDEO_FORMAT_YV12: GstVideoFormat = 3; pub const GST_VIDEO_FORMAT_YUY2: GstVideoFormat = 4; pub const GST_VIDEO_FORMAT_UYVY: GstVideoFormat = 5; pub const GST_VIDEO_FORMAT_AYUV: GstVideoFormat = 6; pub const GST_VIDEO_FORMAT_RGBx: GstVideoFormat = 7; pub const GST_VIDEO_FORMAT_BGRx: GstVideoFormat = 8; pub const GST_VIDEO_FORMAT_xRGB: GstVideoFormat = 9; pub const GST_VIDEO_FORMAT_xBGR: GstVideoFormat = 10; pub const GST_VIDEO_FORMAT_RGBA: GstVideoFormat = 11; pub const GST_VIDEO_FORMAT_BGRA: GstVideoFormat = 12; pub const GST_VIDEO_FORMAT_ARGB: GstVideoFormat = 13; pub const GST_VIDEO_FORMAT_ABGR: GstVideoFormat = 14; pub const GST_VIDEO_FORMAT_RGB: GstVideoFormat = 15; pub const GST_VIDEO_FORMAT_BGR: GstVideoFormat = 16; pub const GST_VIDEO_FORMAT_Y41B: GstVideoFormat = 17; pub const GST_VIDEO_FORMAT_Y42B: GstVideoFormat = 18; pub const GST_VIDEO_FORMAT_YVYU: GstVideoFormat = 19; pub const GST_VIDEO_FORMAT_Y444: GstVideoFormat = 20; pub const GST_VIDEO_FORMAT_v210: GstVideoFormat = 21; pub const GST_VIDEO_FORMAT_v216: GstVideoFormat = 22; pub const GST_VIDEO_FORMAT_NV12: GstVideoFormat = 23; pub const GST_VIDEO_FORMAT_NV21: GstVideoFormat = 24; pub const GST_VIDEO_FORMAT_GRAY8: GstVideoFormat = 25; pub const GST_VIDEO_FORMAT_GRAY16_BE: GstVideoFormat = 26; pub const GST_VIDEO_FORMAT_GRAY16_LE: GstVideoFormat = 27; pub const GST_VIDEO_FORMAT_v308: GstVideoFormat = 28; pub const GST_VIDEO_FORMAT_RGB16: GstVideoFormat = 29; pub const GST_VIDEO_FORMAT_BGR16: GstVideoFormat = 30; pub const GST_VIDEO_FORMAT_RGB15: GstVideoFormat = 31; pub const GST_VIDEO_FORMAT_BGR15: GstVideoFormat = 32; pub const GST_VIDEO_FORMAT_UYVP: GstVideoFormat = 33; pub const GST_VIDEO_FORMAT_A420: GstVideoFormat = 34; pub const GST_VIDEO_FORMAT_RGB8P: GstVideoFormat = 35; pub const GST_VIDEO_FORMAT_YUV9: GstVideoFormat = 36; pub const GST_VIDEO_FORMAT_YVU9: GstVideoFormat = 37; pub const GST_VIDEO_FORMAT_IYU1: GstVideoFormat = 38; pub const GST_VIDEO_FORMAT_ARGB64: GstVideoFormat = 39; pub const GST_VIDEO_FORMAT_AYUV64: GstVideoFormat = 40; pub const GST_VIDEO_FORMAT_r210: GstVideoFormat = 41; pub const GST_VIDEO_FORMAT_I420_10BE: GstVideoFormat = 42; pub const GST_VIDEO_FORMAT_I420_10LE: GstVideoFormat = 43; pub const GST_VIDEO_FORMAT_I422_10BE: GstVideoFormat = 44; pub const GST_VIDEO_FORMAT_I422_10LE: GstVideoFormat = 45; pub const GST_VIDEO_FORMAT_Y444_10BE: GstVideoFormat = 46; pub const GST_VIDEO_FORMAT_Y444_10LE: GstVideoFormat = 47; pub const GST_VIDEO_FORMAT_GBR: GstVideoFormat = 48; pub const GST_VIDEO_FORMAT_GBR_10BE: GstVideoFormat = 49; pub const GST_VIDEO_FORMAT_GBR_10LE: GstVideoFormat = 50; pub const GST_VIDEO_FORMAT_NV16: GstVideoFormat = 51; pub const GST_VIDEO_FORMAT_NV24: GstVideoFormat = 52; pub const GST_VIDEO_FORMAT_NV12_64Z32: GstVideoFormat = 53; pub const GST_VIDEO_FORMAT_A420_10BE: GstVideoFormat = 54; pub const GST_VIDEO_FORMAT_A420_10LE: GstVideoFormat = 55; pub const GST_VIDEO_FORMAT_A422_10BE: GstVideoFormat = 56; pub const GST_VIDEO_FORMAT_A422_10LE: GstVideoFormat = 57; pub const GST_VIDEO_FORMAT_A444_10BE: GstVideoFormat = 58; pub const GST_VIDEO_FORMAT_A444_10LE: GstVideoFormat = 59; pub const GST_VIDEO_FORMAT_NV61: GstVideoFormat = 60; pub const GST_VIDEO_FORMAT_P010_10BE: GstVideoFormat = 61; pub const GST_VIDEO_FORMAT_P010_10LE: GstVideoFormat = 62; pub const GST_VIDEO_FORMAT_IYU2: GstVideoFormat = 63; pub const GST_VIDEO_FORMAT_VYUY: GstVideoFormat = 64; pub const GST_VIDEO_FORMAT_GBRA: GstVideoFormat = 65; pub const GST_VIDEO_FORMAT_GBRA_10BE: GstVideoFormat = 66; pub const GST_VIDEO_FORMAT_GBRA_10LE: GstVideoFormat = 67; pub const GST_VIDEO_FORMAT_GBR_12BE: GstVideoFormat = 68; pub const GST_VIDEO_FORMAT_GBR_12LE: GstVideoFormat = 69; pub const GST_VIDEO_FORMAT_GBRA_12BE: GstVideoFormat = 70; pub const GST_VIDEO_FORMAT_GBRA_12LE: GstVideoFormat = 71; pub const GST_VIDEO_FORMAT_I420_12BE: GstVideoFormat = 72; pub const GST_VIDEO_FORMAT_I420_12LE: GstVideoFormat = 73; pub const GST_VIDEO_FORMAT_I422_12BE: GstVideoFormat = 74; pub const GST_VIDEO_FORMAT_I422_12LE: GstVideoFormat = 75; pub const GST_VIDEO_FORMAT_Y444_12BE: GstVideoFormat = 76; pub const GST_VIDEO_FORMAT_Y444_12LE: GstVideoFormat = 77; pub const GST_VIDEO_FORMAT_GRAY10_LE32: GstVideoFormat = 78; pub const GST_VIDEO_FORMAT_NV12_10LE32: GstVideoFormat = 79; pub const GST_VIDEO_FORMAT_NV16_10LE32: GstVideoFormat = 80; pub const GST_VIDEO_FORMAT_NV12_10LE40: GstVideoFormat = 81; pub const GST_VIDEO_FORMAT_Y210: GstVideoFormat = 82; pub const GST_VIDEO_FORMAT_Y410: GstVideoFormat = 83; pub const GST_VIDEO_FORMAT_VUYA: GstVideoFormat = 84; pub const GST_VIDEO_FORMAT_BGR10A2_LE: GstVideoFormat = 85; pub const GST_VIDEO_FORMAT_RGB10A2_LE: GstVideoFormat = 86; pub const GST_VIDEO_FORMAT_Y444_16BE: GstVideoFormat = 87; pub const GST_VIDEO_FORMAT_Y444_16LE: GstVideoFormat = 88; pub const GST_VIDEO_FORMAT_P016_BE: GstVideoFormat = 89; pub const GST_VIDEO_FORMAT_P016_LE: GstVideoFormat = 90; pub const GST_VIDEO_FORMAT_P012_BE: GstVideoFormat = 91; pub const GST_VIDEO_FORMAT_P012_LE: GstVideoFormat = 92; pub const GST_VIDEO_FORMAT_Y212_BE: GstVideoFormat = 93; pub const GST_VIDEO_FORMAT_Y212_LE: GstVideoFormat = 94; pub const GST_VIDEO_FORMAT_Y412_BE: GstVideoFormat = 95; pub const GST_VIDEO_FORMAT_Y412_LE: GstVideoFormat = 96; #[cfg(feature = "v1_18")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub const GST_VIDEO_FORMAT_NV12_4L4: GstVideoFormat = 97; #[cfg(feature = "v1_18")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub const GST_VIDEO_FORMAT_NV12_32L32: GstVideoFormat = 98; #[cfg(feature = "v1_20")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub const GST_VIDEO_FORMAT_RGBP: GstVideoFormat = 99; #[cfg(feature = "v1_20")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub const GST_VIDEO_FORMAT_BGRP: GstVideoFormat = 100; #[cfg(feature = "v1_20")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub const GST_VIDEO_FORMAT_AV12: GstVideoFormat = 101; #[cfg(feature = "v1_20")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub const GST_VIDEO_FORMAT_ARGB64_LE: GstVideoFormat = 102; #[cfg(feature = "v1_20")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub const GST_VIDEO_FORMAT_ARGB64_BE: GstVideoFormat = 103; #[cfg(feature = "v1_20")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub const GST_VIDEO_FORMAT_RGBA64_LE: GstVideoFormat = 104; #[cfg(feature = "v1_20")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub const GST_VIDEO_FORMAT_RGBA64_BE: GstVideoFormat = 105; #[cfg(feature = "v1_20")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub const GST_VIDEO_FORMAT_BGRA64_LE: GstVideoFormat = 106; #[cfg(feature = "v1_20")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub const GST_VIDEO_FORMAT_BGRA64_BE: GstVideoFormat = 107; #[cfg(feature = "v1_20")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub const GST_VIDEO_FORMAT_ABGR64_LE: GstVideoFormat = 108; #[cfg(feature = "v1_20")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub const GST_VIDEO_FORMAT_ABGR64_BE: GstVideoFormat = 109; #[cfg(feature = "v1_22")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub const GST_VIDEO_FORMAT_NV12_16L32S: GstVideoFormat = 110; #[cfg(feature = "v1_22")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub const GST_VIDEO_FORMAT_NV12_8L128: GstVideoFormat = 111; #[cfg(feature = "v1_22")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub const GST_VIDEO_FORMAT_NV12_10BE_8L128: GstVideoFormat = 112; #[cfg(feature = "v1_24")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] pub const GST_VIDEO_FORMAT_NV12_10LE40_4L4: GstVideoFormat = 113; #[cfg(feature = "v1_24")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] pub const GST_VIDEO_FORMAT_DMA_DRM: GstVideoFormat = 114; #[cfg(feature = "v1_24")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] pub const GST_VIDEO_FORMAT_MT2110T: GstVideoFormat = 115; #[cfg(feature = "v1_24")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] pub const GST_VIDEO_FORMAT_MT2110R: GstVideoFormat = 116; #[cfg(feature = "v1_24")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] pub const GST_VIDEO_FORMAT_A422: GstVideoFormat = 117; #[cfg(feature = "v1_24")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] pub const GST_VIDEO_FORMAT_A444: GstVideoFormat = 118; #[cfg(feature = "v1_24")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] pub const GST_VIDEO_FORMAT_A444_12LE: GstVideoFormat = 119; #[cfg(feature = "v1_24")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] pub const GST_VIDEO_FORMAT_A444_12BE: GstVideoFormat = 120; #[cfg(feature = "v1_24")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] pub const GST_VIDEO_FORMAT_A422_12LE: GstVideoFormat = 121; #[cfg(feature = "v1_24")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] pub const GST_VIDEO_FORMAT_A422_12BE: GstVideoFormat = 122; #[cfg(feature = "v1_24")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] pub const GST_VIDEO_FORMAT_A420_12LE: GstVideoFormat = 123; #[cfg(feature = "v1_24")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] pub const GST_VIDEO_FORMAT_A420_12BE: GstVideoFormat = 124; #[cfg(feature = "v1_24")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] pub const GST_VIDEO_FORMAT_A444_16LE: GstVideoFormat = 125; #[cfg(feature = "v1_24")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] pub const GST_VIDEO_FORMAT_A444_16BE: GstVideoFormat = 126; #[cfg(feature = "v1_24")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] pub const GST_VIDEO_FORMAT_A422_16LE: GstVideoFormat = 127; #[cfg(feature = "v1_24")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] pub const GST_VIDEO_FORMAT_A422_16BE: GstVideoFormat = 128; #[cfg(feature = "v1_24")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] pub const GST_VIDEO_FORMAT_A420_16LE: GstVideoFormat = 129; #[cfg(feature = "v1_24")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] pub const GST_VIDEO_FORMAT_A420_16BE: GstVideoFormat = 130; #[cfg(feature = "v1_24")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] pub const GST_VIDEO_FORMAT_GBR_16LE: GstVideoFormat = 131; #[cfg(feature = "v1_24")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] pub const GST_VIDEO_FORMAT_GBR_16BE: GstVideoFormat = 132; #[cfg(feature = "v1_24")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] pub const GST_VIDEO_FORMAT_RBGA: GstVideoFormat = 133; #[cfg(feature = "v1_26")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))] pub const GST_VIDEO_FORMAT_Y216_LE: GstVideoFormat = 134; #[cfg(feature = "v1_26")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))] pub const GST_VIDEO_FORMAT_Y216_BE: GstVideoFormat = 135; #[cfg(feature = "v1_26")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))] pub const GST_VIDEO_FORMAT_Y416_LE: GstVideoFormat = 136; #[cfg(feature = "v1_26")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))] pub const GST_VIDEO_FORMAT_Y416_BE: GstVideoFormat = 137; #[cfg(feature = "v1_26")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))] pub const GST_VIDEO_FORMAT_GRAY10_LE16: GstVideoFormat = 138; #[cfg(feature = "v1_28")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_28")))] pub const GST_VIDEO_FORMAT_NV16_10LE40: GstVideoFormat = 139; pub type GstVideoGLTextureOrientation = c_int; pub const GST_VIDEO_GL_TEXTURE_ORIENTATION_X_NORMAL_Y_NORMAL: GstVideoGLTextureOrientation = 0; pub const GST_VIDEO_GL_TEXTURE_ORIENTATION_X_NORMAL_Y_FLIP: GstVideoGLTextureOrientation = 1; pub const GST_VIDEO_GL_TEXTURE_ORIENTATION_X_FLIP_Y_NORMAL: GstVideoGLTextureOrientation = 2; pub const GST_VIDEO_GL_TEXTURE_ORIENTATION_X_FLIP_Y_FLIP: GstVideoGLTextureOrientation = 3; pub type GstVideoGLTextureType = c_int; pub const GST_VIDEO_GL_TEXTURE_TYPE_LUMINANCE: GstVideoGLTextureType = 0; pub const GST_VIDEO_GL_TEXTURE_TYPE_LUMINANCE_ALPHA: GstVideoGLTextureType = 1; pub const GST_VIDEO_GL_TEXTURE_TYPE_RGB16: GstVideoGLTextureType = 2; pub const GST_VIDEO_GL_TEXTURE_TYPE_RGB: GstVideoGLTextureType = 3; pub const GST_VIDEO_GL_TEXTURE_TYPE_RGBA: GstVideoGLTextureType = 4; pub const GST_VIDEO_GL_TEXTURE_TYPE_R: GstVideoGLTextureType = 5; pub const GST_VIDEO_GL_TEXTURE_TYPE_RG: GstVideoGLTextureType = 6; pub type GstVideoGammaMode = c_int; pub const GST_VIDEO_GAMMA_MODE_NONE: GstVideoGammaMode = 0; pub const GST_VIDEO_GAMMA_MODE_REMAP: GstVideoGammaMode = 1; pub type GstVideoInterlaceMode = c_int; pub const GST_VIDEO_INTERLACE_MODE_PROGRESSIVE: GstVideoInterlaceMode = 0; pub const GST_VIDEO_INTERLACE_MODE_INTERLEAVED: GstVideoInterlaceMode = 1; pub const GST_VIDEO_INTERLACE_MODE_MIXED: GstVideoInterlaceMode = 2; pub const GST_VIDEO_INTERLACE_MODE_FIELDS: GstVideoInterlaceMode = 3; pub const GST_VIDEO_INTERLACE_MODE_ALTERNATE: GstVideoInterlaceMode = 4; pub type GstVideoMatrixMode = c_int; pub const GST_VIDEO_MATRIX_MODE_FULL: GstVideoMatrixMode = 0; pub const GST_VIDEO_MATRIX_MODE_INPUT_ONLY: GstVideoMatrixMode = 1; pub const GST_VIDEO_MATRIX_MODE_OUTPUT_ONLY: GstVideoMatrixMode = 2; pub const GST_VIDEO_MATRIX_MODE_NONE: GstVideoMatrixMode = 3; pub type GstVideoMultiviewFramePacking = c_int; pub const GST_VIDEO_MULTIVIEW_FRAME_PACKING_NONE: GstVideoMultiviewFramePacking = -1; pub const GST_VIDEO_MULTIVIEW_FRAME_PACKING_MONO: GstVideoMultiviewFramePacking = 0; pub const GST_VIDEO_MULTIVIEW_FRAME_PACKING_LEFT: GstVideoMultiviewFramePacking = 1; pub const GST_VIDEO_MULTIVIEW_FRAME_PACKING_RIGHT: GstVideoMultiviewFramePacking = 2; pub const GST_VIDEO_MULTIVIEW_FRAME_PACKING_SIDE_BY_SIDE: GstVideoMultiviewFramePacking = 3; pub const GST_VIDEO_MULTIVIEW_FRAME_PACKING_SIDE_BY_SIDE_QUINCUNX: GstVideoMultiviewFramePacking = 4; pub const GST_VIDEO_MULTIVIEW_FRAME_PACKING_COLUMN_INTERLEAVED: GstVideoMultiviewFramePacking = 5; pub const GST_VIDEO_MULTIVIEW_FRAME_PACKING_ROW_INTERLEAVED: GstVideoMultiviewFramePacking = 6; pub const GST_VIDEO_MULTIVIEW_FRAME_PACKING_TOP_BOTTOM: GstVideoMultiviewFramePacking = 7; pub const GST_VIDEO_MULTIVIEW_FRAME_PACKING_CHECKERBOARD: GstVideoMultiviewFramePacking = 8; pub type GstVideoMultiviewMode = c_int; pub const GST_VIDEO_MULTIVIEW_MODE_NONE: GstVideoMultiviewMode = -1; pub const GST_VIDEO_MULTIVIEW_MODE_MONO: GstVideoMultiviewMode = 0; pub const GST_VIDEO_MULTIVIEW_MODE_LEFT: GstVideoMultiviewMode = 1; pub const GST_VIDEO_MULTIVIEW_MODE_RIGHT: GstVideoMultiviewMode = 2; pub const GST_VIDEO_MULTIVIEW_MODE_SIDE_BY_SIDE: GstVideoMultiviewMode = 3; pub const GST_VIDEO_MULTIVIEW_MODE_SIDE_BY_SIDE_QUINCUNX: GstVideoMultiviewMode = 4; pub const GST_VIDEO_MULTIVIEW_MODE_COLUMN_INTERLEAVED: GstVideoMultiviewMode = 5; pub const GST_VIDEO_MULTIVIEW_MODE_ROW_INTERLEAVED: GstVideoMultiviewMode = 6; pub const GST_VIDEO_MULTIVIEW_MODE_TOP_BOTTOM: GstVideoMultiviewMode = 7; pub const GST_VIDEO_MULTIVIEW_MODE_CHECKERBOARD: GstVideoMultiviewMode = 8; pub const GST_VIDEO_MULTIVIEW_MODE_FRAME_BY_FRAME: GstVideoMultiviewMode = 32; pub const GST_VIDEO_MULTIVIEW_MODE_MULTIVIEW_FRAME_BY_FRAME: GstVideoMultiviewMode = 33; pub const GST_VIDEO_MULTIVIEW_MODE_SEPARATED: GstVideoMultiviewMode = 34; pub type GstVideoOrientationMethod = c_int; pub const GST_VIDEO_ORIENTATION_IDENTITY: GstVideoOrientationMethod = 0; pub const GST_VIDEO_ORIENTATION_90R: GstVideoOrientationMethod = 1; pub const GST_VIDEO_ORIENTATION_180: GstVideoOrientationMethod = 2; pub const GST_VIDEO_ORIENTATION_90L: GstVideoOrientationMethod = 3; pub const GST_VIDEO_ORIENTATION_HORIZ: GstVideoOrientationMethod = 4; pub const GST_VIDEO_ORIENTATION_VERT: GstVideoOrientationMethod = 5; pub const GST_VIDEO_ORIENTATION_UL_LR: GstVideoOrientationMethod = 6; pub const GST_VIDEO_ORIENTATION_UR_LL: GstVideoOrientationMethod = 7; pub const GST_VIDEO_ORIENTATION_AUTO: GstVideoOrientationMethod = 8; pub const GST_VIDEO_ORIENTATION_CUSTOM: GstVideoOrientationMethod = 9; pub type GstVideoPrimariesMode = c_int; pub const GST_VIDEO_PRIMARIES_MODE_NONE: GstVideoPrimariesMode = 0; pub const GST_VIDEO_PRIMARIES_MODE_MERGE_ONLY: GstVideoPrimariesMode = 1; pub const GST_VIDEO_PRIMARIES_MODE_FAST: GstVideoPrimariesMode = 2; pub type GstVideoResamplerMethod = c_int; pub const GST_VIDEO_RESAMPLER_METHOD_NEAREST: GstVideoResamplerMethod = 0; pub const GST_VIDEO_RESAMPLER_METHOD_LINEAR: GstVideoResamplerMethod = 1; pub const GST_VIDEO_RESAMPLER_METHOD_CUBIC: GstVideoResamplerMethod = 2; pub const GST_VIDEO_RESAMPLER_METHOD_SINC: GstVideoResamplerMethod = 3; pub const GST_VIDEO_RESAMPLER_METHOD_LANCZOS: GstVideoResamplerMethod = 4; pub type GstVideoTileMode = c_int; pub const GST_VIDEO_TILE_MODE_UNKNOWN: GstVideoTileMode = 0; pub const GST_VIDEO_TILE_MODE_ZFLIPZ_2X2: GstVideoTileMode = 65536; #[cfg(feature = "v1_18")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub const GST_VIDEO_TILE_MODE_LINEAR: GstVideoTileMode = 131072; pub type GstVideoTileType = c_int; pub const GST_VIDEO_TILE_TYPE_INDEXED: GstVideoTileType = 0; pub type GstVideoTransferFunction = c_int; pub const GST_VIDEO_TRANSFER_UNKNOWN: GstVideoTransferFunction = 0; pub const GST_VIDEO_TRANSFER_GAMMA10: GstVideoTransferFunction = 1; pub const GST_VIDEO_TRANSFER_GAMMA18: GstVideoTransferFunction = 2; pub const GST_VIDEO_TRANSFER_GAMMA20: GstVideoTransferFunction = 3; pub const GST_VIDEO_TRANSFER_GAMMA22: GstVideoTransferFunction = 4; pub const GST_VIDEO_TRANSFER_BT709: GstVideoTransferFunction = 5; pub const GST_VIDEO_TRANSFER_SMPTE240M: GstVideoTransferFunction = 6; pub const GST_VIDEO_TRANSFER_SRGB: GstVideoTransferFunction = 7; pub const GST_VIDEO_TRANSFER_GAMMA28: GstVideoTransferFunction = 8; pub const GST_VIDEO_TRANSFER_LOG100: GstVideoTransferFunction = 9; pub const GST_VIDEO_TRANSFER_LOG316: GstVideoTransferFunction = 10; pub const GST_VIDEO_TRANSFER_BT2020_12: GstVideoTransferFunction = 11; pub const GST_VIDEO_TRANSFER_ADOBERGB: GstVideoTransferFunction = 12; pub const GST_VIDEO_TRANSFER_BT2020_10: GstVideoTransferFunction = 13; pub const GST_VIDEO_TRANSFER_SMPTE2084: GstVideoTransferFunction = 14; pub const GST_VIDEO_TRANSFER_ARIB_STD_B67: GstVideoTransferFunction = 15; #[cfg(feature = "v1_18")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub const GST_VIDEO_TRANSFER_BT601: GstVideoTransferFunction = 16; pub type GstVideoVBIParserResult = c_int; pub const GST_VIDEO_VBI_PARSER_RESULT_DONE: GstVideoVBIParserResult = 0; pub const GST_VIDEO_VBI_PARSER_RESULT_OK: GstVideoVBIParserResult = 1; pub const GST_VIDEO_VBI_PARSER_RESULT_ERROR: GstVideoVBIParserResult = 2; // Constants pub const GST_BUFFER_POOL_OPTION_VIDEO_AFFINE_TRANSFORMATION_META: &[u8] = b"GstBufferPoolOptionVideoAffineTransformation\0"; pub const GST_BUFFER_POOL_OPTION_VIDEO_ALIGNMENT: &[u8] = b"GstBufferPoolOptionVideoAlignment\0"; pub const GST_BUFFER_POOL_OPTION_VIDEO_GL_TEXTURE_UPLOAD_META: &[u8] = b"GstBufferPoolOptionVideoGLTextureUploadMeta\0"; pub const GST_BUFFER_POOL_OPTION_VIDEO_META: &[u8] = b"GstBufferPoolOptionVideoMeta\0"; pub const GST_CAPS_FEATURE_FORMAT_INTERLACED: &[u8] = b"format:Interlaced\0"; pub const GST_CAPS_FEATURE_META_GST_VIDEO_AFFINE_TRANSFORMATION_META: &[u8] = b"meta:GstVideoAffineTransformation\0"; pub const GST_CAPS_FEATURE_META_GST_VIDEO_GL_TEXTURE_UPLOAD_META: &[u8] = b"meta:GstVideoGLTextureUploadMeta\0"; pub const GST_CAPS_FEATURE_META_GST_VIDEO_META: &[u8] = b"meta:GstVideoMeta\0"; pub const GST_CAPS_FEATURE_META_GST_VIDEO_OVERLAY_COMPOSITION: &[u8] = b"meta:GstVideoOverlayComposition\0"; pub const GST_META_TAG_VIDEO_COLORSPACE_STR: &[u8] = b"colorspace\0"; pub const GST_META_TAG_VIDEO_ORIENTATION_STR: &[u8] = b"orientation\0"; pub const GST_META_TAG_VIDEO_SIZE_STR: &[u8] = b"size\0"; pub const GST_META_TAG_VIDEO_STR: &[u8] = b"video\0"; pub const GST_VIDEO_COLORIMETRY_BT2020: &[u8] = b"bt2020\0"; pub const GST_VIDEO_COLORIMETRY_BT2020_10: &[u8] = b"bt2020-10\0"; pub const GST_VIDEO_COLORIMETRY_BT2100_HLG: &[u8] = b"bt2100-hlg\0"; pub const GST_VIDEO_COLORIMETRY_BT2100_PQ: &[u8] = b"bt2100-pq\0"; pub const GST_VIDEO_COLORIMETRY_BT601: &[u8] = b"bt601\0"; pub const GST_VIDEO_COLORIMETRY_BT709: &[u8] = b"bt709\0"; pub const GST_VIDEO_COLORIMETRY_SMPTE240M: &[u8] = b"smpte240m\0"; pub const GST_VIDEO_COLORIMETRY_SRGB: &[u8] = b"sRGB\0"; pub const GST_VIDEO_COMP_A: c_int = 3; pub const GST_VIDEO_COMP_B: c_int = 2; pub const GST_VIDEO_COMP_G: c_int = 1; pub const GST_VIDEO_COMP_INDEX: c_int = 0; pub const GST_VIDEO_COMP_PALETTE: c_int = 1; pub const GST_VIDEO_COMP_R: c_int = 0; pub const GST_VIDEO_COMP_U: c_int = 1; pub const GST_VIDEO_COMP_V: c_int = 2; pub const GST_VIDEO_COMP_Y: c_int = 0; pub const GST_VIDEO_CONVERTER_OPT_ALPHA_MODE: &[u8] = b"GstVideoConverter.alpha-mode\0"; pub const GST_VIDEO_CONVERTER_OPT_ALPHA_VALUE: &[u8] = b"GstVideoConverter.alpha-value\0"; pub const GST_VIDEO_CONVERTER_OPT_ASYNC_TASKS: &[u8] = b"GstVideoConverter.async-tasks\0"; pub const GST_VIDEO_CONVERTER_OPT_BORDER_ARGB: &[u8] = b"GstVideoConverter.border-argb\0"; pub const GST_VIDEO_CONVERTER_OPT_CHROMA_MODE: &[u8] = b"GstVideoConverter.chroma-mode\0"; pub const GST_VIDEO_CONVERTER_OPT_CHROMA_RESAMPLER_METHOD: &[u8] = b"GstVideoConverter.chroma-resampler-method\0"; pub const GST_VIDEO_CONVERTER_OPT_DEST_HEIGHT: &[u8] = b"GstVideoConverter.dest-height\0"; pub const GST_VIDEO_CONVERTER_OPT_DEST_WIDTH: &[u8] = b"GstVideoConverter.dest-width\0"; pub const GST_VIDEO_CONVERTER_OPT_DEST_X: &[u8] = b"GstVideoConverter.dest-x\0"; pub const GST_VIDEO_CONVERTER_OPT_DEST_Y: &[u8] = b"GstVideoConverter.dest-y\0"; pub const GST_VIDEO_CONVERTER_OPT_DITHER_METHOD: &[u8] = b"GstVideoConverter.dither-method\0"; pub const GST_VIDEO_CONVERTER_OPT_DITHER_QUANTIZATION: &[u8] = b"GstVideoConverter.dither-quantization\0"; pub const GST_VIDEO_CONVERTER_OPT_FILL_BORDER: &[u8] = b"GstVideoConverter.fill-border\0"; pub const GST_VIDEO_CONVERTER_OPT_GAMMA_MODE: &[u8] = b"GstVideoConverter.gamma-mode\0"; pub const GST_VIDEO_CONVERTER_OPT_MATRIX_MODE: &[u8] = b"GstVideoConverter.matrix-mode\0"; pub const GST_VIDEO_CONVERTER_OPT_PRIMARIES_MODE: &[u8] = b"GstVideoConverter.primaries-mode\0"; pub const GST_VIDEO_CONVERTER_OPT_RESAMPLER_METHOD: &[u8] = b"GstVideoConverter.resampler-method\0"; pub const GST_VIDEO_CONVERTER_OPT_RESAMPLER_TAPS: &[u8] = b"GstVideoConverter.resampler-taps\0"; pub const GST_VIDEO_CONVERTER_OPT_SRC_HEIGHT: &[u8] = b"GstVideoConverter.src-height\0"; pub const GST_VIDEO_CONVERTER_OPT_SRC_WIDTH: &[u8] = b"GstVideoConverter.src-width\0"; pub const GST_VIDEO_CONVERTER_OPT_SRC_X: &[u8] = b"GstVideoConverter.src-x\0"; pub const GST_VIDEO_CONVERTER_OPT_SRC_Y: &[u8] = b"GstVideoConverter.src-y\0"; pub const GST_VIDEO_CONVERTER_OPT_THREADS: &[u8] = b"GstVideoConverter.threads\0"; pub const GST_VIDEO_DECODER_MAX_ERRORS: c_int = -1; pub const GST_VIDEO_DECODER_SINK_NAME: &[u8] = b"sink\0"; pub const GST_VIDEO_DECODER_SRC_NAME: &[u8] = b"src\0"; pub const GST_VIDEO_ENCODER_SINK_NAME: &[u8] = b"sink\0"; pub const GST_VIDEO_ENCODER_SRC_NAME: &[u8] = b"src\0"; pub const GST_VIDEO_FORMAT_LAST: c_int = 140; pub const GST_VIDEO_FPS_RANGE: &[u8] = b"(fraction) [ 0, max ]\0"; pub const GST_VIDEO_MAX_COMPONENTS: c_int = 4; pub const GST_VIDEO_MAX_PLANES: c_int = 4; pub const GST_VIDEO_RESAMPLER_OPT_CUBIC_B: &[u8] = b"GstVideoResampler.cubic-b\0"; pub const GST_VIDEO_RESAMPLER_OPT_CUBIC_C: &[u8] = b"GstVideoResampler.cubic-c\0"; pub const GST_VIDEO_RESAMPLER_OPT_ENVELOPE: &[u8] = b"GstVideoResampler.envelope\0"; pub const GST_VIDEO_RESAMPLER_OPT_MAX_TAPS: &[u8] = b"GstVideoResampler.max-taps\0"; pub const GST_VIDEO_RESAMPLER_OPT_SHARPEN: &[u8] = b"GstVideoResampler.sharpen\0"; pub const GST_VIDEO_RESAMPLER_OPT_SHARPNESS: &[u8] = b"GstVideoResampler.sharpness\0"; pub const GST_VIDEO_SCALER_OPT_DITHER_METHOD: &[u8] = b"GstVideoScaler.dither-method\0"; pub const GST_VIDEO_SIZE_RANGE: &[u8] = b"(int) [ 1, max ]\0"; pub const GST_VIDEO_TILE_TYPE_MASK: c_int = 65535; pub const GST_VIDEO_TILE_TYPE_SHIFT: c_int = 16; pub const GST_VIDEO_TILE_X_TILES_MASK: c_int = 65535; pub const GST_VIDEO_TILE_Y_TILES_SHIFT: c_int = 16; // Flags pub type GstNavigationModifierType = c_uint; pub const GST_NAVIGATION_MODIFIER_NONE: GstNavigationModifierType = 0; pub const GST_NAVIGATION_MODIFIER_SHIFT_MASK: GstNavigationModifierType = 1; pub const GST_NAVIGATION_MODIFIER_LOCK_MASK: GstNavigationModifierType = 2; pub const GST_NAVIGATION_MODIFIER_CONTROL_MASK: GstNavigationModifierType = 4; pub const GST_NAVIGATION_MODIFIER_MOD1_MASK: GstNavigationModifierType = 8; pub const GST_NAVIGATION_MODIFIER_MOD2_MASK: GstNavigationModifierType = 16; pub const GST_NAVIGATION_MODIFIER_MOD3_MASK: GstNavigationModifierType = 32; pub const GST_NAVIGATION_MODIFIER_MOD4_MASK: GstNavigationModifierType = 64; pub const GST_NAVIGATION_MODIFIER_MOD5_MASK: GstNavigationModifierType = 128; pub const GST_NAVIGATION_MODIFIER_BUTTON1_MASK: GstNavigationModifierType = 256; pub const GST_NAVIGATION_MODIFIER_BUTTON2_MASK: GstNavigationModifierType = 512; pub const GST_NAVIGATION_MODIFIER_BUTTON3_MASK: GstNavigationModifierType = 1024; pub const GST_NAVIGATION_MODIFIER_BUTTON4_MASK: GstNavigationModifierType = 2048; pub const GST_NAVIGATION_MODIFIER_BUTTON5_MASK: GstNavigationModifierType = 4096; pub const GST_NAVIGATION_MODIFIER_SUPER_MASK: GstNavigationModifierType = 67108864; pub const GST_NAVIGATION_MODIFIER_HYPER_MASK: GstNavigationModifierType = 134217728; pub const GST_NAVIGATION_MODIFIER_META_MASK: GstNavigationModifierType = 268435456; pub const GST_NAVIGATION_MODIFIER_MASK: GstNavigationModifierType = 469770239; pub type GstVideoBufferFlags = c_uint; pub const GST_VIDEO_BUFFER_FLAG_INTERLACED: GstVideoBufferFlags = 1048576; pub const GST_VIDEO_BUFFER_FLAG_TFF: GstVideoBufferFlags = 2097152; pub const GST_VIDEO_BUFFER_FLAG_RFF: GstVideoBufferFlags = 4194304; pub const GST_VIDEO_BUFFER_FLAG_ONEFIELD: GstVideoBufferFlags = 8388608; pub const GST_VIDEO_BUFFER_FLAG_MULTIPLE_VIEW: GstVideoBufferFlags = 16777216; pub const GST_VIDEO_BUFFER_FLAG_FIRST_IN_BUNDLE: GstVideoBufferFlags = 33554432; pub const GST_VIDEO_BUFFER_FLAG_TOP_FIELD: GstVideoBufferFlags = 10485760; pub const GST_VIDEO_BUFFER_FLAG_BOTTOM_FIELD: GstVideoBufferFlags = 8388608; pub const GST_VIDEO_BUFFER_FLAG_MARKER: GstVideoBufferFlags = 512; pub const GST_VIDEO_BUFFER_FLAG_LAST: GstVideoBufferFlags = 268435456; pub type GstVideoChromaFlags = c_uint; pub const GST_VIDEO_CHROMA_FLAG_NONE: GstVideoChromaFlags = 0; pub const GST_VIDEO_CHROMA_FLAG_INTERLACED: GstVideoChromaFlags = 1; pub type GstVideoChromaSite = c_uint; pub const GST_VIDEO_CHROMA_SITE_UNKNOWN: GstVideoChromaSite = 0; pub const GST_VIDEO_CHROMA_SITE_NONE: GstVideoChromaSite = 1; pub const GST_VIDEO_CHROMA_SITE_H_COSITED: GstVideoChromaSite = 2; pub const GST_VIDEO_CHROMA_SITE_V_COSITED: GstVideoChromaSite = 4; pub const GST_VIDEO_CHROMA_SITE_ALT_LINE: GstVideoChromaSite = 8; pub const GST_VIDEO_CHROMA_SITE_COSITED: GstVideoChromaSite = 6; pub const GST_VIDEO_CHROMA_SITE_JPEG: GstVideoChromaSite = 1; pub const GST_VIDEO_CHROMA_SITE_MPEG2: GstVideoChromaSite = 2; pub const GST_VIDEO_CHROMA_SITE_DV: GstVideoChromaSite = 14; pub type GstVideoCodecFrameFlags = c_uint; pub const GST_VIDEO_CODEC_FRAME_FLAG_DECODE_ONLY: GstVideoCodecFrameFlags = 1; pub const GST_VIDEO_CODEC_FRAME_FLAG_SYNC_POINT: GstVideoCodecFrameFlags = 2; pub const GST_VIDEO_CODEC_FRAME_FLAG_FORCE_KEYFRAME: GstVideoCodecFrameFlags = 4; pub const GST_VIDEO_CODEC_FRAME_FLAG_FORCE_KEYFRAME_HEADERS: GstVideoCodecFrameFlags = 8; #[cfg(feature = "v1_20")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub const GST_VIDEO_CODEC_FRAME_FLAG_CORRUPTED: GstVideoCodecFrameFlags = 16; pub type GstVideoDecoderRequestSyncPointFlags = c_uint; pub const GST_VIDEO_DECODER_REQUEST_SYNC_POINT_DISCARD_INPUT: GstVideoDecoderRequestSyncPointFlags = 1; pub const GST_VIDEO_DECODER_REQUEST_SYNC_POINT_CORRUPT_OUTPUT: GstVideoDecoderRequestSyncPointFlags = 2; pub type GstVideoDitherFlags = c_uint; pub const GST_VIDEO_DITHER_FLAG_NONE: GstVideoDitherFlags = 0; pub const GST_VIDEO_DITHER_FLAG_INTERLACED: GstVideoDitherFlags = 1; pub const GST_VIDEO_DITHER_FLAG_QUANTIZE: GstVideoDitherFlags = 2; pub type GstVideoFlags = c_uint; pub const GST_VIDEO_FLAG_NONE: GstVideoFlags = 0; pub const GST_VIDEO_FLAG_VARIABLE_FPS: GstVideoFlags = 1; pub const GST_VIDEO_FLAG_PREMULTIPLIED_ALPHA: GstVideoFlags = 2; pub type GstVideoFormatFlags = c_uint; pub const GST_VIDEO_FORMAT_FLAG_YUV: GstVideoFormatFlags = 1; pub const GST_VIDEO_FORMAT_FLAG_RGB: GstVideoFormatFlags = 2; pub const GST_VIDEO_FORMAT_FLAG_GRAY: GstVideoFormatFlags = 4; pub const GST_VIDEO_FORMAT_FLAG_ALPHA: GstVideoFormatFlags = 8; pub const GST_VIDEO_FORMAT_FLAG_LE: GstVideoFormatFlags = 16; pub const GST_VIDEO_FORMAT_FLAG_PALETTE: GstVideoFormatFlags = 32; pub const GST_VIDEO_FORMAT_FLAG_COMPLEX: GstVideoFormatFlags = 64; pub const GST_VIDEO_FORMAT_FLAG_UNPACK: GstVideoFormatFlags = 128; pub const GST_VIDEO_FORMAT_FLAG_TILED: GstVideoFormatFlags = 256; #[cfg(feature = "v1_22")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub const GST_VIDEO_FORMAT_FLAG_SUBTILES: GstVideoFormatFlags = 512; pub type GstVideoFrameFlags = c_uint; pub const GST_VIDEO_FRAME_FLAG_NONE: GstVideoFrameFlags = 0; pub const GST_VIDEO_FRAME_FLAG_INTERLACED: GstVideoFrameFlags = 1; pub const GST_VIDEO_FRAME_FLAG_TFF: GstVideoFrameFlags = 2; pub const GST_VIDEO_FRAME_FLAG_RFF: GstVideoFrameFlags = 4; pub const GST_VIDEO_FRAME_FLAG_ONEFIELD: GstVideoFrameFlags = 8; pub const GST_VIDEO_FRAME_FLAG_MULTIPLE_VIEW: GstVideoFrameFlags = 16; pub const GST_VIDEO_FRAME_FLAG_FIRST_IN_BUNDLE: GstVideoFrameFlags = 32; pub const GST_VIDEO_FRAME_FLAG_TOP_FIELD: GstVideoFrameFlags = 10; pub const GST_VIDEO_FRAME_FLAG_BOTTOM_FIELD: GstVideoFrameFlags = 8; pub type GstVideoFrameMapFlags = c_uint; pub const GST_VIDEO_FRAME_MAP_FLAG_NO_REF: GstVideoFrameMapFlags = 65536; pub const GST_VIDEO_FRAME_MAP_FLAG_LAST: GstVideoFrameMapFlags = 16777216; pub type GstVideoMultiviewFlags = c_uint; pub const GST_VIDEO_MULTIVIEW_FLAGS_NONE: GstVideoMultiviewFlags = 0; pub const GST_VIDEO_MULTIVIEW_FLAGS_RIGHT_VIEW_FIRST: GstVideoMultiviewFlags = 1; pub const GST_VIDEO_MULTIVIEW_FLAGS_LEFT_FLIPPED: GstVideoMultiviewFlags = 2; pub const GST_VIDEO_MULTIVIEW_FLAGS_LEFT_FLOPPED: GstVideoMultiviewFlags = 4; pub const GST_VIDEO_MULTIVIEW_FLAGS_RIGHT_FLIPPED: GstVideoMultiviewFlags = 8; pub const GST_VIDEO_MULTIVIEW_FLAGS_RIGHT_FLOPPED: GstVideoMultiviewFlags = 16; pub const GST_VIDEO_MULTIVIEW_FLAGS_HALF_ASPECT: GstVideoMultiviewFlags = 16384; pub const GST_VIDEO_MULTIVIEW_FLAGS_MIXED_MONO: GstVideoMultiviewFlags = 32768; pub type GstVideoOverlayFormatFlags = c_uint; pub const GST_VIDEO_OVERLAY_FORMAT_FLAG_NONE: GstVideoOverlayFormatFlags = 0; pub const GST_VIDEO_OVERLAY_FORMAT_FLAG_PREMULTIPLIED_ALPHA: GstVideoOverlayFormatFlags = 1; pub const GST_VIDEO_OVERLAY_FORMAT_FLAG_GLOBAL_ALPHA: GstVideoOverlayFormatFlags = 2; pub type GstVideoPackFlags = c_uint; pub const GST_VIDEO_PACK_FLAG_NONE: GstVideoPackFlags = 0; pub const GST_VIDEO_PACK_FLAG_TRUNCATE_RANGE: GstVideoPackFlags = 1; pub const GST_VIDEO_PACK_FLAG_INTERLACED: GstVideoPackFlags = 2; pub type GstVideoResamplerFlags = c_uint; pub const GST_VIDEO_RESAMPLER_FLAG_NONE: GstVideoResamplerFlags = 0; pub const GST_VIDEO_RESAMPLER_FLAG_HALF_TAPS: GstVideoResamplerFlags = 1; pub type GstVideoScalerFlags = c_uint; pub const GST_VIDEO_SCALER_FLAG_NONE: GstVideoScalerFlags = 0; pub const GST_VIDEO_SCALER_FLAG_INTERLACED: GstVideoScalerFlags = 1; pub type GstVideoTimeCodeFlags = c_uint; pub const GST_VIDEO_TIME_CODE_FLAGS_NONE: GstVideoTimeCodeFlags = 0; pub const GST_VIDEO_TIME_CODE_FLAGS_DROP_FRAME: GstVideoTimeCodeFlags = 1; pub const GST_VIDEO_TIME_CODE_FLAGS_INTERLACED: GstVideoTimeCodeFlags = 2; // Unions #[derive(Copy, Clone)] #[repr(C)] pub union GstVideoCodecFrame_abidata { pub ABI: GstVideoCodecFrame_abidata_ABI, pub padding: [gpointer; 20], } impl ::std::fmt::Debug for GstVideoCodecFrame_abidata { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstVideoCodecFrame_abidata @ {self:p}")) .field("ABI", unsafe { &self.ABI }) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub union GstVideoInfo_ABI { pub abi: GstVideoInfo_ABI_abi, pub _gst_reserved: [gpointer; 4], } impl ::std::fmt::Debug for GstVideoInfo_ABI { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstVideoInfo_ABI @ {self:p}")) .field("abi", unsafe { &self.abi }) .finish() } } // Callbacks pub type GstVideoAffineTransformationGetMatrix = Option gboolean>; pub type GstVideoConvertSampleCallback = Option; pub type GstVideoFormatPack = Option< unsafe extern "C" fn( *const GstVideoFormatInfo, GstVideoPackFlags, gpointer, c_int, *mut gpointer, *const c_int, GstVideoChromaSite, c_int, c_int, ), >; pub type GstVideoFormatUnpack = Option< unsafe extern "C" fn( *const GstVideoFormatInfo, GstVideoPackFlags, gpointer, *const gpointer, *const c_int, c_int, c_int, c_int, ), >; pub type GstVideoGLTextureUpload = Option gboolean>; // Records #[derive(Copy, Clone)] #[repr(C)] pub struct GstAncillaryMeta { pub meta: gst::GstMeta, pub field: GstAncillaryMetaField, pub c_not_y_channel: gboolean, pub line: u16, pub offset: u16, pub DID: u16, pub SDID_block_number: u16, pub data_count: u16, pub data: *mut u16, pub checksum: u16, } impl ::std::fmt::Debug for GstAncillaryMeta { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstAncillaryMeta @ {self:p}")) .field("meta", &self.meta) .field("field", &self.field) .field("c_not_y_channel", &self.c_not_y_channel) .field("line", &self.line) .field("offset", &self.offset) .field("DID", &self.DID) .field("SDID_block_number", &self.SDID_block_number) .field("data_count", &self.data_count) .field("data", &self.data) .field("checksum", &self.checksum) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct GstColorBalanceChannelClass { pub parent: gobject::GObjectClass, pub value_changed: Option, pub _gst_reserved: [gpointer; 4], } impl ::std::fmt::Debug for GstColorBalanceChannelClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstColorBalanceChannelClass @ {self:p}")) .field("parent", &self.parent) .field("value_changed", &self.value_changed) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct GstColorBalanceInterface { pub iface: gobject::GTypeInterface, pub list_channels: Option *const glib::GList>, pub set_value: Option, pub get_value: Option c_int>, pub get_balance_type: Option GstColorBalanceType>, pub value_changed: Option, pub _gst_reserved: [gpointer; 4], } impl ::std::fmt::Debug for GstColorBalanceInterface { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstColorBalanceInterface @ {self:p}")) .field("iface", &self.iface) .field("list_channels", &self.list_channels) .field("set_value", &self.set_value) .field("get_value", &self.get_value) .field("get_balance_type", &self.get_balance_type) .field("value_changed", &self.value_changed) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct GstNavigationInterface { pub iface: gobject::GTypeInterface, pub send_event: Option, pub send_event_simple: Option, } impl ::std::fmt::Debug for GstNavigationInterface { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstNavigationInterface @ {self:p}")) .field("iface", &self.iface) .field("send_event", &self.send_event) .field("send_event_simple", &self.send_event_simple) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct GstVideoAFDMeta { pub meta: gst::GstMeta, pub field: u8, pub spec: GstVideoAFDSpec, pub afd: GstVideoAFDValue, } impl ::std::fmt::Debug for GstVideoAFDMeta { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstVideoAFDMeta @ {self:p}")) .field("meta", &self.meta) .field("field", &self.field) .field("spec", &self.spec) .field("afd", &self.afd) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct GstVideoAffineTransformationMeta { pub meta: gst::GstMeta, pub matrix: [c_float; 16], } impl ::std::fmt::Debug for GstVideoAffineTransformationMeta { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstVideoAffineTransformationMeta @ {self:p}")) .field("meta", &self.meta) .field("matrix", &self.matrix) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct GstVideoAggregatorClass { pub parent_class: gst_base::GstAggregatorClass, pub update_caps: Option< unsafe extern "C" fn(*mut GstVideoAggregator, *mut gst::GstCaps) -> *mut gst::GstCaps, >, pub aggregate_frames: Option< unsafe extern "C" fn( *mut GstVideoAggregator, *mut *mut gst::GstBuffer, ) -> gst::GstFlowReturn, >, pub create_output_buffer: Option< unsafe extern "C" fn( *mut GstVideoAggregator, *mut *mut gst::GstBuffer, ) -> gst::GstFlowReturn, >, pub find_best_format: Option< unsafe extern "C" fn( *mut GstVideoAggregator, *mut gst::GstCaps, *mut GstVideoInfo, *mut gboolean, ), >, pub _gst_reserved: [gpointer; 20], } impl ::std::fmt::Debug for GstVideoAggregatorClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstVideoAggregatorClass @ {self:p}")) .field("update_caps", &self.update_caps) .field("aggregate_frames", &self.aggregate_frames) .field("create_output_buffer", &self.create_output_buffer) .field("find_best_format", &self.find_best_format) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct GstVideoAggregatorConvertPadClass { pub parent_class: GstVideoAggregatorPadClass, pub create_conversion_info: Option< unsafe extern "C" fn( *mut GstVideoAggregatorConvertPad, *mut GstVideoAggregator, *mut GstVideoInfo, ), >, pub _gst_reserved: [gpointer; 4], } impl ::std::fmt::Debug for GstVideoAggregatorConvertPadClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstVideoAggregatorConvertPadClass @ {self:p}")) .field("parent_class", &self.parent_class) .field("create_conversion_info", &self.create_conversion_info) .finish() } } #[repr(C)] #[allow(dead_code)] pub struct _GstVideoAggregatorConvertPadPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, } pub type GstVideoAggregatorConvertPadPrivate = _GstVideoAggregatorConvertPadPrivate; #[derive(Copy, Clone)] #[repr(C)] pub struct GstVideoAggregatorPadClass { pub parent_class: gst_base::GstAggregatorPadClass, pub update_conversion_info: Option, pub prepare_frame: Option< unsafe extern "C" fn( *mut GstVideoAggregatorPad, *mut GstVideoAggregator, *mut gst::GstBuffer, *mut GstVideoFrame, ) -> gboolean, >, pub clean_frame: Option< unsafe extern "C" fn( *mut GstVideoAggregatorPad, *mut GstVideoAggregator, *mut GstVideoFrame, ), >, pub prepare_frame_start: Option< unsafe extern "C" fn( *mut GstVideoAggregatorPad, *mut GstVideoAggregator, *mut gst::GstBuffer, *mut GstVideoFrame, ), >, pub prepare_frame_finish: Option< unsafe extern "C" fn( *mut GstVideoAggregatorPad, *mut GstVideoAggregator, *mut GstVideoFrame, ), >, pub _gst_reserved: [gpointer; 18], } impl ::std::fmt::Debug for GstVideoAggregatorPadClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstVideoAggregatorPadClass @ {self:p}")) .field("parent_class", &self.parent_class) .field("update_conversion_info", &self.update_conversion_info) .field("prepare_frame", &self.prepare_frame) .field("clean_frame", &self.clean_frame) .field("prepare_frame_start", &self.prepare_frame_start) .field("prepare_frame_finish", &self.prepare_frame_finish) .field("_gst_reserved", &self._gst_reserved) .finish() } } #[repr(C)] #[allow(dead_code)] pub struct _GstVideoAggregatorPadPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, } pub type GstVideoAggregatorPadPrivate = _GstVideoAggregatorPadPrivate; #[derive(Copy, Clone)] #[repr(C)] pub struct GstVideoAggregatorParallelConvertPadClass { pub parent_class: GstVideoAggregatorConvertPadClass, pub _gst_reserved: [gpointer; 4], } impl ::std::fmt::Debug for GstVideoAggregatorParallelConvertPadClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!( "GstVideoAggregatorParallelConvertPadClass @ {self:p}" )) .field("parent_class", &self.parent_class) .finish() } } #[repr(C)] #[allow(dead_code)] pub struct _GstVideoAggregatorPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, } pub type GstVideoAggregatorPrivate = _GstVideoAggregatorPrivate; #[derive(Copy, Clone)] #[repr(C)] pub struct GstVideoAlignment { pub padding_top: c_uint, pub padding_bottom: c_uint, pub padding_left: c_uint, pub padding_right: c_uint, pub stride_align: [c_uint; 4], } impl ::std::fmt::Debug for GstVideoAlignment { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstVideoAlignment @ {self:p}")) .field("padding_top", &self.padding_top) .field("padding_bottom", &self.padding_bottom) .field("padding_left", &self.padding_left) .field("padding_right", &self.padding_right) .field("stride_align", &self.stride_align) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct GstVideoAncillary { pub DID: u8, pub SDID_block_number: u8, pub data_count: u8, pub data: [u8; 256], pub _gst_reserved: [gpointer; 4], } impl ::std::fmt::Debug for GstVideoAncillary { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstVideoAncillary @ {self:p}")) .field("DID", &self.DID) .field("SDID_block_number", &self.SDID_block_number) .field("data_count", &self.data_count) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct GstVideoBarMeta { pub meta: gst::GstMeta, pub field: u8, pub is_letterbox: gboolean, pub bar_data1: c_uint, pub bar_data2: c_uint, } impl ::std::fmt::Debug for GstVideoBarMeta { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstVideoBarMeta @ {self:p}")) .field("meta", &self.meta) .field("field", &self.field) .field("is_letterbox", &self.is_letterbox) .field("bar_data1", &self.bar_data1) .field("bar_data2", &self.bar_data2) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct GstVideoBufferPoolClass { pub parent_class: gst::GstBufferPoolClass, } impl ::std::fmt::Debug for GstVideoBufferPoolClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstVideoBufferPoolClass @ {self:p}")) .field("parent_class", &self.parent_class) .finish() } } #[repr(C)] #[allow(dead_code)] pub struct _GstVideoBufferPoolPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, } pub type GstVideoBufferPoolPrivate = _GstVideoBufferPoolPrivate; #[derive(Copy, Clone)] #[repr(C)] pub struct GstVideoCaptionMeta { pub meta: gst::GstMeta, pub caption_type: GstVideoCaptionType, pub data: *mut u8, pub size: size_t, } impl ::std::fmt::Debug for GstVideoCaptionMeta { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstVideoCaptionMeta @ {self:p}")) .field("meta", &self.meta) .field("caption_type", &self.caption_type) .field("data", &self.data) .field("size", &self.size) .finish() } } #[repr(C)] #[allow(dead_code)] pub struct _GstVideoChromaResample { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, } pub type GstVideoChromaResample = _GstVideoChromaResample; #[derive(Copy, Clone)] #[repr(C)] pub struct GstVideoCodecAlphaMeta { pub meta: gst::GstMeta, pub buffer: *mut gst::GstBuffer, } impl ::std::fmt::Debug for GstVideoCodecAlphaMeta { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstVideoCodecAlphaMeta @ {self:p}")) .field("meta", &self.meta) .field("buffer", &self.buffer) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct GstVideoCodecFrame { pub ref_count: c_int, pub flags: u32, pub system_frame_number: u32, pub decode_frame_number: u32, pub presentation_frame_number: u32, pub dts: gst::GstClockTime, pub pts: gst::GstClockTime, pub duration: gst::GstClockTime, pub distance_from_sync: c_int, pub input_buffer: *mut gst::GstBuffer, pub output_buffer: *mut gst::GstBuffer, pub deadline: gst::GstClockTime, pub events: *mut glib::GList, pub user_data: gpointer, pub user_data_destroy_notify: glib::GDestroyNotify, pub abidata: GstVideoCodecFrame_abidata, } impl ::std::fmt::Debug for GstVideoCodecFrame { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstVideoCodecFrame @ {self:p}")) .field("system_frame_number", &self.system_frame_number) .field("dts", &self.dts) .field("pts", &self.pts) .field("duration", &self.duration) .field("distance_from_sync", &self.distance_from_sync) .field("input_buffer", &self.input_buffer) .field("output_buffer", &self.output_buffer) .field("deadline", &self.deadline) .field("abidata", &self.abidata) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct GstVideoCodecFrame_abidata_ABI { pub ts: gst::GstClockTime, pub ts2: gst::GstClockTime, pub num_subframes: c_uint, pub subframes_processed: c_uint, } impl ::std::fmt::Debug for GstVideoCodecFrame_abidata_ABI { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstVideoCodecFrame_abidata_ABI @ {self:p}")) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct GstVideoCodecState { pub ref_count: c_int, pub info: GstVideoInfo, pub caps: *mut gst::GstCaps, pub codec_data: *mut gst::GstBuffer, pub allocation_caps: *mut gst::GstCaps, pub mastering_display_info: *mut GstVideoMasteringDisplayInfo, pub content_light_level: *mut GstVideoContentLightLevel, pub padding: [gpointer; 17], } impl ::std::fmt::Debug for GstVideoCodecState { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstVideoCodecState @ {self:p}")) .field("info", &self.info) .field("caps", &self.caps) .field("codec_data", &self.codec_data) .field("allocation_caps", &self.allocation_caps) .field("mastering_display_info", &self.mastering_display_info) .field("content_light_level", &self.content_light_level) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct GstVideoColorPrimariesInfo { pub primaries: GstVideoColorPrimaries, pub Wx: c_double, pub Wy: c_double, pub Rx: c_double, pub Ry: c_double, pub Gx: c_double, pub Gy: c_double, pub Bx: c_double, pub By: c_double, } impl ::std::fmt::Debug for GstVideoColorPrimariesInfo { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstVideoColorPrimariesInfo @ {self:p}")) .field("primaries", &self.primaries) .field("Wx", &self.Wx) .field("Wy", &self.Wy) .field("Rx", &self.Rx) .field("Ry", &self.Ry) .field("Gx", &self.Gx) .field("Gy", &self.Gy) .field("Bx", &self.Bx) .field("By", &self.By) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct GstVideoColorimetry { pub range: GstVideoColorRange, pub matrix: GstVideoColorMatrix, pub transfer: GstVideoTransferFunction, pub primaries: GstVideoColorPrimaries, } impl ::std::fmt::Debug for GstVideoColorimetry { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstVideoColorimetry @ {self:p}")) .field("range", &self.range) .field("matrix", &self.matrix) .field("transfer", &self.transfer) .field("primaries", &self.primaries) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct GstVideoContentLightLevel { pub max_content_light_level: u16, pub max_frame_average_light_level: u16, pub _gst_reserved: [gpointer; 4], } impl ::std::fmt::Debug for GstVideoContentLightLevel { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstVideoContentLightLevel @ {self:p}")) .field("max_content_light_level", &self.max_content_light_level) .field( "max_frame_average_light_level", &self.max_frame_average_light_level, ) .finish() } } #[repr(C)] #[allow(dead_code)] pub struct _GstVideoConverter { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, } pub type GstVideoConverter = _GstVideoConverter; #[derive(Copy, Clone)] #[repr(C)] pub struct GstVideoCropMeta { pub meta: gst::GstMeta, pub x: c_uint, pub y: c_uint, pub width: c_uint, pub height: c_uint, } impl ::std::fmt::Debug for GstVideoCropMeta { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstVideoCropMeta @ {self:p}")) .field("meta", &self.meta) .field("x", &self.x) .field("y", &self.y) .field("width", &self.width) .field("height", &self.height) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct GstVideoDecoderClass { pub element_class: gst::GstElementClass, pub open: Option gboolean>, pub close: Option gboolean>, pub start: Option gboolean>, pub stop: Option gboolean>, pub parse: Option< unsafe extern "C" fn( *mut GstVideoDecoder, *mut GstVideoCodecFrame, *mut gst_base::GstAdapter, gboolean, ) -> gst::GstFlowReturn, >, pub set_format: Option gboolean>, pub reset: Option gboolean>, pub finish: Option gst::GstFlowReturn>, pub handle_frame: Option< unsafe extern "C" fn(*mut GstVideoDecoder, *mut GstVideoCodecFrame) -> gst::GstFlowReturn, >, pub sink_event: Option gboolean>, pub src_event: Option gboolean>, pub negotiate: Option gboolean>, pub decide_allocation: Option gboolean>, pub propose_allocation: Option gboolean>, pub flush: Option gboolean>, pub sink_query: Option gboolean>, pub src_query: Option gboolean>, pub getcaps: Option *mut gst::GstCaps>, pub drain: Option gst::GstFlowReturn>, pub transform_meta: Option< unsafe extern "C" fn( *mut GstVideoDecoder, *mut GstVideoCodecFrame, *mut gst::GstMeta, ) -> gboolean, >, pub handle_missing_data: Option< unsafe extern "C" fn( *mut GstVideoDecoder, gst::GstClockTime, gst::GstClockTime, ) -> gboolean, >, pub padding: [gpointer; 13], } impl ::std::fmt::Debug for GstVideoDecoderClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstVideoDecoderClass @ {self:p}")) .field("open", &self.open) .field("close", &self.close) .field("start", &self.start) .field("stop", &self.stop) .field("parse", &self.parse) .field("set_format", &self.set_format) .field("reset", &self.reset) .field("finish", &self.finish) .field("handle_frame", &self.handle_frame) .field("sink_event", &self.sink_event) .field("src_event", &self.src_event) .field("negotiate", &self.negotiate) .field("decide_allocation", &self.decide_allocation) .field("propose_allocation", &self.propose_allocation) .field("flush", &self.flush) .field("sink_query", &self.sink_query) .field("src_query", &self.src_query) .field("getcaps", &self.getcaps) .field("drain", &self.drain) .field("transform_meta", &self.transform_meta) .field("handle_missing_data", &self.handle_missing_data) .finish() } } #[repr(C)] #[allow(dead_code)] pub struct _GstVideoDecoderPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, } pub type GstVideoDecoderPrivate = _GstVideoDecoderPrivate; #[derive(Copy, Clone)] #[repr(C)] pub struct GstVideoDirectionInterface { pub iface: gobject::GTypeInterface, } impl ::std::fmt::Debug for GstVideoDirectionInterface { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstVideoDirectionInterface @ {self:p}")) .field("iface", &self.iface) .finish() } } #[repr(C)] #[allow(dead_code)] pub struct _GstVideoDither { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, } pub type GstVideoDither = _GstVideoDither; #[derive(Copy, Clone)] #[repr(C)] pub struct GstVideoEncoderClass { pub element_class: gst::GstElementClass, pub open: Option gboolean>, pub close: Option gboolean>, pub start: Option gboolean>, pub stop: Option gboolean>, pub set_format: Option gboolean>, pub handle_frame: Option< unsafe extern "C" fn(*mut GstVideoEncoder, *mut GstVideoCodecFrame) -> gst::GstFlowReturn, >, pub reset: Option gboolean>, pub finish: Option gst::GstFlowReturn>, pub pre_push: Option< unsafe extern "C" fn(*mut GstVideoEncoder, *mut GstVideoCodecFrame) -> gst::GstFlowReturn, >, pub getcaps: Option *mut gst::GstCaps>, pub sink_event: Option gboolean>, pub src_event: Option gboolean>, pub negotiate: Option gboolean>, pub decide_allocation: Option gboolean>, pub propose_allocation: Option gboolean>, pub flush: Option gboolean>, pub sink_query: Option gboolean>, pub src_query: Option gboolean>, pub transform_meta: Option< unsafe extern "C" fn( *mut GstVideoEncoder, *mut GstVideoCodecFrame, *mut gst::GstMeta, ) -> gboolean, >, pub _gst_reserved: [gpointer; 16], } impl ::std::fmt::Debug for GstVideoEncoderClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstVideoEncoderClass @ {self:p}")) .field("open", &self.open) .field("close", &self.close) .field("start", &self.start) .field("stop", &self.stop) .field("set_format", &self.set_format) .field("handle_frame", &self.handle_frame) .field("reset", &self.reset) .field("finish", &self.finish) .field("pre_push", &self.pre_push) .field("getcaps", &self.getcaps) .field("sink_event", &self.sink_event) .field("src_event", &self.src_event) .field("negotiate", &self.negotiate) .field("decide_allocation", &self.decide_allocation) .field("propose_allocation", &self.propose_allocation) .field("flush", &self.flush) .field("sink_query", &self.sink_query) .field("src_query", &self.src_query) .field("transform_meta", &self.transform_meta) .finish() } } #[repr(C)] #[allow(dead_code)] pub struct _GstVideoEncoderPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, } pub type GstVideoEncoderPrivate = _GstVideoEncoderPrivate; #[derive(Copy, Clone)] #[repr(C)] pub struct GstVideoFilterClass { pub parent_class: gst_base::GstBaseTransformClass, pub set_info: Option< unsafe extern "C" fn( *mut GstVideoFilter, *mut gst::GstCaps, *mut GstVideoInfo, *mut gst::GstCaps, *mut GstVideoInfo, ) -> gboolean, >, pub transform_frame: Option< unsafe extern "C" fn( *mut GstVideoFilter, *mut GstVideoFrame, *mut GstVideoFrame, ) -> gst::GstFlowReturn, >, pub transform_frame_ip: Option gst::GstFlowReturn>, pub _gst_reserved: [gpointer; 4], } impl ::std::fmt::Debug for GstVideoFilterClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstVideoFilterClass @ {self:p}")) .field("parent_class", &self.parent_class) .field("set_info", &self.set_info) .field("transform_frame", &self.transform_frame) .field("transform_frame_ip", &self.transform_frame_ip) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct GstVideoFormatInfo { pub format: GstVideoFormat, pub name: *const c_char, pub description: *const c_char, pub flags: GstVideoFormatFlags, pub bits: c_uint, pub n_components: c_uint, pub shift: [c_uint; 4], pub depth: [c_uint; 4], pub pixel_stride: [c_int; 4], pub n_planes: c_uint, pub plane: [c_uint; 4], pub poffset: [c_uint; 4], pub w_sub: [c_uint; 4], pub h_sub: [c_uint; 4], pub unpack_format: GstVideoFormat, pub unpack_func: GstVideoFormatUnpack, pub pack_lines: c_int, pub pack_func: GstVideoFormatPack, pub tile_mode: GstVideoTileMode, pub tile_ws: c_uint, pub tile_hs: c_uint, pub tile_info: [GstVideoTileInfo; 4], } impl ::std::fmt::Debug for GstVideoFormatInfo { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstVideoFormatInfo @ {self:p}")) .field("format", &self.format) .field("name", &self.name) .field("description", &self.description) .field("flags", &self.flags) .field("bits", &self.bits) .field("n_components", &self.n_components) .field("shift", &self.shift) .field("depth", &self.depth) .field("pixel_stride", &self.pixel_stride) .field("n_planes", &self.n_planes) .field("plane", &self.plane) .field("poffset", &self.poffset) .field("w_sub", &self.w_sub) .field("h_sub", &self.h_sub) .field("unpack_format", &self.unpack_format) .field("unpack_func", &self.unpack_func) .field("pack_lines", &self.pack_lines) .field("pack_func", &self.pack_func) .field("tile_mode", &self.tile_mode) .field("tile_ws", &self.tile_ws) .field("tile_hs", &self.tile_hs) .field("tile_info", &self.tile_info) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct GstVideoFrame { pub info: GstVideoInfo, pub flags: GstVideoFrameFlags, pub buffer: *mut gst::GstBuffer, pub meta: gpointer, pub id: c_int, pub data: [gpointer; 4], pub map: [gst::GstMapInfo; 4], pub _gst_reserved: [gpointer; 4], } impl ::std::fmt::Debug for GstVideoFrame { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstVideoFrame @ {self:p}")) .field("info", &self.info) .field("flags", &self.flags) .field("buffer", &self.buffer) .field("meta", &self.meta) .field("id", &self.id) .field("data", &self.data) .field("map", &self.map) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct GstVideoGLTextureUploadMeta { pub meta: gst::GstMeta, pub texture_orientation: GstVideoGLTextureOrientation, pub n_textures: c_uint, pub texture_type: [GstVideoGLTextureType; 4], pub buffer: *mut gst::GstBuffer, pub upload: GstVideoGLTextureUpload, pub user_data: gpointer, pub user_data_copy: gobject::GBoxedCopyFunc, pub user_data_free: gobject::GBoxedFreeFunc, } impl ::std::fmt::Debug for GstVideoGLTextureUploadMeta { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstVideoGLTextureUploadMeta @ {self:p}")) .field("meta", &self.meta) .field("texture_orientation", &self.texture_orientation) .field("n_textures", &self.n_textures) .field("texture_type", &self.texture_type) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct GstVideoInfo { pub finfo: *const GstVideoFormatInfo, pub interlace_mode: GstVideoInterlaceMode, pub flags: GstVideoFlags, pub width: c_int, pub height: c_int, pub size: size_t, pub views: c_int, pub chroma_site: GstVideoChromaSite, pub colorimetry: GstVideoColorimetry, pub par_n: c_int, pub par_d: c_int, pub fps_n: c_int, pub fps_d: c_int, pub offset: [size_t; 4], pub stride: [c_int; 4], pub ABI: GstVideoInfo_ABI, } impl ::std::fmt::Debug for GstVideoInfo { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstVideoInfo @ {self:p}")) .field("finfo", &self.finfo) .field("interlace_mode", &self.interlace_mode) .field("flags", &self.flags) .field("width", &self.width) .field("height", &self.height) .field("size", &self.size) .field("views", &self.views) .field("chroma_site", &self.chroma_site) .field("colorimetry", &self.colorimetry) .field("par_n", &self.par_n) .field("par_d", &self.par_d) .field("fps_n", &self.fps_n) .field("fps_d", &self.fps_d) .field("offset", &self.offset) .field("stride", &self.stride) .field("ABI", &self.ABI) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct GstVideoInfoDmaDrm { pub vinfo: GstVideoInfo, pub drm_fourcc: u32, pub drm_modifier: u64, pub _gst_reserved: [u32; 20], } impl ::std::fmt::Debug for GstVideoInfoDmaDrm { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstVideoInfoDmaDrm @ {self:p}")) .field("vinfo", &self.vinfo) .field("drm_fourcc", &self.drm_fourcc) .field("drm_modifier", &self.drm_modifier) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct GstVideoInfo_ABI_abi { pub multiview_mode: GstVideoMultiviewMode, pub multiview_flags: GstVideoMultiviewFlags, pub field_order: GstVideoFieldOrder, } impl ::std::fmt::Debug for GstVideoInfo_ABI_abi { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstVideoInfo_ABI_abi @ {self:p}")) .field("multiview_mode", &self.multiview_mode) .field("multiview_flags", &self.multiview_flags) .field("field_order", &self.field_order) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct GstVideoMasteringDisplayInfo { pub display_primaries: [GstVideoMasteringDisplayInfoCoordinates; 3], pub white_point: GstVideoMasteringDisplayInfoCoordinates, pub max_display_mastering_luminance: u32, pub min_display_mastering_luminance: u32, pub _gst_reserved: [gpointer; 4], } impl ::std::fmt::Debug for GstVideoMasteringDisplayInfo { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstVideoMasteringDisplayInfo @ {self:p}")) .field("display_primaries", &self.display_primaries) .field("white_point", &self.white_point) .field( "max_display_mastering_luminance", &self.max_display_mastering_luminance, ) .field( "min_display_mastering_luminance", &self.min_display_mastering_luminance, ) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct GstVideoMasteringDisplayInfoCoordinates { pub x: u16, pub y: u16, } impl ::std::fmt::Debug for GstVideoMasteringDisplayInfoCoordinates { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!( "GstVideoMasteringDisplayInfoCoordinates @ {self:p}" )) .field("x", &self.x) .field("y", &self.y) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct GstVideoMeta { pub meta: gst::GstMeta, pub buffer: *mut gst::GstBuffer, pub flags: GstVideoFrameFlags, pub format: GstVideoFormat, pub id: c_int, pub width: c_uint, pub height: c_uint, pub n_planes: c_uint, pub offset: [size_t; 4], pub stride: [c_int; 4], pub map: Option< unsafe extern "C" fn( *mut GstVideoMeta, c_uint, *mut gst::GstMapInfo, *mut gpointer, *mut c_int, gst::GstMapFlags, ) -> gboolean, >, pub unmap: Option gboolean>, pub alignment: GstVideoAlignment, } impl ::std::fmt::Debug for GstVideoMeta { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstVideoMeta @ {self:p}")) .field("meta", &self.meta) .field("buffer", &self.buffer) .field("flags", &self.flags) .field("format", &self.format) .field("id", &self.id) .field("width", &self.width) .field("height", &self.height) .field("n_planes", &self.n_planes) .field("offset", &self.offset) .field("stride", &self.stride) .field("map", &self.map) .field("unmap", &self.unmap) .field("alignment", &self.alignment) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct GstVideoMetaTransform { pub in_info: *mut GstVideoInfo, pub out_info: *mut GstVideoInfo, } impl ::std::fmt::Debug for GstVideoMetaTransform { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstVideoMetaTransform @ {self:p}")) .field("in_info", &self.in_info) .field("out_info", &self.out_info) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct GstVideoOrientationInterface { pub iface: gobject::GTypeInterface, pub get_hflip: Option gboolean>, pub get_vflip: Option gboolean>, pub get_hcenter: Option gboolean>, pub get_vcenter: Option gboolean>, pub set_hflip: Option gboolean>, pub set_vflip: Option gboolean>, pub set_hcenter: Option gboolean>, pub set_vcenter: Option gboolean>, } impl ::std::fmt::Debug for GstVideoOrientationInterface { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstVideoOrientationInterface @ {self:p}")) .field("iface", &self.iface) .field("get_hflip", &self.get_hflip) .field("get_vflip", &self.get_vflip) .field("get_hcenter", &self.get_hcenter) .field("get_vcenter", &self.get_vcenter) .field("set_hflip", &self.set_hflip) .field("set_vflip", &self.set_vflip) .field("set_hcenter", &self.set_hcenter) .field("set_vcenter", &self.set_vcenter) .finish() } } #[repr(C)] #[allow(dead_code)] pub struct GstVideoOverlayComposition { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, } impl ::std::fmt::Debug for GstVideoOverlayComposition { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstVideoOverlayComposition @ {self:p}")) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct GstVideoOverlayCompositionMeta { pub meta: gst::GstMeta, pub overlay: *mut GstVideoOverlayComposition, } impl ::std::fmt::Debug for GstVideoOverlayCompositionMeta { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstVideoOverlayCompositionMeta @ {self:p}")) .field("meta", &self.meta) .field("overlay", &self.overlay) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct GstVideoOverlayInterface { pub iface: gobject::GTypeInterface, pub expose: Option, pub handle_events: Option, pub set_render_rectangle: Option, pub set_window_handle: Option, } impl ::std::fmt::Debug for GstVideoOverlayInterface { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstVideoOverlayInterface @ {self:p}")) .field("iface", &self.iface) .field("expose", &self.expose) .field("handle_events", &self.handle_events) .field("set_render_rectangle", &self.set_render_rectangle) .field("set_window_handle", &self.set_window_handle) .finish() } } #[repr(C)] #[allow(dead_code)] pub struct GstVideoOverlayRectangle { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, } impl ::std::fmt::Debug for GstVideoOverlayRectangle { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstVideoOverlayRectangle @ {self:p}")) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct GstVideoRectangle { pub x: c_int, pub y: c_int, pub w: c_int, pub h: c_int, } impl ::std::fmt::Debug for GstVideoRectangle { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstVideoRectangle @ {self:p}")) .field("x", &self.x) .field("y", &self.y) .field("w", &self.w) .field("h", &self.h) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct GstVideoRegionOfInterestMeta { pub meta: gst::GstMeta, pub roi_type: glib::GQuark, pub id: c_int, pub parent_id: c_int, pub x: c_uint, pub y: c_uint, pub w: c_uint, pub h: c_uint, pub params: *mut glib::GList, } impl ::std::fmt::Debug for GstVideoRegionOfInterestMeta { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstVideoRegionOfInterestMeta @ {self:p}")) .field("meta", &self.meta) .field("roi_type", &self.roi_type) .field("id", &self.id) .field("parent_id", &self.parent_id) .field("x", &self.x) .field("y", &self.y) .field("w", &self.w) .field("h", &self.h) .field("params", &self.params) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct GstVideoResampler { pub in_size: c_int, pub out_size: c_int, pub max_taps: c_uint, pub n_phases: c_uint, pub offset: *mut u32, pub phase: *mut u32, pub n_taps: *mut u32, pub taps: *mut c_double, pub _gst_reserved: [gpointer; 4], } impl ::std::fmt::Debug for GstVideoResampler { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstVideoResampler @ {self:p}")) .field("in_size", &self.in_size) .field("out_size", &self.out_size) .field("max_taps", &self.max_taps) .field("n_phases", &self.n_phases) .field("offset", &self.offset) .field("phase", &self.phase) .field("n_taps", &self.n_taps) .field("taps", &self.taps) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct GstVideoSEIUserDataUnregisteredMeta { pub meta: gst::GstMeta, pub uuid: [u8; 16], pub data: *mut u8, pub size: size_t, } impl ::std::fmt::Debug for GstVideoSEIUserDataUnregisteredMeta { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstVideoSEIUserDataUnregisteredMeta @ {self:p}")) .field("meta", &self.meta) .field("uuid", &self.uuid) .field("data", &self.data) .field("size", &self.size) .finish() } } #[repr(C)] #[allow(dead_code)] pub struct _GstVideoScaler { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, } pub type GstVideoScaler = _GstVideoScaler; #[derive(Copy, Clone)] #[repr(C)] pub struct GstVideoSinkClass { pub parent_class: gst_base::GstBaseSinkClass, pub show_frame: Option gst::GstFlowReturn>, pub set_info: Option< unsafe extern "C" fn(*mut GstVideoSink, *mut gst::GstCaps, *const GstVideoInfo) -> gboolean, >, pub _gst_reserved: [gpointer; 3], } impl ::std::fmt::Debug for GstVideoSinkClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstVideoSinkClass @ {self:p}")) .field("parent_class", &self.parent_class) .field("show_frame", &self.show_frame) .field("set_info", &self.set_info) .finish() } } #[repr(C)] #[allow(dead_code)] pub struct _GstVideoSinkPrivate { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, } pub type GstVideoSinkPrivate = _GstVideoSinkPrivate; #[derive(Copy, Clone)] #[repr(C)] pub struct GstVideoTileInfo { pub width: c_uint, pub height: c_uint, pub stride: c_uint, pub size: c_uint, pub padding: [u32; 4], } impl ::std::fmt::Debug for GstVideoTileInfo { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstVideoTileInfo @ {self:p}")) .field("width", &self.width) .field("height", &self.height) .field("stride", &self.stride) .field("size", &self.size) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct GstVideoTimeCode { pub config: GstVideoTimeCodeConfig, pub hours: c_uint, pub minutes: c_uint, pub seconds: c_uint, pub frames: c_uint, pub field_count: c_uint, } impl ::std::fmt::Debug for GstVideoTimeCode { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstVideoTimeCode @ {self:p}")) .field("config", &self.config) .field("hours", &self.hours) .field("minutes", &self.minutes) .field("seconds", &self.seconds) .field("frames", &self.frames) .field("field_count", &self.field_count) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct GstVideoTimeCodeConfig { pub fps_n: c_uint, pub fps_d: c_uint, pub flags: GstVideoTimeCodeFlags, pub latest_daily_jam: *mut glib::GDateTime, } impl ::std::fmt::Debug for GstVideoTimeCodeConfig { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstVideoTimeCodeConfig @ {self:p}")) .field("fps_n", &self.fps_n) .field("fps_d", &self.fps_d) .field("flags", &self.flags) .field("latest_daily_jam", &self.latest_daily_jam) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct GstVideoTimeCodeInterval { pub hours: c_uint, pub minutes: c_uint, pub seconds: c_uint, pub frames: c_uint, } impl ::std::fmt::Debug for GstVideoTimeCodeInterval { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstVideoTimeCodeInterval @ {self:p}")) .field("hours", &self.hours) .field("minutes", &self.minutes) .field("seconds", &self.seconds) .field("frames", &self.frames) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct GstVideoTimeCodeMeta { pub meta: gst::GstMeta, pub tc: GstVideoTimeCode, } impl ::std::fmt::Debug for GstVideoTimeCodeMeta { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstVideoTimeCodeMeta @ {self:p}")) .field("meta", &self.meta) .field("tc", &self.tc) .finish() } } #[repr(C)] #[allow(dead_code)] pub struct GstVideoVBIEncoder { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, } impl ::std::fmt::Debug for GstVideoVBIEncoder { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstVideoVBIEncoder @ {self:p}")) .finish() } } #[repr(C)] #[allow(dead_code)] pub struct GstVideoVBIParser { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, } impl ::std::fmt::Debug for GstVideoVBIParser { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstVideoVBIParser @ {self:p}")) .finish() } } // Classes #[derive(Copy, Clone)] #[repr(C)] pub struct GstColorBalanceChannel { pub parent: gobject::GObject, pub label: *mut c_char, pub min_value: c_int, pub max_value: c_int, pub _gst_reserved: [gpointer; 4], } impl ::std::fmt::Debug for GstColorBalanceChannel { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstColorBalanceChannel @ {self:p}")) .field("parent", &self.parent) .field("label", &self.label) .field("min_value", &self.min_value) .field("max_value", &self.max_value) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct GstVideoAggregator { pub aggregator: gst_base::GstAggregator, pub info: GstVideoInfo, pub priv_: *mut GstVideoAggregatorPrivate, pub _gst_reserved: [gpointer; 20], } impl ::std::fmt::Debug for GstVideoAggregator { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstVideoAggregator @ {self:p}")) .field("aggregator", &self.aggregator) .field("info", &self.info) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct GstVideoAggregatorConvertPad { pub parent: GstVideoAggregatorPad, pub priv_: *mut GstVideoAggregatorConvertPadPrivate, pub _gst_reserved: [gpointer; 4], } impl ::std::fmt::Debug for GstVideoAggregatorConvertPad { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstVideoAggregatorConvertPad @ {self:p}")) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct GstVideoAggregatorPad { pub parent: gst_base::GstAggregatorPad, pub info: GstVideoInfo, pub priv_: *mut GstVideoAggregatorPadPrivate, pub _gst_reserved: [gpointer; 4], } impl ::std::fmt::Debug for GstVideoAggregatorPad { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstVideoAggregatorPad @ {self:p}")) .field("parent", &self.parent) .field("info", &self.info) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct GstVideoAggregatorParallelConvertPad { pub parent_instance: GstVideoAggregatorConvertPad, } impl ::std::fmt::Debug for GstVideoAggregatorParallelConvertPad { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstVideoAggregatorParallelConvertPad @ {self:p}")) .field("parent_instance", &self.parent_instance) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct GstVideoBufferPool { pub bufferpool: gst::GstBufferPool, pub priv_: *mut GstVideoBufferPoolPrivate, } impl ::std::fmt::Debug for GstVideoBufferPool { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstVideoBufferPool @ {self:p}")) .field("bufferpool", &self.bufferpool) .field("priv_", &self.priv_) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct GstVideoDecoder { pub element: gst::GstElement, pub sinkpad: *mut gst::GstPad, pub srcpad: *mut gst::GstPad, pub stream_lock: glib::GRecMutex, pub input_segment: gst::GstSegment, pub output_segment: gst::GstSegment, pub priv_: *mut GstVideoDecoderPrivate, pub padding: [gpointer; 20], } impl ::std::fmt::Debug for GstVideoDecoder { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstVideoDecoder @ {self:p}")) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct GstVideoEncoder { pub element: gst::GstElement, pub sinkpad: *mut gst::GstPad, pub srcpad: *mut gst::GstPad, pub stream_lock: glib::GRecMutex, pub input_segment: gst::GstSegment, pub output_segment: gst::GstSegment, pub priv_: *mut GstVideoEncoderPrivate, pub padding: [gpointer; 20], } impl ::std::fmt::Debug for GstVideoEncoder { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstVideoEncoder @ {self:p}")) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct GstVideoFilter { pub element: gst_base::GstBaseTransform, pub negotiated: gboolean, pub in_info: GstVideoInfo, pub out_info: GstVideoInfo, pub _gst_reserved: [gpointer; 4], } impl ::std::fmt::Debug for GstVideoFilter { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstVideoFilter @ {self:p}")) .field("element", &self.element) .field("negotiated", &self.negotiated) .field("in_info", &self.in_info) .field("out_info", &self.out_info) .finish() } } #[repr(C)] #[allow(dead_code)] pub struct GstVideoMultiviewFlagsSet { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, } impl ::std::fmt::Debug for GstVideoMultiviewFlagsSet { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstVideoMultiviewFlagsSet @ {self:p}")) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct GstVideoSink { pub element: gst_base::GstBaseSink, pub width: c_int, pub height: c_int, pub priv_: *mut GstVideoSinkPrivate, pub _gst_reserved: [gpointer; 4], } impl ::std::fmt::Debug for GstVideoSink { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("GstVideoSink @ {self:p}")) .field("element", &self.element) .field("width", &self.width) .field("height", &self.height) .finish() } } // Interfaces #[repr(C)] #[allow(dead_code)] pub struct GstColorBalance { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, } impl ::std::fmt::Debug for GstColorBalance { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { write!(f, "GstColorBalance @ {self:p}") } } #[repr(C)] #[allow(dead_code)] pub struct GstNavigation { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, } impl ::std::fmt::Debug for GstNavigation { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { write!(f, "GstNavigation @ {self:p}") } } #[repr(C)] #[allow(dead_code)] pub struct GstVideoDirection { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, } impl ::std::fmt::Debug for GstVideoDirection { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { write!(f, "GstVideoDirection @ {self:p}") } } #[repr(C)] #[allow(dead_code)] pub struct GstVideoOrientation { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, } impl ::std::fmt::Debug for GstVideoOrientation { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { write!(f, "GstVideoOrientation @ {self:p}") } } #[repr(C)] #[allow(dead_code)] pub struct GstVideoOverlay { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, } impl ::std::fmt::Debug for GstVideoOverlay { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { write!(f, "GstVideoOverlay @ {self:p}") } } extern "C" { //========================================================================= // GstAncillaryMetaField //========================================================================= #[cfg(feature = "v1_24")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] pub fn gst_ancillary_meta_field_get_type() -> GType; //========================================================================= // GstColorBalanceType //========================================================================= pub fn gst_color_balance_type_get_type() -> GType; //========================================================================= // GstNavigationCommand //========================================================================= pub fn gst_navigation_command_get_type() -> GType; //========================================================================= // GstNavigationEventType //========================================================================= pub fn gst_navigation_event_type_get_type() -> GType; //========================================================================= // GstNavigationMessageType //========================================================================= pub fn gst_navigation_message_type_get_type() -> GType; //========================================================================= // GstNavigationQueryType //========================================================================= pub fn gst_navigation_query_type_get_type() -> GType; //========================================================================= // GstVideoAFDSpec //========================================================================= #[cfg(feature = "v1_18")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_video_afd_spec_get_type() -> GType; //========================================================================= // GstVideoAFDValue //========================================================================= #[cfg(feature = "v1_18")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_video_afd_value_get_type() -> GType; //========================================================================= // GstVideoAlphaMode //========================================================================= pub fn gst_video_alpha_mode_get_type() -> GType; //========================================================================= // GstVideoAncillaryDID //========================================================================= #[cfg(feature = "v1_16")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_video_ancillary_did_get_type() -> GType; //========================================================================= // GstVideoAncillaryDID16 //========================================================================= #[cfg(feature = "v1_16")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_video_ancillary_di_d16_get_type() -> GType; //========================================================================= // GstVideoCaptionType //========================================================================= #[cfg(feature = "v1_16")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_video_caption_type_get_type() -> GType; #[cfg(feature = "v1_16")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_video_caption_type_from_caps(caps: *const gst::GstCaps) -> GstVideoCaptionType; #[cfg(feature = "v1_16")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_video_caption_type_to_caps(type_: GstVideoCaptionType) -> *mut gst::GstCaps; //========================================================================= // GstVideoChromaMethod //========================================================================= pub fn gst_video_chroma_method_get_type() -> GType; //========================================================================= // GstVideoChromaMode //========================================================================= pub fn gst_video_chroma_mode_get_type() -> GType; //========================================================================= // GstVideoColorMatrix //========================================================================= pub fn gst_video_color_matrix_get_type() -> GType; #[cfg(feature = "v1_18")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_video_color_matrix_from_iso(value: c_uint) -> GstVideoColorMatrix; pub fn gst_video_color_matrix_get_Kr_Kb( matrix: GstVideoColorMatrix, Kr: *mut c_double, Kb: *mut c_double, ) -> gboolean; #[cfg(feature = "v1_18")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_video_color_matrix_to_iso(matrix: GstVideoColorMatrix) -> c_uint; //========================================================================= // GstVideoColorPrimaries //========================================================================= pub fn gst_video_color_primaries_get_type() -> GType; #[cfg(feature = "v1_18")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_video_color_primaries_from_iso(value: c_uint) -> GstVideoColorPrimaries; pub fn gst_video_color_primaries_get_info( primaries: GstVideoColorPrimaries, ) -> *const GstVideoColorPrimariesInfo; #[cfg(feature = "v1_22")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_video_color_primaries_is_equivalent( primaries: GstVideoColorPrimaries, other: GstVideoColorPrimaries, ) -> gboolean; #[cfg(feature = "v1_18")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_video_color_primaries_to_iso(primaries: GstVideoColorPrimaries) -> c_uint; //========================================================================= // GstVideoColorRange //========================================================================= pub fn gst_video_color_range_get_type() -> GType; pub fn gst_video_color_range_offsets( range: GstVideoColorRange, info: *const GstVideoFormatInfo, offset: *mut [c_int; 4], scale: *mut [c_int; 4], ); //========================================================================= // GstVideoDitherMethod //========================================================================= pub fn gst_video_dither_method_get_type() -> GType; //========================================================================= // GstVideoFieldOrder //========================================================================= pub fn gst_video_field_order_get_type() -> GType; pub fn gst_video_field_order_from_string(order: *const c_char) -> GstVideoFieldOrder; pub fn gst_video_field_order_to_string(order: GstVideoFieldOrder) -> *const c_char; //========================================================================= // GstVideoFormat //========================================================================= pub fn gst_video_format_get_type() -> GType; pub fn gst_video_format_from_fourcc(fourcc: u32) -> GstVideoFormat; pub fn gst_video_format_from_masks( depth: c_int, bpp: c_int, endianness: c_int, red_mask: c_uint, green_mask: c_uint, blue_mask: c_uint, alpha_mask: c_uint, ) -> GstVideoFormat; pub fn gst_video_format_from_string(format: *const c_char) -> GstVideoFormat; pub fn gst_video_format_get_info(format: GstVideoFormat) -> *const GstVideoFormatInfo; pub fn gst_video_format_get_palette(format: GstVideoFormat, size: *mut size_t) -> gconstpointer; pub fn gst_video_format_to_fourcc(format: GstVideoFormat) -> u32; pub fn gst_video_format_to_string(format: GstVideoFormat) -> *const c_char; //========================================================================= // GstVideoGLTextureOrientation //========================================================================= #[cfg(feature = "v1_20")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_video_gl_texture_orientation_get_type() -> GType; //========================================================================= // GstVideoGLTextureType //========================================================================= #[cfg(feature = "v1_20")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_video_gl_texture_type_get_type() -> GType; //========================================================================= // GstVideoGammaMode //========================================================================= pub fn gst_video_gamma_mode_get_type() -> GType; //========================================================================= // GstVideoInterlaceMode //========================================================================= pub fn gst_video_interlace_mode_get_type() -> GType; pub fn gst_video_interlace_mode_from_string(mode: *const c_char) -> GstVideoInterlaceMode; pub fn gst_video_interlace_mode_to_string(mode: GstVideoInterlaceMode) -> *const c_char; //========================================================================= // GstVideoMatrixMode //========================================================================= pub fn gst_video_matrix_mode_get_type() -> GType; //========================================================================= // GstVideoMultiviewFramePacking //========================================================================= pub fn gst_video_multiview_frame_packing_get_type() -> GType; //========================================================================= // GstVideoMultiviewMode //========================================================================= pub fn gst_video_multiview_mode_get_type() -> GType; pub fn gst_video_multiview_mode_from_caps_string( caps_mview_mode: *const c_char, ) -> GstVideoMultiviewMode; pub fn gst_video_multiview_mode_to_caps_string( mview_mode: GstVideoMultiviewMode, ) -> *const c_char; //========================================================================= // GstVideoOrientationMethod //========================================================================= pub fn gst_video_orientation_method_get_type() -> GType; //========================================================================= // GstVideoPrimariesMode //========================================================================= pub fn gst_video_primaries_mode_get_type() -> GType; //========================================================================= // GstVideoResamplerMethod //========================================================================= pub fn gst_video_resampler_method_get_type() -> GType; //========================================================================= // GstVideoTileMode //========================================================================= pub fn gst_video_tile_mode_get_type() -> GType; //========================================================================= // GstVideoTileType //========================================================================= pub fn gst_video_tile_type_get_type() -> GType; //========================================================================= // GstVideoTransferFunction //========================================================================= pub fn gst_video_transfer_function_get_type() -> GType; #[cfg(feature = "v1_20")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_video_transfer_function_decode( func: GstVideoTransferFunction, val: c_double, ) -> c_double; #[cfg(feature = "v1_20")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_video_transfer_function_encode( func: GstVideoTransferFunction, val: c_double, ) -> c_double; #[cfg(feature = "v1_18")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_video_transfer_function_from_iso(value: c_uint) -> GstVideoTransferFunction; #[cfg(feature = "v1_18")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_video_transfer_function_is_equivalent( from_func: GstVideoTransferFunction, from_bpp: c_uint, to_func: GstVideoTransferFunction, to_bpp: c_uint, ) -> gboolean; #[cfg(feature = "v1_18")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_video_transfer_function_to_iso(func: GstVideoTransferFunction) -> c_uint; //========================================================================= // GstVideoVBIParserResult //========================================================================= #[cfg(feature = "v1_16")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_video_vbi_parser_result_get_type() -> GType; //========================================================================= // GstNavigationModifierType //========================================================================= #[cfg(feature = "v1_22")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_navigation_modifier_type_get_type() -> GType; //========================================================================= // GstVideoBufferFlags //========================================================================= pub fn gst_video_buffer_flags_get_type() -> GType; //========================================================================= // GstVideoChromaFlags //========================================================================= pub fn gst_video_chroma_flags_get_type() -> GType; //========================================================================= // GstVideoChromaSite //========================================================================= pub fn gst_video_chroma_site_get_type() -> GType; #[cfg(feature = "v1_20")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_video_chroma_site_from_string(s: *const c_char) -> GstVideoChromaSite; #[cfg(feature = "v1_20")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_video_chroma_site_to_string(site: GstVideoChromaSite) -> *mut c_char; //========================================================================= // GstVideoCodecFrameFlags //========================================================================= #[cfg(feature = "v1_20")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_video_codec_frame_flags_get_type() -> GType; //========================================================================= // GstVideoDecoderRequestSyncPointFlags //========================================================================= #[cfg(feature = "v1_20")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_video_decoder_request_sync_point_flags_get_type() -> GType; //========================================================================= // GstVideoDitherFlags //========================================================================= pub fn gst_video_dither_flags_get_type() -> GType; //========================================================================= // GstVideoFlags //========================================================================= pub fn gst_video_flags_get_type() -> GType; //========================================================================= // GstVideoFormatFlags //========================================================================= pub fn gst_video_format_flags_get_type() -> GType; //========================================================================= // GstVideoFrameFlags //========================================================================= pub fn gst_video_frame_flags_get_type() -> GType; //========================================================================= // GstVideoFrameMapFlags //========================================================================= pub fn gst_video_frame_map_flags_get_type() -> GType; //========================================================================= // GstVideoMultiviewFlags //========================================================================= pub fn gst_video_multiview_flags_get_type() -> GType; //========================================================================= // GstVideoOverlayFormatFlags //========================================================================= #[cfg(feature = "v1_16")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_video_overlay_format_flags_get_type() -> GType; //========================================================================= // GstVideoPackFlags //========================================================================= pub fn gst_video_pack_flags_get_type() -> GType; //========================================================================= // GstVideoResamplerFlags //========================================================================= pub fn gst_video_resampler_flags_get_type() -> GType; //========================================================================= // GstVideoScalerFlags //========================================================================= pub fn gst_video_scaler_flags_get_type() -> GType; //========================================================================= // GstVideoTimeCodeFlags //========================================================================= #[cfg(feature = "v1_18")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_video_time_code_flags_get_type() -> GType; //========================================================================= // GstAncillaryMeta //========================================================================= #[cfg(feature = "v1_24")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] pub fn gst_ancillary_meta_get_info() -> *const gst::GstMetaInfo; //========================================================================= // GstVideoAFDMeta //========================================================================= #[cfg(feature = "v1_18")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_video_afd_meta_get_info() -> *const gst::GstMetaInfo; //========================================================================= // GstVideoAffineTransformationMeta //========================================================================= pub fn gst_video_affine_transformation_meta_apply_matrix( meta: *mut GstVideoAffineTransformationMeta, matrix: *const [c_float; 16], ); pub fn gst_video_affine_transformation_meta_get_info() -> *const gst::GstMetaInfo; //========================================================================= // GstVideoAlignment //========================================================================= pub fn gst_video_alignment_reset(align: *mut GstVideoAlignment); //========================================================================= // GstVideoBarMeta //========================================================================= #[cfg(feature = "v1_18")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_video_bar_meta_get_info() -> *const gst::GstMetaInfo; //========================================================================= // GstVideoCaptionMeta //========================================================================= #[cfg(feature = "v1_16")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_video_caption_meta_get_info() -> *const gst::GstMetaInfo; //========================================================================= // GstVideoChromaResample //========================================================================= pub fn gst_video_chroma_resample_free(resample: *mut GstVideoChromaResample); pub fn gst_video_chroma_resample_get_info( resample: *mut GstVideoChromaResample, n_lines: *mut c_uint, offset: *mut c_int, ); pub fn gst_video_chroma_resample_new( method: GstVideoChromaMethod, site: GstVideoChromaSite, flags: GstVideoChromaFlags, format: GstVideoFormat, h_factor: c_int, v_factor: c_int, ) -> *mut GstVideoChromaResample; //========================================================================= // GstVideoCodecAlphaMeta //========================================================================= #[cfg(feature = "v1_20")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_video_codec_alpha_meta_get_info() -> *const gst::GstMetaInfo; //========================================================================= // GstVideoCodecFrame //========================================================================= pub fn gst_video_codec_frame_get_type() -> GType; pub fn gst_video_codec_frame_get_user_data(frame: *mut GstVideoCodecFrame) -> gpointer; pub fn gst_video_codec_frame_ref(frame: *mut GstVideoCodecFrame) -> *mut GstVideoCodecFrame; pub fn gst_video_codec_frame_set_user_data( frame: *mut GstVideoCodecFrame, user_data: gpointer, notify: glib::GDestroyNotify, ); pub fn gst_video_codec_frame_unref(frame: *mut GstVideoCodecFrame); //========================================================================= // GstVideoCodecState //========================================================================= pub fn gst_video_codec_state_get_type() -> GType; pub fn gst_video_codec_state_ref(state: *mut GstVideoCodecState) -> *mut GstVideoCodecState; pub fn gst_video_codec_state_unref(state: *mut GstVideoCodecState); //========================================================================= // GstVideoColorimetry //========================================================================= pub fn gst_video_colorimetry_from_string( cinfo: *mut GstVideoColorimetry, color: *const c_char, ) -> gboolean; pub fn gst_video_colorimetry_is_equal( cinfo: *const GstVideoColorimetry, other: *const GstVideoColorimetry, ) -> gboolean; #[cfg(feature = "v1_22")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_video_colorimetry_is_equivalent( cinfo: *const GstVideoColorimetry, bitdepth: c_uint, other: *const GstVideoColorimetry, other_bitdepth: c_uint, ) -> gboolean; pub fn gst_video_colorimetry_matches( cinfo: *const GstVideoColorimetry, color: *const c_char, ) -> gboolean; pub fn gst_video_colorimetry_to_string(cinfo: *const GstVideoColorimetry) -> *mut c_char; //========================================================================= // GstVideoContentLightLevel //========================================================================= #[cfg(feature = "v1_18")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_video_content_light_level_add_to_caps( linfo: *const GstVideoContentLightLevel, caps: *mut gst::GstCaps, ) -> gboolean; #[cfg(feature = "v1_18")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_video_content_light_level_from_caps( linfo: *mut GstVideoContentLightLevel, caps: *const gst::GstCaps, ) -> gboolean; #[cfg(feature = "v1_18")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_video_content_light_level_from_string( linfo: *mut GstVideoContentLightLevel, level: *const c_char, ) -> gboolean; #[cfg(feature = "v1_18")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_video_content_light_level_init(linfo: *mut GstVideoContentLightLevel); #[cfg(feature = "v1_20")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_video_content_light_level_is_equal( linfo: *const GstVideoContentLightLevel, other: *const GstVideoContentLightLevel, ) -> gboolean; #[cfg(feature = "v1_18")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_video_content_light_level_to_string( linfo: *const GstVideoContentLightLevel, ) -> *mut c_char; //========================================================================= // GstVideoConverter //========================================================================= pub fn gst_video_converter_frame( convert: *mut GstVideoConverter, src: *const GstVideoFrame, dest: *mut GstVideoFrame, ); #[cfg(feature = "v1_20")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_video_converter_frame_finish(convert: *mut GstVideoConverter); pub fn gst_video_converter_free(convert: *mut GstVideoConverter); pub fn gst_video_converter_get_config( convert: *mut GstVideoConverter, ) -> *const gst::GstStructure; #[cfg(feature = "v1_22")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_video_converter_get_in_info(convert: *mut GstVideoConverter) -> *const GstVideoInfo; #[cfg(feature = "v1_22")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_video_converter_get_out_info(convert: *mut GstVideoConverter) -> *const GstVideoInfo; pub fn gst_video_converter_set_config( convert: *mut GstVideoConverter, config: *mut gst::GstStructure, ) -> gboolean; pub fn gst_video_converter_new( in_info: *const GstVideoInfo, out_info: *const GstVideoInfo, config: *mut gst::GstStructure, ) -> *mut GstVideoConverter; #[cfg(feature = "v1_20")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_video_converter_new_with_pool( in_info: *const GstVideoInfo, out_info: *const GstVideoInfo, config: *mut gst::GstStructure, pool: *mut gst::GstTaskPool, ) -> *mut GstVideoConverter; //========================================================================= // GstVideoCropMeta //========================================================================= pub fn gst_video_crop_meta_get_info() -> *const gst::GstMetaInfo; //========================================================================= // GstVideoDither //========================================================================= pub fn gst_video_dither_free(dither: *mut GstVideoDither); pub fn gst_video_dither_line( dither: *mut GstVideoDither, line: gpointer, x: c_uint, y: c_uint, width: c_uint, ); pub fn gst_video_dither_new( method: GstVideoDitherMethod, flags: GstVideoDitherFlags, format: GstVideoFormat, quantizer: *mut c_uint, width: c_uint, ) -> *mut GstVideoDither; //========================================================================= // GstVideoFormatInfo //========================================================================= #[cfg(feature = "v1_18")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_video_format_info_component( info: *const GstVideoFormatInfo, plane: c_uint, components: *mut c_int, ); #[cfg(feature = "v1_22")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_video_format_info_extrapolate_stride( finfo: *const GstVideoFormatInfo, plane: c_int, stride: c_int, ) -> c_int; //========================================================================= // GstVideoFrame //========================================================================= pub fn gst_video_frame_copy(dest: *mut GstVideoFrame, src: *const GstVideoFrame) -> gboolean; pub fn gst_video_frame_copy_plane( dest: *mut GstVideoFrame, src: *const GstVideoFrame, plane: c_uint, ) -> gboolean; pub fn gst_video_frame_unmap(frame: *mut GstVideoFrame); pub fn gst_video_frame_map( frame: *mut GstVideoFrame, info: *const GstVideoInfo, buffer: *mut gst::GstBuffer, flags: gst::GstMapFlags, ) -> gboolean; pub fn gst_video_frame_map_id( frame: *mut GstVideoFrame, info: *const GstVideoInfo, buffer: *mut gst::GstBuffer, id: c_int, flags: gst::GstMapFlags, ) -> gboolean; //========================================================================= // GstVideoGLTextureUploadMeta //========================================================================= pub fn gst_video_gl_texture_upload_meta_upload( meta: *mut GstVideoGLTextureUploadMeta, texture_id: *mut c_uint, ) -> gboolean; pub fn gst_video_gl_texture_upload_meta_get_info() -> *const gst::GstMetaInfo; //========================================================================= // GstVideoInfo //========================================================================= pub fn gst_video_info_get_type() -> GType; pub fn gst_video_info_new() -> *mut GstVideoInfo; #[cfg(feature = "v1_20")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_video_info_new_from_caps(caps: *const gst::GstCaps) -> *mut GstVideoInfo; pub fn gst_video_info_align(info: *mut GstVideoInfo, align: *mut GstVideoAlignment) -> gboolean; #[cfg(feature = "v1_18")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_video_info_align_full( info: *mut GstVideoInfo, align: *mut GstVideoAlignment, plane_size: *mut size_t, ) -> gboolean; pub fn gst_video_info_convert( info: *const GstVideoInfo, src_format: gst::GstFormat, src_value: i64, dest_format: gst::GstFormat, dest_value: *mut i64, ) -> gboolean; pub fn gst_video_info_copy(info: *const GstVideoInfo) -> *mut GstVideoInfo; pub fn gst_video_info_free(info: *mut GstVideoInfo); pub fn gst_video_info_is_equal( info: *const GstVideoInfo, other: *const GstVideoInfo, ) -> gboolean; pub fn gst_video_info_set_format( info: *mut GstVideoInfo, format: GstVideoFormat, width: c_uint, height: c_uint, ) -> gboolean; #[cfg(feature = "v1_16")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_video_info_set_interlaced_format( info: *mut GstVideoInfo, format: GstVideoFormat, mode: GstVideoInterlaceMode, width: c_uint, height: c_uint, ) -> gboolean; pub fn gst_video_info_to_caps(info: *const GstVideoInfo) -> *mut gst::GstCaps; pub fn gst_video_info_from_caps(info: *mut GstVideoInfo, caps: *const gst::GstCaps) -> gboolean; pub fn gst_video_info_init(info: *mut GstVideoInfo); //========================================================================= // GstVideoInfoDmaDrm //========================================================================= #[cfg(feature = "v1_24")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] pub fn gst_video_info_dma_drm_get_type() -> GType; #[cfg(feature = "v1_24")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] pub fn gst_video_info_dma_drm_new() -> *mut GstVideoInfoDmaDrm; #[cfg(feature = "v1_24")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] pub fn gst_video_info_dma_drm_new_from_caps( caps: *const gst::GstCaps, ) -> *mut GstVideoInfoDmaDrm; #[cfg(feature = "v1_24")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] pub fn gst_video_info_dma_drm_free(drm_info: *mut GstVideoInfoDmaDrm); #[cfg(feature = "v1_24")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] pub fn gst_video_info_dma_drm_to_caps(drm_info: *const GstVideoInfoDmaDrm) -> *mut gst::GstCaps; #[cfg(feature = "v1_24")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] pub fn gst_video_info_dma_drm_to_video_info( drm_info: *const GstVideoInfoDmaDrm, info: *mut GstVideoInfo, ) -> gboolean; #[cfg(feature = "v1_24")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] pub fn gst_video_info_dma_drm_from_caps( drm_info: *mut GstVideoInfoDmaDrm, caps: *const gst::GstCaps, ) -> gboolean; #[cfg(feature = "v1_24")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] pub fn gst_video_info_dma_drm_from_video_info( drm_info: *mut GstVideoInfoDmaDrm, info: *const GstVideoInfo, modifier: u64, ) -> gboolean; #[cfg(feature = "v1_24")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] pub fn gst_video_info_dma_drm_init(drm_info: *mut GstVideoInfoDmaDrm); //========================================================================= // GstVideoMasteringDisplayInfo //========================================================================= #[cfg(feature = "v1_18")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_video_mastering_display_info_add_to_caps( minfo: *const GstVideoMasteringDisplayInfo, caps: *mut gst::GstCaps, ) -> gboolean; #[cfg(feature = "v1_18")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_video_mastering_display_info_from_caps( minfo: *mut GstVideoMasteringDisplayInfo, caps: *const gst::GstCaps, ) -> gboolean; #[cfg(feature = "v1_18")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_video_mastering_display_info_init(minfo: *mut GstVideoMasteringDisplayInfo); #[cfg(feature = "v1_18")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_video_mastering_display_info_is_equal( minfo: *const GstVideoMasteringDisplayInfo, other: *const GstVideoMasteringDisplayInfo, ) -> gboolean; #[cfg(feature = "v1_18")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_video_mastering_display_info_to_string( minfo: *const GstVideoMasteringDisplayInfo, ) -> *mut c_char; #[cfg(feature = "v1_18")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_video_mastering_display_info_from_string( minfo: *mut GstVideoMasteringDisplayInfo, mastering: *const c_char, ) -> gboolean; //========================================================================= // GstVideoMeta //========================================================================= #[cfg(feature = "v1_18")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_video_meta_get_plane_height( meta: *mut GstVideoMeta, plane_height: *mut [c_uint; 4], ) -> gboolean; #[cfg(feature = "v1_18")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_video_meta_get_plane_size( meta: *mut GstVideoMeta, plane_size: *mut [size_t; 4], ) -> gboolean; pub fn gst_video_meta_map( meta: *mut GstVideoMeta, plane: c_uint, info: *mut gst::GstMapInfo, data: *mut gpointer, stride: *mut c_int, flags: gst::GstMapFlags, ) -> gboolean; #[cfg(feature = "v1_18")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_video_meta_set_alignment( meta: *mut GstVideoMeta, alignment: GstVideoAlignment, ) -> gboolean; pub fn gst_video_meta_unmap( meta: *mut GstVideoMeta, plane: c_uint, info: *mut gst::GstMapInfo, ) -> gboolean; pub fn gst_video_meta_get_info() -> *const gst::GstMetaInfo; //========================================================================= // GstVideoMetaTransform //========================================================================= pub fn gst_video_meta_transform_scale_get_quark() -> glib::GQuark; //========================================================================= // GstVideoOverlayComposition //========================================================================= pub fn gst_video_overlay_composition_get_type() -> GType; pub fn gst_video_overlay_composition_new( rectangle: *mut GstVideoOverlayRectangle, ) -> *mut GstVideoOverlayComposition; pub fn gst_video_overlay_composition_add_rectangle( comp: *mut GstVideoOverlayComposition, rectangle: *mut GstVideoOverlayRectangle, ); pub fn gst_video_overlay_composition_blend( comp: *mut GstVideoOverlayComposition, video_buf: *mut GstVideoFrame, ) -> gboolean; pub fn gst_video_overlay_composition_copy( comp: *mut GstVideoOverlayComposition, ) -> *mut GstVideoOverlayComposition; pub fn gst_video_overlay_composition_get_rectangle( comp: *mut GstVideoOverlayComposition, n: c_uint, ) -> *mut GstVideoOverlayRectangle; pub fn gst_video_overlay_composition_get_seqnum( comp: *mut GstVideoOverlayComposition, ) -> c_uint; pub fn gst_video_overlay_composition_make_writable( comp: *mut GstVideoOverlayComposition, ) -> *mut GstVideoOverlayComposition; pub fn gst_video_overlay_composition_n_rectangles( comp: *mut GstVideoOverlayComposition, ) -> c_uint; //========================================================================= // GstVideoOverlayCompositionMeta //========================================================================= pub fn gst_video_overlay_composition_meta_get_info() -> *const gst::GstMetaInfo; //========================================================================= // GstVideoOverlayRectangle //========================================================================= pub fn gst_video_overlay_rectangle_get_type() -> GType; pub fn gst_video_overlay_rectangle_new_raw( pixels: *mut gst::GstBuffer, render_x: c_int, render_y: c_int, render_width: c_uint, render_height: c_uint, flags: GstVideoOverlayFormatFlags, ) -> *mut GstVideoOverlayRectangle; pub fn gst_video_overlay_rectangle_copy( rectangle: *mut GstVideoOverlayRectangle, ) -> *mut GstVideoOverlayRectangle; pub fn gst_video_overlay_rectangle_get_flags( rectangle: *mut GstVideoOverlayRectangle, ) -> GstVideoOverlayFormatFlags; pub fn gst_video_overlay_rectangle_get_global_alpha( rectangle: *mut GstVideoOverlayRectangle, ) -> c_float; pub fn gst_video_overlay_rectangle_get_pixels_argb( rectangle: *mut GstVideoOverlayRectangle, flags: GstVideoOverlayFormatFlags, ) -> *mut gst::GstBuffer; pub fn gst_video_overlay_rectangle_get_pixels_ayuv( rectangle: *mut GstVideoOverlayRectangle, flags: GstVideoOverlayFormatFlags, ) -> *mut gst::GstBuffer; pub fn gst_video_overlay_rectangle_get_pixels_raw( rectangle: *mut GstVideoOverlayRectangle, flags: GstVideoOverlayFormatFlags, ) -> *mut gst::GstBuffer; pub fn gst_video_overlay_rectangle_get_pixels_unscaled_argb( rectangle: *mut GstVideoOverlayRectangle, flags: GstVideoOverlayFormatFlags, ) -> *mut gst::GstBuffer; pub fn gst_video_overlay_rectangle_get_pixels_unscaled_ayuv( rectangle: *mut GstVideoOverlayRectangle, flags: GstVideoOverlayFormatFlags, ) -> *mut gst::GstBuffer; pub fn gst_video_overlay_rectangle_get_pixels_unscaled_raw( rectangle: *mut GstVideoOverlayRectangle, flags: GstVideoOverlayFormatFlags, ) -> *mut gst::GstBuffer; pub fn gst_video_overlay_rectangle_get_render_rectangle( rectangle: *mut GstVideoOverlayRectangle, render_x: *mut c_int, render_y: *mut c_int, render_width: *mut c_uint, render_height: *mut c_uint, ) -> gboolean; pub fn gst_video_overlay_rectangle_get_seqnum( rectangle: *mut GstVideoOverlayRectangle, ) -> c_uint; pub fn gst_video_overlay_rectangle_set_global_alpha( rectangle: *mut GstVideoOverlayRectangle, global_alpha: c_float, ); pub fn gst_video_overlay_rectangle_set_render_rectangle( rectangle: *mut GstVideoOverlayRectangle, render_x: c_int, render_y: c_int, render_width: c_uint, render_height: c_uint, ); //========================================================================= // GstVideoRegionOfInterestMeta //========================================================================= pub fn gst_video_region_of_interest_meta_add_param( meta: *mut GstVideoRegionOfInterestMeta, s: *mut gst::GstStructure, ); pub fn gst_video_region_of_interest_meta_get_param( meta: *mut GstVideoRegionOfInterestMeta, name: *const c_char, ) -> *mut gst::GstStructure; pub fn gst_video_region_of_interest_meta_get_info() -> *const gst::GstMetaInfo; //========================================================================= // GstVideoResampler //========================================================================= pub fn gst_video_resampler_clear(resampler: *mut GstVideoResampler); pub fn gst_video_resampler_init( resampler: *mut GstVideoResampler, method: GstVideoResamplerMethod, flags: GstVideoResamplerFlags, n_phases: c_uint, n_taps: c_uint, shift: c_double, in_size: c_uint, out_size: c_uint, options: *mut gst::GstStructure, ) -> gboolean; //========================================================================= // GstVideoSEIUserDataUnregisteredMeta //========================================================================= #[cfg(feature = "v1_22")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_video_sei_user_data_unregistered_meta_get_info() -> *const gst::GstMetaInfo; //========================================================================= // GstVideoScaler //========================================================================= pub fn gst_video_scaler_2d( hscale: *mut GstVideoScaler, vscale: *mut GstVideoScaler, format: GstVideoFormat, src: gpointer, src_stride: c_int, dest: gpointer, dest_stride: c_int, x: c_uint, y: c_uint, width: c_uint, height: c_uint, ); pub fn gst_video_scaler_combine_packed_YUV( y_scale: *mut GstVideoScaler, uv_scale: *mut GstVideoScaler, in_format: GstVideoFormat, out_format: GstVideoFormat, ) -> *mut GstVideoScaler; pub fn gst_video_scaler_free(scale: *mut GstVideoScaler); pub fn gst_video_scaler_get_coeff( scale: *mut GstVideoScaler, out_offset: c_uint, in_offset: *mut c_uint, n_taps: *mut c_uint, ) -> *const c_double; pub fn gst_video_scaler_get_max_taps(scale: *mut GstVideoScaler) -> c_uint; pub fn gst_video_scaler_horizontal( scale: *mut GstVideoScaler, format: GstVideoFormat, src: gpointer, dest: gpointer, dest_offset: c_uint, width: c_uint, ); pub fn gst_video_scaler_vertical( scale: *mut GstVideoScaler, format: GstVideoFormat, src_lines: *mut gpointer, dest: gpointer, dest_offset: c_uint, width: c_uint, ); pub fn gst_video_scaler_new( method: GstVideoResamplerMethod, flags: GstVideoScalerFlags, n_taps: c_uint, in_size: c_uint, out_size: c_uint, options: *mut gst::GstStructure, ) -> *mut GstVideoScaler; //========================================================================= // GstVideoTimeCode //========================================================================= pub fn gst_video_time_code_get_type() -> GType; pub fn gst_video_time_code_new( fps_n: c_uint, fps_d: c_uint, latest_daily_jam: *mut glib::GDateTime, flags: GstVideoTimeCodeFlags, hours: c_uint, minutes: c_uint, seconds: c_uint, frames: c_uint, field_count: c_uint, ) -> *mut GstVideoTimeCode; pub fn gst_video_time_code_new_empty() -> *mut GstVideoTimeCode; pub fn gst_video_time_code_new_from_date_time( fps_n: c_uint, fps_d: c_uint, dt: *mut glib::GDateTime, flags: GstVideoTimeCodeFlags, field_count: c_uint, ) -> *mut GstVideoTimeCode; #[cfg(feature = "v1_16")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_video_time_code_new_from_date_time_full( fps_n: c_uint, fps_d: c_uint, dt: *mut glib::GDateTime, flags: GstVideoTimeCodeFlags, field_count: c_uint, ) -> *mut GstVideoTimeCode; pub fn gst_video_time_code_new_from_string(tc_str: *const c_char) -> *mut GstVideoTimeCode; pub fn gst_video_time_code_add_frames(tc: *mut GstVideoTimeCode, frames: i64); pub fn gst_video_time_code_add_interval( tc: *const GstVideoTimeCode, tc_inter: *const GstVideoTimeCodeInterval, ) -> *mut GstVideoTimeCode; pub fn gst_video_time_code_clear(tc: *mut GstVideoTimeCode); pub fn gst_video_time_code_compare( tc1: *const GstVideoTimeCode, tc2: *const GstVideoTimeCode, ) -> c_int; pub fn gst_video_time_code_copy(tc: *const GstVideoTimeCode) -> *mut GstVideoTimeCode; pub fn gst_video_time_code_frames_since_daily_jam(tc: *const GstVideoTimeCode) -> u64; pub fn gst_video_time_code_free(tc: *mut GstVideoTimeCode); pub fn gst_video_time_code_increment_frame(tc: *mut GstVideoTimeCode); pub fn gst_video_time_code_init( tc: *mut GstVideoTimeCode, fps_n: c_uint, fps_d: c_uint, latest_daily_jam: *mut glib::GDateTime, flags: GstVideoTimeCodeFlags, hours: c_uint, minutes: c_uint, seconds: c_uint, frames: c_uint, field_count: c_uint, ); pub fn gst_video_time_code_init_from_date_time( tc: *mut GstVideoTimeCode, fps_n: c_uint, fps_d: c_uint, dt: *mut glib::GDateTime, flags: GstVideoTimeCodeFlags, field_count: c_uint, ); #[cfg(feature = "v1_16")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_video_time_code_init_from_date_time_full( tc: *mut GstVideoTimeCode, fps_n: c_uint, fps_d: c_uint, dt: *mut glib::GDateTime, flags: GstVideoTimeCodeFlags, field_count: c_uint, ) -> gboolean; pub fn gst_video_time_code_is_valid(tc: *const GstVideoTimeCode) -> gboolean; pub fn gst_video_time_code_nsec_since_daily_jam(tc: *const GstVideoTimeCode) -> u64; pub fn gst_video_time_code_to_date_time(tc: *const GstVideoTimeCode) -> *mut glib::GDateTime; pub fn gst_video_time_code_to_string(tc: *const GstVideoTimeCode) -> *mut c_char; //========================================================================= // GstVideoTimeCodeInterval //========================================================================= pub fn gst_video_time_code_interval_get_type() -> GType; pub fn gst_video_time_code_interval_new( hours: c_uint, minutes: c_uint, seconds: c_uint, frames: c_uint, ) -> *mut GstVideoTimeCodeInterval; pub fn gst_video_time_code_interval_new_from_string( tc_inter_str: *const c_char, ) -> *mut GstVideoTimeCodeInterval; pub fn gst_video_time_code_interval_clear(tc: *mut GstVideoTimeCodeInterval); pub fn gst_video_time_code_interval_copy( tc: *const GstVideoTimeCodeInterval, ) -> *mut GstVideoTimeCodeInterval; pub fn gst_video_time_code_interval_free(tc: *mut GstVideoTimeCodeInterval); pub fn gst_video_time_code_interval_init( tc: *mut GstVideoTimeCodeInterval, hours: c_uint, minutes: c_uint, seconds: c_uint, frames: c_uint, ); //========================================================================= // GstVideoTimeCodeMeta //========================================================================= pub fn gst_video_time_code_meta_get_info() -> *const gst::GstMetaInfo; //========================================================================= // GstVideoVBIEncoder //========================================================================= #[cfg(feature = "v1_16")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_video_vbi_encoder_get_type() -> GType; #[cfg(feature = "v1_16")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_video_vbi_encoder_new( format: GstVideoFormat, pixel_width: u32, ) -> *mut GstVideoVBIEncoder; #[cfg(feature = "v1_16")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_video_vbi_encoder_add_ancillary( encoder: *mut GstVideoVBIEncoder, composite: gboolean, DID: u8, SDID_block_number: u8, data: *const u8, data_count: c_uint, ) -> gboolean; #[cfg(feature = "v1_16")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_video_vbi_encoder_copy( encoder: *const GstVideoVBIEncoder, ) -> *mut GstVideoVBIEncoder; #[cfg(feature = "v1_16")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_video_vbi_encoder_free(encoder: *mut GstVideoVBIEncoder); #[cfg(feature = "v1_16")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_video_vbi_encoder_write_line(encoder: *mut GstVideoVBIEncoder, data: *mut u8); //========================================================================= // GstVideoVBIParser //========================================================================= #[cfg(feature = "v1_16")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_video_vbi_parser_get_type() -> GType; #[cfg(feature = "v1_16")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_video_vbi_parser_new( format: GstVideoFormat, pixel_width: u32, ) -> *mut GstVideoVBIParser; #[cfg(feature = "v1_16")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_video_vbi_parser_add_line(parser: *mut GstVideoVBIParser, data: *const u8); #[cfg(feature = "v1_16")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_video_vbi_parser_copy(parser: *const GstVideoVBIParser) -> *mut GstVideoVBIParser; #[cfg(feature = "v1_16")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_video_vbi_parser_free(parser: *mut GstVideoVBIParser); #[cfg(feature = "v1_16")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_video_vbi_parser_get_ancillary( parser: *mut GstVideoVBIParser, anc: *mut GstVideoAncillary, ) -> GstVideoVBIParserResult; //========================================================================= // GstColorBalanceChannel //========================================================================= pub fn gst_color_balance_channel_get_type() -> GType; //========================================================================= // GstVideoAggregator //========================================================================= #[cfg(feature = "v1_16")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_video_aggregator_get_type() -> GType; #[cfg(feature = "v1_20")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_video_aggregator_get_execution_task_pool( vagg: *mut GstVideoAggregator, ) -> *mut gst::GstTaskPool; //========================================================================= // GstVideoAggregatorConvertPad //========================================================================= #[cfg(feature = "v1_16")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_video_aggregator_convert_pad_get_type() -> GType; #[cfg(feature = "v1_16")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_video_aggregator_convert_pad_update_conversion_info( pad: *mut GstVideoAggregatorConvertPad, ); //========================================================================= // GstVideoAggregatorPad //========================================================================= #[cfg(feature = "v1_16")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_video_aggregator_pad_get_type() -> GType; #[cfg(feature = "v1_16")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_video_aggregator_pad_get_current_buffer( pad: *mut GstVideoAggregatorPad, ) -> *mut gst::GstBuffer; #[cfg(feature = "v1_16")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_video_aggregator_pad_get_prepared_frame( pad: *mut GstVideoAggregatorPad, ) -> *mut GstVideoFrame; #[cfg(feature = "v1_16")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_video_aggregator_pad_has_current_buffer(pad: *mut GstVideoAggregatorPad) -> gboolean; #[cfg(feature = "v1_16")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_video_aggregator_pad_set_needs_alpha( pad: *mut GstVideoAggregatorPad, needs_alpha: gboolean, ); //========================================================================= // GstVideoAggregatorParallelConvertPad //========================================================================= #[cfg(feature = "v1_20")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_video_aggregator_parallel_convert_pad_get_type() -> GType; //========================================================================= // GstVideoBufferPool //========================================================================= pub fn gst_video_buffer_pool_get_type() -> GType; pub fn gst_video_buffer_pool_new() -> *mut gst::GstBufferPool; //========================================================================= // GstVideoDecoder //========================================================================= pub fn gst_video_decoder_get_type() -> GType; pub fn gst_video_decoder_add_to_frame(decoder: *mut GstVideoDecoder, n_bytes: c_int); pub fn gst_video_decoder_allocate_output_buffer( decoder: *mut GstVideoDecoder, ) -> *mut gst::GstBuffer; pub fn gst_video_decoder_allocate_output_frame( decoder: *mut GstVideoDecoder, frame: *mut GstVideoCodecFrame, ) -> gst::GstFlowReturn; pub fn gst_video_decoder_allocate_output_frame_with_params( decoder: *mut GstVideoDecoder, frame: *mut GstVideoCodecFrame, params: *mut gst::GstBufferPoolAcquireParams, ) -> gst::GstFlowReturn; pub fn gst_video_decoder_drop_frame( dec: *mut GstVideoDecoder, frame: *mut GstVideoCodecFrame, ) -> gst::GstFlowReturn; #[cfg(feature = "v1_20")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_video_decoder_drop_subframe( dec: *mut GstVideoDecoder, frame: *mut GstVideoCodecFrame, ) -> gst::GstFlowReturn; pub fn gst_video_decoder_finish_frame( decoder: *mut GstVideoDecoder, frame: *mut GstVideoCodecFrame, ) -> gst::GstFlowReturn; #[cfg(feature = "v1_20")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_video_decoder_finish_subframe( decoder: *mut GstVideoDecoder, frame: *mut GstVideoCodecFrame, ) -> gst::GstFlowReturn; pub fn gst_video_decoder_get_allocator( decoder: *mut GstVideoDecoder, allocator: *mut *mut gst::GstAllocator, params: *mut gst::GstAllocationParams, ); pub fn gst_video_decoder_get_buffer_pool( decoder: *mut GstVideoDecoder, ) -> *mut gst::GstBufferPool; pub fn gst_video_decoder_get_estimate_rate(dec: *mut GstVideoDecoder) -> c_int; pub fn gst_video_decoder_get_frame( decoder: *mut GstVideoDecoder, frame_number: c_int, ) -> *mut GstVideoCodecFrame; pub fn gst_video_decoder_get_frames(decoder: *mut GstVideoDecoder) -> *mut glib::GList; #[cfg(feature = "v1_20")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_video_decoder_get_input_subframe_index( decoder: *mut GstVideoDecoder, frame: *mut GstVideoCodecFrame, ) -> c_uint; pub fn gst_video_decoder_get_latency( decoder: *mut GstVideoDecoder, min_latency: *mut gst::GstClockTime, max_latency: *mut gst::GstClockTime, ); pub fn gst_video_decoder_get_max_decode_time( decoder: *mut GstVideoDecoder, frame: *mut GstVideoCodecFrame, ) -> gst::GstClockTimeDiff; pub fn gst_video_decoder_get_max_errors(dec: *mut GstVideoDecoder) -> c_int; pub fn gst_video_decoder_get_needs_format(dec: *mut GstVideoDecoder) -> gboolean; #[cfg(feature = "v1_20")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_video_decoder_get_needs_sync_point(dec: *mut GstVideoDecoder) -> gboolean; pub fn gst_video_decoder_get_oldest_frame( decoder: *mut GstVideoDecoder, ) -> *mut GstVideoCodecFrame; pub fn gst_video_decoder_get_output_state( decoder: *mut GstVideoDecoder, ) -> *mut GstVideoCodecState; pub fn gst_video_decoder_get_packetized(decoder: *mut GstVideoDecoder) -> gboolean; pub fn gst_video_decoder_get_pending_frame_size(decoder: *mut GstVideoDecoder) -> size_t; #[cfg(feature = "v1_20")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_video_decoder_get_processed_subframe_index( decoder: *mut GstVideoDecoder, frame: *mut GstVideoCodecFrame, ) -> c_uint; pub fn gst_video_decoder_get_qos_proportion(decoder: *mut GstVideoDecoder) -> c_double; #[cfg(feature = "v1_20")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_video_decoder_get_subframe_mode(decoder: *mut GstVideoDecoder) -> gboolean; pub fn gst_video_decoder_have_frame(decoder: *mut GstVideoDecoder) -> gst::GstFlowReturn; #[cfg(feature = "v1_20")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_video_decoder_have_last_subframe( decoder: *mut GstVideoDecoder, frame: *mut GstVideoCodecFrame, ) -> gst::GstFlowReturn; pub fn gst_video_decoder_merge_tags( decoder: *mut GstVideoDecoder, tags: *const gst::GstTagList, mode: gst::GstTagMergeMode, ); pub fn gst_video_decoder_negotiate(decoder: *mut GstVideoDecoder) -> gboolean; pub fn gst_video_decoder_proxy_getcaps( decoder: *mut GstVideoDecoder, caps: *mut gst::GstCaps, filter: *mut gst::GstCaps, ) -> *mut gst::GstCaps; pub fn gst_video_decoder_release_frame( dec: *mut GstVideoDecoder, frame: *mut GstVideoCodecFrame, ); #[cfg(feature = "v1_20")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_video_decoder_request_sync_point( dec: *mut GstVideoDecoder, frame: *mut GstVideoCodecFrame, flags: GstVideoDecoderRequestSyncPointFlags, ); pub fn gst_video_decoder_set_estimate_rate(dec: *mut GstVideoDecoder, enabled: gboolean); #[cfg(feature = "v1_16")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_video_decoder_set_interlaced_output_state( decoder: *mut GstVideoDecoder, fmt: GstVideoFormat, interlace_mode: GstVideoInterlaceMode, width: c_uint, height: c_uint, reference: *mut GstVideoCodecState, ) -> *mut GstVideoCodecState; pub fn gst_video_decoder_set_latency( decoder: *mut GstVideoDecoder, min_latency: gst::GstClockTime, max_latency: gst::GstClockTime, ); pub fn gst_video_decoder_set_max_errors(dec: *mut GstVideoDecoder, num: c_int); pub fn gst_video_decoder_set_needs_format(dec: *mut GstVideoDecoder, enabled: gboolean); #[cfg(feature = "v1_20")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_video_decoder_set_needs_sync_point(dec: *mut GstVideoDecoder, enabled: gboolean); pub fn gst_video_decoder_set_output_state( decoder: *mut GstVideoDecoder, fmt: GstVideoFormat, width: c_uint, height: c_uint, reference: *mut GstVideoCodecState, ) -> *mut GstVideoCodecState; pub fn gst_video_decoder_set_packetized(decoder: *mut GstVideoDecoder, packetized: gboolean); #[cfg(feature = "v1_20")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_video_decoder_set_subframe_mode( decoder: *mut GstVideoDecoder, subframe_mode: gboolean, ); pub fn gst_video_decoder_set_use_default_pad_acceptcaps( decoder: *mut GstVideoDecoder, use_: gboolean, ); //========================================================================= // GstVideoEncoder //========================================================================= pub fn gst_video_encoder_get_type() -> GType; pub fn gst_video_encoder_allocate_output_buffer( encoder: *mut GstVideoEncoder, size: size_t, ) -> *mut gst::GstBuffer; pub fn gst_video_encoder_allocate_output_frame( encoder: *mut GstVideoEncoder, frame: *mut GstVideoCodecFrame, size: size_t, ) -> gst::GstFlowReturn; #[cfg(feature = "v1_26")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))] pub fn gst_video_encoder_drop_frame( encoder: *mut GstVideoEncoder, frame: *mut GstVideoCodecFrame, ); pub fn gst_video_encoder_finish_frame( encoder: *mut GstVideoEncoder, frame: *mut GstVideoCodecFrame, ) -> gst::GstFlowReturn; #[cfg(feature = "v1_18")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_video_encoder_finish_subframe( encoder: *mut GstVideoEncoder, frame: *mut GstVideoCodecFrame, ) -> gst::GstFlowReturn; pub fn gst_video_encoder_get_allocator( encoder: *mut GstVideoEncoder, allocator: *mut *mut gst::GstAllocator, params: *mut gst::GstAllocationParams, ); pub fn gst_video_encoder_get_frame( encoder: *mut GstVideoEncoder, frame_number: c_int, ) -> *mut GstVideoCodecFrame; pub fn gst_video_encoder_get_frames(encoder: *mut GstVideoEncoder) -> *mut glib::GList; pub fn gst_video_encoder_get_latency( encoder: *mut GstVideoEncoder, min_latency: *mut gst::GstClockTime, max_latency: *mut gst::GstClockTime, ); pub fn gst_video_encoder_get_max_encode_time( encoder: *mut GstVideoEncoder, frame: *mut GstVideoCodecFrame, ) -> gst::GstClockTimeDiff; #[cfg(feature = "v1_18")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_video_encoder_get_min_force_key_unit_interval( encoder: *mut GstVideoEncoder, ) -> gst::GstClockTime; pub fn gst_video_encoder_get_oldest_frame( encoder: *mut GstVideoEncoder, ) -> *mut GstVideoCodecFrame; pub fn gst_video_encoder_get_output_state( encoder: *mut GstVideoEncoder, ) -> *mut GstVideoCodecState; pub fn gst_video_encoder_is_qos_enabled(encoder: *mut GstVideoEncoder) -> gboolean; pub fn gst_video_encoder_merge_tags( encoder: *mut GstVideoEncoder, tags: *const gst::GstTagList, mode: gst::GstTagMergeMode, ); pub fn gst_video_encoder_negotiate(encoder: *mut GstVideoEncoder) -> gboolean; pub fn gst_video_encoder_proxy_getcaps( enc: *mut GstVideoEncoder, caps: *mut gst::GstCaps, filter: *mut gst::GstCaps, ) -> *mut gst::GstCaps; #[cfg(feature = "v1_26")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))] pub fn gst_video_encoder_release_frame( encoder: *mut GstVideoEncoder, frame: *mut GstVideoCodecFrame, ); pub fn gst_video_encoder_set_headers(encoder: *mut GstVideoEncoder, headers: *mut glib::GList); pub fn gst_video_encoder_set_latency( encoder: *mut GstVideoEncoder, min_latency: gst::GstClockTime, max_latency: gst::GstClockTime, ); #[cfg(feature = "v1_18")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_video_encoder_set_min_force_key_unit_interval( encoder: *mut GstVideoEncoder, interval: gst::GstClockTime, ); pub fn gst_video_encoder_set_min_pts(encoder: *mut GstVideoEncoder, min_pts: gst::GstClockTime); pub fn gst_video_encoder_set_output_state( encoder: *mut GstVideoEncoder, caps: *mut gst::GstCaps, reference: *mut GstVideoCodecState, ) -> *mut GstVideoCodecState; pub fn gst_video_encoder_set_qos_enabled(encoder: *mut GstVideoEncoder, enabled: gboolean); //========================================================================= // GstVideoFilter //========================================================================= pub fn gst_video_filter_get_type() -> GType; //========================================================================= // GstVideoMultiviewFlagsSet //========================================================================= pub fn gst_video_multiview_flagset_get_type() -> GType; //========================================================================= // GstVideoSink //========================================================================= pub fn gst_video_sink_get_type() -> GType; pub fn gst_video_sink_center_rect( src: GstVideoRectangle, dst: GstVideoRectangle, result: *mut GstVideoRectangle, scaling: gboolean, ); //========================================================================= // GstColorBalance //========================================================================= pub fn gst_color_balance_get_type() -> GType; pub fn gst_color_balance_get_balance_type(balance: *mut GstColorBalance) -> GstColorBalanceType; pub fn gst_color_balance_get_value( balance: *mut GstColorBalance, channel: *mut GstColorBalanceChannel, ) -> c_int; pub fn gst_color_balance_list_channels(balance: *mut GstColorBalance) -> *const glib::GList; pub fn gst_color_balance_set_value( balance: *mut GstColorBalance, channel: *mut GstColorBalanceChannel, value: c_int, ); pub fn gst_color_balance_value_changed( balance: *mut GstColorBalance, channel: *mut GstColorBalanceChannel, value: c_int, ); //========================================================================= // GstNavigation //========================================================================= pub fn gst_navigation_get_type() -> GType; #[cfg(feature = "v1_22")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_navigation_event_get_coordinates( event: *mut gst::GstEvent, x: *mut c_double, y: *mut c_double, ) -> gboolean; pub fn gst_navigation_event_get_type(event: *mut gst::GstEvent) -> GstNavigationEventType; #[cfg(feature = "v1_22")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_navigation_event_new_command(command: GstNavigationCommand) -> *mut gst::GstEvent; #[cfg(feature = "v1_22")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_navigation_event_new_key_press( key: *const c_char, state: GstNavigationModifierType, ) -> *mut gst::GstEvent; #[cfg(feature = "v1_22")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_navigation_event_new_key_release( key: *const c_char, state: GstNavigationModifierType, ) -> *mut gst::GstEvent; #[cfg(feature = "v1_22")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_navigation_event_new_mouse_button_press( button: c_int, x: c_double, y: c_double, state: GstNavigationModifierType, ) -> *mut gst::GstEvent; #[cfg(feature = "v1_22")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_navigation_event_new_mouse_button_release( button: c_int, x: c_double, y: c_double, state: GstNavigationModifierType, ) -> *mut gst::GstEvent; #[cfg(feature = "v1_26")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))] pub fn gst_navigation_event_new_mouse_double_click( button: c_int, x: c_double, y: c_double, state: GstNavigationModifierType, ) -> *mut gst::GstEvent; #[cfg(feature = "v1_22")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_navigation_event_new_mouse_move( x: c_double, y: c_double, state: GstNavigationModifierType, ) -> *mut gst::GstEvent; #[cfg(feature = "v1_22")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_navigation_event_new_mouse_scroll( x: c_double, y: c_double, delta_x: c_double, delta_y: c_double, state: GstNavigationModifierType, ) -> *mut gst::GstEvent; #[cfg(feature = "v1_22")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_navigation_event_new_touch_cancel( state: GstNavigationModifierType, ) -> *mut gst::GstEvent; #[cfg(feature = "v1_22")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_navigation_event_new_touch_down( identifier: c_uint, x: c_double, y: c_double, pressure: c_double, state: GstNavigationModifierType, ) -> *mut gst::GstEvent; #[cfg(feature = "v1_22")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_navigation_event_new_touch_frame( state: GstNavigationModifierType, ) -> *mut gst::GstEvent; #[cfg(feature = "v1_22")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_navigation_event_new_touch_motion( identifier: c_uint, x: c_double, y: c_double, pressure: c_double, state: GstNavigationModifierType, ) -> *mut gst::GstEvent; #[cfg(feature = "v1_22")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_navigation_event_new_touch_up( identifier: c_uint, x: c_double, y: c_double, state: GstNavigationModifierType, ) -> *mut gst::GstEvent; pub fn gst_navigation_event_parse_command( event: *mut gst::GstEvent, command: *mut GstNavigationCommand, ) -> gboolean; pub fn gst_navigation_event_parse_key_event( event: *mut gst::GstEvent, key: *mut *const c_char, ) -> gboolean; #[cfg(feature = "v1_22")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_navigation_event_parse_modifier_state( event: *mut gst::GstEvent, state: *mut GstNavigationModifierType, ) -> gboolean; pub fn gst_navigation_event_parse_mouse_button_event( event: *mut gst::GstEvent, button: *mut c_int, x: *mut c_double, y: *mut c_double, ) -> gboolean; pub fn gst_navigation_event_parse_mouse_move_event( event: *mut gst::GstEvent, x: *mut c_double, y: *mut c_double, ) -> gboolean; #[cfg(feature = "v1_18")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_navigation_event_parse_mouse_scroll_event( event: *mut gst::GstEvent, x: *mut c_double, y: *mut c_double, delta_x: *mut c_double, delta_y: *mut c_double, ) -> gboolean; #[cfg(feature = "v1_22")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_navigation_event_parse_touch_event( event: *mut gst::GstEvent, identifier: *mut c_uint, x: *mut c_double, y: *mut c_double, pressure: *mut c_double, ) -> gboolean; #[cfg(feature = "v1_22")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_navigation_event_parse_touch_up_event( event: *mut gst::GstEvent, identifier: *mut c_uint, x: *mut c_double, y: *mut c_double, ) -> gboolean; #[cfg(feature = "v1_22")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_navigation_event_set_coordinates( event: *mut gst::GstEvent, x: c_double, y: c_double, ) -> gboolean; pub fn gst_navigation_message_get_type( message: *mut gst::GstMessage, ) -> GstNavigationMessageType; pub fn gst_navigation_message_new_angles_changed( src: *mut gst::GstObject, cur_angle: c_uint, n_angles: c_uint, ) -> *mut gst::GstMessage; pub fn gst_navigation_message_new_commands_changed( src: *mut gst::GstObject, ) -> *mut gst::GstMessage; pub fn gst_navigation_message_new_event( src: *mut gst::GstObject, event: *mut gst::GstEvent, ) -> *mut gst::GstMessage; pub fn gst_navigation_message_new_mouse_over( src: *mut gst::GstObject, active: gboolean, ) -> *mut gst::GstMessage; pub fn gst_navigation_message_parse_angles_changed( message: *mut gst::GstMessage, cur_angle: *mut c_uint, n_angles: *mut c_uint, ) -> gboolean; pub fn gst_navigation_message_parse_event( message: *mut gst::GstMessage, event: *mut *mut gst::GstEvent, ) -> gboolean; pub fn gst_navigation_message_parse_mouse_over( message: *mut gst::GstMessage, active: *mut gboolean, ) -> gboolean; pub fn gst_navigation_query_get_type(query: *mut gst::GstQuery) -> GstNavigationQueryType; pub fn gst_navigation_query_new_angles() -> *mut gst::GstQuery; pub fn gst_navigation_query_new_commands() -> *mut gst::GstQuery; pub fn gst_navigation_query_parse_angles( query: *mut gst::GstQuery, cur_angle: *mut c_uint, n_angles: *mut c_uint, ) -> gboolean; pub fn gst_navigation_query_parse_commands_length( query: *mut gst::GstQuery, n_cmds: *mut c_uint, ) -> gboolean; pub fn gst_navigation_query_parse_commands_nth( query: *mut gst::GstQuery, nth: c_uint, cmd: *mut GstNavigationCommand, ) -> gboolean; pub fn gst_navigation_query_set_angles( query: *mut gst::GstQuery, cur_angle: c_uint, n_angles: c_uint, ); pub fn gst_navigation_query_set_commands(query: *mut gst::GstQuery, n_cmds: c_int, ...); pub fn gst_navigation_query_set_commandsv( query: *mut gst::GstQuery, n_cmds: c_int, cmds: *mut GstNavigationCommand, ); pub fn gst_navigation_send_command( navigation: *mut GstNavigation, command: GstNavigationCommand, ); pub fn gst_navigation_send_event( navigation: *mut GstNavigation, structure: *mut gst::GstStructure, ); #[cfg(feature = "v1_22")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_navigation_send_event_simple( navigation: *mut GstNavigation, event: *mut gst::GstEvent, ); pub fn gst_navigation_send_key_event( navigation: *mut GstNavigation, event: *const c_char, key: *const c_char, ); pub fn gst_navigation_send_mouse_event( navigation: *mut GstNavigation, event: *const c_char, button: c_int, x: c_double, y: c_double, ); #[cfg(feature = "v1_18")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_navigation_send_mouse_scroll_event( navigation: *mut GstNavigation, x: c_double, y: c_double, delta_x: c_double, delta_y: c_double, ); //========================================================================= // GstVideoDirection //========================================================================= pub fn gst_video_direction_get_type() -> GType; //========================================================================= // GstVideoOrientation //========================================================================= pub fn gst_video_orientation_get_type() -> GType; #[cfg(feature = "v1_20")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_video_orientation_from_tag( taglist: *mut gst::GstTagList, method: *mut GstVideoOrientationMethod, ) -> gboolean; pub fn gst_video_orientation_get_hcenter( video_orientation: *mut GstVideoOrientation, center: *mut c_int, ) -> gboolean; pub fn gst_video_orientation_get_hflip( video_orientation: *mut GstVideoOrientation, flip: *mut gboolean, ) -> gboolean; pub fn gst_video_orientation_get_vcenter( video_orientation: *mut GstVideoOrientation, center: *mut c_int, ) -> gboolean; pub fn gst_video_orientation_get_vflip( video_orientation: *mut GstVideoOrientation, flip: *mut gboolean, ) -> gboolean; pub fn gst_video_orientation_set_hcenter( video_orientation: *mut GstVideoOrientation, center: c_int, ) -> gboolean; pub fn gst_video_orientation_set_hflip( video_orientation: *mut GstVideoOrientation, flip: gboolean, ) -> gboolean; pub fn gst_video_orientation_set_vcenter( video_orientation: *mut GstVideoOrientation, center: c_int, ) -> gboolean; pub fn gst_video_orientation_set_vflip( video_orientation: *mut GstVideoOrientation, flip: gboolean, ) -> gboolean; //========================================================================= // GstVideoOverlay //========================================================================= pub fn gst_video_overlay_get_type() -> GType; pub fn gst_video_overlay_install_properties( oclass: *mut gobject::GObjectClass, last_prop_id: c_int, ); pub fn gst_video_overlay_set_property( object: *mut gobject::GObject, last_prop_id: c_int, property_id: c_uint, value: *const gobject::GValue, ) -> gboolean; pub fn gst_video_overlay_expose(overlay: *mut GstVideoOverlay); pub fn gst_video_overlay_got_window_handle(overlay: *mut GstVideoOverlay, handle: uintptr_t); pub fn gst_video_overlay_handle_events(overlay: *mut GstVideoOverlay, handle_events: gboolean); pub fn gst_video_overlay_prepare_window_handle(overlay: *mut GstVideoOverlay); pub fn gst_video_overlay_set_render_rectangle( overlay: *mut GstVideoOverlay, x: c_int, y: c_int, width: c_int, height: c_int, ) -> gboolean; pub fn gst_video_overlay_set_window_handle(overlay: *mut GstVideoOverlay, handle: uintptr_t); //========================================================================= // Other functions //========================================================================= pub fn gst_ancillary_meta_api_get_type() -> GType; #[cfg(feature = "v1_24")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] pub fn gst_buffer_add_ancillary_meta(buffer: *mut gst::GstBuffer) -> *mut GstAncillaryMeta; #[cfg(feature = "v1_18")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_buffer_add_video_afd_meta( buffer: *mut gst::GstBuffer, field: u8, spec: GstVideoAFDSpec, afd: GstVideoAFDValue, ) -> *mut GstVideoAFDMeta; pub fn gst_buffer_add_video_affine_transformation_meta( buffer: *mut gst::GstBuffer, ) -> *mut GstVideoAffineTransformationMeta; #[cfg(feature = "v1_18")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_buffer_add_video_bar_meta( buffer: *mut gst::GstBuffer, field: u8, is_letterbox: gboolean, bar_data1: c_uint, bar_data2: c_uint, ) -> *mut GstVideoBarMeta; #[cfg(feature = "v1_16")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_buffer_add_video_caption_meta( buffer: *mut gst::GstBuffer, caption_type: GstVideoCaptionType, data: *const u8, size: size_t, ) -> *mut GstVideoCaptionMeta; #[cfg(feature = "v1_20")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_buffer_add_video_codec_alpha_meta( buffer: *mut gst::GstBuffer, alpha_buffer: *mut gst::GstBuffer, ) -> *mut GstVideoCodecAlphaMeta; pub fn gst_buffer_add_video_gl_texture_upload_meta( buffer: *mut gst::GstBuffer, texture_orientation: GstVideoGLTextureOrientation, n_textures: c_uint, texture_type: *mut GstVideoGLTextureType, upload: GstVideoGLTextureUpload, user_data: gpointer, user_data_copy: gobject::GBoxedCopyFunc, user_data_free: gobject::GBoxedFreeFunc, ) -> *mut GstVideoGLTextureUploadMeta; pub fn gst_buffer_add_video_meta( buffer: *mut gst::GstBuffer, flags: GstVideoFrameFlags, format: GstVideoFormat, width: c_uint, height: c_uint, ) -> *mut GstVideoMeta; pub fn gst_buffer_add_video_meta_full( buffer: *mut gst::GstBuffer, flags: GstVideoFrameFlags, format: GstVideoFormat, width: c_uint, height: c_uint, n_planes: c_uint, offset: *const [size_t; 4], stride: *const [c_int; 4], ) -> *mut GstVideoMeta; pub fn gst_buffer_add_video_overlay_composition_meta( buf: *mut gst::GstBuffer, comp: *mut GstVideoOverlayComposition, ) -> *mut GstVideoOverlayCompositionMeta; pub fn gst_buffer_add_video_region_of_interest_meta( buffer: *mut gst::GstBuffer, roi_type: *const c_char, x: c_uint, y: c_uint, w: c_uint, h: c_uint, ) -> *mut GstVideoRegionOfInterestMeta; pub fn gst_buffer_add_video_region_of_interest_meta_id( buffer: *mut gst::GstBuffer, roi_type: glib::GQuark, x: c_uint, y: c_uint, w: c_uint, h: c_uint, ) -> *mut GstVideoRegionOfInterestMeta; #[cfg(feature = "v1_22")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_buffer_add_video_sei_user_data_unregistered_meta( buffer: *mut gst::GstBuffer, uuid: *mut u8, data: *mut u8, size: size_t, ) -> *mut GstVideoSEIUserDataUnregisteredMeta; pub fn gst_buffer_add_video_time_code_meta( buffer: *mut gst::GstBuffer, tc: *const GstVideoTimeCode, ) -> *mut GstVideoTimeCodeMeta; pub fn gst_buffer_add_video_time_code_meta_full( buffer: *mut gst::GstBuffer, fps_n: c_uint, fps_d: c_uint, latest_daily_jam: *mut glib::GDateTime, flags: GstVideoTimeCodeFlags, hours: c_uint, minutes: c_uint, seconds: c_uint, frames: c_uint, field_count: c_uint, ) -> *mut GstVideoTimeCodeMeta; pub fn gst_buffer_get_video_meta(buffer: *mut gst::GstBuffer) -> *mut GstVideoMeta; pub fn gst_buffer_get_video_meta_id( buffer: *mut gst::GstBuffer, id: c_int, ) -> *mut GstVideoMeta; pub fn gst_buffer_get_video_region_of_interest_meta_id( buffer: *mut gst::GstBuffer, id: c_int, ) -> *mut GstVideoRegionOfInterestMeta; pub fn gst_buffer_pool_config_get_video_alignment( config: *const gst::GstStructure, align: *mut GstVideoAlignment, ) -> gboolean; pub fn gst_buffer_pool_config_set_video_alignment( config: *mut gst::GstStructure, align: *const GstVideoAlignment, ); pub fn gst_is_video_overlay_prepare_window_handle_message( msg: *mut gst::GstMessage, ) -> gboolean; #[cfg(feature = "v1_18")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_video_afd_meta_api_get_type() -> GType; pub fn gst_video_affine_transformation_meta_api_get_type() -> GType; #[cfg(feature = "v1_18")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_video_bar_meta_api_get_type() -> GType; pub fn gst_video_blend( dest: *mut GstVideoFrame, src: *mut GstVideoFrame, x: c_int, y: c_int, global_alpha: c_float, ) -> gboolean; pub fn gst_video_blend_scale_linear_RGBA( src: *mut GstVideoInfo, src_buffer: *mut gst::GstBuffer, dest_height: c_int, dest_width: c_int, dest: *mut GstVideoInfo, dest_buffer: *mut *mut gst::GstBuffer, ); pub fn gst_video_calculate_display_ratio( dar_n: *mut c_uint, dar_d: *mut c_uint, video_width: c_uint, video_height: c_uint, video_par_n: c_uint, video_par_d: c_uint, display_par_n: c_uint, display_par_d: c_uint, ) -> gboolean; #[cfg(feature = "v1_16")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn gst_video_caption_meta_api_get_type() -> GType; #[cfg(feature = "v1_20")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_video_center_rect( src: *const GstVideoRectangle, dst: *const GstVideoRectangle, result: *mut GstVideoRectangle, scaling: gboolean, ); pub fn gst_video_chroma_from_string(s: *const c_char) -> GstVideoChromaSite; pub fn gst_video_chroma_resample( resample: *mut GstVideoChromaResample, lines: *mut gpointer, width: c_int, ); pub fn gst_video_chroma_to_string(site: GstVideoChromaSite) -> *const c_char; #[cfg(feature = "v1_20")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn gst_video_codec_alpha_meta_api_get_type() -> GType; pub fn gst_video_color_transfer_decode( func: GstVideoTransferFunction, val: c_double, ) -> c_double; pub fn gst_video_color_transfer_encode( func: GstVideoTransferFunction, val: c_double, ) -> c_double; pub fn gst_video_convert_sample( sample: *mut gst::GstSample, to_caps: *const gst::GstCaps, timeout: gst::GstClockTime, error: *mut *mut glib::GError, ) -> *mut gst::GstSample; pub fn gst_video_convert_sample_async( sample: *mut gst::GstSample, to_caps: *const gst::GstCaps, timeout: gst::GstClockTime, callback: GstVideoConvertSampleCallback, user_data: gpointer, destroy_notify: glib::GDestroyNotify, ); pub fn gst_video_crop_meta_api_get_type() -> GType; #[cfg(feature = "v1_26")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))] pub fn gst_video_dma_drm_format_from_gst_format( format: GstVideoFormat, modifier: *mut u64, ) -> u32; #[cfg(feature = "v1_26")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))] pub fn gst_video_dma_drm_format_to_gst_format(fourcc: u32, modifier: u64) -> GstVideoFormat; #[cfg(feature = "v1_24")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] pub fn gst_video_dma_drm_fourcc_from_format(format: GstVideoFormat) -> u32; #[cfg(feature = "v1_24")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] pub fn gst_video_dma_drm_fourcc_from_string( format_str: *const c_char, modifier: *mut u64, ) -> u32; #[cfg(feature = "v1_24")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] pub fn gst_video_dma_drm_fourcc_to_format(fourcc: u32) -> GstVideoFormat; #[cfg(feature = "v1_24")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] pub fn gst_video_dma_drm_fourcc_to_string(fourcc: u32, modifier: u64) -> *mut c_char; pub fn gst_video_event_is_force_key_unit(event: *mut gst::GstEvent) -> gboolean; pub fn gst_video_event_new_downstream_force_key_unit( timestamp: gst::GstClockTime, stream_time: gst::GstClockTime, running_time: gst::GstClockTime, all_headers: gboolean, count: c_uint, ) -> *mut gst::GstEvent; pub fn gst_video_event_new_still_frame(in_still: gboolean) -> *mut gst::GstEvent; pub fn gst_video_event_new_upstream_force_key_unit( running_time: gst::GstClockTime, all_headers: gboolean, count: c_uint, ) -> *mut gst::GstEvent; pub fn gst_video_event_parse_downstream_force_key_unit( event: *mut gst::GstEvent, timestamp: *mut gst::GstClockTime, stream_time: *mut gst::GstClockTime, running_time: *mut gst::GstClockTime, all_headers: *mut gboolean, count: *mut c_uint, ) -> gboolean; pub fn gst_video_event_parse_still_frame( event: *mut gst::GstEvent, in_still: *mut gboolean, ) -> gboolean; pub fn gst_video_event_parse_upstream_force_key_unit( event: *mut gst::GstEvent, running_time: *mut gst::GstClockTime, all_headers: *mut gboolean, count: *mut c_uint, ) -> gboolean; #[cfg(feature = "v1_24")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] pub fn gst_video_formats_any(len: *mut c_uint) -> *const GstVideoFormat; #[cfg(feature = "v1_18")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_video_formats_raw(len: *mut c_uint) -> *const GstVideoFormat; pub fn gst_video_gl_texture_upload_meta_api_get_type() -> GType; pub fn gst_video_guess_framerate( duration: gst::GstClockTime, dest_n: *mut c_int, dest_d: *mut c_int, ) -> gboolean; #[cfg(feature = "v1_22")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_video_is_common_aspect_ratio( width: c_int, height: c_int, par_n: c_int, par_d: c_int, ) -> gboolean; #[cfg(feature = "v1_24")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] pub fn gst_video_is_dma_drm_caps(caps: *const gst::GstCaps) -> gboolean; #[cfg(feature = "v1_18")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_video_make_raw_caps( formats: *const GstVideoFormat, len: c_uint, ) -> *mut gst::GstCaps; #[cfg(feature = "v1_18")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn gst_video_make_raw_caps_with_features( formats: *const GstVideoFormat, len: c_uint, features: *mut gst::GstCapsFeatures, ) -> *mut gst::GstCaps; pub fn gst_video_meta_api_get_type() -> GType; pub fn gst_video_multiview_get_doubled_height_modes() -> *const gobject::GValue; pub fn gst_video_multiview_get_doubled_size_modes() -> *const gobject::GValue; pub fn gst_video_multiview_get_doubled_width_modes() -> *const gobject::GValue; pub fn gst_video_multiview_get_mono_modes() -> *const gobject::GValue; pub fn gst_video_multiview_get_unpacked_modes() -> *const gobject::GValue; pub fn gst_video_multiview_guess_half_aspect( mv_mode: GstVideoMultiviewMode, width: c_uint, height: c_uint, par_n: c_uint, par_d: c_uint, ) -> gboolean; pub fn gst_video_multiview_video_info_change_mode( info: *mut GstVideoInfo, out_mview_mode: GstVideoMultiviewMode, out_mview_flags: GstVideoMultiviewFlags, ); pub fn gst_video_overlay_composition_meta_api_get_type() -> GType; pub fn gst_video_region_of_interest_meta_api_get_type() -> GType; #[cfg(feature = "v1_22")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_video_sei_user_data_unregistered_meta_api_get_type() -> GType; #[cfg(feature = "v1_22")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] pub fn gst_video_sei_user_data_unregistered_parse_precision_time_stamp( user_data: *mut GstVideoSEIUserDataUnregisteredMeta, status: *mut u8, precision_time_stamp: *mut u64, ) -> gboolean; pub fn gst_video_tile_get_index( mode: GstVideoTileMode, x: c_int, y: c_int, x_tiles: c_int, y_tiles: c_int, ) -> c_uint; pub fn gst_video_time_code_meta_api_get_type() -> GType; } gstreamer-video-sys-0.24.0/tests/abi.rs000064400000000000000000001550311046102023000160700ustar 00000000000000// This file was generated by gir (https://github.com/gtk-rs/gir) // from gir-files (https://github.com/gtk-rs/gir-files) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // DO NOT EDIT #![cfg(unix)] use gstreamer_video_sys::*; use std::env; use std::error::Error; use std::ffi::OsString; use std::mem::{align_of, size_of}; use std::path::Path; use std::process::{Command, Stdio}; use std::str; use tempfile::Builder; static PACKAGES: &[&str] = &["gstreamer-video-1.0"]; #[derive(Clone, Debug)] struct Compiler { pub args: Vec, } impl Compiler { pub fn new() -> Result> { let mut args = get_var("CC", "cc")?; args.push("-Wno-deprecated-declarations".to_owned()); // For _Generic args.push("-std=c11".to_owned()); // For %z support in printf when using MinGW. args.push("-D__USE_MINGW_ANSI_STDIO".to_owned()); args.extend(get_var("CFLAGS", "")?); args.extend(get_var("CPPFLAGS", "")?); args.extend(pkg_config_cflags(PACKAGES)?); Ok(Self { args }) } pub fn compile(&self, src: &Path, out: &Path) -> Result<(), Box> { let mut cmd = self.to_command(); cmd.arg(src); cmd.arg("-o"); cmd.arg(out); let status = cmd.spawn()?.wait()?; if !status.success() { return Err(format!("compilation command {cmd:?} failed, {status}").into()); } Ok(()) } fn to_command(&self) -> Command { let mut cmd = Command::new(&self.args[0]); cmd.args(&self.args[1..]); cmd } } fn get_var(name: &str, default: &str) -> Result, Box> { match env::var(name) { Ok(value) => Ok(shell_words::split(&value)?), Err(env::VarError::NotPresent) => Ok(shell_words::split(default)?), Err(err) => Err(format!("{name} {err}").into()), } } fn pkg_config_cflags(packages: &[&str]) -> Result, Box> { if packages.is_empty() { return Ok(Vec::new()); } let pkg_config = env::var_os("PKG_CONFIG").unwrap_or_else(|| OsString::from("pkg-config")); let mut cmd = Command::new(pkg_config); cmd.arg("--cflags"); cmd.args(packages); cmd.stderr(Stdio::inherit()); let out = cmd.output()?; if !out.status.success() { let (status, stdout) = (out.status, String::from_utf8_lossy(&out.stdout)); return Err(format!("command {cmd:?} failed, {status:?}\nstdout: {stdout}").into()); } let stdout = str::from_utf8(&out.stdout)?; Ok(shell_words::split(stdout.trim())?) } #[derive(Copy, Clone, Debug, Eq, PartialEq)] struct Layout { size: usize, alignment: usize, } #[derive(Copy, Clone, Debug, Default, Eq, PartialEq)] struct Results { /// Number of successfully completed tests. passed: usize, /// Total number of failed tests (including those that failed to compile). failed: usize, } impl Results { fn record_passed(&mut self) { self.passed += 1; } fn record_failed(&mut self) { self.failed += 1; } fn summary(&self) -> String { format!("{} passed; {} failed", self.passed, self.failed) } fn expect_total_success(&self) { if self.failed == 0 { println!("OK: {}", self.summary()); } else { panic!("FAILED: {}", self.summary()); }; } } #[test] fn cross_validate_constants_with_c() { let mut c_constants: Vec<(String, String)> = Vec::new(); for l in get_c_output("constant").unwrap().lines() { let (name, value) = l.split_once(';').expect("Missing ';' separator"); c_constants.push((name.to_owned(), value.to_owned())); } let mut results = Results::default(); for ((rust_name, rust_value), (c_name, c_value)) in RUST_CONSTANTS.iter().zip(c_constants.iter()) { if rust_name != c_name { results.record_failed(); eprintln!("Name mismatch:\nRust: {rust_name:?}\nC: {c_name:?}"); continue; } if rust_value != c_value { results.record_failed(); eprintln!( "Constant value mismatch for {rust_name}\nRust: {rust_value:?}\nC: {c_value:?}", ); continue; } results.record_passed(); } results.expect_total_success(); } #[test] fn cross_validate_layout_with_c() { let mut c_layouts = Vec::new(); for l in get_c_output("layout").unwrap().lines() { let (name, value) = l.split_once(';').expect("Missing first ';' separator"); let (size, alignment) = value.split_once(';').expect("Missing second ';' separator"); let size = size.parse().expect("Failed to parse size"); let alignment = alignment.parse().expect("Failed to parse alignment"); c_layouts.push((name.to_owned(), Layout { size, alignment })); } let mut results = Results::default(); for ((rust_name, rust_layout), (c_name, c_layout)) in RUST_LAYOUTS.iter().zip(c_layouts.iter()) { if rust_name != c_name { results.record_failed(); eprintln!("Name mismatch:\nRust: {rust_name:?}\nC: {c_name:?}"); continue; } if rust_layout != c_layout { results.record_failed(); eprintln!("Layout mismatch for {rust_name}\nRust: {rust_layout:?}\nC: {c_layout:?}",); continue; } results.record_passed(); } results.expect_total_success(); } fn get_c_output(name: &str) -> Result> { let tmpdir = Builder::new().prefix("abi").tempdir()?; let exe = tmpdir.path().join(name); let c_file = Path::new("tests").join(name).with_extension("c"); let cc = Compiler::new().expect("configured compiler"); cc.compile(&c_file, &exe)?; let mut cmd = Command::new(exe); cmd.stderr(Stdio::inherit()); let out = cmd.output()?; if !out.status.success() { let (status, stdout) = (out.status, String::from_utf8_lossy(&out.stdout)); return Err(format!("command {cmd:?} failed, {status:?}\nstdout: {stdout}").into()); } Ok(String::from_utf8(out.stdout)?) } const RUST_LAYOUTS: &[(&str, Layout)] = &[ ( "GstAncillaryMeta", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstAncillaryMetaField", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstColorBalanceChannel", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstColorBalanceChannelClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstColorBalanceInterface", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstColorBalanceType", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstNavigationCommand", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstNavigationEventType", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstNavigationInterface", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstNavigationMessageType", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstNavigationModifierType", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstNavigationQueryType", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoAFDMeta", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoAFDSpec", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoAFDValue", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoAffineTransformationMeta", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoAggregator", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoAggregatorClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoAggregatorConvertPad", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoAggregatorConvertPadClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoAggregatorPad", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoAggregatorPadClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoAggregatorParallelConvertPad", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoAggregatorParallelConvertPadClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoAlignment", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoAlphaMode", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoAncillary", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoAncillaryDID", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoAncillaryDID16", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoBarMeta", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoBufferFlags", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoBufferPool", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoBufferPoolClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoCaptionMeta", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoCaptionType", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoChromaFlags", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoChromaMethod", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoChromaMode", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoChromaSite", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoCodecAlphaMeta", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoCodecFrame", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoCodecFrameFlags", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoCodecState", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoColorMatrix", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoColorPrimaries", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoColorPrimariesInfo", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoColorRange", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoColorimetry", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoContentLightLevel", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoCropMeta", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoDecoder", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoDecoderClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoDecoderRequestSyncPointFlags", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoDirectionInterface", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoDitherFlags", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoDitherMethod", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoEncoder", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoEncoderClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoFieldOrder", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoFilter", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoFilterClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoFlags", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoFormat", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoFormatFlags", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoFormatInfo", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoFrame", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoFrameFlags", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoFrameMapFlags", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoGLTextureOrientation", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoGLTextureType", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoGLTextureUploadMeta", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoGammaMode", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoInfo", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoInfoDmaDrm", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoInterlaceMode", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoMasteringDisplayInfo", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoMasteringDisplayInfoCoordinates", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoMatrixMode", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoMeta", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoMetaTransform", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoMultiviewFlags", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoMultiviewFramePacking", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoMultiviewMode", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoOrientationInterface", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoOrientationMethod", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoOverlayCompositionMeta", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoOverlayFormatFlags", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoOverlayInterface", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoPackFlags", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoPrimariesMode", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoRectangle", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoRegionOfInterestMeta", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoResampler", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoResamplerFlags", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoResamplerMethod", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoSEIUserDataUnregisteredMeta", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoScalerFlags", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoSink", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoSinkClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoTileInfo", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoTileMode", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoTileType", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoTimeCode", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoTimeCodeConfig", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoTimeCodeFlags", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoTimeCodeInterval", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoTimeCodeMeta", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoTransferFunction", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "GstVideoVBIParserResult", Layout { size: size_of::(), alignment: align_of::(), }, ), ]; const RUST_CONSTANTS: &[(&str, &str)] = &[ ("(gint) GST_ANCILLARY_META_FIELD_INTERLACED_FIRST", "16"), ("(gint) GST_ANCILLARY_META_FIELD_INTERLACED_SECOND", "17"), ("(gint) GST_ANCILLARY_META_FIELD_PROGRESSIVE", "0"), ( "GST_BUFFER_POOL_OPTION_VIDEO_AFFINE_TRANSFORMATION_META", "GstBufferPoolOptionVideoAffineTransformation", ), ( "GST_BUFFER_POOL_OPTION_VIDEO_ALIGNMENT", "GstBufferPoolOptionVideoAlignment", ), ( "GST_BUFFER_POOL_OPTION_VIDEO_GL_TEXTURE_UPLOAD_META", "GstBufferPoolOptionVideoGLTextureUploadMeta", ), ( "GST_BUFFER_POOL_OPTION_VIDEO_META", "GstBufferPoolOptionVideoMeta", ), ("GST_CAPS_FEATURE_FORMAT_INTERLACED", "format:Interlaced"), ( "GST_CAPS_FEATURE_META_GST_VIDEO_AFFINE_TRANSFORMATION_META", "meta:GstVideoAffineTransformation", ), ( "GST_CAPS_FEATURE_META_GST_VIDEO_GL_TEXTURE_UPLOAD_META", "meta:GstVideoGLTextureUploadMeta", ), ("GST_CAPS_FEATURE_META_GST_VIDEO_META", "meta:GstVideoMeta"), ( "GST_CAPS_FEATURE_META_GST_VIDEO_OVERLAY_COMPOSITION", "meta:GstVideoOverlayComposition", ), ("(gint) GST_COLOR_BALANCE_HARDWARE", "0"), ("(gint) GST_COLOR_BALANCE_SOFTWARE", "1"), ("GST_META_TAG_VIDEO_COLORSPACE_STR", "colorspace"), ("GST_META_TAG_VIDEO_ORIENTATION_STR", "orientation"), ("GST_META_TAG_VIDEO_SIZE_STR", "size"), ("GST_META_TAG_VIDEO_STR", "video"), ("(gint) GST_NAVIGATION_COMMAND_ACTIVATE", "24"), ("(gint) GST_NAVIGATION_COMMAND_DOWN", "23"), ("(gint) GST_NAVIGATION_COMMAND_INVALID", "0"), ("(gint) GST_NAVIGATION_COMMAND_LEFT", "20"), ("(gint) GST_NAVIGATION_COMMAND_MENU1", "1"), ("(gint) GST_NAVIGATION_COMMAND_MENU2", "2"), ("(gint) GST_NAVIGATION_COMMAND_MENU3", "3"), ("(gint) GST_NAVIGATION_COMMAND_MENU4", "4"), ("(gint) GST_NAVIGATION_COMMAND_MENU5", "5"), ("(gint) GST_NAVIGATION_COMMAND_MENU6", "6"), ("(gint) GST_NAVIGATION_COMMAND_MENU7", "7"), ("(gint) GST_NAVIGATION_COMMAND_NEXT_ANGLE", "31"), ("(gint) GST_NAVIGATION_COMMAND_PREV_ANGLE", "30"), ("(gint) GST_NAVIGATION_COMMAND_RIGHT", "21"), ("(gint) GST_NAVIGATION_COMMAND_UP", "22"), ("(gint) GST_NAVIGATION_EVENT_COMMAND", "6"), ("(gint) GST_NAVIGATION_EVENT_INVALID", "0"), ("(gint) GST_NAVIGATION_EVENT_KEY_PRESS", "1"), ("(gint) GST_NAVIGATION_EVENT_KEY_RELEASE", "2"), ("(gint) GST_NAVIGATION_EVENT_MOUSE_BUTTON_PRESS", "3"), ("(gint) GST_NAVIGATION_EVENT_MOUSE_BUTTON_RELEASE", "4"), ("(gint) GST_NAVIGATION_EVENT_MOUSE_DOUBLE_CLICK", "13"), ("(gint) GST_NAVIGATION_EVENT_MOUSE_MOVE", "5"), ("(gint) GST_NAVIGATION_EVENT_MOUSE_SCROLL", "7"), ("(gint) GST_NAVIGATION_EVENT_TOUCH_CANCEL", "12"), ("(gint) GST_NAVIGATION_EVENT_TOUCH_DOWN", "8"), ("(gint) GST_NAVIGATION_EVENT_TOUCH_FRAME", "11"), ("(gint) GST_NAVIGATION_EVENT_TOUCH_MOTION", "9"), ("(gint) GST_NAVIGATION_EVENT_TOUCH_UP", "10"), ("(gint) GST_NAVIGATION_MESSAGE_ANGLES_CHANGED", "3"), ("(gint) GST_NAVIGATION_MESSAGE_COMMANDS_CHANGED", "2"), ("(gint) GST_NAVIGATION_MESSAGE_EVENT", "4"), ("(gint) GST_NAVIGATION_MESSAGE_INVALID", "0"), ("(gint) GST_NAVIGATION_MESSAGE_MOUSE_OVER", "1"), ("(guint) GST_NAVIGATION_MODIFIER_BUTTON1_MASK", "256"), ("(guint) GST_NAVIGATION_MODIFIER_BUTTON2_MASK", "512"), ("(guint) GST_NAVIGATION_MODIFIER_BUTTON3_MASK", "1024"), ("(guint) GST_NAVIGATION_MODIFIER_BUTTON4_MASK", "2048"), ("(guint) GST_NAVIGATION_MODIFIER_BUTTON5_MASK", "4096"), ("(guint) GST_NAVIGATION_MODIFIER_CONTROL_MASK", "4"), ("(guint) GST_NAVIGATION_MODIFIER_HYPER_MASK", "134217728"), ("(guint) GST_NAVIGATION_MODIFIER_LOCK_MASK", "2"), ("(guint) GST_NAVIGATION_MODIFIER_MASK", "469770239"), ("(guint) GST_NAVIGATION_MODIFIER_META_MASK", "268435456"), ("(guint) GST_NAVIGATION_MODIFIER_MOD1_MASK", "8"), ("(guint) GST_NAVIGATION_MODIFIER_MOD2_MASK", "16"), ("(guint) GST_NAVIGATION_MODIFIER_MOD3_MASK", "32"), ("(guint) GST_NAVIGATION_MODIFIER_MOD4_MASK", "64"), ("(guint) GST_NAVIGATION_MODIFIER_MOD5_MASK", "128"), ("(guint) GST_NAVIGATION_MODIFIER_NONE", "0"), ("(guint) GST_NAVIGATION_MODIFIER_SHIFT_MASK", "1"), ("(guint) GST_NAVIGATION_MODIFIER_SUPER_MASK", "67108864"), ("(gint) GST_NAVIGATION_QUERY_ANGLES", "2"), ("(gint) GST_NAVIGATION_QUERY_COMMANDS", "1"), ("(gint) GST_NAVIGATION_QUERY_INVALID", "0"), ("(gint) GST_VIDEO_AFD_14_9_LETTER_14_9_PILLAR", "11"), ("(gint) GST_VIDEO_AFD_14_9_TOP_ALIGNED", "3"), ("(gint) GST_VIDEO_AFD_16_9_LETTER_14_9_CENTER", "14"), ("(gint) GST_VIDEO_AFD_16_9_LETTER_16_9_FULL", "10"), ("(gint) GST_VIDEO_AFD_16_9_LETTER_4_3_CENTER", "15"), ("(gint) GST_VIDEO_AFD_16_9_TOP_ALIGNED", "2"), ("(gint) GST_VIDEO_AFD_4_3_FULL_14_9_CENTER", "13"), ("(gint) GST_VIDEO_AFD_4_3_FULL_16_9_FULL", "8"), ("(gint) GST_VIDEO_AFD_4_3_FULL_4_3_PILLAR", "9"), ("(gint) GST_VIDEO_AFD_GREATER_THAN_16_9", "4"), ("(gint) GST_VIDEO_AFD_SPEC_ATSC_A53", "1"), ("(gint) GST_VIDEO_AFD_SPEC_DVB_ETSI", "0"), ("(gint) GST_VIDEO_AFD_SPEC_SMPTE_ST2016_1", "2"), ("(gint) GST_VIDEO_AFD_UNAVAILABLE", "0"), ("(gint) GST_VIDEO_ALPHA_MODE_COPY", "0"), ("(gint) GST_VIDEO_ALPHA_MODE_MULT", "2"), ("(gint) GST_VIDEO_ALPHA_MODE_SET", "1"), ("(gint) GST_VIDEO_ANCILLARY_DID16_S2016_3_AFD_BAR", "16645"), ("(gint) GST_VIDEO_ANCILLARY_DID16_S334_EIA_608", "24834"), ("(gint) GST_VIDEO_ANCILLARY_DID16_S334_EIA_708", "24833"), ("(gint) GST_VIDEO_ANCILLARY_DID_CAMERA_POSITION", "240"), ("(gint) GST_VIDEO_ANCILLARY_DID_DELETION", "128"), ( "(gint) GST_VIDEO_ANCILLARY_DID_HANC_3G_AUDIO_DATA_FIRST", "160", ), ( "(gint) GST_VIDEO_ANCILLARY_DID_HANC_3G_AUDIO_DATA_LAST", "167", ), ("(gint) GST_VIDEO_ANCILLARY_DID_HANC_ERROR_DETECTION", "244"), ( "(gint) GST_VIDEO_ANCILLARY_DID_HANC_HDTV_AUDIO_DATA_FIRST", "224", ), ( "(gint) GST_VIDEO_ANCILLARY_DID_HANC_HDTV_AUDIO_DATA_LAST", "231", ), ( "(gint) GST_VIDEO_ANCILLARY_DID_HANC_SDTV_AUDIO_DATA_1_FIRST", "236", ), ( "(gint) GST_VIDEO_ANCILLARY_DID_HANC_SDTV_AUDIO_DATA_1_LAST", "239", ), ( "(gint) GST_VIDEO_ANCILLARY_DID_HANC_SDTV_AUDIO_DATA_2_FIRST", "248", ), ( "(gint) GST_VIDEO_ANCILLARY_DID_HANC_SDTV_AUDIO_DATA_2_LAST", "255", ), ("(gint) GST_VIDEO_ANCILLARY_DID_UNDEFINED", "0"), ("(guint) GST_VIDEO_BUFFER_FLAG_BOTTOM_FIELD", "8388608"), ("(guint) GST_VIDEO_BUFFER_FLAG_FIRST_IN_BUNDLE", "33554432"), ("(guint) GST_VIDEO_BUFFER_FLAG_INTERLACED", "1048576"), ("(guint) GST_VIDEO_BUFFER_FLAG_LAST", "268435456"), ("(guint) GST_VIDEO_BUFFER_FLAG_MARKER", "512"), ("(guint) GST_VIDEO_BUFFER_FLAG_MULTIPLE_VIEW", "16777216"), ("(guint) GST_VIDEO_BUFFER_FLAG_ONEFIELD", "8388608"), ("(guint) GST_VIDEO_BUFFER_FLAG_RFF", "4194304"), ("(guint) GST_VIDEO_BUFFER_FLAG_TFF", "2097152"), ("(guint) GST_VIDEO_BUFFER_FLAG_TOP_FIELD", "10485760"), ("(gint) GST_VIDEO_CAPTION_TYPE_CEA608_RAW", "1"), ("(gint) GST_VIDEO_CAPTION_TYPE_CEA608_S334_1A", "2"), ("(gint) GST_VIDEO_CAPTION_TYPE_CEA708_CDP", "4"), ("(gint) GST_VIDEO_CAPTION_TYPE_CEA708_RAW", "3"), ("(gint) GST_VIDEO_CAPTION_TYPE_UNKNOWN", "0"), ("(guint) GST_VIDEO_CHROMA_FLAG_INTERLACED", "1"), ("(guint) GST_VIDEO_CHROMA_FLAG_NONE", "0"), ("(gint) GST_VIDEO_CHROMA_METHOD_LINEAR", "1"), ("(gint) GST_VIDEO_CHROMA_METHOD_NEAREST", "0"), ("(gint) GST_VIDEO_CHROMA_MODE_DOWNSAMPLE_ONLY", "2"), ("(gint) GST_VIDEO_CHROMA_MODE_FULL", "0"), ("(gint) GST_VIDEO_CHROMA_MODE_NONE", "3"), ("(gint) GST_VIDEO_CHROMA_MODE_UPSAMPLE_ONLY", "1"), ("(guint) GST_VIDEO_CHROMA_SITE_ALT_LINE", "8"), ("(guint) GST_VIDEO_CHROMA_SITE_COSITED", "6"), ("(guint) GST_VIDEO_CHROMA_SITE_DV", "14"), ("(guint) GST_VIDEO_CHROMA_SITE_H_COSITED", "2"), ("(guint) GST_VIDEO_CHROMA_SITE_JPEG", "1"), ("(guint) GST_VIDEO_CHROMA_SITE_MPEG2", "2"), ("(guint) GST_VIDEO_CHROMA_SITE_NONE", "1"), ("(guint) GST_VIDEO_CHROMA_SITE_UNKNOWN", "0"), ("(guint) GST_VIDEO_CHROMA_SITE_V_COSITED", "4"), ("(guint) GST_VIDEO_CODEC_FRAME_FLAG_CORRUPTED", "16"), ("(guint) GST_VIDEO_CODEC_FRAME_FLAG_DECODE_ONLY", "1"), ("(guint) GST_VIDEO_CODEC_FRAME_FLAG_FORCE_KEYFRAME", "4"), ( "(guint) GST_VIDEO_CODEC_FRAME_FLAG_FORCE_KEYFRAME_HEADERS", "8", ), ("(guint) GST_VIDEO_CODEC_FRAME_FLAG_SYNC_POINT", "2"), ("GST_VIDEO_COLORIMETRY_BT2020", "bt2020"), ("GST_VIDEO_COLORIMETRY_BT2020_10", "bt2020-10"), ("GST_VIDEO_COLORIMETRY_BT2100_HLG", "bt2100-hlg"), ("GST_VIDEO_COLORIMETRY_BT2100_PQ", "bt2100-pq"), ("GST_VIDEO_COLORIMETRY_BT601", "bt601"), ("GST_VIDEO_COLORIMETRY_BT709", "bt709"), ("GST_VIDEO_COLORIMETRY_SMPTE240M", "smpte240m"), ("GST_VIDEO_COLORIMETRY_SRGB", "sRGB"), ("(gint) GST_VIDEO_COLOR_MATRIX_BT2020", "6"), ("(gint) GST_VIDEO_COLOR_MATRIX_BT601", "4"), ("(gint) GST_VIDEO_COLOR_MATRIX_BT709", "3"), ("(gint) GST_VIDEO_COLOR_MATRIX_FCC", "2"), ("(gint) GST_VIDEO_COLOR_MATRIX_RGB", "1"), ("(gint) GST_VIDEO_COLOR_MATRIX_SMPTE240M", "5"), ("(gint) GST_VIDEO_COLOR_MATRIX_UNKNOWN", "0"), ("(gint) GST_VIDEO_COLOR_PRIMARIES_ADOBERGB", "8"), ("(gint) GST_VIDEO_COLOR_PRIMARIES_BT2020", "7"), ("(gint) GST_VIDEO_COLOR_PRIMARIES_BT470BG", "3"), ("(gint) GST_VIDEO_COLOR_PRIMARIES_BT470M", "2"), ("(gint) GST_VIDEO_COLOR_PRIMARIES_BT709", "1"), ("(gint) GST_VIDEO_COLOR_PRIMARIES_EBU3213", "12"), ("(gint) GST_VIDEO_COLOR_PRIMARIES_FILM", "6"), ("(gint) GST_VIDEO_COLOR_PRIMARIES_SMPTE170M", "4"), ("(gint) GST_VIDEO_COLOR_PRIMARIES_SMPTE240M", "5"), ("(gint) GST_VIDEO_COLOR_PRIMARIES_SMPTEEG432", "11"), ("(gint) GST_VIDEO_COLOR_PRIMARIES_SMPTERP431", "10"), ("(gint) GST_VIDEO_COLOR_PRIMARIES_SMPTEST428", "9"), ("(gint) GST_VIDEO_COLOR_PRIMARIES_UNKNOWN", "0"), ("(gint) GST_VIDEO_COLOR_RANGE_0_255", "1"), ("(gint) GST_VIDEO_COLOR_RANGE_16_235", "2"), ("(gint) GST_VIDEO_COLOR_RANGE_UNKNOWN", "0"), ("GST_VIDEO_COMP_A", "3"), ("GST_VIDEO_COMP_B", "2"), ("GST_VIDEO_COMP_G", "1"), ("GST_VIDEO_COMP_INDEX", "0"), ("GST_VIDEO_COMP_PALETTE", "1"), ("GST_VIDEO_COMP_R", "0"), ("GST_VIDEO_COMP_U", "1"), ("GST_VIDEO_COMP_V", "2"), ("GST_VIDEO_COMP_Y", "0"), ( "GST_VIDEO_CONVERTER_OPT_ALPHA_MODE", "GstVideoConverter.alpha-mode", ), ( "GST_VIDEO_CONVERTER_OPT_ALPHA_VALUE", "GstVideoConverter.alpha-value", ), ( "GST_VIDEO_CONVERTER_OPT_ASYNC_TASKS", "GstVideoConverter.async-tasks", ), ( "GST_VIDEO_CONVERTER_OPT_BORDER_ARGB", "GstVideoConverter.border-argb", ), ( "GST_VIDEO_CONVERTER_OPT_CHROMA_MODE", "GstVideoConverter.chroma-mode", ), ( "GST_VIDEO_CONVERTER_OPT_CHROMA_RESAMPLER_METHOD", "GstVideoConverter.chroma-resampler-method", ), ( "GST_VIDEO_CONVERTER_OPT_DEST_HEIGHT", "GstVideoConverter.dest-height", ), ( "GST_VIDEO_CONVERTER_OPT_DEST_WIDTH", "GstVideoConverter.dest-width", ), ("GST_VIDEO_CONVERTER_OPT_DEST_X", "GstVideoConverter.dest-x"), ("GST_VIDEO_CONVERTER_OPT_DEST_Y", "GstVideoConverter.dest-y"), ( "GST_VIDEO_CONVERTER_OPT_DITHER_METHOD", "GstVideoConverter.dither-method", ), ( "GST_VIDEO_CONVERTER_OPT_DITHER_QUANTIZATION", "GstVideoConverter.dither-quantization", ), ( "GST_VIDEO_CONVERTER_OPT_FILL_BORDER", "GstVideoConverter.fill-border", ), ( "GST_VIDEO_CONVERTER_OPT_GAMMA_MODE", "GstVideoConverter.gamma-mode", ), ( "GST_VIDEO_CONVERTER_OPT_MATRIX_MODE", "GstVideoConverter.matrix-mode", ), ( "GST_VIDEO_CONVERTER_OPT_PRIMARIES_MODE", "GstVideoConverter.primaries-mode", ), ( "GST_VIDEO_CONVERTER_OPT_RESAMPLER_METHOD", "GstVideoConverter.resampler-method", ), ( "GST_VIDEO_CONVERTER_OPT_RESAMPLER_TAPS", "GstVideoConverter.resampler-taps", ), ( "GST_VIDEO_CONVERTER_OPT_SRC_HEIGHT", "GstVideoConverter.src-height", ), ( "GST_VIDEO_CONVERTER_OPT_SRC_WIDTH", "GstVideoConverter.src-width", ), ("GST_VIDEO_CONVERTER_OPT_SRC_X", "GstVideoConverter.src-x"), ("GST_VIDEO_CONVERTER_OPT_SRC_Y", "GstVideoConverter.src-y"), ( "GST_VIDEO_CONVERTER_OPT_THREADS", "GstVideoConverter.threads", ), ("GST_VIDEO_DECODER_MAX_ERRORS", "-1"), ( "(guint) GST_VIDEO_DECODER_REQUEST_SYNC_POINT_CORRUPT_OUTPUT", "2", ), ( "(guint) GST_VIDEO_DECODER_REQUEST_SYNC_POINT_DISCARD_INPUT", "1", ), ("GST_VIDEO_DECODER_SINK_NAME", "sink"), ("GST_VIDEO_DECODER_SRC_NAME", "src"), ("(gint) GST_VIDEO_DITHER_BAYER", "4"), ("(guint) GST_VIDEO_DITHER_FLAG_INTERLACED", "1"), ("(guint) GST_VIDEO_DITHER_FLAG_NONE", "0"), ("(guint) GST_VIDEO_DITHER_FLAG_QUANTIZE", "2"), ("(gint) GST_VIDEO_DITHER_FLOYD_STEINBERG", "2"), ("(gint) GST_VIDEO_DITHER_NONE", "0"), ("(gint) GST_VIDEO_DITHER_SIERRA_LITE", "3"), ("(gint) GST_VIDEO_DITHER_VERTERR", "1"), ("GST_VIDEO_ENCODER_SINK_NAME", "sink"), ("GST_VIDEO_ENCODER_SRC_NAME", "src"), ("(gint) GST_VIDEO_FIELD_ORDER_BOTTOM_FIELD_FIRST", "2"), ("(gint) GST_VIDEO_FIELD_ORDER_TOP_FIELD_FIRST", "1"), ("(gint) GST_VIDEO_FIELD_ORDER_UNKNOWN", "0"), ("(guint) GST_VIDEO_FLAG_NONE", "0"), ("(guint) GST_VIDEO_FLAG_PREMULTIPLIED_ALPHA", "2"), ("(guint) GST_VIDEO_FLAG_VARIABLE_FPS", "1"), ("(gint) GST_VIDEO_FORMAT_A420", "34"), ("(gint) GST_VIDEO_FORMAT_A420_10BE", "54"), ("(gint) GST_VIDEO_FORMAT_A420_10LE", "55"), ("(gint) GST_VIDEO_FORMAT_A420_12BE", "124"), ("(gint) GST_VIDEO_FORMAT_A420_12LE", "123"), ("(gint) GST_VIDEO_FORMAT_A420_16BE", "130"), ("(gint) GST_VIDEO_FORMAT_A420_16LE", "129"), ("(gint) GST_VIDEO_FORMAT_A422", "117"), ("(gint) GST_VIDEO_FORMAT_A422_10BE", "56"), ("(gint) GST_VIDEO_FORMAT_A422_10LE", "57"), ("(gint) GST_VIDEO_FORMAT_A422_12BE", "122"), ("(gint) GST_VIDEO_FORMAT_A422_12LE", "121"), ("(gint) GST_VIDEO_FORMAT_A422_16BE", "128"), ("(gint) GST_VIDEO_FORMAT_A422_16LE", "127"), ("(gint) GST_VIDEO_FORMAT_A444", "118"), ("(gint) GST_VIDEO_FORMAT_A444_10BE", "58"), ("(gint) GST_VIDEO_FORMAT_A444_10LE", "59"), ("(gint) GST_VIDEO_FORMAT_A444_12BE", "120"), ("(gint) GST_VIDEO_FORMAT_A444_12LE", "119"), ("(gint) GST_VIDEO_FORMAT_A444_16BE", "126"), ("(gint) GST_VIDEO_FORMAT_A444_16LE", "125"), ("(gint) GST_VIDEO_FORMAT_ABGR", "14"), ("(gint) GST_VIDEO_FORMAT_ABGR64_BE", "109"), ("(gint) GST_VIDEO_FORMAT_ABGR64_LE", "108"), ("(gint) GST_VIDEO_FORMAT_ARGB", "13"), ("(gint) GST_VIDEO_FORMAT_ARGB64", "39"), ("(gint) GST_VIDEO_FORMAT_ARGB64_BE", "103"), ("(gint) GST_VIDEO_FORMAT_ARGB64_LE", "102"), ("(gint) GST_VIDEO_FORMAT_AV12", "101"), ("(gint) GST_VIDEO_FORMAT_AYUV", "6"), ("(gint) GST_VIDEO_FORMAT_AYUV64", "40"), ("(gint) GST_VIDEO_FORMAT_BGR", "16"), ("(gint) GST_VIDEO_FORMAT_BGR10A2_LE", "85"), ("(gint) GST_VIDEO_FORMAT_BGR15", "32"), ("(gint) GST_VIDEO_FORMAT_BGR16", "30"), ("(gint) GST_VIDEO_FORMAT_BGRA", "12"), ("(gint) GST_VIDEO_FORMAT_BGRA64_BE", "107"), ("(gint) GST_VIDEO_FORMAT_BGRA64_LE", "106"), ("(gint) GST_VIDEO_FORMAT_BGRP", "100"), ("(gint) GST_VIDEO_FORMAT_BGRx", "8"), ("(gint) GST_VIDEO_FORMAT_DMA_DRM", "114"), ("(gint) GST_VIDEO_FORMAT_ENCODED", "1"), ("(guint) GST_VIDEO_FORMAT_FLAG_ALPHA", "8"), ("(guint) GST_VIDEO_FORMAT_FLAG_COMPLEX", "64"), ("(guint) GST_VIDEO_FORMAT_FLAG_GRAY", "4"), ("(guint) GST_VIDEO_FORMAT_FLAG_LE", "16"), ("(guint) GST_VIDEO_FORMAT_FLAG_PALETTE", "32"), ("(guint) GST_VIDEO_FORMAT_FLAG_RGB", "2"), ("(guint) GST_VIDEO_FORMAT_FLAG_SUBTILES", "512"), ("(guint) GST_VIDEO_FORMAT_FLAG_TILED", "256"), ("(guint) GST_VIDEO_FORMAT_FLAG_UNPACK", "128"), ("(guint) GST_VIDEO_FORMAT_FLAG_YUV", "1"), ("(gint) GST_VIDEO_FORMAT_GBR", "48"), ("(gint) GST_VIDEO_FORMAT_GBRA", "65"), ("(gint) GST_VIDEO_FORMAT_GBRA_10BE", "66"), ("(gint) GST_VIDEO_FORMAT_GBRA_10LE", "67"), ("(gint) GST_VIDEO_FORMAT_GBRA_12BE", "70"), ("(gint) GST_VIDEO_FORMAT_GBRA_12LE", "71"), ("(gint) GST_VIDEO_FORMAT_GBR_10BE", "49"), ("(gint) GST_VIDEO_FORMAT_GBR_10LE", "50"), ("(gint) GST_VIDEO_FORMAT_GBR_12BE", "68"), ("(gint) GST_VIDEO_FORMAT_GBR_12LE", "69"), ("(gint) GST_VIDEO_FORMAT_GBR_16BE", "132"), ("(gint) GST_VIDEO_FORMAT_GBR_16LE", "131"), ("(gint) GST_VIDEO_FORMAT_GRAY10_LE16", "138"), ("(gint) GST_VIDEO_FORMAT_GRAY10_LE32", "78"), ("(gint) GST_VIDEO_FORMAT_GRAY16_BE", "26"), ("(gint) GST_VIDEO_FORMAT_GRAY16_LE", "27"), ("(gint) GST_VIDEO_FORMAT_GRAY8", "25"), ("(gint) GST_VIDEO_FORMAT_I420", "2"), ("(gint) GST_VIDEO_FORMAT_I420_10BE", "42"), ("(gint) GST_VIDEO_FORMAT_I420_10LE", "43"), ("(gint) GST_VIDEO_FORMAT_I420_12BE", "72"), ("(gint) GST_VIDEO_FORMAT_I420_12LE", "73"), ("(gint) GST_VIDEO_FORMAT_I422_10BE", "44"), ("(gint) GST_VIDEO_FORMAT_I422_10LE", "45"), ("(gint) GST_VIDEO_FORMAT_I422_12BE", "74"), ("(gint) GST_VIDEO_FORMAT_I422_12LE", "75"), ("(gint) GST_VIDEO_FORMAT_IYU1", "38"), ("(gint) GST_VIDEO_FORMAT_IYU2", "63"), ("GST_VIDEO_FORMAT_LAST", "140"), ("(gint) GST_VIDEO_FORMAT_MT2110R", "116"), ("(gint) GST_VIDEO_FORMAT_MT2110T", "115"), ("(gint) GST_VIDEO_FORMAT_NV12", "23"), ("(gint) GST_VIDEO_FORMAT_NV12_10BE_8L128", "112"), ("(gint) GST_VIDEO_FORMAT_NV12_10LE32", "79"), ("(gint) GST_VIDEO_FORMAT_NV12_10LE40", "81"), ("(gint) GST_VIDEO_FORMAT_NV12_10LE40_4L4", "113"), ("(gint) GST_VIDEO_FORMAT_NV12_16L32S", "110"), ("(gint) GST_VIDEO_FORMAT_NV12_32L32", "98"), ("(gint) GST_VIDEO_FORMAT_NV12_4L4", "97"), ("(gint) GST_VIDEO_FORMAT_NV12_64Z32", "53"), ("(gint) GST_VIDEO_FORMAT_NV12_8L128", "111"), ("(gint) GST_VIDEO_FORMAT_NV16", "51"), ("(gint) GST_VIDEO_FORMAT_NV16_10LE32", "80"), ("(gint) GST_VIDEO_FORMAT_NV16_10LE40", "139"), ("(gint) GST_VIDEO_FORMAT_NV21", "24"), ("(gint) GST_VIDEO_FORMAT_NV24", "52"), ("(gint) GST_VIDEO_FORMAT_NV61", "60"), ("(gint) GST_VIDEO_FORMAT_P010_10BE", "61"), ("(gint) GST_VIDEO_FORMAT_P010_10LE", "62"), ("(gint) GST_VIDEO_FORMAT_P012_BE", "91"), ("(gint) GST_VIDEO_FORMAT_P012_LE", "92"), ("(gint) GST_VIDEO_FORMAT_P016_BE", "89"), ("(gint) GST_VIDEO_FORMAT_P016_LE", "90"), ("(gint) GST_VIDEO_FORMAT_RBGA", "133"), ("(gint) GST_VIDEO_FORMAT_RGB", "15"), ("(gint) GST_VIDEO_FORMAT_RGB10A2_LE", "86"), ("(gint) GST_VIDEO_FORMAT_RGB15", "31"), ("(gint) GST_VIDEO_FORMAT_RGB16", "29"), ("(gint) GST_VIDEO_FORMAT_RGB8P", "35"), ("(gint) GST_VIDEO_FORMAT_RGBA", "11"), ("(gint) GST_VIDEO_FORMAT_RGBA64_BE", "105"), ("(gint) GST_VIDEO_FORMAT_RGBA64_LE", "104"), ("(gint) GST_VIDEO_FORMAT_RGBP", "99"), ("(gint) GST_VIDEO_FORMAT_RGBx", "7"), ("(gint) GST_VIDEO_FORMAT_UNKNOWN", "0"), ("(gint) GST_VIDEO_FORMAT_UYVP", "33"), ("(gint) GST_VIDEO_FORMAT_UYVY", "5"), ("(gint) GST_VIDEO_FORMAT_VUYA", "84"), ("(gint) GST_VIDEO_FORMAT_VYUY", "64"), ("(gint) GST_VIDEO_FORMAT_Y210", "82"), ("(gint) GST_VIDEO_FORMAT_Y212_BE", "93"), ("(gint) GST_VIDEO_FORMAT_Y212_LE", "94"), ("(gint) GST_VIDEO_FORMAT_Y216_BE", "135"), ("(gint) GST_VIDEO_FORMAT_Y216_LE", "134"), ("(gint) GST_VIDEO_FORMAT_Y410", "83"), ("(gint) GST_VIDEO_FORMAT_Y412_BE", "95"), ("(gint) GST_VIDEO_FORMAT_Y412_LE", "96"), ("(gint) GST_VIDEO_FORMAT_Y416_BE", "137"), ("(gint) GST_VIDEO_FORMAT_Y416_LE", "136"), ("(gint) GST_VIDEO_FORMAT_Y41B", "17"), ("(gint) GST_VIDEO_FORMAT_Y42B", "18"), ("(gint) GST_VIDEO_FORMAT_Y444", "20"), ("(gint) GST_VIDEO_FORMAT_Y444_10BE", "46"), ("(gint) GST_VIDEO_FORMAT_Y444_10LE", "47"), ("(gint) GST_VIDEO_FORMAT_Y444_12BE", "76"), ("(gint) GST_VIDEO_FORMAT_Y444_12LE", "77"), ("(gint) GST_VIDEO_FORMAT_Y444_16BE", "87"), ("(gint) GST_VIDEO_FORMAT_Y444_16LE", "88"), ("(gint) GST_VIDEO_FORMAT_YUV9", "36"), ("(gint) GST_VIDEO_FORMAT_YUY2", "4"), ("(gint) GST_VIDEO_FORMAT_YV12", "3"), ("(gint) GST_VIDEO_FORMAT_YVU9", "37"), ("(gint) GST_VIDEO_FORMAT_YVYU", "19"), ("(gint) GST_VIDEO_FORMAT_r210", "41"), ("(gint) GST_VIDEO_FORMAT_v210", "21"), ("(gint) GST_VIDEO_FORMAT_v216", "22"), ("(gint) GST_VIDEO_FORMAT_v308", "28"), ("(gint) GST_VIDEO_FORMAT_xBGR", "10"), ("(gint) GST_VIDEO_FORMAT_xRGB", "9"), ("GST_VIDEO_FPS_RANGE", "(fraction) [ 0, max ]"), ("(guint) GST_VIDEO_FRAME_FLAG_BOTTOM_FIELD", "8"), ("(guint) GST_VIDEO_FRAME_FLAG_FIRST_IN_BUNDLE", "32"), ("(guint) GST_VIDEO_FRAME_FLAG_INTERLACED", "1"), ("(guint) GST_VIDEO_FRAME_FLAG_MULTIPLE_VIEW", "16"), ("(guint) GST_VIDEO_FRAME_FLAG_NONE", "0"), ("(guint) GST_VIDEO_FRAME_FLAG_ONEFIELD", "8"), ("(guint) GST_VIDEO_FRAME_FLAG_RFF", "4"), ("(guint) GST_VIDEO_FRAME_FLAG_TFF", "2"), ("(guint) GST_VIDEO_FRAME_FLAG_TOP_FIELD", "10"), ("(guint) GST_VIDEO_FRAME_MAP_FLAG_LAST", "16777216"), ("(guint) GST_VIDEO_FRAME_MAP_FLAG_NO_REF", "65536"), ("(gint) GST_VIDEO_GAMMA_MODE_NONE", "0"), ("(gint) GST_VIDEO_GAMMA_MODE_REMAP", "1"), ("(gint) GST_VIDEO_GL_TEXTURE_ORIENTATION_X_FLIP_Y_FLIP", "3"), ( "(gint) GST_VIDEO_GL_TEXTURE_ORIENTATION_X_FLIP_Y_NORMAL", "2", ), ( "(gint) GST_VIDEO_GL_TEXTURE_ORIENTATION_X_NORMAL_Y_FLIP", "1", ), ( "(gint) GST_VIDEO_GL_TEXTURE_ORIENTATION_X_NORMAL_Y_NORMAL", "0", ), ("(gint) GST_VIDEO_GL_TEXTURE_TYPE_LUMINANCE", "0"), ("(gint) GST_VIDEO_GL_TEXTURE_TYPE_LUMINANCE_ALPHA", "1"), ("(gint) GST_VIDEO_GL_TEXTURE_TYPE_R", "5"), ("(gint) GST_VIDEO_GL_TEXTURE_TYPE_RG", "6"), ("(gint) GST_VIDEO_GL_TEXTURE_TYPE_RGB", "3"), ("(gint) GST_VIDEO_GL_TEXTURE_TYPE_RGB16", "2"), ("(gint) GST_VIDEO_GL_TEXTURE_TYPE_RGBA", "4"), ("(gint) GST_VIDEO_INTERLACE_MODE_ALTERNATE", "4"), ("(gint) GST_VIDEO_INTERLACE_MODE_FIELDS", "3"), ("(gint) GST_VIDEO_INTERLACE_MODE_INTERLEAVED", "1"), ("(gint) GST_VIDEO_INTERLACE_MODE_MIXED", "2"), ("(gint) GST_VIDEO_INTERLACE_MODE_PROGRESSIVE", "0"), ("(gint) GST_VIDEO_MATRIX_MODE_FULL", "0"), ("(gint) GST_VIDEO_MATRIX_MODE_INPUT_ONLY", "1"), ("(gint) GST_VIDEO_MATRIX_MODE_NONE", "3"), ("(gint) GST_VIDEO_MATRIX_MODE_OUTPUT_ONLY", "2"), ("GST_VIDEO_MAX_COMPONENTS", "4"), ("GST_VIDEO_MAX_PLANES", "4"), ("(guint) GST_VIDEO_MULTIVIEW_FLAGS_HALF_ASPECT", "16384"), ("(guint) GST_VIDEO_MULTIVIEW_FLAGS_LEFT_FLIPPED", "2"), ("(guint) GST_VIDEO_MULTIVIEW_FLAGS_LEFT_FLOPPED", "4"), ("(guint) GST_VIDEO_MULTIVIEW_FLAGS_MIXED_MONO", "32768"), ("(guint) GST_VIDEO_MULTIVIEW_FLAGS_NONE", "0"), ("(guint) GST_VIDEO_MULTIVIEW_FLAGS_RIGHT_FLIPPED", "8"), ("(guint) GST_VIDEO_MULTIVIEW_FLAGS_RIGHT_FLOPPED", "16"), ("(guint) GST_VIDEO_MULTIVIEW_FLAGS_RIGHT_VIEW_FIRST", "1"), ("(gint) GST_VIDEO_MULTIVIEW_FRAME_PACKING_CHECKERBOARD", "8"), ( "(gint) GST_VIDEO_MULTIVIEW_FRAME_PACKING_COLUMN_INTERLEAVED", "5", ), ("(gint) GST_VIDEO_MULTIVIEW_FRAME_PACKING_LEFT", "1"), ("(gint) GST_VIDEO_MULTIVIEW_FRAME_PACKING_MONO", "0"), ("(gint) GST_VIDEO_MULTIVIEW_FRAME_PACKING_NONE", "-1"), ("(gint) GST_VIDEO_MULTIVIEW_FRAME_PACKING_RIGHT", "2"), ( "(gint) GST_VIDEO_MULTIVIEW_FRAME_PACKING_ROW_INTERLEAVED", "6", ), ("(gint) GST_VIDEO_MULTIVIEW_FRAME_PACKING_SIDE_BY_SIDE", "3"), ( "(gint) GST_VIDEO_MULTIVIEW_FRAME_PACKING_SIDE_BY_SIDE_QUINCUNX", "4", ), ("(gint) GST_VIDEO_MULTIVIEW_FRAME_PACKING_TOP_BOTTOM", "7"), ("(gint) GST_VIDEO_MULTIVIEW_MODE_CHECKERBOARD", "8"), ("(gint) GST_VIDEO_MULTIVIEW_MODE_COLUMN_INTERLEAVED", "5"), ("(gint) GST_VIDEO_MULTIVIEW_MODE_FRAME_BY_FRAME", "32"), ("(gint) GST_VIDEO_MULTIVIEW_MODE_LEFT", "1"), ("(gint) GST_VIDEO_MULTIVIEW_MODE_MONO", "0"), ( "(gint) GST_VIDEO_MULTIVIEW_MODE_MULTIVIEW_FRAME_BY_FRAME", "33", ), ("(gint) GST_VIDEO_MULTIVIEW_MODE_NONE", "-1"), ("(gint) GST_VIDEO_MULTIVIEW_MODE_RIGHT", "2"), ("(gint) GST_VIDEO_MULTIVIEW_MODE_ROW_INTERLEAVED", "6"), ("(gint) GST_VIDEO_MULTIVIEW_MODE_SEPARATED", "34"), ("(gint) GST_VIDEO_MULTIVIEW_MODE_SIDE_BY_SIDE", "3"), ("(gint) GST_VIDEO_MULTIVIEW_MODE_SIDE_BY_SIDE_QUINCUNX", "4"), ("(gint) GST_VIDEO_MULTIVIEW_MODE_TOP_BOTTOM", "7"), ("(gint) GST_VIDEO_ORIENTATION_180", "2"), ("(gint) GST_VIDEO_ORIENTATION_90L", "3"), ("(gint) GST_VIDEO_ORIENTATION_90R", "1"), ("(gint) GST_VIDEO_ORIENTATION_AUTO", "8"), ("(gint) GST_VIDEO_ORIENTATION_CUSTOM", "9"), ("(gint) GST_VIDEO_ORIENTATION_HORIZ", "4"), ("(gint) GST_VIDEO_ORIENTATION_IDENTITY", "0"), ("(gint) GST_VIDEO_ORIENTATION_UL_LR", "6"), ("(gint) GST_VIDEO_ORIENTATION_UR_LL", "7"), ("(gint) GST_VIDEO_ORIENTATION_VERT", "5"), ("(guint) GST_VIDEO_OVERLAY_FORMAT_FLAG_GLOBAL_ALPHA", "2"), ("(guint) GST_VIDEO_OVERLAY_FORMAT_FLAG_NONE", "0"), ( "(guint) GST_VIDEO_OVERLAY_FORMAT_FLAG_PREMULTIPLIED_ALPHA", "1", ), ("(guint) GST_VIDEO_PACK_FLAG_INTERLACED", "2"), ("(guint) GST_VIDEO_PACK_FLAG_NONE", "0"), ("(guint) GST_VIDEO_PACK_FLAG_TRUNCATE_RANGE", "1"), ("(gint) GST_VIDEO_PRIMARIES_MODE_FAST", "2"), ("(gint) GST_VIDEO_PRIMARIES_MODE_MERGE_ONLY", "1"), ("(gint) GST_VIDEO_PRIMARIES_MODE_NONE", "0"), ("(guint) GST_VIDEO_RESAMPLER_FLAG_HALF_TAPS", "1"), ("(guint) GST_VIDEO_RESAMPLER_FLAG_NONE", "0"), ("(gint) GST_VIDEO_RESAMPLER_METHOD_CUBIC", "2"), ("(gint) GST_VIDEO_RESAMPLER_METHOD_LANCZOS", "4"), ("(gint) GST_VIDEO_RESAMPLER_METHOD_LINEAR", "1"), ("(gint) GST_VIDEO_RESAMPLER_METHOD_NEAREST", "0"), ("(gint) GST_VIDEO_RESAMPLER_METHOD_SINC", "3"), ( "GST_VIDEO_RESAMPLER_OPT_CUBIC_B", "GstVideoResampler.cubic-b", ), ( "GST_VIDEO_RESAMPLER_OPT_CUBIC_C", "GstVideoResampler.cubic-c", ), ( "GST_VIDEO_RESAMPLER_OPT_ENVELOPE", "GstVideoResampler.envelope", ), ( "GST_VIDEO_RESAMPLER_OPT_MAX_TAPS", "GstVideoResampler.max-taps", ), ( "GST_VIDEO_RESAMPLER_OPT_SHARPEN", "GstVideoResampler.sharpen", ), ( "GST_VIDEO_RESAMPLER_OPT_SHARPNESS", "GstVideoResampler.sharpness", ), ("(guint) GST_VIDEO_SCALER_FLAG_INTERLACED", "1"), ("(guint) GST_VIDEO_SCALER_FLAG_NONE", "0"), ( "GST_VIDEO_SCALER_OPT_DITHER_METHOD", "GstVideoScaler.dither-method", ), ("GST_VIDEO_SIZE_RANGE", "(int) [ 1, max ]"), ("(gint) GST_VIDEO_TILE_MODE_LINEAR", "131072"), ("(gint) GST_VIDEO_TILE_MODE_UNKNOWN", "0"), ("(gint) GST_VIDEO_TILE_MODE_ZFLIPZ_2X2", "65536"), ("(gint) GST_VIDEO_TILE_TYPE_INDEXED", "0"), ("GST_VIDEO_TILE_TYPE_MASK", "65535"), ("GST_VIDEO_TILE_TYPE_SHIFT", "16"), ("GST_VIDEO_TILE_X_TILES_MASK", "65535"), ("GST_VIDEO_TILE_Y_TILES_SHIFT", "16"), ("(guint) GST_VIDEO_TIME_CODE_FLAGS_DROP_FRAME", "1"), ("(guint) GST_VIDEO_TIME_CODE_FLAGS_INTERLACED", "2"), ("(guint) GST_VIDEO_TIME_CODE_FLAGS_NONE", "0"), ("(gint) GST_VIDEO_TRANSFER_ADOBERGB", "12"), ("(gint) GST_VIDEO_TRANSFER_ARIB_STD_B67", "15"), ("(gint) GST_VIDEO_TRANSFER_BT2020_10", "13"), ("(gint) GST_VIDEO_TRANSFER_BT2020_12", "11"), ("(gint) GST_VIDEO_TRANSFER_BT601", "16"), ("(gint) GST_VIDEO_TRANSFER_BT709", "5"), ("(gint) GST_VIDEO_TRANSFER_GAMMA10", "1"), ("(gint) GST_VIDEO_TRANSFER_GAMMA18", "2"), ("(gint) GST_VIDEO_TRANSFER_GAMMA20", "3"), ("(gint) GST_VIDEO_TRANSFER_GAMMA22", "4"), ("(gint) GST_VIDEO_TRANSFER_GAMMA28", "8"), ("(gint) GST_VIDEO_TRANSFER_LOG100", "9"), ("(gint) GST_VIDEO_TRANSFER_LOG316", "10"), ("(gint) GST_VIDEO_TRANSFER_SMPTE2084", "14"), ("(gint) GST_VIDEO_TRANSFER_SMPTE240M", "6"), ("(gint) GST_VIDEO_TRANSFER_SRGB", "7"), ("(gint) GST_VIDEO_TRANSFER_UNKNOWN", "0"), ("(gint) GST_VIDEO_VBI_PARSER_RESULT_DONE", "0"), ("(gint) GST_VIDEO_VBI_PARSER_RESULT_ERROR", "2"), ("(gint) GST_VIDEO_VBI_PARSER_RESULT_OK", "1"), ]; gstreamer-video-sys-0.24.0/tests/constant.c000064400000000000000000000741351046102023000167710ustar 00000000000000// This file was generated by gir (https://github.com/gtk-rs/gir) // from gir-files (https://github.com/gtk-rs/gir-files) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // DO NOT EDIT #include "manual.h" #include #define PRINT_CONSTANT(CONSTANT_NAME) \ printf("%s;", #CONSTANT_NAME); \ printf(_Generic((CONSTANT_NAME), \ char *: "%s", \ const char *: "%s", \ char: "%c", \ signed char: "%hhd", \ unsigned char: "%hhu", \ short int: "%hd", \ unsigned short int: "%hu", \ int: "%d", \ unsigned int: "%u", \ long: "%ld", \ unsigned long: "%lu", \ long long: "%lld", \ unsigned long long: "%llu", \ float: "%f", \ double: "%f", \ long double: "%ld"), \ CONSTANT_NAME); \ printf("\n"); int main() { PRINT_CONSTANT((gint) GST_ANCILLARY_META_FIELD_INTERLACED_FIRST); PRINT_CONSTANT((gint) GST_ANCILLARY_META_FIELD_INTERLACED_SECOND); PRINT_CONSTANT((gint) GST_ANCILLARY_META_FIELD_PROGRESSIVE); PRINT_CONSTANT(GST_BUFFER_POOL_OPTION_VIDEO_AFFINE_TRANSFORMATION_META); PRINT_CONSTANT(GST_BUFFER_POOL_OPTION_VIDEO_ALIGNMENT); PRINT_CONSTANT(GST_BUFFER_POOL_OPTION_VIDEO_GL_TEXTURE_UPLOAD_META); PRINT_CONSTANT(GST_BUFFER_POOL_OPTION_VIDEO_META); PRINT_CONSTANT(GST_CAPS_FEATURE_FORMAT_INTERLACED); PRINT_CONSTANT(GST_CAPS_FEATURE_META_GST_VIDEO_AFFINE_TRANSFORMATION_META); PRINT_CONSTANT(GST_CAPS_FEATURE_META_GST_VIDEO_GL_TEXTURE_UPLOAD_META); PRINT_CONSTANT(GST_CAPS_FEATURE_META_GST_VIDEO_META); PRINT_CONSTANT(GST_CAPS_FEATURE_META_GST_VIDEO_OVERLAY_COMPOSITION); PRINT_CONSTANT((gint) GST_COLOR_BALANCE_HARDWARE); PRINT_CONSTANT((gint) GST_COLOR_BALANCE_SOFTWARE); PRINT_CONSTANT(GST_META_TAG_VIDEO_COLORSPACE_STR); PRINT_CONSTANT(GST_META_TAG_VIDEO_ORIENTATION_STR); PRINT_CONSTANT(GST_META_TAG_VIDEO_SIZE_STR); PRINT_CONSTANT(GST_META_TAG_VIDEO_STR); PRINT_CONSTANT((gint) GST_NAVIGATION_COMMAND_ACTIVATE); PRINT_CONSTANT((gint) GST_NAVIGATION_COMMAND_DOWN); PRINT_CONSTANT((gint) GST_NAVIGATION_COMMAND_INVALID); PRINT_CONSTANT((gint) GST_NAVIGATION_COMMAND_LEFT); PRINT_CONSTANT((gint) GST_NAVIGATION_COMMAND_MENU1); PRINT_CONSTANT((gint) GST_NAVIGATION_COMMAND_MENU2); PRINT_CONSTANT((gint) GST_NAVIGATION_COMMAND_MENU3); PRINT_CONSTANT((gint) GST_NAVIGATION_COMMAND_MENU4); PRINT_CONSTANT((gint) GST_NAVIGATION_COMMAND_MENU5); PRINT_CONSTANT((gint) GST_NAVIGATION_COMMAND_MENU6); PRINT_CONSTANT((gint) GST_NAVIGATION_COMMAND_MENU7); PRINT_CONSTANT((gint) GST_NAVIGATION_COMMAND_NEXT_ANGLE); PRINT_CONSTANT((gint) GST_NAVIGATION_COMMAND_PREV_ANGLE); PRINT_CONSTANT((gint) GST_NAVIGATION_COMMAND_RIGHT); PRINT_CONSTANT((gint) GST_NAVIGATION_COMMAND_UP); PRINT_CONSTANT((gint) GST_NAVIGATION_EVENT_COMMAND); PRINT_CONSTANT((gint) GST_NAVIGATION_EVENT_INVALID); PRINT_CONSTANT((gint) GST_NAVIGATION_EVENT_KEY_PRESS); PRINT_CONSTANT((gint) GST_NAVIGATION_EVENT_KEY_RELEASE); PRINT_CONSTANT((gint) GST_NAVIGATION_EVENT_MOUSE_BUTTON_PRESS); PRINT_CONSTANT((gint) GST_NAVIGATION_EVENT_MOUSE_BUTTON_RELEASE); PRINT_CONSTANT((gint) GST_NAVIGATION_EVENT_MOUSE_DOUBLE_CLICK); PRINT_CONSTANT((gint) GST_NAVIGATION_EVENT_MOUSE_MOVE); PRINT_CONSTANT((gint) GST_NAVIGATION_EVENT_MOUSE_SCROLL); PRINT_CONSTANT((gint) GST_NAVIGATION_EVENT_TOUCH_CANCEL); PRINT_CONSTANT((gint) GST_NAVIGATION_EVENT_TOUCH_DOWN); PRINT_CONSTANT((gint) GST_NAVIGATION_EVENT_TOUCH_FRAME); PRINT_CONSTANT((gint) GST_NAVIGATION_EVENT_TOUCH_MOTION); PRINT_CONSTANT((gint) GST_NAVIGATION_EVENT_TOUCH_UP); PRINT_CONSTANT((gint) GST_NAVIGATION_MESSAGE_ANGLES_CHANGED); PRINT_CONSTANT((gint) GST_NAVIGATION_MESSAGE_COMMANDS_CHANGED); PRINT_CONSTANT((gint) GST_NAVIGATION_MESSAGE_EVENT); PRINT_CONSTANT((gint) GST_NAVIGATION_MESSAGE_INVALID); PRINT_CONSTANT((gint) GST_NAVIGATION_MESSAGE_MOUSE_OVER); PRINT_CONSTANT((guint) GST_NAVIGATION_MODIFIER_BUTTON1_MASK); PRINT_CONSTANT((guint) GST_NAVIGATION_MODIFIER_BUTTON2_MASK); PRINT_CONSTANT((guint) GST_NAVIGATION_MODIFIER_BUTTON3_MASK); PRINT_CONSTANT((guint) GST_NAVIGATION_MODIFIER_BUTTON4_MASK); PRINT_CONSTANT((guint) GST_NAVIGATION_MODIFIER_BUTTON5_MASK); PRINT_CONSTANT((guint) GST_NAVIGATION_MODIFIER_CONTROL_MASK); PRINT_CONSTANT((guint) GST_NAVIGATION_MODIFIER_HYPER_MASK); PRINT_CONSTANT((guint) GST_NAVIGATION_MODIFIER_LOCK_MASK); PRINT_CONSTANT((guint) GST_NAVIGATION_MODIFIER_MASK); PRINT_CONSTANT((guint) GST_NAVIGATION_MODIFIER_META_MASK); PRINT_CONSTANT((guint) GST_NAVIGATION_MODIFIER_MOD1_MASK); PRINT_CONSTANT((guint) GST_NAVIGATION_MODIFIER_MOD2_MASK); PRINT_CONSTANT((guint) GST_NAVIGATION_MODIFIER_MOD3_MASK); PRINT_CONSTANT((guint) GST_NAVIGATION_MODIFIER_MOD4_MASK); PRINT_CONSTANT((guint) GST_NAVIGATION_MODIFIER_MOD5_MASK); PRINT_CONSTANT((guint) GST_NAVIGATION_MODIFIER_NONE); PRINT_CONSTANT((guint) GST_NAVIGATION_MODIFIER_SHIFT_MASK); PRINT_CONSTANT((guint) GST_NAVIGATION_MODIFIER_SUPER_MASK); PRINT_CONSTANT((gint) GST_NAVIGATION_QUERY_ANGLES); PRINT_CONSTANT((gint) GST_NAVIGATION_QUERY_COMMANDS); PRINT_CONSTANT((gint) GST_NAVIGATION_QUERY_INVALID); PRINT_CONSTANT((gint) GST_VIDEO_AFD_14_9_LETTER_14_9_PILLAR); PRINT_CONSTANT((gint) GST_VIDEO_AFD_14_9_TOP_ALIGNED); PRINT_CONSTANT((gint) GST_VIDEO_AFD_16_9_LETTER_14_9_CENTER); PRINT_CONSTANT((gint) GST_VIDEO_AFD_16_9_LETTER_16_9_FULL); PRINT_CONSTANT((gint) GST_VIDEO_AFD_16_9_LETTER_4_3_CENTER); PRINT_CONSTANT((gint) GST_VIDEO_AFD_16_9_TOP_ALIGNED); PRINT_CONSTANT((gint) GST_VIDEO_AFD_4_3_FULL_14_9_CENTER); PRINT_CONSTANT((gint) GST_VIDEO_AFD_4_3_FULL_16_9_FULL); PRINT_CONSTANT((gint) GST_VIDEO_AFD_4_3_FULL_4_3_PILLAR); PRINT_CONSTANT((gint) GST_VIDEO_AFD_GREATER_THAN_16_9); PRINT_CONSTANT((gint) GST_VIDEO_AFD_SPEC_ATSC_A53); PRINT_CONSTANT((gint) GST_VIDEO_AFD_SPEC_DVB_ETSI); PRINT_CONSTANT((gint) GST_VIDEO_AFD_SPEC_SMPTE_ST2016_1); PRINT_CONSTANT((gint) GST_VIDEO_AFD_UNAVAILABLE); PRINT_CONSTANT((gint) GST_VIDEO_ALPHA_MODE_COPY); PRINT_CONSTANT((gint) GST_VIDEO_ALPHA_MODE_MULT); PRINT_CONSTANT((gint) GST_VIDEO_ALPHA_MODE_SET); PRINT_CONSTANT((gint) GST_VIDEO_ANCILLARY_DID16_S2016_3_AFD_BAR); PRINT_CONSTANT((gint) GST_VIDEO_ANCILLARY_DID16_S334_EIA_608); PRINT_CONSTANT((gint) GST_VIDEO_ANCILLARY_DID16_S334_EIA_708); PRINT_CONSTANT((gint) GST_VIDEO_ANCILLARY_DID_CAMERA_POSITION); PRINT_CONSTANT((gint) GST_VIDEO_ANCILLARY_DID_DELETION); PRINT_CONSTANT((gint) GST_VIDEO_ANCILLARY_DID_HANC_3G_AUDIO_DATA_FIRST); PRINT_CONSTANT((gint) GST_VIDEO_ANCILLARY_DID_HANC_3G_AUDIO_DATA_LAST); PRINT_CONSTANT((gint) GST_VIDEO_ANCILLARY_DID_HANC_ERROR_DETECTION); PRINT_CONSTANT((gint) GST_VIDEO_ANCILLARY_DID_HANC_HDTV_AUDIO_DATA_FIRST); PRINT_CONSTANT((gint) GST_VIDEO_ANCILLARY_DID_HANC_HDTV_AUDIO_DATA_LAST); PRINT_CONSTANT((gint) GST_VIDEO_ANCILLARY_DID_HANC_SDTV_AUDIO_DATA_1_FIRST); PRINT_CONSTANT((gint) GST_VIDEO_ANCILLARY_DID_HANC_SDTV_AUDIO_DATA_1_LAST); PRINT_CONSTANT((gint) GST_VIDEO_ANCILLARY_DID_HANC_SDTV_AUDIO_DATA_2_FIRST); PRINT_CONSTANT((gint) GST_VIDEO_ANCILLARY_DID_HANC_SDTV_AUDIO_DATA_2_LAST); PRINT_CONSTANT((gint) GST_VIDEO_ANCILLARY_DID_UNDEFINED); PRINT_CONSTANT((guint) GST_VIDEO_BUFFER_FLAG_BOTTOM_FIELD); PRINT_CONSTANT((guint) GST_VIDEO_BUFFER_FLAG_FIRST_IN_BUNDLE); PRINT_CONSTANT((guint) GST_VIDEO_BUFFER_FLAG_INTERLACED); PRINT_CONSTANT((guint) GST_VIDEO_BUFFER_FLAG_LAST); PRINT_CONSTANT((guint) GST_VIDEO_BUFFER_FLAG_MARKER); PRINT_CONSTANT((guint) GST_VIDEO_BUFFER_FLAG_MULTIPLE_VIEW); PRINT_CONSTANT((guint) GST_VIDEO_BUFFER_FLAG_ONEFIELD); PRINT_CONSTANT((guint) GST_VIDEO_BUFFER_FLAG_RFF); PRINT_CONSTANT((guint) GST_VIDEO_BUFFER_FLAG_TFF); PRINT_CONSTANT((guint) GST_VIDEO_BUFFER_FLAG_TOP_FIELD); PRINT_CONSTANT((gint) GST_VIDEO_CAPTION_TYPE_CEA608_RAW); PRINT_CONSTANT((gint) GST_VIDEO_CAPTION_TYPE_CEA608_S334_1A); PRINT_CONSTANT((gint) GST_VIDEO_CAPTION_TYPE_CEA708_CDP); PRINT_CONSTANT((gint) GST_VIDEO_CAPTION_TYPE_CEA708_RAW); PRINT_CONSTANT((gint) GST_VIDEO_CAPTION_TYPE_UNKNOWN); PRINT_CONSTANT((guint) GST_VIDEO_CHROMA_FLAG_INTERLACED); PRINT_CONSTANT((guint) GST_VIDEO_CHROMA_FLAG_NONE); PRINT_CONSTANT((gint) GST_VIDEO_CHROMA_METHOD_LINEAR); PRINT_CONSTANT((gint) GST_VIDEO_CHROMA_METHOD_NEAREST); PRINT_CONSTANT((gint) GST_VIDEO_CHROMA_MODE_DOWNSAMPLE_ONLY); PRINT_CONSTANT((gint) GST_VIDEO_CHROMA_MODE_FULL); PRINT_CONSTANT((gint) GST_VIDEO_CHROMA_MODE_NONE); PRINT_CONSTANT((gint) GST_VIDEO_CHROMA_MODE_UPSAMPLE_ONLY); PRINT_CONSTANT((guint) GST_VIDEO_CHROMA_SITE_ALT_LINE); PRINT_CONSTANT((guint) GST_VIDEO_CHROMA_SITE_COSITED); PRINT_CONSTANT((guint) GST_VIDEO_CHROMA_SITE_DV); PRINT_CONSTANT((guint) GST_VIDEO_CHROMA_SITE_H_COSITED); PRINT_CONSTANT((guint) GST_VIDEO_CHROMA_SITE_JPEG); PRINT_CONSTANT((guint) GST_VIDEO_CHROMA_SITE_MPEG2); PRINT_CONSTANT((guint) GST_VIDEO_CHROMA_SITE_NONE); PRINT_CONSTANT((guint) GST_VIDEO_CHROMA_SITE_UNKNOWN); PRINT_CONSTANT((guint) GST_VIDEO_CHROMA_SITE_V_COSITED); PRINT_CONSTANT((guint) GST_VIDEO_CODEC_FRAME_FLAG_CORRUPTED); PRINT_CONSTANT((guint) GST_VIDEO_CODEC_FRAME_FLAG_DECODE_ONLY); PRINT_CONSTANT((guint) GST_VIDEO_CODEC_FRAME_FLAG_FORCE_KEYFRAME); PRINT_CONSTANT((guint) GST_VIDEO_CODEC_FRAME_FLAG_FORCE_KEYFRAME_HEADERS); PRINT_CONSTANT((guint) GST_VIDEO_CODEC_FRAME_FLAG_SYNC_POINT); PRINT_CONSTANT(GST_VIDEO_COLORIMETRY_BT2020); PRINT_CONSTANT(GST_VIDEO_COLORIMETRY_BT2020_10); PRINT_CONSTANT(GST_VIDEO_COLORIMETRY_BT2100_HLG); PRINT_CONSTANT(GST_VIDEO_COLORIMETRY_BT2100_PQ); PRINT_CONSTANT(GST_VIDEO_COLORIMETRY_BT601); PRINT_CONSTANT(GST_VIDEO_COLORIMETRY_BT709); PRINT_CONSTANT(GST_VIDEO_COLORIMETRY_SMPTE240M); PRINT_CONSTANT(GST_VIDEO_COLORIMETRY_SRGB); PRINT_CONSTANT((gint) GST_VIDEO_COLOR_MATRIX_BT2020); PRINT_CONSTANT((gint) GST_VIDEO_COLOR_MATRIX_BT601); PRINT_CONSTANT((gint) GST_VIDEO_COLOR_MATRIX_BT709); PRINT_CONSTANT((gint) GST_VIDEO_COLOR_MATRIX_FCC); PRINT_CONSTANT((gint) GST_VIDEO_COLOR_MATRIX_RGB); PRINT_CONSTANT((gint) GST_VIDEO_COLOR_MATRIX_SMPTE240M); PRINT_CONSTANT((gint) GST_VIDEO_COLOR_MATRIX_UNKNOWN); PRINT_CONSTANT((gint) GST_VIDEO_COLOR_PRIMARIES_ADOBERGB); PRINT_CONSTANT((gint) GST_VIDEO_COLOR_PRIMARIES_BT2020); PRINT_CONSTANT((gint) GST_VIDEO_COLOR_PRIMARIES_BT470BG); PRINT_CONSTANT((gint) GST_VIDEO_COLOR_PRIMARIES_BT470M); PRINT_CONSTANT((gint) GST_VIDEO_COLOR_PRIMARIES_BT709); PRINT_CONSTANT((gint) GST_VIDEO_COLOR_PRIMARIES_EBU3213); PRINT_CONSTANT((gint) GST_VIDEO_COLOR_PRIMARIES_FILM); PRINT_CONSTANT((gint) GST_VIDEO_COLOR_PRIMARIES_SMPTE170M); PRINT_CONSTANT((gint) GST_VIDEO_COLOR_PRIMARIES_SMPTE240M); PRINT_CONSTANT((gint) GST_VIDEO_COLOR_PRIMARIES_SMPTEEG432); PRINT_CONSTANT((gint) GST_VIDEO_COLOR_PRIMARIES_SMPTERP431); PRINT_CONSTANT((gint) GST_VIDEO_COLOR_PRIMARIES_SMPTEST428); PRINT_CONSTANT((gint) GST_VIDEO_COLOR_PRIMARIES_UNKNOWN); PRINT_CONSTANT((gint) GST_VIDEO_COLOR_RANGE_0_255); PRINT_CONSTANT((gint) GST_VIDEO_COLOR_RANGE_16_235); PRINT_CONSTANT((gint) GST_VIDEO_COLOR_RANGE_UNKNOWN); PRINT_CONSTANT(GST_VIDEO_COMP_A); PRINT_CONSTANT(GST_VIDEO_COMP_B); PRINT_CONSTANT(GST_VIDEO_COMP_G); PRINT_CONSTANT(GST_VIDEO_COMP_INDEX); PRINT_CONSTANT(GST_VIDEO_COMP_PALETTE); PRINT_CONSTANT(GST_VIDEO_COMP_R); PRINT_CONSTANT(GST_VIDEO_COMP_U); PRINT_CONSTANT(GST_VIDEO_COMP_V); PRINT_CONSTANT(GST_VIDEO_COMP_Y); PRINT_CONSTANT(GST_VIDEO_CONVERTER_OPT_ALPHA_MODE); PRINT_CONSTANT(GST_VIDEO_CONVERTER_OPT_ALPHA_VALUE); PRINT_CONSTANT(GST_VIDEO_CONVERTER_OPT_ASYNC_TASKS); PRINT_CONSTANT(GST_VIDEO_CONVERTER_OPT_BORDER_ARGB); PRINT_CONSTANT(GST_VIDEO_CONVERTER_OPT_CHROMA_MODE); PRINT_CONSTANT(GST_VIDEO_CONVERTER_OPT_CHROMA_RESAMPLER_METHOD); PRINT_CONSTANT(GST_VIDEO_CONVERTER_OPT_DEST_HEIGHT); PRINT_CONSTANT(GST_VIDEO_CONVERTER_OPT_DEST_WIDTH); PRINT_CONSTANT(GST_VIDEO_CONVERTER_OPT_DEST_X); PRINT_CONSTANT(GST_VIDEO_CONVERTER_OPT_DEST_Y); PRINT_CONSTANT(GST_VIDEO_CONVERTER_OPT_DITHER_METHOD); PRINT_CONSTANT(GST_VIDEO_CONVERTER_OPT_DITHER_QUANTIZATION); PRINT_CONSTANT(GST_VIDEO_CONVERTER_OPT_FILL_BORDER); PRINT_CONSTANT(GST_VIDEO_CONVERTER_OPT_GAMMA_MODE); PRINT_CONSTANT(GST_VIDEO_CONVERTER_OPT_MATRIX_MODE); PRINT_CONSTANT(GST_VIDEO_CONVERTER_OPT_PRIMARIES_MODE); PRINT_CONSTANT(GST_VIDEO_CONVERTER_OPT_RESAMPLER_METHOD); PRINT_CONSTANT(GST_VIDEO_CONVERTER_OPT_RESAMPLER_TAPS); PRINT_CONSTANT(GST_VIDEO_CONVERTER_OPT_SRC_HEIGHT); PRINT_CONSTANT(GST_VIDEO_CONVERTER_OPT_SRC_WIDTH); PRINT_CONSTANT(GST_VIDEO_CONVERTER_OPT_SRC_X); PRINT_CONSTANT(GST_VIDEO_CONVERTER_OPT_SRC_Y); PRINT_CONSTANT(GST_VIDEO_CONVERTER_OPT_THREADS); PRINT_CONSTANT(GST_VIDEO_DECODER_MAX_ERRORS); PRINT_CONSTANT((guint) GST_VIDEO_DECODER_REQUEST_SYNC_POINT_CORRUPT_OUTPUT); PRINT_CONSTANT((guint) GST_VIDEO_DECODER_REQUEST_SYNC_POINT_DISCARD_INPUT); PRINT_CONSTANT(GST_VIDEO_DECODER_SINK_NAME); PRINT_CONSTANT(GST_VIDEO_DECODER_SRC_NAME); PRINT_CONSTANT((gint) GST_VIDEO_DITHER_BAYER); PRINT_CONSTANT((guint) GST_VIDEO_DITHER_FLAG_INTERLACED); PRINT_CONSTANT((guint) GST_VIDEO_DITHER_FLAG_NONE); PRINT_CONSTANT((guint) GST_VIDEO_DITHER_FLAG_QUANTIZE); PRINT_CONSTANT((gint) GST_VIDEO_DITHER_FLOYD_STEINBERG); PRINT_CONSTANT((gint) GST_VIDEO_DITHER_NONE); PRINT_CONSTANT((gint) GST_VIDEO_DITHER_SIERRA_LITE); PRINT_CONSTANT((gint) GST_VIDEO_DITHER_VERTERR); PRINT_CONSTANT(GST_VIDEO_ENCODER_SINK_NAME); PRINT_CONSTANT(GST_VIDEO_ENCODER_SRC_NAME); PRINT_CONSTANT((gint) GST_VIDEO_FIELD_ORDER_BOTTOM_FIELD_FIRST); PRINT_CONSTANT((gint) GST_VIDEO_FIELD_ORDER_TOP_FIELD_FIRST); PRINT_CONSTANT((gint) GST_VIDEO_FIELD_ORDER_UNKNOWN); PRINT_CONSTANT((guint) GST_VIDEO_FLAG_NONE); PRINT_CONSTANT((guint) GST_VIDEO_FLAG_PREMULTIPLIED_ALPHA); PRINT_CONSTANT((guint) GST_VIDEO_FLAG_VARIABLE_FPS); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_A420); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_A420_10BE); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_A420_10LE); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_A420_12BE); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_A420_12LE); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_A420_16BE); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_A420_16LE); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_A422); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_A422_10BE); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_A422_10LE); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_A422_12BE); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_A422_12LE); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_A422_16BE); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_A422_16LE); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_A444); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_A444_10BE); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_A444_10LE); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_A444_12BE); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_A444_12LE); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_A444_16BE); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_A444_16LE); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_ABGR); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_ABGR64_BE); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_ABGR64_LE); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_ARGB); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_ARGB64); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_ARGB64_BE); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_ARGB64_LE); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_AV12); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_AYUV); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_AYUV64); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_BGR); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_BGR10A2_LE); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_BGR15); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_BGR16); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_BGRA); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_BGRA64_BE); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_BGRA64_LE); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_BGRP); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_BGRx); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_DMA_DRM); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_ENCODED); PRINT_CONSTANT((guint) GST_VIDEO_FORMAT_FLAG_ALPHA); PRINT_CONSTANT((guint) GST_VIDEO_FORMAT_FLAG_COMPLEX); PRINT_CONSTANT((guint) GST_VIDEO_FORMAT_FLAG_GRAY); PRINT_CONSTANT((guint) GST_VIDEO_FORMAT_FLAG_LE); PRINT_CONSTANT((guint) GST_VIDEO_FORMAT_FLAG_PALETTE); PRINT_CONSTANT((guint) GST_VIDEO_FORMAT_FLAG_RGB); PRINT_CONSTANT((guint) GST_VIDEO_FORMAT_FLAG_SUBTILES); PRINT_CONSTANT((guint) GST_VIDEO_FORMAT_FLAG_TILED); PRINT_CONSTANT((guint) GST_VIDEO_FORMAT_FLAG_UNPACK); PRINT_CONSTANT((guint) GST_VIDEO_FORMAT_FLAG_YUV); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_GBR); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_GBRA); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_GBRA_10BE); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_GBRA_10LE); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_GBRA_12BE); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_GBRA_12LE); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_GBR_10BE); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_GBR_10LE); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_GBR_12BE); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_GBR_12LE); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_GBR_16BE); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_GBR_16LE); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_GRAY10_LE16); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_GRAY10_LE32); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_GRAY16_BE); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_GRAY16_LE); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_GRAY8); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_I420); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_I420_10BE); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_I420_10LE); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_I420_12BE); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_I420_12LE); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_I422_10BE); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_I422_10LE); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_I422_12BE); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_I422_12LE); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_IYU1); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_IYU2); PRINT_CONSTANT(GST_VIDEO_FORMAT_LAST); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_MT2110R); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_MT2110T); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_NV12); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_NV12_10BE_8L128); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_NV12_10LE32); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_NV12_10LE40); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_NV12_10LE40_4L4); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_NV12_16L32S); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_NV12_32L32); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_NV12_4L4); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_NV12_64Z32); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_NV12_8L128); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_NV16); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_NV16_10LE32); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_NV16_10LE40); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_NV21); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_NV24); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_NV61); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_P010_10BE); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_P010_10LE); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_P012_BE); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_P012_LE); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_P016_BE); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_P016_LE); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_RBGA); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_RGB); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_RGB10A2_LE); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_RGB15); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_RGB16); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_RGB8P); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_RGBA); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_RGBA64_BE); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_RGBA64_LE); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_RGBP); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_RGBx); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_UNKNOWN); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_UYVP); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_UYVY); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_VUYA); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_VYUY); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_Y210); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_Y212_BE); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_Y212_LE); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_Y216_BE); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_Y216_LE); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_Y410); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_Y412_BE); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_Y412_LE); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_Y416_BE); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_Y416_LE); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_Y41B); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_Y42B); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_Y444); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_Y444_10BE); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_Y444_10LE); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_Y444_12BE); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_Y444_12LE); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_Y444_16BE); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_Y444_16LE); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_YUV9); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_YUY2); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_YV12); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_YVU9); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_YVYU); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_r210); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_v210); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_v216); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_v308); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_xBGR); PRINT_CONSTANT((gint) GST_VIDEO_FORMAT_xRGB); PRINT_CONSTANT(GST_VIDEO_FPS_RANGE); PRINT_CONSTANT((guint) GST_VIDEO_FRAME_FLAG_BOTTOM_FIELD); PRINT_CONSTANT((guint) GST_VIDEO_FRAME_FLAG_FIRST_IN_BUNDLE); PRINT_CONSTANT((guint) GST_VIDEO_FRAME_FLAG_INTERLACED); PRINT_CONSTANT((guint) GST_VIDEO_FRAME_FLAG_MULTIPLE_VIEW); PRINT_CONSTANT((guint) GST_VIDEO_FRAME_FLAG_NONE); PRINT_CONSTANT((guint) GST_VIDEO_FRAME_FLAG_ONEFIELD); PRINT_CONSTANT((guint) GST_VIDEO_FRAME_FLAG_RFF); PRINT_CONSTANT((guint) GST_VIDEO_FRAME_FLAG_TFF); PRINT_CONSTANT((guint) GST_VIDEO_FRAME_FLAG_TOP_FIELD); PRINT_CONSTANT((guint) GST_VIDEO_FRAME_MAP_FLAG_LAST); PRINT_CONSTANT((guint) GST_VIDEO_FRAME_MAP_FLAG_NO_REF); PRINT_CONSTANT((gint) GST_VIDEO_GAMMA_MODE_NONE); PRINT_CONSTANT((gint) GST_VIDEO_GAMMA_MODE_REMAP); PRINT_CONSTANT((gint) GST_VIDEO_GL_TEXTURE_ORIENTATION_X_FLIP_Y_FLIP); PRINT_CONSTANT((gint) GST_VIDEO_GL_TEXTURE_ORIENTATION_X_FLIP_Y_NORMAL); PRINT_CONSTANT((gint) GST_VIDEO_GL_TEXTURE_ORIENTATION_X_NORMAL_Y_FLIP); PRINT_CONSTANT((gint) GST_VIDEO_GL_TEXTURE_ORIENTATION_X_NORMAL_Y_NORMAL); PRINT_CONSTANT((gint) GST_VIDEO_GL_TEXTURE_TYPE_LUMINANCE); PRINT_CONSTANT((gint) GST_VIDEO_GL_TEXTURE_TYPE_LUMINANCE_ALPHA); PRINT_CONSTANT((gint) GST_VIDEO_GL_TEXTURE_TYPE_R); PRINT_CONSTANT((gint) GST_VIDEO_GL_TEXTURE_TYPE_RG); PRINT_CONSTANT((gint) GST_VIDEO_GL_TEXTURE_TYPE_RGB); PRINT_CONSTANT((gint) GST_VIDEO_GL_TEXTURE_TYPE_RGB16); PRINT_CONSTANT((gint) GST_VIDEO_GL_TEXTURE_TYPE_RGBA); PRINT_CONSTANT((gint) GST_VIDEO_INTERLACE_MODE_ALTERNATE); PRINT_CONSTANT((gint) GST_VIDEO_INTERLACE_MODE_FIELDS); PRINT_CONSTANT((gint) GST_VIDEO_INTERLACE_MODE_INTERLEAVED); PRINT_CONSTANT((gint) GST_VIDEO_INTERLACE_MODE_MIXED); PRINT_CONSTANT((gint) GST_VIDEO_INTERLACE_MODE_PROGRESSIVE); PRINT_CONSTANT((gint) GST_VIDEO_MATRIX_MODE_FULL); PRINT_CONSTANT((gint) GST_VIDEO_MATRIX_MODE_INPUT_ONLY); PRINT_CONSTANT((gint) GST_VIDEO_MATRIX_MODE_NONE); PRINT_CONSTANT((gint) GST_VIDEO_MATRIX_MODE_OUTPUT_ONLY); PRINT_CONSTANT(GST_VIDEO_MAX_COMPONENTS); PRINT_CONSTANT(GST_VIDEO_MAX_PLANES); PRINT_CONSTANT((guint) GST_VIDEO_MULTIVIEW_FLAGS_HALF_ASPECT); PRINT_CONSTANT((guint) GST_VIDEO_MULTIVIEW_FLAGS_LEFT_FLIPPED); PRINT_CONSTANT((guint) GST_VIDEO_MULTIVIEW_FLAGS_LEFT_FLOPPED); PRINT_CONSTANT((guint) GST_VIDEO_MULTIVIEW_FLAGS_MIXED_MONO); PRINT_CONSTANT((guint) GST_VIDEO_MULTIVIEW_FLAGS_NONE); PRINT_CONSTANT((guint) GST_VIDEO_MULTIVIEW_FLAGS_RIGHT_FLIPPED); PRINT_CONSTANT((guint) GST_VIDEO_MULTIVIEW_FLAGS_RIGHT_FLOPPED); PRINT_CONSTANT((guint) GST_VIDEO_MULTIVIEW_FLAGS_RIGHT_VIEW_FIRST); PRINT_CONSTANT((gint) GST_VIDEO_MULTIVIEW_FRAME_PACKING_CHECKERBOARD); PRINT_CONSTANT((gint) GST_VIDEO_MULTIVIEW_FRAME_PACKING_COLUMN_INTERLEAVED); PRINT_CONSTANT((gint) GST_VIDEO_MULTIVIEW_FRAME_PACKING_LEFT); PRINT_CONSTANT((gint) GST_VIDEO_MULTIVIEW_FRAME_PACKING_MONO); PRINT_CONSTANT((gint) GST_VIDEO_MULTIVIEW_FRAME_PACKING_NONE); PRINT_CONSTANT((gint) GST_VIDEO_MULTIVIEW_FRAME_PACKING_RIGHT); PRINT_CONSTANT((gint) GST_VIDEO_MULTIVIEW_FRAME_PACKING_ROW_INTERLEAVED); PRINT_CONSTANT((gint) GST_VIDEO_MULTIVIEW_FRAME_PACKING_SIDE_BY_SIDE); PRINT_CONSTANT((gint) GST_VIDEO_MULTIVIEW_FRAME_PACKING_SIDE_BY_SIDE_QUINCUNX); PRINT_CONSTANT((gint) GST_VIDEO_MULTIVIEW_FRAME_PACKING_TOP_BOTTOM); PRINT_CONSTANT((gint) GST_VIDEO_MULTIVIEW_MODE_CHECKERBOARD); PRINT_CONSTANT((gint) GST_VIDEO_MULTIVIEW_MODE_COLUMN_INTERLEAVED); PRINT_CONSTANT((gint) GST_VIDEO_MULTIVIEW_MODE_FRAME_BY_FRAME); PRINT_CONSTANT((gint) GST_VIDEO_MULTIVIEW_MODE_LEFT); PRINT_CONSTANT((gint) GST_VIDEO_MULTIVIEW_MODE_MONO); PRINT_CONSTANT((gint) GST_VIDEO_MULTIVIEW_MODE_MULTIVIEW_FRAME_BY_FRAME); PRINT_CONSTANT((gint) GST_VIDEO_MULTIVIEW_MODE_NONE); PRINT_CONSTANT((gint) GST_VIDEO_MULTIVIEW_MODE_RIGHT); PRINT_CONSTANT((gint) GST_VIDEO_MULTIVIEW_MODE_ROW_INTERLEAVED); PRINT_CONSTANT((gint) GST_VIDEO_MULTIVIEW_MODE_SEPARATED); PRINT_CONSTANT((gint) GST_VIDEO_MULTIVIEW_MODE_SIDE_BY_SIDE); PRINT_CONSTANT((gint) GST_VIDEO_MULTIVIEW_MODE_SIDE_BY_SIDE_QUINCUNX); PRINT_CONSTANT((gint) GST_VIDEO_MULTIVIEW_MODE_TOP_BOTTOM); PRINT_CONSTANT((gint) GST_VIDEO_ORIENTATION_180); PRINT_CONSTANT((gint) GST_VIDEO_ORIENTATION_90L); PRINT_CONSTANT((gint) GST_VIDEO_ORIENTATION_90R); PRINT_CONSTANT((gint) GST_VIDEO_ORIENTATION_AUTO); PRINT_CONSTANT((gint) GST_VIDEO_ORIENTATION_CUSTOM); PRINT_CONSTANT((gint) GST_VIDEO_ORIENTATION_HORIZ); PRINT_CONSTANT((gint) GST_VIDEO_ORIENTATION_IDENTITY); PRINT_CONSTANT((gint) GST_VIDEO_ORIENTATION_UL_LR); PRINT_CONSTANT((gint) GST_VIDEO_ORIENTATION_UR_LL); PRINT_CONSTANT((gint) GST_VIDEO_ORIENTATION_VERT); PRINT_CONSTANT((guint) GST_VIDEO_OVERLAY_FORMAT_FLAG_GLOBAL_ALPHA); PRINT_CONSTANT((guint) GST_VIDEO_OVERLAY_FORMAT_FLAG_NONE); PRINT_CONSTANT((guint) GST_VIDEO_OVERLAY_FORMAT_FLAG_PREMULTIPLIED_ALPHA); PRINT_CONSTANT((guint) GST_VIDEO_PACK_FLAG_INTERLACED); PRINT_CONSTANT((guint) GST_VIDEO_PACK_FLAG_NONE); PRINT_CONSTANT((guint) GST_VIDEO_PACK_FLAG_TRUNCATE_RANGE); PRINT_CONSTANT((gint) GST_VIDEO_PRIMARIES_MODE_FAST); PRINT_CONSTANT((gint) GST_VIDEO_PRIMARIES_MODE_MERGE_ONLY); PRINT_CONSTANT((gint) GST_VIDEO_PRIMARIES_MODE_NONE); PRINT_CONSTANT((guint) GST_VIDEO_RESAMPLER_FLAG_HALF_TAPS); PRINT_CONSTANT((guint) GST_VIDEO_RESAMPLER_FLAG_NONE); PRINT_CONSTANT((gint) GST_VIDEO_RESAMPLER_METHOD_CUBIC); PRINT_CONSTANT((gint) GST_VIDEO_RESAMPLER_METHOD_LANCZOS); PRINT_CONSTANT((gint) GST_VIDEO_RESAMPLER_METHOD_LINEAR); PRINT_CONSTANT((gint) GST_VIDEO_RESAMPLER_METHOD_NEAREST); PRINT_CONSTANT((gint) GST_VIDEO_RESAMPLER_METHOD_SINC); PRINT_CONSTANT(GST_VIDEO_RESAMPLER_OPT_CUBIC_B); PRINT_CONSTANT(GST_VIDEO_RESAMPLER_OPT_CUBIC_C); PRINT_CONSTANT(GST_VIDEO_RESAMPLER_OPT_ENVELOPE); PRINT_CONSTANT(GST_VIDEO_RESAMPLER_OPT_MAX_TAPS); PRINT_CONSTANT(GST_VIDEO_RESAMPLER_OPT_SHARPEN); PRINT_CONSTANT(GST_VIDEO_RESAMPLER_OPT_SHARPNESS); PRINT_CONSTANT((guint) GST_VIDEO_SCALER_FLAG_INTERLACED); PRINT_CONSTANT((guint) GST_VIDEO_SCALER_FLAG_NONE); PRINT_CONSTANT(GST_VIDEO_SCALER_OPT_DITHER_METHOD); PRINT_CONSTANT(GST_VIDEO_SIZE_RANGE); PRINT_CONSTANT((gint) GST_VIDEO_TILE_MODE_LINEAR); PRINT_CONSTANT((gint) GST_VIDEO_TILE_MODE_UNKNOWN); PRINT_CONSTANT((gint) GST_VIDEO_TILE_MODE_ZFLIPZ_2X2); PRINT_CONSTANT((gint) GST_VIDEO_TILE_TYPE_INDEXED); PRINT_CONSTANT(GST_VIDEO_TILE_TYPE_MASK); PRINT_CONSTANT(GST_VIDEO_TILE_TYPE_SHIFT); PRINT_CONSTANT(GST_VIDEO_TILE_X_TILES_MASK); PRINT_CONSTANT(GST_VIDEO_TILE_Y_TILES_SHIFT); PRINT_CONSTANT((guint) GST_VIDEO_TIME_CODE_FLAGS_DROP_FRAME); PRINT_CONSTANT((guint) GST_VIDEO_TIME_CODE_FLAGS_INTERLACED); PRINT_CONSTANT((guint) GST_VIDEO_TIME_CODE_FLAGS_NONE); PRINT_CONSTANT((gint) GST_VIDEO_TRANSFER_ADOBERGB); PRINT_CONSTANT((gint) GST_VIDEO_TRANSFER_ARIB_STD_B67); PRINT_CONSTANT((gint) GST_VIDEO_TRANSFER_BT2020_10); PRINT_CONSTANT((gint) GST_VIDEO_TRANSFER_BT2020_12); PRINT_CONSTANT((gint) GST_VIDEO_TRANSFER_BT601); PRINT_CONSTANT((gint) GST_VIDEO_TRANSFER_BT709); PRINT_CONSTANT((gint) GST_VIDEO_TRANSFER_GAMMA10); PRINT_CONSTANT((gint) GST_VIDEO_TRANSFER_GAMMA18); PRINT_CONSTANT((gint) GST_VIDEO_TRANSFER_GAMMA20); PRINT_CONSTANT((gint) GST_VIDEO_TRANSFER_GAMMA22); PRINT_CONSTANT((gint) GST_VIDEO_TRANSFER_GAMMA28); PRINT_CONSTANT((gint) GST_VIDEO_TRANSFER_LOG100); PRINT_CONSTANT((gint) GST_VIDEO_TRANSFER_LOG316); PRINT_CONSTANT((gint) GST_VIDEO_TRANSFER_SMPTE2084); PRINT_CONSTANT((gint) GST_VIDEO_TRANSFER_SMPTE240M); PRINT_CONSTANT((gint) GST_VIDEO_TRANSFER_SRGB); PRINT_CONSTANT((gint) GST_VIDEO_TRANSFER_UNKNOWN); PRINT_CONSTANT((gint) GST_VIDEO_VBI_PARSER_RESULT_DONE); PRINT_CONSTANT((gint) GST_VIDEO_VBI_PARSER_RESULT_ERROR); PRINT_CONSTANT((gint) GST_VIDEO_VBI_PARSER_RESULT_OK); return 0; } gstreamer-video-sys-0.24.0/tests/layout.c000064400000000000000000000313161046102023000164470ustar 00000000000000// This file was generated by gir (https://github.com/gtk-rs/gir) // from gir-files (https://github.com/gtk-rs/gir-files) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // DO NOT EDIT #include "manual.h" #include #include int main() { printf("%s;%zu;%zu\n", "GstAncillaryMeta", sizeof(GstAncillaryMeta), alignof(GstAncillaryMeta)); printf("%s;%zu;%zu\n", "GstAncillaryMetaField", sizeof(GstAncillaryMetaField), alignof(GstAncillaryMetaField)); printf("%s;%zu;%zu\n", "GstColorBalanceChannel", sizeof(GstColorBalanceChannel), alignof(GstColorBalanceChannel)); printf("%s;%zu;%zu\n", "GstColorBalanceChannelClass", sizeof(GstColorBalanceChannelClass), alignof(GstColorBalanceChannelClass)); printf("%s;%zu;%zu\n", "GstColorBalanceInterface", sizeof(GstColorBalanceInterface), alignof(GstColorBalanceInterface)); printf("%s;%zu;%zu\n", "GstColorBalanceType", sizeof(GstColorBalanceType), alignof(GstColorBalanceType)); printf("%s;%zu;%zu\n", "GstNavigationCommand", sizeof(GstNavigationCommand), alignof(GstNavigationCommand)); printf("%s;%zu;%zu\n", "GstNavigationEventType", sizeof(GstNavigationEventType), alignof(GstNavigationEventType)); printf("%s;%zu;%zu\n", "GstNavigationInterface", sizeof(GstNavigationInterface), alignof(GstNavigationInterface)); printf("%s;%zu;%zu\n", "GstNavigationMessageType", sizeof(GstNavigationMessageType), alignof(GstNavigationMessageType)); printf("%s;%zu;%zu\n", "GstNavigationModifierType", sizeof(GstNavigationModifierType), alignof(GstNavigationModifierType)); printf("%s;%zu;%zu\n", "GstNavigationQueryType", sizeof(GstNavigationQueryType), alignof(GstNavigationQueryType)); printf("%s;%zu;%zu\n", "GstVideoAFDMeta", sizeof(GstVideoAFDMeta), alignof(GstVideoAFDMeta)); printf("%s;%zu;%zu\n", "GstVideoAFDSpec", sizeof(GstVideoAFDSpec), alignof(GstVideoAFDSpec)); printf("%s;%zu;%zu\n", "GstVideoAFDValue", sizeof(GstVideoAFDValue), alignof(GstVideoAFDValue)); printf("%s;%zu;%zu\n", "GstVideoAffineTransformationMeta", sizeof(GstVideoAffineTransformationMeta), alignof(GstVideoAffineTransformationMeta)); printf("%s;%zu;%zu\n", "GstVideoAggregator", sizeof(GstVideoAggregator), alignof(GstVideoAggregator)); printf("%s;%zu;%zu\n", "GstVideoAggregatorClass", sizeof(GstVideoAggregatorClass), alignof(GstVideoAggregatorClass)); printf("%s;%zu;%zu\n", "GstVideoAggregatorConvertPad", sizeof(GstVideoAggregatorConvertPad), alignof(GstVideoAggregatorConvertPad)); printf("%s;%zu;%zu\n", "GstVideoAggregatorConvertPadClass", sizeof(GstVideoAggregatorConvertPadClass), alignof(GstVideoAggregatorConvertPadClass)); printf("%s;%zu;%zu\n", "GstVideoAggregatorPad", sizeof(GstVideoAggregatorPad), alignof(GstVideoAggregatorPad)); printf("%s;%zu;%zu\n", "GstVideoAggregatorPadClass", sizeof(GstVideoAggregatorPadClass), alignof(GstVideoAggregatorPadClass)); printf("%s;%zu;%zu\n", "GstVideoAggregatorParallelConvertPad", sizeof(GstVideoAggregatorParallelConvertPad), alignof(GstVideoAggregatorParallelConvertPad)); printf("%s;%zu;%zu\n", "GstVideoAggregatorParallelConvertPadClass", sizeof(GstVideoAggregatorParallelConvertPadClass), alignof(GstVideoAggregatorParallelConvertPadClass)); printf("%s;%zu;%zu\n", "GstVideoAlignment", sizeof(GstVideoAlignment), alignof(GstVideoAlignment)); printf("%s;%zu;%zu\n", "GstVideoAlphaMode", sizeof(GstVideoAlphaMode), alignof(GstVideoAlphaMode)); printf("%s;%zu;%zu\n", "GstVideoAncillary", sizeof(GstVideoAncillary), alignof(GstVideoAncillary)); printf("%s;%zu;%zu\n", "GstVideoAncillaryDID", sizeof(GstVideoAncillaryDID), alignof(GstVideoAncillaryDID)); printf("%s;%zu;%zu\n", "GstVideoAncillaryDID16", sizeof(GstVideoAncillaryDID16), alignof(GstVideoAncillaryDID16)); printf("%s;%zu;%zu\n", "GstVideoBarMeta", sizeof(GstVideoBarMeta), alignof(GstVideoBarMeta)); printf("%s;%zu;%zu\n", "GstVideoBufferFlags", sizeof(GstVideoBufferFlags), alignof(GstVideoBufferFlags)); printf("%s;%zu;%zu\n", "GstVideoBufferPool", sizeof(GstVideoBufferPool), alignof(GstVideoBufferPool)); printf("%s;%zu;%zu\n", "GstVideoBufferPoolClass", sizeof(GstVideoBufferPoolClass), alignof(GstVideoBufferPoolClass)); printf("%s;%zu;%zu\n", "GstVideoCaptionMeta", sizeof(GstVideoCaptionMeta), alignof(GstVideoCaptionMeta)); printf("%s;%zu;%zu\n", "GstVideoCaptionType", sizeof(GstVideoCaptionType), alignof(GstVideoCaptionType)); printf("%s;%zu;%zu\n", "GstVideoChromaFlags", sizeof(GstVideoChromaFlags), alignof(GstVideoChromaFlags)); printf("%s;%zu;%zu\n", "GstVideoChromaMethod", sizeof(GstVideoChromaMethod), alignof(GstVideoChromaMethod)); printf("%s;%zu;%zu\n", "GstVideoChromaMode", sizeof(GstVideoChromaMode), alignof(GstVideoChromaMode)); printf("%s;%zu;%zu\n", "GstVideoChromaSite", sizeof(GstVideoChromaSite), alignof(GstVideoChromaSite)); printf("%s;%zu;%zu\n", "GstVideoCodecAlphaMeta", sizeof(GstVideoCodecAlphaMeta), alignof(GstVideoCodecAlphaMeta)); printf("%s;%zu;%zu\n", "GstVideoCodecFrame", sizeof(GstVideoCodecFrame), alignof(GstVideoCodecFrame)); printf("%s;%zu;%zu\n", "GstVideoCodecFrameFlags", sizeof(GstVideoCodecFrameFlags), alignof(GstVideoCodecFrameFlags)); printf("%s;%zu;%zu\n", "GstVideoCodecState", sizeof(GstVideoCodecState), alignof(GstVideoCodecState)); printf("%s;%zu;%zu\n", "GstVideoColorMatrix", sizeof(GstVideoColorMatrix), alignof(GstVideoColorMatrix)); printf("%s;%zu;%zu\n", "GstVideoColorPrimaries", sizeof(GstVideoColorPrimaries), alignof(GstVideoColorPrimaries)); printf("%s;%zu;%zu\n", "GstVideoColorPrimariesInfo", sizeof(GstVideoColorPrimariesInfo), alignof(GstVideoColorPrimariesInfo)); printf("%s;%zu;%zu\n", "GstVideoColorRange", sizeof(GstVideoColorRange), alignof(GstVideoColorRange)); printf("%s;%zu;%zu\n", "GstVideoColorimetry", sizeof(GstVideoColorimetry), alignof(GstVideoColorimetry)); printf("%s;%zu;%zu\n", "GstVideoContentLightLevel", sizeof(GstVideoContentLightLevel), alignof(GstVideoContentLightLevel)); printf("%s;%zu;%zu\n", "GstVideoCropMeta", sizeof(GstVideoCropMeta), alignof(GstVideoCropMeta)); printf("%s;%zu;%zu\n", "GstVideoDecoder", sizeof(GstVideoDecoder), alignof(GstVideoDecoder)); printf("%s;%zu;%zu\n", "GstVideoDecoderClass", sizeof(GstVideoDecoderClass), alignof(GstVideoDecoderClass)); printf("%s;%zu;%zu\n", "GstVideoDecoderRequestSyncPointFlags", sizeof(GstVideoDecoderRequestSyncPointFlags), alignof(GstVideoDecoderRequestSyncPointFlags)); printf("%s;%zu;%zu\n", "GstVideoDirectionInterface", sizeof(GstVideoDirectionInterface), alignof(GstVideoDirectionInterface)); printf("%s;%zu;%zu\n", "GstVideoDitherFlags", sizeof(GstVideoDitherFlags), alignof(GstVideoDitherFlags)); printf("%s;%zu;%zu\n", "GstVideoDitherMethod", sizeof(GstVideoDitherMethod), alignof(GstVideoDitherMethod)); printf("%s;%zu;%zu\n", "GstVideoEncoder", sizeof(GstVideoEncoder), alignof(GstVideoEncoder)); printf("%s;%zu;%zu\n", "GstVideoEncoderClass", sizeof(GstVideoEncoderClass), alignof(GstVideoEncoderClass)); printf("%s;%zu;%zu\n", "GstVideoFieldOrder", sizeof(GstVideoFieldOrder), alignof(GstVideoFieldOrder)); printf("%s;%zu;%zu\n", "GstVideoFilter", sizeof(GstVideoFilter), alignof(GstVideoFilter)); printf("%s;%zu;%zu\n", "GstVideoFilterClass", sizeof(GstVideoFilterClass), alignof(GstVideoFilterClass)); printf("%s;%zu;%zu\n", "GstVideoFlags", sizeof(GstVideoFlags), alignof(GstVideoFlags)); printf("%s;%zu;%zu\n", "GstVideoFormat", sizeof(GstVideoFormat), alignof(GstVideoFormat)); printf("%s;%zu;%zu\n", "GstVideoFormatFlags", sizeof(GstVideoFormatFlags), alignof(GstVideoFormatFlags)); printf("%s;%zu;%zu\n", "GstVideoFormatInfo", sizeof(GstVideoFormatInfo), alignof(GstVideoFormatInfo)); printf("%s;%zu;%zu\n", "GstVideoFrame", sizeof(GstVideoFrame), alignof(GstVideoFrame)); printf("%s;%zu;%zu\n", "GstVideoFrameFlags", sizeof(GstVideoFrameFlags), alignof(GstVideoFrameFlags)); printf("%s;%zu;%zu\n", "GstVideoFrameMapFlags", sizeof(GstVideoFrameMapFlags), alignof(GstVideoFrameMapFlags)); printf("%s;%zu;%zu\n", "GstVideoGLTextureOrientation", sizeof(GstVideoGLTextureOrientation), alignof(GstVideoGLTextureOrientation)); printf("%s;%zu;%zu\n", "GstVideoGLTextureType", sizeof(GstVideoGLTextureType), alignof(GstVideoGLTextureType)); printf("%s;%zu;%zu\n", "GstVideoGLTextureUploadMeta", sizeof(GstVideoGLTextureUploadMeta), alignof(GstVideoGLTextureUploadMeta)); printf("%s;%zu;%zu\n", "GstVideoGammaMode", sizeof(GstVideoGammaMode), alignof(GstVideoGammaMode)); printf("%s;%zu;%zu\n", "GstVideoInfo", sizeof(GstVideoInfo), alignof(GstVideoInfo)); printf("%s;%zu;%zu\n", "GstVideoInfoDmaDrm", sizeof(GstVideoInfoDmaDrm), alignof(GstVideoInfoDmaDrm)); printf("%s;%zu;%zu\n", "GstVideoInterlaceMode", sizeof(GstVideoInterlaceMode), alignof(GstVideoInterlaceMode)); printf("%s;%zu;%zu\n", "GstVideoMasteringDisplayInfo", sizeof(GstVideoMasteringDisplayInfo), alignof(GstVideoMasteringDisplayInfo)); printf("%s;%zu;%zu\n", "GstVideoMasteringDisplayInfoCoordinates", sizeof(GstVideoMasteringDisplayInfoCoordinates), alignof(GstVideoMasteringDisplayInfoCoordinates)); printf("%s;%zu;%zu\n", "GstVideoMatrixMode", sizeof(GstVideoMatrixMode), alignof(GstVideoMatrixMode)); printf("%s;%zu;%zu\n", "GstVideoMeta", sizeof(GstVideoMeta), alignof(GstVideoMeta)); printf("%s;%zu;%zu\n", "GstVideoMetaTransform", sizeof(GstVideoMetaTransform), alignof(GstVideoMetaTransform)); printf("%s;%zu;%zu\n", "GstVideoMultiviewFlags", sizeof(GstVideoMultiviewFlags), alignof(GstVideoMultiviewFlags)); printf("%s;%zu;%zu\n", "GstVideoMultiviewFramePacking", sizeof(GstVideoMultiviewFramePacking), alignof(GstVideoMultiviewFramePacking)); printf("%s;%zu;%zu\n", "GstVideoMultiviewMode", sizeof(GstVideoMultiviewMode), alignof(GstVideoMultiviewMode)); printf("%s;%zu;%zu\n", "GstVideoOrientationInterface", sizeof(GstVideoOrientationInterface), alignof(GstVideoOrientationInterface)); printf("%s;%zu;%zu\n", "GstVideoOrientationMethod", sizeof(GstVideoOrientationMethod), alignof(GstVideoOrientationMethod)); printf("%s;%zu;%zu\n", "GstVideoOverlayCompositionMeta", sizeof(GstVideoOverlayCompositionMeta), alignof(GstVideoOverlayCompositionMeta)); printf("%s;%zu;%zu\n", "GstVideoOverlayFormatFlags", sizeof(GstVideoOverlayFormatFlags), alignof(GstVideoOverlayFormatFlags)); printf("%s;%zu;%zu\n", "GstVideoOverlayInterface", sizeof(GstVideoOverlayInterface), alignof(GstVideoOverlayInterface)); printf("%s;%zu;%zu\n", "GstVideoPackFlags", sizeof(GstVideoPackFlags), alignof(GstVideoPackFlags)); printf("%s;%zu;%zu\n", "GstVideoPrimariesMode", sizeof(GstVideoPrimariesMode), alignof(GstVideoPrimariesMode)); printf("%s;%zu;%zu\n", "GstVideoRectangle", sizeof(GstVideoRectangle), alignof(GstVideoRectangle)); printf("%s;%zu;%zu\n", "GstVideoRegionOfInterestMeta", sizeof(GstVideoRegionOfInterestMeta), alignof(GstVideoRegionOfInterestMeta)); printf("%s;%zu;%zu\n", "GstVideoResampler", sizeof(GstVideoResampler), alignof(GstVideoResampler)); printf("%s;%zu;%zu\n", "GstVideoResamplerFlags", sizeof(GstVideoResamplerFlags), alignof(GstVideoResamplerFlags)); printf("%s;%zu;%zu\n", "GstVideoResamplerMethod", sizeof(GstVideoResamplerMethod), alignof(GstVideoResamplerMethod)); printf("%s;%zu;%zu\n", "GstVideoSEIUserDataUnregisteredMeta", sizeof(GstVideoSEIUserDataUnregisteredMeta), alignof(GstVideoSEIUserDataUnregisteredMeta)); printf("%s;%zu;%zu\n", "GstVideoScalerFlags", sizeof(GstVideoScalerFlags), alignof(GstVideoScalerFlags)); printf("%s;%zu;%zu\n", "GstVideoSink", sizeof(GstVideoSink), alignof(GstVideoSink)); printf("%s;%zu;%zu\n", "GstVideoSinkClass", sizeof(GstVideoSinkClass), alignof(GstVideoSinkClass)); printf("%s;%zu;%zu\n", "GstVideoTileInfo", sizeof(GstVideoTileInfo), alignof(GstVideoTileInfo)); printf("%s;%zu;%zu\n", "GstVideoTileMode", sizeof(GstVideoTileMode), alignof(GstVideoTileMode)); printf("%s;%zu;%zu\n", "GstVideoTileType", sizeof(GstVideoTileType), alignof(GstVideoTileType)); printf("%s;%zu;%zu\n", "GstVideoTimeCode", sizeof(GstVideoTimeCode), alignof(GstVideoTimeCode)); printf("%s;%zu;%zu\n", "GstVideoTimeCodeConfig", sizeof(GstVideoTimeCodeConfig), alignof(GstVideoTimeCodeConfig)); printf("%s;%zu;%zu\n", "GstVideoTimeCodeFlags", sizeof(GstVideoTimeCodeFlags), alignof(GstVideoTimeCodeFlags)); printf("%s;%zu;%zu\n", "GstVideoTimeCodeInterval", sizeof(GstVideoTimeCodeInterval), alignof(GstVideoTimeCodeInterval)); printf("%s;%zu;%zu\n", "GstVideoTimeCodeMeta", sizeof(GstVideoTimeCodeMeta), alignof(GstVideoTimeCodeMeta)); printf("%s;%zu;%zu\n", "GstVideoTransferFunction", sizeof(GstVideoTransferFunction), alignof(GstVideoTransferFunction)); printf("%s;%zu;%zu\n", "GstVideoVBIParserResult", sizeof(GstVideoVBIParserResult), alignof(GstVideoVBIParserResult)); return 0; } gstreamer-video-sys-0.24.0/tests/manual.h000064400000000000000000000001671046102023000164140ustar 00000000000000// Feel free to edit this file, it won't be regenerated by gir generator unless removed. #include