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