pub struct SerHeader {
pub image_height: u32,
pub image_width: u32,
pub frame_count: usize,
pub pixel_depth_per_plane: u32,
pub endianness: Endianness,
pub bayer: Bayer,
pub observer: String,
pub telescope: String,
pub instrument: String,
pub date_time: u64,
pub date_time_utc: u64,
}
Fields§
§image_height: u32
Image height, in pixels
image_width: u32
Image width, in pixels
frame_count: usize
Number of frames
pixel_depth_per_plane: u32
Pixel depth per plane
endianness: Endianness
Number of butes per pixel (1 or 2) The endianness of encoded image data. This is only relevant if the image data is 16-bit
bayer: Bayer
Bayer encoding
observer: String
Name of observer
telescope: String
Name of telescope
instrument: String
Name of instrument
date_time: u64
File timestamp
date_time_utc: u64
File timestamp in UTC
Implementations§
Source§impl SerHeader
impl SerHeader
Sourcepub fn image_data_bytes(&self) -> usize
pub fn image_data_bytes(&self) -> usize
Total number of image bytes in the file
Sourcepub fn image_frame_size(&self) -> usize
pub fn image_frame_size(&self) -> usize
Number of bytes per image frame
Sourcepub fn bytes_per_pixel(&self) -> usize
pub fn bytes_per_pixel(&self) -> usize
Number of bytes per pixel (either 1 or 2)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SerHeader
impl RefUnwindSafe for SerHeader
impl Send for SerHeader
impl Sync for SerHeader
impl Unpin for SerHeader
impl UnwindSafe for SerHeader
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