A method and system for performing a 2D transform is disclosed. The 2D
transform may include a row transform and/or a column transform. When
performing the row or column transform, it may be determined whether each
of different subsets of the data values including a partition of a row or
column includes at least one zero value, whether each of different
subsets of a first subset of the partition includes at least one zero
value, and whether each of different subsets of at least one other subset
of the partition includes at least one zero value. When performing the
row or column transform, at least one transformation operation on at
least one zero value may be bypassed or performed in a reduced-power
manner, where such transformation operation would otherwise be performed
in a manner consuming full power if the zero value were a non-zero value.