File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -606,28 +606,31 @@ jpeg.lossless.Decoder.prototype.output = function (PRED) {
606606} ;
607607
608608
609+
609610jpeg . lossless . Decoder . prototype . setValue16 = function ( index , val ) {
610611 this . outputData . setInt16 ( index * 2 , val , true ) ;
611612} ;
612613
613614
615+
614616jpeg . lossless . Decoder . prototype . getValue16 = function ( index ) {
615617 return this . outputData . getInt16 ( index * 2 , true ) ;
616618} ;
617619
618620
619621
620622jpeg . lossless . Decoder . prototype . setValue8 = function ( index , val ) {
621- this . outputData . setInt16 ( index , val , true ) ;
623+ this . outputData . setInt8 ( index , val ) ;
622624} ;
623625
624626
625627
626628jpeg . lossless . Decoder . prototype . getValue8 = function ( index ) {
627- return this . outputData . getInt16 ( index , true ) ;
629+ return this . outputData . getInt8 ( index ) ;
628630} ;
629631
630632
633+
631634jpeg . lossless . Decoder . prototype . readApp = function ( ) {
632635 var count = 0 , length = this . stream . get16 ( ) ;
633636 count += 2 ;
You can’t perform that action at this time.
0 commit comments