Home
last modified time | relevance | path

Searched refs:img_bytes (Results 1 – 6 of 6) sorted by relevance

/external/tensorflow/tensorflow/lite/examples/label_image/
Dbitmap_helpers.cc90 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/
Ddecode_bmp_op_test.py31 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]]]
143 self.assertAllEqual(decoded, img_bytes)
Ddecode_png_op_test.py32 img_bytes = [[0, 255], [1024, 1024 + 255]]
51 self.assertAllEqual(decoded, img_bytes)
/external/tensorflow/tensorflow/core/kernels/image/
Ddecode_image_op.cc546 const uint8* img_bytes = reinterpret_cast<const uint8*>(input.data()); in DecodeBmpV2() local
548 *(reinterpret_cast<const int32*>(img_bytes + 10))); in DecodeBmpV2()
551 *(reinterpret_cast<const int32*>(img_bytes + 18))); in DecodeBmpV2()
554 *(reinterpret_cast<const int32*>(img_bytes + 22))); in DecodeBmpV2()
557 *(reinterpret_cast<const int16*>(img_bytes + 28))); in DecodeBmpV2()
625 const uint8* bmp_pixels = &img_bytes[header_size]; in DecodeBmpV2()
/external/tensorflow/tensorflow/core/kernels/hexagon/
Dhexagon_graph_execution_test.cc135 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()
/external/tensorflow/tensorflow/python/ops/
Dimage_ops_test.py6017 img_bytes = io_ops.read_file(os.path.join(base_path, filename))
6018 img = image_ops.decode_bmp(img_bytes)
6048 img_bytes = io_ops.read_file(os.path.join(base_path, filename))
6049 img = image_ops.decode_and_crop_jpeg(img_bytes, [1, 1, 2, 2])