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 color_id: ColorId,
pub observer: String,
pub telescope: String,
pub instrument: String,
pub date_time: u64,
pub date_time_utc: u64,
}Fields§
§image_height: u32Image height, in pixels
image_width: u32Image width, in pixels
frame_count: usizeNumber of frames
pixel_depth_per_plane: u32Pixel depth per plane
endianness: EndiannessNumber of bytes per pixel (1 or 2) The endianness of encoded image data. This is only relevant if the image data is 16-bit
color_id: ColorIdBayer encoding
observer: StringName of observer
telescope: StringName of telescope
instrument: StringName of instrument
date_time: u64File timestamp
date_time_utc: u64File 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 (bit depth) times 1 or 3 (mono or rgb)
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