stillyslalom / CineFiles.jl

Simple reader for grayscale .cine (Phantom video) files
MIT License
2 stars 1 forks source link

Added unpacking for packed .cine data, adjustments for white and blac… #6

Closed james-bird closed 2 years ago

james-bird commented 2 years ago

…k levels and reading of setup header file.

stillyslalom commented 2 years ago

Time-to-first-cine is painful with the current read implementation - this puts a lot of burden on the compiler

read(f::IOStream, S::Type{T}) where {T<:BinaryData} = S(read.(Ref(f), S.types)...)
@time cf8 = CineFile(joinpath("data", "8bpp.cine"))
# ==> 46.165358 seconds (13.20 M allocations: 593.282 MiB, 0.53% gc time, 99.97% compilation time)

...but let's merge this and work on improving it