go-exif: github.com/dsoprea/go-exif/v2/undefined Index | Files

package exifundefined

import "github.com/dsoprea/go-exif/v2/undefined"

Index

Package Files

accessor.go exif_8828_oecf.go exif_9000_exif_version.go exif_9101_components_configuration.go exif_927C_maker_note.go exif_9286_user_comment.go exif_A000_flashpix_version.go exif_A20C_spatial_frequency_response.go exif_A300_file_source.go exif_A301_scene_type.go exif_A302_cfa_pattern.go exif_iop_0002_interop_version.go gps_001B_gps_processing_method.go gps_001C_gps_area_information.go registration.go type.go

Constants

const (
    TagUndefinedType_9101_ComponentsConfiguration_Channel_Y  = 0x1
    TagUndefinedType_9101_ComponentsConfiguration_Channel_Cb = 0x2
    TagUndefinedType_9101_ComponentsConfiguration_Channel_Cr = 0x3
    TagUndefinedType_9101_ComponentsConfiguration_Channel_R  = 0x4
    TagUndefinedType_9101_ComponentsConfiguration_Channel_G  = 0x5
    TagUndefinedType_9101_ComponentsConfiguration_Channel_B  = 0x6
)
const (
    TagUndefinedType_9101_ComponentsConfiguration_OTHER = iota
    TagUndefinedType_9101_ComponentsConfiguration_RGB   = iota
    TagUndefinedType_9101_ComponentsConfiguration_YCBCR = iota
)
const (
    TagUndefinedType_9286_UserComment_Encoding_ASCII     = iota
    TagUndefinedType_9286_UserComment_Encoding_JIS       = iota
    TagUndefinedType_9286_UserComment_Encoding_UNICODE   = iota
    TagUndefinedType_9286_UserComment_Encoding_UNDEFINED = iota
)
const (
    // UnparseableUnknownTagValuePlaceholder is the string to use for an unknown
    // undefined tag.
    UnparseableUnknownTagValuePlaceholder = "!UNKNOWN"

    // UnparseableHandledTagValuePlaceholder is the string to use for a known
    // value that is not parseable.
    UnparseableHandledTagValuePlaceholder = "!MALFORMED"
)

Variables

var (
    TagUndefinedType_9101_ComponentsConfiguration_Names = map[int]string{
        TagUndefinedType_9101_ComponentsConfiguration_OTHER: "OTHER",
        TagUndefinedType_9101_ComponentsConfiguration_RGB:   "RGB",
        TagUndefinedType_9101_ComponentsConfiguration_YCBCR: "YCBCR",
    }

    TagUndefinedType_9101_ComponentsConfiguration_Configurations = map[int][]byte{
        TagUndefinedType_9101_ComponentsConfiguration_RGB: {
            TagUndefinedType_9101_ComponentsConfiguration_Channel_R,
            TagUndefinedType_9101_ComponentsConfiguration_Channel_G,
            TagUndefinedType_9101_ComponentsConfiguration_Channel_B,
            0,
        },

        TagUndefinedType_9101_ComponentsConfiguration_YCBCR: {
            TagUndefinedType_9101_ComponentsConfiguration_Channel_Y,
            TagUndefinedType_9101_ComponentsConfiguration_Channel_Cb,
            TagUndefinedType_9101_ComponentsConfiguration_Channel_Cr,
            0,
        },
    }
)
var (
    TagUndefinedType_9286_UserComment_Encoding_Names = map[int]string{
        TagUndefinedType_9286_UserComment_Encoding_ASCII:     "ASCII",
        TagUndefinedType_9286_UserComment_Encoding_JIS:       "JIS",
        TagUndefinedType_9286_UserComment_Encoding_UNICODE:   "UNICODE",
        TagUndefinedType_9286_UserComment_Encoding_UNDEFINED: "UNDEFINED",
    }

    TagUndefinedType_9286_UserComment_Encodings = map[int][]byte{
        TagUndefinedType_9286_UserComment_Encoding_ASCII:     {'A', 'S', 'C', 'I', 'I', 0, 0, 0},
        TagUndefinedType_9286_UserComment_Encoding_JIS:       {'J', 'I', 'S', 0, 0, 0, 0, 0},
        TagUndefinedType_9286_UserComment_Encoding_UNICODE:   {'U', 'n', 'i', 'c', 'o', 'd', 'e', 0},
        TagUndefinedType_9286_UserComment_Encoding_UNDEFINED: {0, 0, 0, 0, 0, 0, 0, 0},
    }
)
var (
    // ErrUnparseableValue is the error for a value that we should have been
    // able to parse but were not able to.
    ErrUnparseableValue = errors.New("unparseable undefined tag")
)

