public Size compSize ( Size size , int comp ) { if ( compWidth [ comp ] == 0 && compHeight [ comp ] == 0 ) return size ; return new Size ( size . getWidth ( ) >> compWidth [ comp ] , size . getHeight ( ) >> compHeight [ comp ] ) ; }
Calculates the component size based on the fullt size and color subsampling of the given component index .