def METHOD_NAME(gh, mul, g_offset):
    en_list = []
    g_arr, h_arr = gh
    for g, h in zip(g_arr, h_arr):
        g += g_offset  # to positive
        g_encoding = GHPacker.fixedpoint_encode(g, mul)
        h_encoding = GHPacker.fixedpoint_encode(h, mul)
        en_list.append(g_encoding)
        en_list.append(h_encoding)
    return en_list