dpss: prevent accidental modification of need_do_dpss. [1/1]

PD#SWPL-254045

Problem:
Unexpected modification of need_do_dpss resulted in
DPSS processing for rotated video

Solution:
prevent accidental modification of need_do_dpss

Verify:
T6X

Change-Id: I20470512133f96d173d158338fb42a5e46a85e99
Signed-off-by: zhenteng.tian <zhenteng.tian@amlogic.com>
This commit is contained in:
zhenteng.tian
2026-02-02 09:19:45 +00:00
committed by gerrit autosubmit
parent 9945ef05a9
commit bf6deba0f4
@@ -1991,17 +1991,13 @@ static bool check_need_do_dpss(struct dpss_process_dev *dev, struct vframe_s *vf
/*pip check*/
if (dev->index > 0) {
if (vf->type & VIDTYPE_INTERLACE) {
need_do_dpss = true;
} else {
if (!(vf->type & VIDTYPE_INTERLACE)) {
dp_print(dev->index, PRINT_OTHER, "pip dpss only support I source.\n");
need_do_dpss = false;
}
}
if (vf->duration >= 1600) {
need_do_dpss = true;
} else if ((vf->duration + 1) < dev->output_duration) {
if (vf->duration < 1600 && (vf->duration + 1) < dev->output_duration) {
/*input fps more than output fps*/
dp_print(dev->index, PRINT_OTHER,
"input fps more than output, no need do dpss.\n");