func Encode Uses

func Encode(value EncodeableValue, byteOrder binary.ByteOrder) (encoded []byte, unitCount uint32, err error)

Encode encodes the given encodeable undefined value to bytes.

type Codec0002InteropVersion Uses

type Codec0002InteropVersion struct {
}

func (Codec0002InteropVersion) Decode Uses

func (Codec0002InteropVersion) Decode(valueContext *exifcommon.ValueContext) (value EncodeableValue, err error)

func (Codec0002InteropVersion) Encode Uses

func (Codec0002InteropVersion) Encode(value interface{}, byteOrder binary.ByteOrder) (encoded []byte, unitCount uint32, err error)

type Codec001BGPSProcessingMethod Uses

type Codec001BGPSProcessingMethod struct {
}

func (Codec001BGPSProcessingMethod) Decode Uses

func (Codec001BGPSProcessingMethod) Decode(valueContext *exifcommon.ValueContext) (value EncodeableValue, err error)

func (Codec001BGPSProcessingMethod) Encode Uses

func (Codec001BGPSProcessingMethod) Encode(value interface{}, byteOrder binary.ByteOrder) (encoded []byte, unitCount uint32, err error)

type Codec001CGPSAreaInformation Uses

type Codec001CGPSAreaInformation struct {
}

func (Codec001CGPSAreaInformation) Decode Uses

func (Codec001CGPSAreaInformation) Decode(valueContext *exifcommon.ValueContext) (value EncodeableValue, err error)

func (Codec001CGPSAreaInformation) Encode Uses

func (Codec001CGPSAreaInformation) Encode(value interface{}, byteOrder binary.ByteOrder) (encoded []byte, unitCount uint32, err error)

type Codec8828Oecf Uses

type Codec8828Oecf struct {
}

func (Codec8828Oecf) Decode Uses

func (Codec8828Oecf) Decode(valueContext *exifcommon.ValueContext) (value EncodeableValue, err error)

func (Codec8828Oecf) Encode Uses

func (Codec8828Oecf) Encode(value interface{}, byteOrder binary.ByteOrder) (encoded []byte, unitCount uint32, err error)

type Codec9000ExifVersion Uses

type Codec9000ExifVersion struct {
}

func (Codec9000ExifVersion) Decode Uses

func (Codec9000ExifVersion) Decode(valueContext *exifcommon.ValueContext) (value EncodeableValue, err error)

func (Codec9000ExifVersion) Encode Uses

func (Codec9000ExifVersion) Encode(value interface{}, byteOrder binary.ByteOrder) (encoded []byte, unitCount uint32, err error)

type Codec927CMakerNote Uses

type Codec927CMakerNote struct {
}

func (Codec927CMakerNote) Decode Uses

func (Codec927CMakerNote) Decode(valueContext *exifcommon.ValueContext) (value EncodeableValue, err error)

func (Codec927CMakerNote) Encode Uses

func (Codec927CMakerNote) Encode(value interface{}, byteOrder binary.ByteOrder) (encoded []byte, unitCount uint32, err error)

type Codec9286UserComment Uses

type Codec9286UserComment struct {
}

func (Codec9286UserComment) Decode Uses

func (Codec9286UserComment) Decode(valueContext *exifcommon.ValueContext) (value EncodeableValue, err error)

func (Codec9286UserComment) Encode Uses

func (Codec9286UserComment) Encode(value interface{}, byteOrder binary.ByteOrder) (encoded []byte, unitCount uint32, err error)

type CodecA000FlashpixVersion Uses

type CodecA000FlashpixVersion struct {
}

func (CodecA000FlashpixVersion) Decode Uses

func (CodecA000FlashpixVersion) Decode(valueContext *exifcommon.ValueContext) (value EncodeableValue, err error)

func (CodecA000FlashpixVersion) Encode Uses

func (CodecA000FlashpixVersion) Encode(value interface{}, byteOrder binary.ByteOrder) (encoded []byte, unitCount uint32, err error)

type CodecA20CSpatialFrequencyResponse Uses

type CodecA20CSpatialFrequencyResponse struct {
}

