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 | |
6 | use glib::{bitflags::bitflags, translate::*}; |
7 | |
8 | bitflags! { |
9 | #[derive (Clone, Copy, Debug, PartialEq, Eq, Hash)] |
10 | #[doc (alias = "GstBaseParseFrameFlags" )] |
11 | pub struct BaseParseFrameFlags: u32 { |
12 | #[doc(alias = "GST_BASE_PARSE_FRAME_FLAG_NEW_FRAME" )] |
13 | const NEW_FRAME = ffi::GST_BASE_PARSE_FRAME_FLAG_NEW_FRAME as _; |
14 | #[doc(alias = "GST_BASE_PARSE_FRAME_FLAG_NO_FRAME" )] |
15 | const NO_FRAME = ffi::GST_BASE_PARSE_FRAME_FLAG_NO_FRAME as _; |
16 | #[doc(alias = "GST_BASE_PARSE_FRAME_FLAG_CLIP" )] |
17 | const CLIP = ffi::GST_BASE_PARSE_FRAME_FLAG_CLIP as _; |
18 | #[doc(alias = "GST_BASE_PARSE_FRAME_FLAG_DROP" )] |
19 | const DROP = ffi::GST_BASE_PARSE_FRAME_FLAG_DROP as _; |
20 | #[doc(alias = "GST_BASE_PARSE_FRAME_FLAG_QUEUE" )] |
21 | const QUEUE = ffi::GST_BASE_PARSE_FRAME_FLAG_QUEUE as _; |
22 | } |
23 | } |
24 | |
25 | #[doc (hidden)] |
26 | impl IntoGlib for BaseParseFrameFlags { |
27 | type GlibType = ffi::GstBaseParseFrameFlags; |
28 | |
29 | #[inline ] |
30 | fn into_glib(self) -> ffi::GstBaseParseFrameFlags { |
31 | self.bits() |
32 | } |
33 | } |
34 | |
35 | #[doc (hidden)] |
36 | impl FromGlib<ffi::GstBaseParseFrameFlags> for BaseParseFrameFlags { |
37 | #[inline ] |
38 | unsafe fn from_glib(value: ffi::GstBaseParseFrameFlags) -> Self { |
39 | skip_assert_initialized!(); |
40 | Self::from_bits_truncate(bits:value) |
41 | } |
42 | } |
43 | |