Options
All
  • Public
  • Public/Protected
  • All
V1.7
  • V1.6
  • V1.7
Menu

Namespace "jpeg"

This is minimal bindings to libjpeg needed by webgl polyfills to allow loading jpeg textures.

Index

Functions

Functions

decode

  • decode(data: ArrayBuffer): { bpp: number; height: number; pixels: ArrayBuffer; width: number }
  • Decode a jpeg image.

    Parameters

    • data: ArrayBuffer

      The raw contents of the jpeg file.

    Returns { bpp: number; height: number; pixels: ArrayBuffer; width: number }

    the decoded bitmap data, typically 24-bit RGBA color format.

    • bpp: number
    • height: number
    • pixels: ArrayBuffer
    • width: number

Generated using TypeDoc