@@ -2,7 +2,7 @@ var VIDEO_WIDTH = 640,
22 VIDEO_HEIGHT = 480 ,
33 PORTRAIT ,
44 FIX = 2 ,
5- CURRENT_ADJUSTMENT ;
5+ CURRENT_ADJUSTMENT ;
66
77var FAST_COLOR = new FastAverageColor ( ) ;
88
@@ -543,8 +543,7 @@ function update_colors() {
543543 $ ( '#calibrate_' + CALIBRATION_MODE_AUTO ) . addClass ( 'auto' ) ;
544544
545545
546- var rgb_multiplier = 1 ,
547- accuracy_multiplier = [ ] ;
546+ var accuracy_multiplier = [ ] ;
548547
549548
550549 if ( CALIBRATION_MODE_AUTO == 'white' ) {
@@ -570,9 +569,6 @@ function update_colors() {
570569 }
571570
572571 if ( CALIBRATION_MODE_AUTO == 'blue' ) {
573-
574- rgb_multiplier = tv_rgb [ 2 ] / wall_rgb [ 2 ] ;
575-
576572 NEW_RGB [ 0 ] = Math . round ( CURRENT_RGB [ 0 ] * tv_rgb [ 0 ] / wall_rgb [ 0 ] ) ;
577573 NEW_RGB [ 1 ] = Math . round ( CURRENT_RGB [ 1 ] * tv_rgb [ 1 ] / wall_rgb [ 1 ] ) ;
578574 NEW_RGB [ 2 ] = Math . round ( 255 * tv_rgb [ 2 ] / wall_rgb [ 2 ] ) ;
@@ -590,7 +586,7 @@ function update_colors() {
590586
591587 NEW_RGB [ 0 ] = Math . round ( 255 * tv_rgb [ 0 ] / wall_rgb [ 0 ] ) ;
592588 NEW_RGB [ 1 ] = Math . round ( Math . max ( 1 , CURRENT_RGB [ 1 ] ) * tv_rgb [ 1 ] / wall_rgb [ 1 ] ) ;
593- NEW_RGB [ 2 ] = Math . round ( 255 * tv_rgb [ 2 ] / wall_rgb [ 2 ] )
589+ NEW_RGB [ 2 ] = Math . round ( 255 * tv_rgb [ 2 ] / wall_rgb [ 2 ] ) ;
594590
595591 }
596592
@@ -751,6 +747,6 @@ function rgb_to_lab(r,g,b){
751747 x = ( x > 0.008856 ) ? Math . pow ( x , 1 / 3 ) : ( 7.787 * x ) + 16 / 116 ;
752748 y = ( y > 0.008856 ) ? Math . pow ( y , 1 / 3 ) : ( 7.787 * y ) + 16 / 116 ;
753749 z = ( z > 0.008856 ) ? Math . pow ( z , 1 / 3 ) : ( 7.787 * z ) + 16 / 116 ;
754- return [ ( 116 * y ) - 16 , 500 * ( x - y ) , 200 * ( y - z ) ]
750+ return [ ( 116 * y ) - 16 , 500 * ( x - y ) , 200 * ( y - z ) ] ;
755751}
756752
0 commit comments