A system for, and method of, entropy coding. The first mask layer is used to form a plurality of first trenches that extends into the substrate and extends laterally in a first direction and do not intersect each other. Next, the horizontal line within a horizontal motion area in a current field and in a previous field are respectively detected.