@@ -1187,9 +1187,8 @@ class BinaryLoader : public ion::BuildingBlock<BinaryLoader<T>> {
11871187public:
11881188 BuildingBlockParam<std::string> output_directory_ptr{" output_directory" , " " };
11891189 BuildingBlockParam<std::string> prefix_ptr{" prefix" , " raw-" };
1190- BuildingBlockParam<int32_t > width{" width" , 640 };
1191- BuildingBlockParam<int32_t > height{" height" , 480 };
1192-
1190+ Input<int32_t >width{" width" };
1191+ Input<int32_t > height{" height" };
11931192 Output<Halide::Func> output{" output" , type_of<T>(), 2 };
11941193 Output<Halide::Func> finished{" finished" , Halide::UInt (1 ), 1 };
11951194 Output<Halide::Func> bin_idx{" bin_idx" , Halide::UInt (32 ), 1 };
@@ -1211,7 +1210,7 @@ class BinaryLoader : public ion::BuildingBlock<BinaryLoader<T>> {
12111210 prefix_buf.fill (0 );
12121211 std::memcpy (prefix_buf.data (), prefix.c_str (), prefix.size ());
12131212
1214- std::vector<ExternFuncArgument> params = {id_buf, static_cast < int32_t >( width), static_cast < int32_t >( height) , output_directory_buf ,prefix_buf};
1213+ std::vector<ExternFuncArgument> params = {id_buf, width, height, output_directory_buf ,prefix_buf};
12151214
12161215 binaryloader.define_extern (" binaryloader" , params, type_of<T>(), 2 );
12171216 binaryloader.compute_root ();
@@ -1231,7 +1230,7 @@ class BinaryLoader : public ion::BuildingBlock<BinaryLoader<T>> {
12311230 output_directory_buf.fill (0 );
12321231 std::memcpy (output_directory_buf.data (), output_directory.c_str (), output_directory.size ());
12331232 binaryloader_finished.define_extern (" binaryloader_finished" ,
1234- {binaryloader, id_buf, static_cast < int32_t >( width), static_cast < int32_t >( height) , output_directory_buf, prefix_buf},
1233+ {binaryloader, id_buf, width, height, output_directory_buf, prefix_buf},
12351234 {UInt (1 ), UInt (32 ),UInt (32 )}, 1 );
12361235 binaryloader_finished.compute_root ();
12371236 finished (_) = binaryloader_finished (_)[0 ];
0 commit comments