Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Neil Roberts <neil@linux.intel.com>
YUV = 'yuv'
ZS = 'zs'
-def is_power_of_two(x):
- return not bool(x & (x - 1))
-
VERY_LARGE = 99999999999999999999999
class Channel:
else:
return 1
- def is_power_of_two(self):
- """Returns true if the size of this channel is a power of two."""
- return is_power_of_two(self.size)
-
def datatype(self):
"""Returns the datatype corresponding to a channel type and size"""
return _get_datatype(self.type, self.size)