From 4d3fecdd6938dcb66319fcef56fed86263dca471 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 9 Jan 2024 03:21:50 +0900 Subject: [PATCH] use this pointer --- src/bb/image-io/bb.h | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/bb/image-io/bb.h b/src/bb/image-io/bb.h index cca74e7c..68dad109 100644 --- a/src/bb/image-io/bb.h +++ b/src/bb/image-io/bb.h @@ -728,7 +728,7 @@ class U3VCamera1 : public ion::BuildingBlock> { Func camera1("u3v_camera1"); { - Buffer id_buf = ion::BuildingBlock>::get_id(); + Buffer id_buf = this->get_id(); const std::string gain_key(gain_key_ptr); Buffer gain_key_buf(static_cast(gain_key.size() + 1)); @@ -752,13 +752,13 @@ class U3VCamera1 : public ion::BuildingBlock> { Func camera1_frame_count; { - Buffer id_buf = ion::BuildingBlock>::get_id(); + Buffer id_buf = this->get_id(); camera1_frame_count.define_extern("ion_bb_image_io_u3v_camera1_frame_count",{camera1, 1, static_cast(frame_sync), static_cast(realtime_diaplay_mode), id_buf}, type_of(), 1); camera1_frame_count.compute_root(); frame_count(_) = camera1_frame_count(_); } - ion::BuildingBlock>::register_disposer("u3v_dispose"); + this->register_disposer("u3v_dispose"); } }; @@ -790,7 +790,7 @@ class U3VCamera2 : public ion::BuildingBlock> { Func camera2("u3v_camera2"); { - Buffer id_buf = ion::BuildingBlock>::get_id(); + Buffer id_buf = this->get_id(); const std::string gain_key(gain_key_ptr); Buffer gain_key_buf(static_cast(gain_key.size() + 1)); @@ -814,12 +814,12 @@ class U3VCamera2 : public ion::BuildingBlock> { } Func camera2_frame_count;{ - Buffer id_buf = ion::BuildingBlock>::get_id(); + Buffer id_buf = this->get_id(); camera2_frame_count.define_extern("ion_bb_image_io_u3v_camera2_frame_count", { camera2, 2, static_cast(frame_sync), static_cast(realtime_diaplay_mode), id_buf}, type_of(), 1); camera2_frame_count.compute_root(); frame_count(_) = camera2_frame_count(_); } - ion::BuildingBlock>::register_disposer("u3v_dispose"); + this->register_disposer("u3v_dispose"); } }; @@ -858,7 +858,7 @@ class U3VCameraN : public ion::BuildingBlock> { Func cameraN("u3v_cameraN"); { - Buffer id_buf = ion::BuildingBlock>::get_id(); + Buffer id_buf = this->get_id(); const std::string gain_key(gain_key_ptr); Buffer gain_key_buf(static_cast(gain_key.size() + 1)); @@ -900,7 +900,7 @@ class U3VCameraN : public ion::BuildingBlock> { Func u3v_device_info("u3v_device_info"); { - Buffer id_buf = ion::BuildingBlock>::get_id(); + Buffer id_buf = this->get_id(); std::vector params{ cameraN, static_cast(num_devices), static_cast(frame_sync), static_cast(realtime_diaplay_mode), id_buf @@ -924,7 +924,7 @@ class U3VCameraN : public ion::BuildingBlock> { Func cameraN_fc("u3v_cameraN_fc"); { - Buffer id_buf = ion::BuildingBlock>::get_id(); + Buffer id_buf = this->get_id(); std::vector params{ cameraN, static_cast(output.size()), static_cast(frame_sync), static_cast(realtime_diaplay_mode), id_buf @@ -933,7 +933,7 @@ class U3VCameraN : public ion::BuildingBlock> { cameraN_fc.compute_root(); frame_count(_) = cameraN_fc(_); } - ion::BuildingBlock>::register_disposer("u3v_dispose"); + this->register_disposer("u3v_dispose"); } }; @@ -970,7 +970,7 @@ class U3VGenDC : public ion::BuildingBlock { Func u3v_gendc("u3v_gendc"); { - Buffer id_buf = ion::BuildingBlock::get_id(); + Buffer id_buf = this->get_id(); const std::string gain_key(gain_key_ptr); Buffer gain_key_buf(static_cast(gain_key.size() + 1)); @@ -1006,7 +1006,7 @@ class U3VGenDC : public ion::BuildingBlock { Func u3v_device_info("u3v_device_info"); { - Buffer id_buf = ion::BuildingBlock::get_id(); + Buffer id_buf = this->get_id(); std::vector params{ u3v_gendc, static_cast(num_devices), static_cast(frame_sync), static_cast(realtime_diaplay_mode), id_buf @@ -1028,7 +1028,7 @@ class U3VGenDC : public ion::BuildingBlock { } } - ion::BuildingBlock::register_disposer("u3v_dispose"); + this->register_disposer("u3v_dispose"); } };