vfxpreopenexr_sys/
imf_timecode.rs

1#![allow(non_snake_case)]
2#![allow(non_camel_case_types)]
3#![allow(non_upper_case_globals)]
4#![allow(unused_imports)]
5use crate::*;
6use std::os::raw::*;
7
8#[repr(C, align(4))]
9#[derive(Clone)]
10pub struct Imf_3_0__TimeCode_t {
11    _inner: [u8; 8]
12}
13
14impl Default for Imf_3_0__TimeCode_t {
15    fn default() -> Self {
16        Self { _inner: [0u8; 8] }
17    }
18}
19
20impl Imf_3_0__TimeCode_t {
21    pub fn layout() -> std::alloc::Layout {
22        unsafe {
23            std::alloc::Layout::from_size_align(
24                Imf_3_0__TimeCode_sizeof(),
25                Imf_3_0__TimeCode_alignof(),
26            ).unwrap()
27        }
28    }
29}
30
31
32#[repr(transparent)]
33#[derive(Debug, Copy, Clone, PartialEq, Eq)]
34pub struct Imf_3_0__TimeCode__Packing_e(pub u32);
35pub const Imf_TimeCode_Packing_TV60_PACKING: Imf_3_0__TimeCode__Packing_e = Imf_3_0__TimeCode__Packing_e(0);
36pub const Imf_TimeCode_Packing_TV50_PACKING: Imf_3_0__TimeCode__Packing_e = Imf_3_0__TimeCode__Packing_e(1);
37pub const Imf_TimeCode_Packing_FILM24_PACKING: Imf_3_0__TimeCode__Packing_e = Imf_3_0__TimeCode__Packing_e(2);
38
39
40extern "C" {
41
42pub fn Imf_3_0__TimeCode_sizeof() -> usize;
43
44pub fn Imf_3_0__TimeCode_alignof() -> usize;
45
46pub fn Imf_3_0__TimeCode_default(this_: *mut Imf_TimeCode_t) -> Exception;
47
48pub fn Imf_3_0__TimeCode_ctor(this_: *mut Imf_TimeCode_t, hours: c_int, minutes: c_int, seconds: c_int, frame: c_int, drop_frame: bool, color_frame: bool, field_phase: bool, bgf0: bool, bgf1: bool, bgf2: bool, binary_group1: c_int, binary_group2: c_int, binary_group3: c_int, binary_group4: c_int, binary_group5: c_int, binary_group6: c_int, binary_group7: c_int, binary_group8: c_int) -> Exception;
49
50pub fn Imf_3_0__TimeCode_from_time_and_flags(this_: *mut Imf_TimeCode_t, time_and_flags: c_uint, user_data: c_uint, packing: Imf_TimeCode_Packing) -> Exception;
51
52pub fn Imf_3_0__TimeCode_copy(this_: *mut Imf_TimeCode_t, other: *const Imf_TimeCode_t) -> Exception;
53
54pub fn Imf_3_0__TimeCode_dtor(this_: *mut Imf_TimeCode_t) -> Exception;
55
56pub fn Imf_3_0__TimeCode__assign(this_: *mut Imf_TimeCode_t, return_: *mut *mut Imf_TimeCode_t, other: *const Imf_TimeCode_t) -> Exception;
57
58pub fn Imf_3_0__TimeCode_hours(this_: *const Imf_TimeCode_t, return_: *mut c_int) -> Exception;
59
60pub fn Imf_3_0__TimeCode_setHours(this_: *mut Imf_TimeCode_t, value: c_int) -> Exception;
61
62pub fn Imf_3_0__TimeCode_minutes(this_: *const Imf_TimeCode_t, return_: *mut c_int) -> Exception;
63
64pub fn Imf_3_0__TimeCode_setMinutes(this_: *mut Imf_TimeCode_t, value: c_int) -> Exception;
65
66pub fn Imf_3_0__TimeCode_seconds(this_: *const Imf_TimeCode_t, return_: *mut c_int) -> Exception;
67
68pub fn Imf_3_0__TimeCode_setSeconds(this_: *mut Imf_TimeCode_t, value: c_int) -> Exception;
69
70pub fn Imf_3_0__TimeCode_frame(this_: *const Imf_TimeCode_t, return_: *mut c_int) -> Exception;
71
72pub fn Imf_3_0__TimeCode_setFrame(this_: *mut Imf_TimeCode_t, value: c_int) -> Exception;
73
74pub fn Imf_3_0__TimeCode_dropFrame(this_: *const Imf_TimeCode_t, return_: *mut bool) -> Exception;
75
76pub fn Imf_3_0__TimeCode_setDropFrame(this_: *mut Imf_TimeCode_t, value: bool) -> Exception;
77
78pub fn Imf_3_0__TimeCode_colorFrame(this_: *const Imf_TimeCode_t, return_: *mut bool) -> Exception;
79
80pub fn Imf_3_0__TimeCode_setColorFrame(this_: *mut Imf_TimeCode_t, value: bool) -> Exception;
81
82pub fn Imf_3_0__TimeCode_fieldPhase(this_: *const Imf_TimeCode_t, return_: *mut bool) -> Exception;
83
84pub fn Imf_3_0__TimeCode_setFieldPhase(this_: *mut Imf_TimeCode_t, value: bool) -> Exception;
85
86pub fn Imf_3_0__TimeCode_bgf0(this_: *const Imf_TimeCode_t, return_: *mut bool) -> Exception;
87
88pub fn Imf_3_0__TimeCode_setBgf0(this_: *mut Imf_TimeCode_t, value: bool) -> Exception;
89
90pub fn Imf_3_0__TimeCode_bgf1(this_: *const Imf_TimeCode_t, return_: *mut bool) -> Exception;
91
92pub fn Imf_3_0__TimeCode_setBgf1(this_: *mut Imf_TimeCode_t, value: bool) -> Exception;
93
94pub fn Imf_3_0__TimeCode_bgf2(this_: *const Imf_TimeCode_t, return_: *mut bool) -> Exception;
95
96pub fn Imf_3_0__TimeCode_setBgf2(this_: *mut Imf_TimeCode_t, value: bool) -> Exception;
97
98pub fn Imf_3_0__TimeCode_binaryGroup(this_: *const Imf_TimeCode_t, return_: *mut c_int, group: c_int) -> Exception;
99
100pub fn Imf_3_0__TimeCode_setBinaryGroup(this_: *mut Imf_TimeCode_t, group: c_int, value: c_int) -> Exception;
101
102pub fn Imf_3_0__TimeCode_timeAndFlags(this_: *const Imf_TimeCode_t, return_: *mut c_uint, packing: Imf_TimeCode_Packing) -> Exception;
103
104pub fn Imf_3_0__TimeCode_setTimeAndFlags(this_: *mut Imf_TimeCode_t, value: c_uint, packing: Imf_TimeCode_Packing) -> Exception;
105
106pub fn Imf_3_0__TimeCode_userData(this_: *const Imf_TimeCode_t, return_: *mut c_uint) -> Exception;
107
108pub fn Imf_3_0__TimeCode_setUserData(this_: *mut Imf_TimeCode_t, value: c_uint) -> Exception;
109
110pub fn Imf_3_0__TimeCode__eq(this_: *const Imf_TimeCode_t, return_: *mut bool, v: *const Imf_TimeCode_t) -> Exception;
111
112pub fn Imf_3_0__TimeCode__ne(this_: *const Imf_TimeCode_t, return_: *mut bool, v: *const Imf_TimeCode_t) -> Exception;
113
114
115} // extern "C"