Versions in this module Expand all Collapse all v1 v1.2.0 Aug 8, 2023 v1.1.0 Aug 8, 2023 Changes in this version + const BorderSize + type Documenter interface + GetGlobalSegment func(int) (*Header, error) + GetPage func(int) (Pager, error) + type EncodeInitializer interface + InitEncode func() + type EndOfStripe struct + func (e *EndOfStripe) Init(h *Header, r reader.StreamReader) error + func (e *EndOfStripe) LineNumber() int + type GenericRefinementRegion struct + GrAtX []int8 + GrAtY []int8 + IsTPGROn bool + ReferenceBitmap *bitmap.Bitmap + ReferenceDX int32 + ReferenceDY int32 + RegionBitmap *bitmap.Bitmap + RegionInfo *RegionSegment + Template templater + TemplateID int8 + func (g *GenericRefinementRegion) GetRegionBitmap() (*bitmap.Bitmap, error) + func (g *GenericRefinementRegion) GetRegionInfo() *RegionSegment + func (g *GenericRefinementRegion) Init(header *Header, r reader.StreamReader) error + func (g *GenericRefinementRegion) String() string + type GenericRegion struct + Bitmap *bitmap.Bitmap + DataHeaderLength int64 + DataHeaderOffset int64 + DataLength int64 + DataOffset int64 + GBAtOverride []bool + GBAtX []int8 + GBAtY []int8 + GBTemplate byte + IsMMREncoded bool + IsTPGDon bool + RegionSegment *RegionSegment + UseExtTemplates bool + UseMMR bool + func NewGenericRegion(r reader.StreamReader) *GenericRegion + func (g *GenericRegion) Encode(w writer.BinaryWriter) (n int, err error) + func (g *GenericRegion) GetRegionBitmap() (bm *bitmap.Bitmap, err error) + func (g *GenericRegion) GetRegionInfo() *RegionSegment + func (g *GenericRegion) Init(h *Header, r reader.StreamReader) error + func (g *GenericRegion) InitEncode(bm *bitmap.Bitmap, xLoc, yLoc, template int, duplicateLineRemoval bool) error + func (g *GenericRegion) Size() int + func (g *GenericRegion) String() string + type HalftoneRegion struct + CombinationOperator bitmap.CombinationOperator + DataHeaderLength int64 + DataHeaderOffset int64 + DataLength int64 + DataOffset int64 + HDefaultPixel int8 + HGridHeight uint32 + HGridWidth uint32 + HGridX int32 + HGridY int32 + HRegionX uint16 + HRegionY uint16 + HSkipEnabled bool + HTemplate byte + HalftoneRegionBitmap *bitmap.Bitmap + IsMMREncoded bool + Patterns []*bitmap.Bitmap + RegionSegment *RegionSegment + func (h *HalftoneRegion) GetPatterns() ([]*bitmap.Bitmap, error) + func (h *HalftoneRegion) GetRegionBitmap() (*bitmap.Bitmap, error) + func (h *HalftoneRegion) GetRegionInfo() *RegionSegment + func (h *HalftoneRegion) Init(hd *Header, r reader.StreamReader) error + type Header struct + HeaderLength int64 + PageAssociation int + PageAssociationFieldSize bool + RTSNumbers []int + RTSegments []*Header + Reader reader.StreamReader + RetainBits []uint8 + RetainFlag bool + SegmentData Segmenter + SegmentDataLength uint64 + SegmentDataStartOffset uint64 + SegmentNumber uint32 + Type Type + func NewHeader(d Documenter, r reader.StreamReader, offset int64, ...) (*Header, error) + func (h *Header) CleanSegmentData() + func (h *Header) Encode(w writer.BinaryWriter) (n int, err error) + func (h *Header) GetSegmentData() (Segmenter, error) + func (h *Header) String() string + type OrganizationType uint8 + const ORandom + const OSequential + type PageInformationSegment struct + IsLossless bool + IsStripe bool + MaxStripeSize uint16 + PageBMHeight int + PageBMWidth int + ResolutionX int + ResolutionY int + func (p *PageInformationSegment) CombinationOperator() bitmap.CombinationOperator + func (p *PageInformationSegment) CombinationOperatorOverrideAllowed() bool + func (p *PageInformationSegment) DefaultPixelValue() uint8 + func (p *PageInformationSegment) Encode(w writer.BinaryWriter) (n int, err error) + func (p *PageInformationSegment) Init(h *Header, r reader.StreamReader) (err error) + func (p *PageInformationSegment) Size() int + func (p *PageInformationSegment) String() string + type Pager interface + GetBitmap func() (*bitmap.Bitmap, error) + GetSegment func(int) (*Header, error) + type PatternDictionary struct + DataHeaderLength int64 + DataHeaderOffset int64 + DataLength int64 + DataOffset int64 + GBAtX []int8 + GBAtY []int8 + GrayMax uint32 + HDTemplate byte + HdpHeight byte + HdpWidth byte + IsMMREncoded bool + Patterns []*bitmap.Bitmap + func (p *PatternDictionary) GetDictionary() ([]*bitmap.Bitmap, error) + func (p *PatternDictionary) Init(h *Header, r reader.StreamReader) error + type RegionSegment struct + BitmapHeight uint32 + BitmapWidth uint32 + CombinaionOperator bitmap.CombinationOperator + XLocation uint32 + YLocation uint32 + func NewRegionSegment(r reader.StreamReader) *RegionSegment + func (r *RegionSegment) Encode(w writer.BinaryWriter) (n int, err error) + func (r *RegionSegment) Size() int + func (r *RegionSegment) String() string + type Regioner interface + GetRegionBitmap func() (*bitmap.Bitmap, error) + GetRegionInfo func() *RegionSegment + type SegmentEncoder interface + Encode func(w writer.BinaryWriter) (n int, err error) + type Segmenter interface + Init func(header *Header, r reader.StreamReader) error + type SymbolDictionary struct + Header *Header + IsHuffmanEncoded bool + NumberOfExportedSymbols uint32 + NumberOfNewSymbols uint32 + SdATX []int8 + SdATY []int8 + SdHuffAggInstanceSelection bool + SdHuffBMSizeSelection int8 + SdHuffDecodeHeightSelection int8 + SdHuffDecodeWidthSelection int8 + SdTemplate int8 + SdrATX []int8 + SdrATY []int8 + SdrTemplate int8 + UseRefinementAggregation bool + func (s *SymbolDictionary) Encode(w writer.BinaryWriter) (n int, err error) + func (s *SymbolDictionary) GetDictionary() ([]*bitmap.Bitmap, error) + func (s *SymbolDictionary) Init(h *Header, r reader.StreamReader) error + func (s *SymbolDictionary) InitEncode(symbols *bitmap.Bitmaps, symbolList []int, symbolMap map[int]int, ...) error + func (s *SymbolDictionary) String() string + type TableSegment struct + func (t *TableSegment) HtHigh() int32 + func (t *TableSegment) HtLow() int32 + func (t *TableSegment) HtOOB() int32 + func (t *TableSegment) HtPS() int32 + func (t *TableSegment) HtRS() int32 + func (t *TableSegment) Init(h *Header, r reader.StreamReader) error + func (t *TableSegment) StreamReader() reader.StreamReader + type TextRegion struct + CombinationOperator bitmap.CombinationOperator + DefaultPixel int8 + Header *Header + IsHuffmanEncoded bool + IsTransposed int8 + LogSBStrips int16 + NumberOfSymbolInstances uint32 + NumberOfSymbols uint32 + ReferenceCorner int16 + RegionBitmap *bitmap.Bitmap + RegionInfo *RegionSegment + SbHuffDS int8 + SbHuffDT int8 + SbHuffFS int8 + SbHuffRDHeight int8 + SbHuffRDWidth int8 + SbHuffRDX int8 + SbHuffRDY int8 + SbHuffRSize int8 + SbStrips int8 + SbdsOffset int8 + SbrATX []int8 + SbrATY []int8 + SbrTemplate int8 + Symbols []*bitmap.Bitmap + UseRefinement bool + func (t *TextRegion) Encode(w writer.BinaryWriter) (n int, err error) + func (t *TextRegion) GetRegionBitmap() (*bitmap.Bitmap, error) + func (t *TextRegion) GetRegionInfo() *RegionSegment + func (t *TextRegion) Init(header *Header, r reader.StreamReader) error + func (t *TextRegion) InitEncode(globalSymbolsMap, localSymbolsMap map[int]int, comps []int, ...) + func (t *TextRegion) String() string + type Type int + const TBitmap + const TEndOfFile + const TEndOfPage + const TEndOfStrip + const TExtension + const TImmediateGenericRefinementRegion + const TImmediateGenericRegion + const TImmediateHalftoneRegion + const TImmediateLosslessGenericRefinementRegion + const TImmediateLosslessGenericRegion + const TImmediateLosslessHalftoneRegion + const TImmediateLosslessTextRegion + const TImmediateTextRegion + const TIntermediateGenericRefinementRegion + const TIntermediateGenericRegion + const TIntermediateHalftoneRegion + const TIntermediateTextRegion + const TPageInformation + const TPatternDictionary + const TProfiles + const TSymbolDictionary + const TTables + func (k Type) String() string