)]}'
{
  "commit": "807f4573562472b1a58ce63a9d91b006cd1fb6cb",
  "tree": "7f093a2d7b2e39e851771be632c79e280d1aa651",
  "parents": [
    "b5d90aca9d00b81e3950d83969d8932d80ead159"
  ],
  "author": {
    "name": "CindyLiu",
    "email": "hcindyl@google.com",
    "time": "Wed May 12 23:41:41 2021 +0000"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Wed May 12 16:41:41 2021 -0700"
  },
  "message": "Add image_util library for image --\u003e buffer_view (#5655)\n\n* Add image_util library for image -\u003e buffer view\r\n\r\nimage_util library produces HAL buffer views based on image\r\nfiles. The library utilizes third_party/stblib/stb_image.h to produce\r\nthe uint8_t pixel data, and wraps/rescales the pixel data buffer to create\r\nthe HAL buffer view.\r\nOnly i8, u8, and f32 are supported.\r\n\r\nSome limitations:\r\n\r\n* The image dimension has to match the iree_hal_dim_t input argument.\r\nNo resize or channel selection internally (except dropping the alpha\r\nchannel).\r\n* For f32 element type, the array is rescaled to the specified input range with `iree_tools_utils_buffer_view_from_image_rescaled`\r\n* For i8 element type, the user is responsible for the u8 --\u003e i8\r\ndata preparation, as the function wraps the pixel data buffer directly with\r\n`iree_tools_utils_buffer_view_from_image`\r\n\r\nAn example of running the mnist model with an image file and the\r\nimage_util library is added to `iree/samples/vision`.",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "ab1326a123b9369c68eee0daee03723bb2401e23",
      "old_mode": 33188,
      "old_path": "CMakeLists.txt",
      "new_id": "f63af86cd592f7d6e3eb55563f86dff91dd5b000",
      "new_mode": 33188,
      "new_path": "CMakeLists.txt"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "39b754cccaf57037fdf2982f153d25cb37f3bc78",
      "new_mode": 33188,
      "new_path": "build_tools/third_party/stblib/CMakeLists.txt"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "f88aaf6cea722239644f2153719bd6f43a1ab3e4",
      "new_mode": 33188,
      "new_path": "build_tools/third_party/stblib/stb_image.c"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "7f23120803f6ac97d357713e33467fe649c92d5d",
      "new_mode": 33188,
      "new_path": "iree/samples/vision/CMakeLists.txt"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "cc70f18f2c3af3e8ec9be091f8a40a695b4e5426",
      "new_mode": 33188,
      "new_path": "iree/samples/vision/iree-run-mnist-module.c"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "03fd6e149f40f76c05bf2e2cfd31f43f56285930",
      "new_mode": 33188,
      "new_path": "iree/samples/vision/mnist.mlir"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "151bc8cfa03430e46383ff7d1cb61862ab5ec760",
      "new_mode": 33188,
      "new_path": "iree/samples/vision/mnist_test.png"
    },
    {
      "type": "modify",
      "old_id": "b9f5ce725827cf1d96e5f9ec0c74e7efb7d6405c",
      "old_mode": 33188,
      "old_path": "iree/tools/utils/CMakeLists.txt",
      "new_id": "ed88d39f5e56fbd210e4942204d7786df9f90fd8",
      "new_mode": 33188,
      "new_path": "iree/tools/utils/CMakeLists.txt"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "ef13eecc23c665c541c2007942bd70c3c1e3e71e",
      "new_mode": 33188,
      "new_path": "iree/tools/utils/image_util.c"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "9d036e4a81d59f3bc3ad97832b88f1333174eab0",
      "new_mode": 33188,
      "new_path": "iree/tools/utils/image_util.h"
    }
  ]
}
