Documentation ¶
Index ¶
Constants ¶
View Source
const ( Width int = 9 Height int = 9 )
View Source
const FileMagic string = "DHO"
The file magic for any file that contains hashes. Abbreviation of Difference Hash Object
Variables ¶
Functions ¶
func AvErrorStr ¶
func ShutdownVips ¶
func ShutdownVips()
Types ¶
type File ¶
type File struct { Hashes []Hash // contains filtered or unexported fields }
TODO: Consider adding an array of strings at the beginning that has path names, and give each hash a frame index and path index
func LoadFromFile ¶
Read a given file into a hashinfo object returns InvalidHeader error if the file type is invalid, or a normal error otherwise
func NewFileWithVersion ¶
Creates a new file with the provided version. Currently only "1" exists as a valid option
func NewFromPath ¶
If
image -> handleImage(path) video -> ffmpegRunner(path) -> for _, f := range runnerFrames { handleImage(f, path) } dir -> Iterate through directory, doing the above two for each
func NewFromVideo2 ¶
Click to show internal directories.
Click to hide internal directories.