bn 481 python_bindings/python/Image.cpp bn::dtype type_to_dtype(const h::Type &t) { bn 482 python_bindings/python/Image.cpp if (t == h::UInt(8)) return bn::dtype::get_builtin<uint8_t>(); bn 483 python_bindings/python/Image.cpp if (t == h::UInt(16)) return bn::dtype::get_builtin<uint16_t>(); bn 484 python_bindings/python/Image.cpp if (t == h::UInt(32)) return bn::dtype::get_builtin<uint32_t>(); bn 485 python_bindings/python/Image.cpp if (t == h::Int(8)) return bn::dtype::get_builtin<int8_t>(); bn 486 python_bindings/python/Image.cpp if (t == h::Int(16)) return bn::dtype::get_builtin<int16_t>(); bn 487 python_bindings/python/Image.cpp if (t == h::Int(32)) return bn::dtype::get_builtin<int32_t>(); bn 488 python_bindings/python/Image.cpp if (t == h::Float(32)) return bn::dtype::get_builtin<float>(); bn 489 python_bindings/python/Image.cpp if (t == h::Float(64)) return bn::dtype::get_builtin<double>(); bn 491 python_bindings/python/Image.cpp return bn::dtype::get_builtin<uint8_t>(); bn 494 python_bindings/python/Image.cpp h::Type dtype_to_type(const bn::dtype &t) { bn 495 python_bindings/python/Image.cpp if (t == bn::dtype::get_builtin<uint8_t>()) return h::UInt(8); bn 496 python_bindings/python/Image.cpp if (t == bn::dtype::get_builtin<uint16_t>()) return h::UInt(16); bn 497 python_bindings/python/Image.cpp if (t == bn::dtype::get_builtin<uint32_t>()) return h::UInt(32); bn 498 python_bindings/python/Image.cpp if (t == bn::dtype::get_builtin<int8_t>()) return h::Int(8); bn 499 python_bindings/python/Image.cpp if (t == bn::dtype::get_builtin<int16_t>()) return h::Int(16); bn 500 python_bindings/python/Image.cpp if (t == bn::dtype::get_builtin<int32_t>()) return h::Int(32); bn 501 python_bindings/python/Image.cpp if (t == bn::dtype::get_builtin<float>()) return h::Float(32); bn 502 python_bindings/python/Image.cpp if (t == bn::dtype::get_builtin<double>()) return h::Float(64); bn 508 python_bindings/python/Image.cpp p::object ndarray_to_buffer(bn::ndarray &array) { bn 523 python_bindings/python/Image.cpp bn::ndarray buffer_to_ndarray(p::object buffer_object) { bn 536 python_bindings/python/Image.cpp return bn::from_data( bn 640 python_bindings/python/Image.cpp bn::initialize();