func (CodecA20CSpatialFrequencyResponse) Decode Uses

func (CodecA20CSpatialFrequencyResponse) Decode(valueContext *exifcommon.ValueContext) (value EncodeableValue, err error)

func (CodecA20CSpatialFrequencyResponse) Encode Uses

func (CodecA20CSpatialFrequencyResponse) Encode(value interface{}, byteOrder binary.ByteOrder) (encoded []byte, unitCount uint32, err error)

type CodecA302CfaPattern Uses

type CodecA302CfaPattern struct {
}

func (CodecA302CfaPattern) Decode Uses

func (CodecA302CfaPattern) Decode(valueContext *exifcommon.ValueContext) (value EncodeableValue, err error)

func (CodecA302CfaPattern) Encode Uses

func (CodecA302CfaPattern) Encode(value interface{}, byteOrder binary.ByteOrder) (encoded []byte, unitCount uint32, err error)

type CodecExif9101ComponentsConfiguration Uses

type CodecExif9101ComponentsConfiguration struct {
}

func (CodecExif9101ComponentsConfiguration) Decode Uses

func (CodecExif9101ComponentsConfiguration) Decode(valueContext *exifcommon.ValueContext) (value EncodeableValue, err error)

func (CodecExif9101ComponentsConfiguration) Encode Uses

func (CodecExif9101ComponentsConfiguration) Encode(value interface{}, byteOrder binary.ByteOrder) (encoded []byte, unitCount uint32, err error)

type CodecExifA300FileSource Uses

type CodecExifA300FileSource struct {
}

func (CodecExifA300FileSource) Decode Uses

func (CodecExifA300FileSource) Decode(valueContext *exifcommon.ValueContext) (value EncodeableValue, err error)

func (CodecExifA300FileSource) Encode Uses

func (CodecExifA300FileSource) Encode(value interface{}, byteOrder binary.ByteOrder) (encoded []byte, unitCount uint32, err error)

type CodecExifA301SceneType Uses

type CodecExifA301SceneType struct {
}

func (CodecExifA301SceneType) Decode Uses

func (CodecExifA301SceneType) Decode(valueContext *exifcommon.ValueContext) (value EncodeableValue, err error)

func (CodecExifA301SceneType) Encode Uses

func (CodecExifA301SceneType) Encode(value interface{}, byteOrder binary.ByteOrder) (encoded []byte, unitCount uint32, err error)

type EncodeableValue Uses

type EncodeableValue interface {
    EncoderName() string
    String() string
}

EncodeableValue wraps a value with the information that will be needed to re- encode it later.

func Decode Uses

func Decode(valueContext *exifcommon.ValueContext) (value EncodeableValue, err error)

Decode constructs a value from raw encoded bytes

type Tag0002InteropVersion Uses

type Tag0002InteropVersion struct {
    InteropVersion string
}

func (Tag0002InteropVersion) EncoderName Uses

func (Tag0002InteropVersion) EncoderName() string

func (Tag0002InteropVersion) String Uses

func (iv Tag0002InteropVersion) String() string

type Tag001BGPSProcessingMethod Uses

type Tag001BGPSProcessingMethod struct {
    // contains filtered or unexported fields
}

func (Tag001BGPSProcessingMethod) EncoderName Uses

func (Tag001BGPSProcessingMethod) EncoderName() string

func (Tag001BGPSProcessingMethod) String Uses

func (gpm Tag001BGPSProcessingMethod) String() string

type Tag001CGPSAreaInformation Uses

type Tag001CGPSAreaInformation struct {
    // contains filtered or unexported fields
}

func (Tag001CGPSAreaInformation) EncoderName Uses

func (Tag001CGPSAreaInformation) EncoderName() string

func (Tag001CGPSAreaInformation) String Uses

func (gai Tag001CGPSAreaInformation) String() string

type Tag8828Oecf Uses

type Tag8828Oecf struct {
    Columns     uint16
    Rows        uint16
    ColumnNames []string
    Values      []exifcommon.SignedRational
}

func (Tag8828Oecf) EncoderName Uses

func (oecf Tag8828Oecf) EncoderName() string

func (Tag8828Oecf) String Uses

func (oecf Tag8828Oecf) String() string

type Tag9000ExifVersion Uses

type Tag9000ExifVersion struct {
    ExifVersion string
}

func (Tag9000ExifVersion) EncoderName Uses

func (Tag9000ExifVersion) EncoderName() string

