Skip to content

Commit

Permalink
use this pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
xinyuli1204 committed Jan 8, 2024
1 parent 3f9bad1 commit 4d3fecd
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/bb/image-io/bb.h
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@ class U3VCamera1 : public ion::BuildingBlock<U3VCamera1<T, D>> {

Func camera1("u3v_camera1");
{
Buffer<uint8_t> id_buf = ion::BuildingBlock<U3VCamera1<T, D>>::get_id();
Buffer<uint8_t> id_buf = this->get_id();

const std::string gain_key(gain_key_ptr);
Buffer<uint8_t> gain_key_buf(static_cast<int>(gain_key.size() + 1));
Expand All @@ -752,13 +752,13 @@ class U3VCamera1 : public ion::BuildingBlock<U3VCamera1<T, D>> {

Func camera1_frame_count;
{
Buffer<uint8_t> id_buf = ion::BuildingBlock<U3VCamera1<T, D>>::get_id();
Buffer<uint8_t> id_buf = this->get_id();
camera1_frame_count.define_extern("ion_bb_image_io_u3v_camera1_frame_count",{camera1, 1, static_cast<bool>(frame_sync), static_cast<bool>(realtime_diaplay_mode), id_buf}, type_of<uint32_t>(), 1);
camera1_frame_count.compute_root();
frame_count(_) = camera1_frame_count(_);
}

ion::BuildingBlock<U3VCamera1<T, D>>::register_disposer("u3v_dispose");
this->register_disposer("u3v_dispose");

}
};
Expand Down Expand Up @@ -790,7 +790,7 @@ class U3VCamera2 : public ion::BuildingBlock<U3VCamera2<T, D>> {

Func camera2("u3v_camera2");
{
Buffer<uint8_t> id_buf = ion::BuildingBlock<U3VCamera2<T, D>>::get_id();
Buffer<uint8_t> id_buf = this->get_id();

const std::string gain_key(gain_key_ptr);
Buffer<uint8_t> gain_key_buf(static_cast<int>(gain_key.size() + 1));
Expand All @@ -814,12 +814,12 @@ class U3VCamera2 : public ion::BuildingBlock<U3VCamera2<T, D>> {
}

Func camera2_frame_count;{
Buffer<uint8_t> id_buf = ion::BuildingBlock<U3VCamera2<T, D>>::get_id();
Buffer<uint8_t> id_buf = this->get_id();
camera2_frame_count.define_extern("ion_bb_image_io_u3v_camera2_frame_count", { camera2, 2, static_cast<bool>(frame_sync), static_cast<bool>(realtime_diaplay_mode), id_buf}, type_of<uint32_t>(), 1);
camera2_frame_count.compute_root();
frame_count(_) = camera2_frame_count(_);
}
ion::BuildingBlock<U3VCamera2<T, D>>::register_disposer("u3v_dispose");
this->register_disposer("u3v_dispose");
}
};

Expand Down Expand Up @@ -858,7 +858,7 @@ class U3VCameraN : public ion::BuildingBlock<U3VCameraN<T, D>> {

Func cameraN("u3v_cameraN");
{
Buffer<uint8_t> id_buf = ion::BuildingBlock<U3VCameraN<T, D>>::get_id();
Buffer<uint8_t> id_buf = this->get_id();

const std::string gain_key(gain_key_ptr);
Buffer<uint8_t> gain_key_buf(static_cast<int>(gain_key.size() + 1));
Expand Down Expand Up @@ -900,7 +900,7 @@ class U3VCameraN : public ion::BuildingBlock<U3VCameraN<T, D>> {
Func u3v_device_info("u3v_device_info");
{

Buffer<uint8_t> id_buf = ion::BuildingBlock<U3VCameraN<T, D>>::get_id();
Buffer<uint8_t> id_buf = this->get_id();
std::vector<ExternFuncArgument> params{
cameraN, static_cast<int32_t>(num_devices), static_cast<bool>(frame_sync),
static_cast<bool>(realtime_diaplay_mode), id_buf
Expand All @@ -924,7 +924,7 @@ class U3VCameraN : public ion::BuildingBlock<U3VCameraN<T, D>> {

Func cameraN_fc("u3v_cameraN_fc");
{
Buffer<uint8_t> id_buf = ion::BuildingBlock<U3VCameraN<T, D>>::get_id();
Buffer<uint8_t> id_buf = this->get_id();
std::vector<ExternFuncArgument> params{
cameraN, static_cast<int32_t>(output.size()), static_cast<bool>(frame_sync),
static_cast<bool>(realtime_diaplay_mode), id_buf
Expand All @@ -933,7 +933,7 @@ class U3VCameraN : public ion::BuildingBlock<U3VCameraN<T, D>> {
cameraN_fc.compute_root();
frame_count(_) = cameraN_fc(_);
}
ion::BuildingBlock<U3VCameraN<T, D>>::register_disposer("u3v_dispose");
this->register_disposer("u3v_dispose");
}

};
Expand Down Expand Up @@ -970,7 +970,7 @@ class U3VGenDC : public ion::BuildingBlock<U3VGenDC> {

Func u3v_gendc("u3v_gendc");
{
Buffer<uint8_t> id_buf = ion::BuildingBlock<U3VGenDC>::get_id();
Buffer<uint8_t> id_buf = this->get_id();

const std::string gain_key(gain_key_ptr);
Buffer<uint8_t> gain_key_buf(static_cast<int>(gain_key.size() + 1));
Expand Down Expand Up @@ -1006,7 +1006,7 @@ class U3VGenDC : public ion::BuildingBlock<U3VGenDC> {

Func u3v_device_info("u3v_device_info");
{
Buffer<uint8_t> id_buf = ion::BuildingBlock<U3VGenDC>::get_id();
Buffer<uint8_t> id_buf = this->get_id();
std::vector<ExternFuncArgument> params{
u3v_gendc, static_cast<int32_t>(num_devices), static_cast<bool>(frame_sync),
static_cast<bool>(realtime_diaplay_mode), id_buf
Expand All @@ -1028,7 +1028,7 @@ class U3VGenDC : public ion::BuildingBlock<U3VGenDC> {
}
}

ion::BuildingBlock<U3VGenDC>::register_disposer("u3v_dispose");
this->register_disposer("u3v_dispose");
}
};

Expand Down

0 comments on commit 4d3fecd

Please sign in to comment.