mirror of
https://github.com/wader/fq.git
synced 2024-12-18 19:01:34 +03:00
b08ef00dd1
Replaces []Format with a Group type. A bit more type safe. Breaking change for RegisterFormat, now takes a first argument that is a "single" format group. Lots of naming cleanup. This is also preparation for decode group argument which will enable doing intresting probing, ex a format decoder could know it's decode as part of probe group (html could be probed possibly), or have "arg probe" group for decoder who inspect args to know if they should probe (-d /path/to/schema etc) to enable nice CLI-ergonomics.
23 lines
496 B
Go
23 lines
496 B
Go
package tiff
|
|
|
|
// https://exiftool.org/TagNames/EXIF.html
|
|
// TODO: JPEGInterchangeFormat/JPEGInterchangeFormatLength, seem to just after the exif tag usually?
|
|
|
|
import (
|
|
"github.com/wader/fq/format"
|
|
"github.com/wader/fq/pkg/decode"
|
|
"github.com/wader/fq/pkg/interp"
|
|
)
|
|
|
|
// currently just a alias for tiff
|
|
|
|
func init() {
|
|
interp.RegisterFormat(
|
|
format.Exif,
|
|
&decode.Format{
|
|
Description: "Exchangeable Image File Format",
|
|
Groups: []*decode.Group{},
|
|
DecodeFn: tiffDecode,
|
|
})
|
|
}
|