| 34 | } |
| 35 | |
| 36 | void |
| 37 | Encoder_LDPC ::get_description(cli::Argument_map_info& args) const |
| 38 | { |
| 39 | Encoder::get_description(args); |
| 40 | |
| 41 | auto p = this->get_prefix(); |
| 42 | const std::string class_name = "factory::Encoder_LDPC::"; |
| 43 | |
| 44 | cli::add_options(args.at({ p + "-type" }), 0, "LDPC", "LDPC_H", "LDPC_DVBS2", "LDPC_QC", "LDPC_IRA", "LDPC_5G"); |
| 45 | |
| 46 | tools::add_arg(args, p, class_name + "p+h-path", cli::File(cli::openmode::read)); |
| 47 | |
| 48 | args.add_link({ p + "-h-path" }, { p + "-cw-size", "N" }); // N_cw is H width |
| 49 | args.add_link({ p + "-h-path" }, { p + "-info-bits", "K" }); // if there is no K, then H is considered regular, |
| 50 | // so K is the N - H's height |
| 51 | |
| 52 | tools::add_arg(args, p, class_name + "p+g-path", cli::File(cli::openmode::read)); |
| 53 | |
| 54 | args.add_link({ p + "-g-path" }, { p + "-info-bits", "K" }); |
| 55 | args.add_link({ p + "-g-path" }, { p + "-cw-size", "N" }); |
| 56 | |
| 57 | tools::add_arg(args, p, class_name + "p+h-reorder", cli::Text(cli::Including_set("NONE", "ASC", "DSC"))); |
| 58 | |
| 59 | tools::add_arg(args, p, class_name + "p+g-method", cli::Text(cli::Including_set("IDENTITY", "LU_DEC"))); |
| 60 | |
| 61 | tools::add_arg(args, p, class_name + "p+g-save-path", cli::File(cli::openmode::write)); |
| 62 | } |
| 63 | |
| 64 | void |
| 65 | Encoder_LDPC ::store(const cli::Argument_map_value& vals) |
nothing calls this directly
no test coverage detected