Searched refs:img_bytes (Results 1 – 5 of 5) sorted by relevance
/external/tensorflow/tensorflow/lite/examples/label_image/ |
D | bitmap_helpers.cc | 90 std::vector<uint8_t> img_bytes(len); in read_bmp() local 92 file.read(reinterpret_cast<char*>(img_bytes.data()), len); in read_bmp() 94 *(reinterpret_cast<const int32_t*>(img_bytes.data() + 10)); in read_bmp() 95 *width = *(reinterpret_cast<const int32_t*>(img_bytes.data() + 18)); in read_bmp() 96 *height = *(reinterpret_cast<const int32_t*>(img_bytes.data() + 22)); in read_bmp() 98 *(reinterpret_cast<const int32_t*>(img_bytes.data() + 28)); in read_bmp() 114 const uint8_t* bmp_pixels = &img_bytes[header_size]; in read_bmp()
|
/external/tensorflow/tensorflow/python/kernel_tests/ |
D | decode_bmp_op_test.py | 32 img_bytes = [[[0, 0, 255], [0, 255, 0]], [[255, 0, 0], [255, 255, 255]]] 65 self.assertAllEqual(decoded, img_bytes) 68 img_bytes = [[[255], [0]], [[255], [0]]] 140 self.assertAllEqual(decoded, img_bytes)
|
D | decode_png_op_test.py | 32 img_bytes = [[0, 255], [1024, 1024 + 255]] 51 self.assertAllEqual(decoded, img_bytes)
|
/external/tensorflow/tensorflow/core/kernels/ |
D | decode_bmp_op.cc | 65 const uint8* img_bytes = reinterpret_cast<const uint8*>(input.data()); in Compute() local 67 *(reinterpret_cast<const int32*>(img_bytes + 10))); in Compute() 70 *(reinterpret_cast<const int32*>(img_bytes + 18))); in Compute() 73 *(reinterpret_cast<const int32*>(img_bytes + 22))); in Compute() 76 *(reinterpret_cast<const int32*>(img_bytes + 28))); in Compute() 138 const uint8* bmp_pixels = &img_bytes[header_size]; in Compute()
|
/external/tensorflow/tensorflow/core/kernels/hexagon/ |
D | hexagon_graph_execution_test.cc | 135 uint8* const img_bytes = absl::bit_cast<uint8*>(bmp.data()); in LoadImage() local 136 const int header_size = *(reinterpret_cast<int*>(img_bytes + 10)); in LoadImage() 138 const int size = *(reinterpret_cast<int*>(img_bytes + 14)); in LoadImage() 140 const int width = *(reinterpret_cast<int*>(img_bytes + 18)); in LoadImage() 142 const int height = *(reinterpret_cast<int*>(img_bytes + 22)); in LoadImage() 146 uint8* const bmp_pixels = &img_bytes[header_size]; in LoadImage()
|