Giter Club home page Giter Club logo

htj2k-js's People

Contributors

chafey avatar jmhmd avatar pantelisgeorgiadis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

jmhmd

htj2k-js's Issues

Parser shall be pauseable

Once paused, any new data pushed to it will be queued. Once unpaused it will resume parsing any queued data

Parser should be cancelable

It should be able to cancel parsing. Once cancelled, the parser cannot be resumed. All data it receives after being cancelled is discarded

Separate parsing from the parse results

Currently the parse results (e.g. codestream.segments, codestream.tiles) is tightly coupled to the parsing logic (codestream.decode()) logic. These should be separated for a few reasons:

  1. the parsing code can be re-used without having to do decoding. A few examples come to mind - a simple codestream dump utility, code that needs to implement sub resolution fetching, JPIP server
  2. The decoding logic can be re-used independently of the HTJ2K code stream itself. A few examples come to mind - JPIP client, resumable decoder (e.g. progressive decoding client side)

Some initial thoughts on how to proceed:

  1. Pass a callback class to the parser which gets called as the parser works. This is like a SAX based parser. The callback should be able to cancel or pause parsing
  2. A callback can be used to create a codestream object from the results of the parser

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.