func (Tag9000ExifVersion) String Uses

func (ev Tag9000ExifVersion) String() string

type Tag927CMakerNote Uses

type Tag927CMakerNote struct {
    MakerNoteType  []byte
    MakerNoteBytes []byte
}

func (Tag927CMakerNote) EncoderName Uses

func (Tag927CMakerNote) EncoderName() string

func (Tag927CMakerNote) String Uses

func (mn Tag927CMakerNote) String() string

type Tag9286UserComment Uses

type Tag9286UserComment struct {
    EncodingType  int
    EncodingBytes []byte
}

func (Tag9286UserComment) EncoderName Uses

func (Tag9286UserComment) EncoderName() string

func (Tag9286UserComment) String Uses

func (uc Tag9286UserComment) String() string

type TagA000FlashpixVersion Uses

type TagA000FlashpixVersion struct {
    FlashpixVersion string
}

func (TagA000FlashpixVersion) EncoderName Uses

func (TagA000FlashpixVersion) EncoderName() string

func (TagA000FlashpixVersion) String Uses

func (fv TagA000FlashpixVersion) String() string

type TagA20CSpatialFrequencyResponse Uses

type TagA20CSpatialFrequencyResponse struct {
    Columns     uint16
    Rows        uint16
    ColumnNames []string
    Values      []exifcommon.Rational
}

func (TagA20CSpatialFrequencyResponse) EncoderName Uses

func (TagA20CSpatialFrequencyResponse) EncoderName() string

func (TagA20CSpatialFrequencyResponse) String Uses

func (sfr TagA20CSpatialFrequencyResponse) String() string

type TagA302CfaPattern Uses

type TagA302CfaPattern struct {
    HorizontalRepeat uint16
    VerticalRepeat   uint16
    CfaValue         []byte
}

func (TagA302CfaPattern) EncoderName Uses

func (TagA302CfaPattern) EncoderName() string

func (TagA302CfaPattern) String Uses

func (cp TagA302CfaPattern) String() string

type TagExif9101ComponentsConfiguration Uses

type TagExif9101ComponentsConfiguration struct {
    ConfigurationId    int
    ConfigurationBytes []byte
}

func (TagExif9101ComponentsConfiguration) EncoderName Uses

func (TagExif9101ComponentsConfiguration) EncoderName() string

func (TagExif9101ComponentsConfiguration) String Uses

func (cc TagExif9101ComponentsConfiguration) String() string

type TagExifA300FileSource Uses

type TagExifA300FileSource uint32
const (
    TagUndefinedType_A300_SceneType_Others                   TagExifA300FileSource = 0
    TagUndefinedType_A300_SceneType_ScannerOfTransparentType TagExifA300FileSource = 1
    TagUndefinedType_A300_SceneType_ScannerOfReflexType      TagExifA300FileSource = 2
    TagUndefinedType_A300_SceneType_Dsc                      TagExifA300FileSource = 3
)

func (TagExifA300FileSource) EncoderName Uses

func (TagExifA300FileSource) EncoderName() string

func (TagExifA300FileSource) String Uses

func (af TagExifA300FileSource) String() string

type TagExifA301SceneType Uses

type TagExifA301SceneType uint32
const (
    TagUndefinedType_A301_SceneType_DirectlyPhotographedImage TagExifA301SceneType = 1
)

func (TagExifA301SceneType) EncoderName Uses

func (TagExifA301SceneType) EncoderName() string

func (TagExifA301SceneType) String Uses

func (st TagExifA301SceneType) String() string

type UndefinedTagHandle Uses

type UndefinedTagHandle struct {
    IfdPath string
    TagId   uint16
}

UndefinedTagHandle defines one undefined-type tag with a corresponding decoder.

type UndefinedValueDecoder Uses

type UndefinedValueDecoder interface {
    Decode(valueContext *exifcommon.ValueContext) (value EncodeableValue, err error)
}

UndefinedValueDecoder knows how to decode an undefined-type tag's value from bytes.

type UndefinedValueEncoder Uses

type UndefinedValueEncoder interface {
    Encode(value interface{}, byteOrder binary.ByteOrder) (encoded []byte, unitCount uint32, err error)
}

UndefinedValueEncoder knows how to encode an undefined-type tag's value to bytes.

Package exifundefined imports 8 packages (graph) and is imported by 1 packages. Updated 2020-09-13. Refresh now. Tools for package owners.