pub struct VideoMessage {
pub codec: CodecType,
pub width: u16,
pub height: u16,
pub frame_data: Vec<u8>,
}
Expand description
VIDEO message for video frame data
§OpenIGTLink Specification
- Message type: “VIDEO”
- Format: CODEC (uint8) + WIDTH (uint16) + HEIGHT (uint16) + Reserved (uint8) + Frame data
- Header size: 6 bytes + variable frame data
Fields§
§codec: CodecType
Video codec type
width: u16
Frame width in pixels
height: u16
Frame height in pixels
frame_data: Vec<u8>
Encoded frame data
Implementations§
Trait Implementations§
Source§impl Clone for VideoMessage
impl Clone for VideoMessage
Source§fn clone(&self) -> VideoMessage
fn clone(&self) -> VideoMessage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for VideoMessage
impl Debug for VideoMessage
Source§impl Message for VideoMessage
impl Message for VideoMessage
Source§impl PartialEq for VideoMessage
impl PartialEq for VideoMessage
impl StructuralPartialEq for VideoMessage
Auto Trait Implementations§
impl Freeze for VideoMessage
impl RefUnwindSafe for VideoMessage
impl Send for VideoMessage
impl Sync for VideoMessage
impl Unpin for VideoMessage
impl UnwindSafe for VideoMessage
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more