Skip to content
This repository has been archived by the owner on Apr 1, 2024. It is now read-only.

andygrove/ser-io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ser-io

crates.io

Rust crate for reading SER files used in astrophotography.

Looking For New Maintainers

I no longer maintain this crate and would be happy to transfer to a new maintainer.

Usage

let ser = SerFile::open(filename)?;

println!("Image size: {} x {}", ser.image_width, ser.image_height);
println!("Frame count: {}", ser.frame_count);
println!("Frame size: {}", ser.image_frame_size);
println!("Bytes per pixel: {}", ser.bytes_per_pixel);
println!("Bayer: {:?}", ser.bayer);
println!("Endianness: {:?}", ser.endianness);

for i in 0..ser.frame_count {
    let bytes = ser.read_frame(i)?;
    // do processing ...
}

Example

$ cargo run --example view-ser ~/Documents/2021-09-20-0323_1-CapObj.SER
 
Image size: 4144 x 2822
Frame count: 100
Frame size: 23388736
Bytes per pixel: 2
Bayer: RGGB
Endianness: LittleEndian

Resources

About

Rust crate for reading and writing SER files used in astrophotography

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages