273def parse_block_size(options):
274 assert options is not None
275 assert options.block_size is not None
276
277 wh = options.block_size.split('x')
278 if len(wh) != 2:
279 wh = options.block_size.split('X')
280
281 assert len(wh) == 2, "invalid format of specified block size"
282 return ( int(wh[0]), int(wh[1]) )
283