public void VerifyBlockParams() { bool ok = true; ok = ok && xblen_luma >= 0; ok = ok && yblen_luma >= 0; ok = ok && xbsep_luma >= 0; ok = ok && ybsep_luma >= 0; if(!ok) { throw new Exception("Block Paramters incorrect"); } }