gstreamer_analytics/auto/
flags.rs

1// This file was generated by gir (https://github.com/gtk-rs/gir)
2// from gir-files (https://github.com/gtk-rs/gir-files)
3// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
4// DO NOT EDIT
5
6use crate::ffi;
7use glib::{bitflags::bitflags, translate::*};
8
9bitflags! {
10    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
11    #[doc(alias = "GstAnalyticsRelTypes")]
12    pub struct RelTypes: u32 {
13        /// No relation
14        #[doc(alias = "GST_ANALYTICS_REL_TYPE_NONE")]
15        const NONE = ffi::GST_ANALYTICS_REL_TYPE_NONE as _;
16        /// First analysis-meta is part of second analysis-meta
17        #[doc(alias = "GST_ANALYTICS_REL_TYPE_IS_PART_OF")]
18        const IS_PART_OF = ffi::GST_ANALYTICS_REL_TYPE_IS_PART_OF as _;
19        /// First analysis-meta contain second analysis-meta.
20        #[doc(alias = "GST_ANALYTICS_REL_TYPE_CONTAIN")]
21        const CONTAIN = ffi::GST_ANALYTICS_REL_TYPE_CONTAIN as _;
22        /// First analysis-meta relate to second analysis-meta.
23        #[doc(alias = "GST_ANALYTICS_REL_TYPE_RELATE_TO")]
24        const RELATE_TO = ffi::GST_ANALYTICS_REL_TYPE_RELATE_TO as _;
25        /// Used to express relations between two groups where each group's components
26        /// correspond to the respective component in the other group.
27        #[cfg(feature = "v1_26")]
28        #[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
29        #[doc(alias = "GST_ANALYTICS_REL_TYPE_N_TO_N")]
30        const N_TO_N = ffi::GST_ANALYTICS_REL_TYPE_N_TO_N as _;
31        /// Only use for criteria.
32        #[doc(alias = "GST_ANALYTICS_REL_TYPE_ANY")]
33        const ANY = ffi::GST_ANALYTICS_REL_TYPE_ANY as _;
34    }
35}
36
37#[doc(hidden)]
38impl IntoGlib for RelTypes {
39    type GlibType = ffi::GstAnalyticsRelTypes;
40
41    #[inline]
42    fn into_glib(self) -> ffi::GstAnalyticsRelTypes {
43        self.bits()
44    }
45}
46
47#[doc(hidden)]
48impl FromGlib<ffi::GstAnalyticsRelTypes> for RelTypes {
49    #[inline]
50    unsafe fn from_glib(value: ffi::GstAnalyticsRelTypes) -> Self {
51        skip_assert_initialized!();
52        Self::from_bits_truncate(value)
53    }
54}