video: driver: enable decoder batching support
Added change to enable decoder batching feature. Batching willbe enabled only when below conditions were met. [1] platform supports batching [2] decode session [3] realtime session [4] non-thumbnail session [5] non-heif session [6] 2-stage decode only(low_latency not supported). Change-Id: I54b601814c3b5fa2077dc41c5b0ac84964c2674a Signed-off-by: Govindaraj Rajagopal <grajagop@codeaurora.org>
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
#include "msm_vidc_inst.h"
|
||||
#include "msm_vidc_core.h"
|
||||
#include "msm_vidc_driver.h"
|
||||
#include "msm_vidc_control.h"
|
||||
#include "msm_vidc_dt.h"
|
||||
#include "msm_vidc_internal.h"
|
||||
#include "msm_vidc_buffer.h"
|
||||
@@ -564,7 +565,7 @@ int msm_vidc_decide_work_mode_iris2(struct msm_vidc_inst* inst)
|
||||
|
||||
i_vpr_h(inst, "Configuring work mode = %u low latency = %u",
|
||||
work_mode, lowlatency);
|
||||
inst->capabilities->cap[STAGE].value = work_mode;
|
||||
msm_vidc_update_cap_value(inst, STAGE, work_mode, __func__);
|
||||
|
||||
/* TODO If Encode then Set Low Latency (Enable/Disable)
|
||||
* and Update internal cap struct
|
||||
@@ -609,7 +610,7 @@ int msm_vidc_decide_work_route_iris2(struct msm_vidc_inst* inst)
|
||||
}
|
||||
|
||||
i_vpr_h(inst, "Configuring work route = %u", work_route);
|
||||
inst->capabilities->cap[PIPE].value = work_route;
|
||||
msm_vidc_update_cap_value(inst, PIPE, work_route, __func__);
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -643,7 +644,7 @@ int msm_vidc_decide_quality_mode_iris2(struct msm_vidc_inst* inst)
|
||||
(mbpf <= max_hq_mbpf && mbps <= max_hq_mbps))
|
||||
mode = MSM_VIDC_MAX_QUALITY_MODE;
|
||||
|
||||
capability->cap[QUALITY_MODE].value = mode;
|
||||
msm_vidc_update_cap_value(inst, QUALITY_MODE, mode, __func__);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Viittaa uudesa ongelmassa
Block a user