mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-05 17:16:50 +08:00
fix[mpp_enc_cfg]: Add lambda_idx_i and lambda_idx_p
Signed-off-by: toby.zhang <toby.zhang@rock-chips.com> Change-Id: Id83274ae46250fb6287bdf8c8a8bf0d6f3d2fda5
This commit is contained in:
@@ -652,6 +652,32 @@ RK_S32 mpi_enc_opt_bias_p(void *ctx, const char *next)
|
||||
return 0;
|
||||
}
|
||||
|
||||
RK_S32 mpi_enc_opt_lmd(void *ctx, const char *next)
|
||||
{
|
||||
MpiEncTestArgs *cmd = (MpiEncTestArgs *)ctx;
|
||||
|
||||
if (next) {
|
||||
cmd->lambda_idx_p = atoi(next);
|
||||
return 1;
|
||||
}
|
||||
|
||||
mpp_err("invalid lambda idx\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
RK_S32 mpi_enc_opt_lmdi(void *ctx, const char *next)
|
||||
{
|
||||
MpiEncTestArgs *cmd = (MpiEncTestArgs *)ctx;
|
||||
|
||||
if (next) {
|
||||
cmd->lambda_idx_i = atoi(next);
|
||||
return 1;
|
||||
}
|
||||
|
||||
mpp_err("invalid intra lambda idx\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
RK_S32 mpi_enc_opt_speed(void *ctx, const char *next)
|
||||
{
|
||||
MpiEncTestArgs *cmd = (MpiEncTestArgs *)ctx;
|
||||
@@ -723,7 +749,9 @@ static MppOptInfo enc_opts[] = {
|
||||
{"bc", "bitrate container", "rc_container, 0:off 1:weak 2:strong", mpi_enc_opt_bc},
|
||||
{"ibias", "bias i", "bias_i", mpi_enc_opt_bias_i},
|
||||
{"pbias", "bias p", "bias_p", mpi_enc_opt_bias_p},
|
||||
{"speed", "enc speed", "speed", mpi_enc_opt_speed},
|
||||
{"lmd", "lambda idx", "lambda_idx_p 0~8", mpi_enc_opt_lmd},
|
||||
{"lmdi", "lambda i idx", "lambda_idx_i 0~8", mpi_enc_opt_lmdi},
|
||||
{"speed", "enc speed", "speed mode", mpi_enc_opt_speed},
|
||||
{"kmpp", "kmpp path enable", "kmpp path enable", mpi_enc_opt_kmpp}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user