mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-05 17:19:42 +00:00
Add constants for SECONDS, etc in u64
This commit is contained in:
parent
d5b2f5900c
commit
f823ef9cf7
1 changed files with 5 additions and 0 deletions
|
@ -164,6 +164,11 @@ pub const MSECOND: ClockTime = ClockTime(Some(1_000_000));
|
|||
pub const USECOND: ClockTime = ClockTime(Some(1_000));
|
||||
pub const NSECOND: ClockTime = ClockTime(Some(1));
|
||||
|
||||
pub const SECOND_VAL: u64 = 1_000_000_000;
|
||||
pub const MSECOND_VAL: u64 = 1_000_000;
|
||||
pub const USECOND_VAL: u64 = 1_000;
|
||||
pub const NSECOND_VAL: u64 = 1;
|
||||
|
||||
pub const FORMAT_PERCENT_MAX: u32 = ffi::GST_FORMAT_PERCENT_MAX as u32;
|
||||
pub const FORMAT_PERCENT_SCALE: u32 = ffi::GST_FORMAT_PERCENT_SCALE as u32;
|
||||
|
||||
|
|
Loading…
Reference in a new issue