def check(index, x, y, diff_x, diff_y, block_width):
    """
    image:
          0  y y y y y y y y
          x
          x
          x
          x
          x
    index range: 0 - 31
    block_width range: 8 - 1000
    revert:
        diff_image_index = (num_1 >> 22) & 0x1f
        x = (num_1 >> 11) & 0x7ff
        y = num_1 & 0x7ff
        block_width = (num_2 >> 22) & 0x3ff
        diff_x = (num_2 >> 11) & 0x7ff
        diff_y = num_2 & 0x7ff
    """
    num_1 = ((index & 0x1f) << 22) | ((x & 0x7ff) << (11)) | ((y & 0x7ff))
    num_2 = ((block_width & 0x3ff) << 22) | ((diff_x & 0x7ff) << (11)) | ((diff_y & 0x7ff))
    return num_1, num_2