A magnetoresistance device includes an elongate channel formed of silicon. The lid 1 has a generally annular side wall 6, a rib 7 depending from the side wall 6, and a top wall 5 extending radially inward from the side wall 6. The wiring layer in a portion above the trench has a flat shape or a concave shape which dents toward the trench. The adjustable opening is located at the exit, having an adjustable aperture. The predictive coding uses four different predictors including three predictors for x, y, and z coordinates and a constant predictor for scalar values, associated with each LiDAR data point.