Hierarchy

  • LZWEncoder

Index

Constructors

constructor

  • new LZWEncoder(width: any, height: any, pixels: any, color_depth: any): LZWEncoder
  • Parameters

    • width: any
    • height: any
    • pixels: any
    • color_depth: any

    Returns LZWEncoder

Properties

BITS

BITS: number = 12

ClearCode

ClearCode: any

EOF

EOF: number = -1

EOFCode

EOFCode: any

HSIZE

HSIZE: number = 5003

a_count

a_count: any

accum

accum: any[] = []

clear_flg

clear_flg: boolean = false

codetab

codetab: any[] = []

curPixel

curPixel: any

cur_accum

cur_accum: number = 0

cur_bits

cur_bits: number = 0

exports

exports: object

Type declaration

free_ent

free_ent: number = 0

g_init_bits

g_init_bits: any

hsize

hsize: number = this.HSIZE

htab

htab: any[] = []

imgH

imgH: any

imgW

imgW: any

initCodeSize

initCodeSize: any

masks

masks: number[] = [0x0000, 0x0001, 0x0003, 0x0007, 0x000F, 0x001F, 0x003F, 0x007F, 0x00FF, 0x01FF, 0x03FF, 0x07FF, 0x0FFF, 0x1FFF, 0x3FFF, 0x7FFF, 0xFFFF]

maxbits

maxbits: number = this.BITS

maxcode

maxcode: any

maxmaxcode

maxmaxcode: number = 1 << this.BITS

n_bits

n_bits: any

pixAry

pixAry: any

remaining

remaining: any

Methods

MAXCODE

  • MAXCODE(n_bits: any): number
  • Parameters

    • n_bits: any

    Returns number

char_out

  • char_out(c: any, outs: any): void
  • Parameters

    • c: any
    • outs: any

    Returns void

cl_block

  • cl_block(outs: any): void
  • Parameters

    • outs: any

    Returns void

cl_hash

  • cl_hash(hsize: any): void
  • Parameters

    • hsize: any

    Returns void

compress

  • compress(init_bits: any, outs: any): void
  • Parameters

    • init_bits: any
    • outs: any

    Returns void

encode

  • encode(os: any): void
  • Parameters

    • os: any

    Returns void

flush_char

  • flush_char(outs: any): void
  • Parameters

    • outs: any

    Returns void

nextPixel

  • nextPixel(): number
  • Returns number

output

  • output(code: any, outs: any): void
  • Parameters

    • code: any
    • outs: any

    Returns void

Generated using TypeDoc