jpeg2000 0.1.2 copy "jpeg2000: ^0.1.2" to clipboard
jpeg2000: ^0.1.2 copied to clipboard

JPEG 2000 decoder written in pure Dart with no runtime dependencies. The code is a port of runk/jpeg2000 javascript module.

example/main.dart

import 'dart:typed_data';

import 'package:jpeg2000/jpeg2000.dart';

void main() {
  final codestream = Uint8List.fromList([
    0xff, 0x4f, 0xff, 0x51, 0x00, 0x29, 0x00, 0x00,
    // ...
  ]);

  final jpx = JpxImage();

  jpx.parse(codestream);

  print('width: ${jpx.width}');
  print('height: ${jpx.height}');
  print('components: ${jpx.componentsCount}');
  print('tiles:');
  print(jpx.tiles);
}
1
likes
0
points
403
downloads

Publisher

unverified uploader

Weekly Downloads

JPEG 2000 decoder written in pure Dart with no runtime dependencies. The code is a port of runk/jpeg2000 javascript module.

Repository (GitHub)
View/report issues

Topics

#jpeg2000 #jpx #image-decoding #image-processing

License

unknown (license)

More

Packages that depend on jpeg2000