diff --git a/.gitignore b/.gitignore index 84c048a..92bbbcc 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /build/ +/exp/ diff --git a/conv/fidx_stego.cc b/conv/fidx_stego.cc index 9950b16..0218f68 100644 --- a/conv/fidx_stego.cc +++ b/conv/fidx_stego.cc @@ -56,7 +56,7 @@ std::vector> indices; static void Embed(int32_t t, Frame& dst, const Frame& base) { const auto bw = args::get(param::bw); - const auto bh = args::get(param::bw); + const auto bh = args::get(param::bh); const auto hbw = bw/2; const auto hbh = bh/2; @@ -92,7 +92,7 @@ static void Embed(int32_t t, Frame& dst, const Frame& base) { static void Exec() { const auto bw = args::get(param::bw); - const auto bh = args::get(param::bw); + const auto bh = args::get(param::bh); const auto ut = args::get(param::utime); Enforce(bw > 0 && bh > 0, "block size must be greater than 0"); Enforce(ut > 0, "utime must be greater than 0"); diff --git a/conv/stego_fprob.cc b/conv/stego_fprob.cc index 4b5c7dc..ef81a8a 100644 --- a/conv/stego_fprob.cc +++ b/conv/stego_fprob.cc @@ -131,7 +131,7 @@ static Vec EachBlock(const Frame& cf, const Frame& pf, int32_t bx, int32_t by) { static void EachFrame(int32_t t, const Frame& cf, const Frame& pf) { const auto bw = args::get(param::bw); - const auto bh = args::get(param::bw); + const auto bh = args::get(param::bh); const auto ut = args::get(param::utime); Enforce(cf.w == pf.w && cf.h == pf.h, "variable frame size is not allowed"); @@ -185,7 +185,7 @@ static void EachFrame(int32_t t, const Frame& cf, const Frame& pf) { static void Exec() { const auto bw = args::get(param::bw); - const auto bh = args::get(param::bw); + const auto bh = args::get(param::bh); const auto ut = args::get(param::utime); Enforce(bw > 0 && bh > 0, "block size must be greater than 0"); Enforce(ut > 0, "utime must be greater than 0");