• Frank Barchard's avatar
    clang-format for align_buffer_page_end and free_aligned_buffer_page_end · 3cf056f8
    Frank Barchard authored
    clang-format does nested indents for macros that dont end with ;
    example:
      align_buffer_page_end(dst_y_8, dst_y_plane_size)
          align_buffer_page_end(dst_u_8, dst_uv_plane_size)
              align_buffer_page_end(dst_v_8, dst_uv_plane_size)
                  align_buffer_page_end(dst_y_16, dst_y_plane_size * 2)
                      align_buffer_page_end(dst_u_16, dst_uv_plane_size * 2)
                          align_buffer_page_end(dst_v_16, dst_uv_plane_size * 2)
    
    use a similar allocator to the one used within libyuv in row.h which makes the caller add ;
      align_buffer_page_end(dst_y_8, dst_y_plane_size);
      align_buffer_page_end(dst_u_8, dst_uv_plane_size);
      align_buffer_page_end(dst_v_8, dst_uv_plane_size);
      align_buffer_page_end(dst_y_16, dst_y_plane_size * 2);
      align_buffer_page_end(dst_u_16, dst_uv_plane_size * 2);
      align_buffer_page_end(dst_v_16, dst_uv_plane_size * 2);
    
    Bug: libyuv:758
    Test: try bots
    Change-Id: I4a0770707e7053e094a37bbfc3c5884d5663d078
    Reviewed-on: https://chromium-review.googlesource.com/762757Reviewed-by: 's avatarPatrik Höglund <phoglund@chromium.org>
    Reviewed-by: 's avatarFrank Barchard <fbarchard@google.com>
    Commit-Queue: Frank Barchard <fbarchard@google.com>
    3cf056f8
unit_test.h 7.87 KB