Skip to main content

GifParser

GifParser for binary format

Roughly based on the documentation https://giflib.sourceforge.net/whatsinagif/index.html

Index

Constructors

constructor

Properties

publiccheckBytes

checkBytes: number[] = []

publicframes

frames: GifFrame[] = []

publicglobalColorTableBytes

globalColorTableBytes: [number, number, number][] = []

publicimages

images: HTMLImageElement[] = []

Methods

arrayToImage

  • arrayToImage(frame: GifFrame, colorTable: [number, number, number][]): void
  • Parameters

    • frame: GifFrame
    • colorTable: [number, number, number][]

    Returns void

publicparseBlocks

  • parseBlocks(): void
  • Returns void

parseColorTableBytes

  • parseColorTableBytes(entries: number): [number, number, number][]
  • Parameters

    • entries: number

    Returns [number, number, number][]

parseExt

  • parseExt(block: GCExtBlock): void
  • Parameters

    • block: GCExtBlock

    Returns void

parseHeader

  • parseHeader(): void
  • Returns void

parseImg

readSubBlocks

  • readSubBlocks(): string
  • Returns string