lens encoder