chore: More cleanups
This commit is contained in:
parent
90b2cfd984
commit
46cca11e00
|
@ -1,6 +1,5 @@
|
|||
#[derive(Debug)]
|
||||
pub struct AtemPacket<'packet_buffer> {
|
||||
length: u16,
|
||||
flags: u8,
|
||||
session_id: u16,
|
||||
remote_packet_id: u16,
|
||||
|
@ -36,10 +35,6 @@ impl From<PacketFlag> for u8 {
|
|||
}
|
||||
|
||||
impl<'packet_buffer> AtemPacket<'packet_buffer> {
|
||||
pub fn length(&self) -> u16 {
|
||||
self.length
|
||||
}
|
||||
|
||||
pub fn session_id(&self) -> u16 {
|
||||
self.session_id
|
||||
}
|
||||
|
@ -109,7 +104,6 @@ impl<'packet_buffer> TryFrom<&'packet_buffer [u8]> for AtemPacket<'packet_buffer
|
|||
};
|
||||
|
||||
Ok(AtemPacket {
|
||||
length,
|
||||
flags,
|
||||
session_id,
|
||||
remote_packet_id,
|
||||
|
|
|
@ -82,5 +82,5 @@ pub struct DeviceInfo {
|
|||
pub macro_pool: Option<MacroPoolInfo>,
|
||||
pub media_pool: Option<MediaPoolInfo>,
|
||||
pub multiviewer: Option<MultiviewerInfo>,
|
||||
pub lastTime: Option<TimeInfo>,
|
||||
pub last_time: Option<TimeInfo>,
|
||||
}
|
||||
|
|
|
@ -84,7 +84,7 @@ pub struct UpstreamKeyerFlyKeyFrame {
|
|||
}
|
||||
|
||||
#[derive(Clone, PartialEq)]
|
||||
enum UpstreamKeyerMaskSettings {
|
||||
pub enum UpstreamKeyerMaskSettings {
|
||||
DVE(UpstreamKeyerDVESettings),
|
||||
FlyKeyFrame(UpstreamKeyerFlyKeyFrame),
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue