feat[mpp_trie]: Add trie context filling feature

1. Add context space reserving on trie shrink.
2. Remove MppTrieNode on trie interface.
3. Fix MppTrie usage on tests.

Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: Ie2f568785a78499b394d298c3833dd04c6f9a9bd
This commit is contained in:
Herman Chen
2024-08-16 11:33:23 +08:00
parent 8bfa0916e2
commit c367dd1609
10 changed files with 440 additions and 453 deletions

View File

@@ -696,7 +696,7 @@ RK_S32 mpi_dec_test_cmd_init(MpiDecTestCmd* cmd, int argc, char **argv)
mpp_opt_init(&opts);
/* should change node count when option increases */
mpp_opt_setup(opts, cmd, 35, dec_opt_cnt);
mpp_opt_setup(opts, cmd);
for (i = 0; i < dec_opt_cnt; i++)
mpp_opt_add(opts, &dec_opts[i]);