Bug 1106

Summary: Bitstream: Simplify 'msbFirst' case for bulk operations / Add setting of stream position (optional)
Product: [JogAmp] Gluegen Reporter: Sven Gothel <sgothel>
Component: coreAssignee: Sven Gothel <sgothel>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: ---    
Version: 2.3.0   
Hardware: All   
OS: all   
Type: --- SCM Refs:
gluegen 9e13e8c78ed69bb7afcd49abe8bf69340dc06223 jogl 241d505749b7d2bd383673a378fdca268989d2fd
Workaround: ---

Description Sven Gothel 2014-12-03 20:30:18 CET
- Add setting position entry, optionally supported, 
  e.g. ByteBufferStream and ByteArrayStream

- Remove 'msbFirst' parameter on all 'bulk' read/write
  operations.

  These methods use LSB-first always, allowing proper 
  stream access of data w/ different bit-sizes.
  
  Data is now read/write as little-endian
  and swapped accordingly.

  Optimizations are adopted for LSB-first operations.

  Proposed changes removes API confusion/bugs:
    - removes one decision (parameter)
    - removes the data reversion case
    - removes bugs w/ different bit-sizes
Comment 1 Sven Gothel 2014-12-03 20:31:13 CET
Fixed as described
Comment 2 Sven Gothel 2014-12-06 20:30:40 CET
JOGL: JPEGDecoder adopt to GlueGen Bitstream change commit 9e13e8c78ed69bb7afcd49abe8bf69340dc06223