block_size: use float literals when assigning to float
encode: use same syntax for copy_pad and edge_ext