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