1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// 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

use crate::ffi;
use glib::{bitflags::bitflags, translate::*};

bitflags! {
    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
    #[doc(alias = "GstAnalyticsRelTypes")]
    pub struct RelTypes: u32 {
        /// No relation
        #[doc(alias = "GST_ANALYTICS_REL_TYPE_NONE")]
        const NONE = ffi::GST_ANALYTICS_REL_TYPE_NONE as _;
        /// First analysis-meta is part of second analysis-meta
        #[doc(alias = "GST_ANALYTICS_REL_TYPE_IS_PART_OF")]
        const IS_PART_OF = ffi::GST_ANALYTICS_REL_TYPE_IS_PART_OF as _;
        /// First analysis-meta contain second analysis-meta.
        #[doc(alias = "GST_ANALYTICS_REL_TYPE_CONTAIN")]
        const CONTAIN = ffi::GST_ANALYTICS_REL_TYPE_CONTAIN as _;
        #[doc(alias = "GST_ANALYTICS_REL_TYPE_RELATE_TO")]
        const RELATE_TO = ffi::GST_ANALYTICS_REL_TYPE_RELATE_TO as _;
        /// reserved
        #[doc(alias = "GST_ANALYTICS_REL_TYPE_LAST")]
        const LAST = ffi::GST_ANALYTICS_REL_TYPE_LAST as _;
        /// Only use for criteria.
        #[doc(alias = "GST_ANALYTICS_REL_TYPE_ANY")]
        const ANY = ffi::GST_ANALYTICS_REL_TYPE_ANY as _;
    }
}

#[doc(hidden)]
impl IntoGlib for RelTypes {
    type GlibType = ffi::GstAnalyticsRelTypes;

    #[inline]
    fn into_glib(self) -> ffi::GstAnalyticsRelTypes {
        self.bits()
    }
}

#[doc(hidden)]
impl FromGlib<ffi::GstAnalyticsRelTypes> for RelTypes {
    #[inline]
    unsafe fn from_glib(value: ffi::GstAnalyticsRelTypes) -> Self {
        skip_assert_initialized!();
        Self::from_bits_truncate(value)
    }
}