video: driver: amend priorities to allow more sessions

1. adjust client set non-realtime priroty with NRT_PRIORITY_OFFSET (2)
2. if total mbps is more than max_mbps
    a. allow encode session by reducing decoder sessions priority by 1
    b. allow decode session by moving it to non-realtime session
        in order to not disturb the ongoing sessions

Change-Id: I96fd2ac75c123d681982fb9a2c06ac51d15bd59a
Signed-off-by: Deepa Guthyappa Madivalara <quic_dmadival@quicinc.com>
This commit is contained in:
Deepa Guthyappa Madivalara
2022-04-20 11:37:52 -07:00
parent 8a1d57af0e
commit 59b8019b9d
7 changed files with 97 additions and 34 deletions

View File

@@ -171,5 +171,6 @@ struct msm_vidc_inst {
u32 max_rate;
bool has_bframe;
bool ir_enabled;
u32 adjust_priority;
};
#endif // _MSM_VIDC_INST_H_