driver: video: Add critical priority and reserve duration
Critical priority - A video session which is prioritized above all concurrent sessions. Such sessions have low latencies and at the same time they cannot be rejected due to overload. Reserve duration - Duration by which a session reserves the video hardware for processing frames from that session. Both the above aspects are implemented with these changes. Change-Id: I58aef5f239e5ee106201d6819d2228784f0f0ad0 Signed-off-by: Vikash Garodia <quic_vgarodia@quicinc.com>
This commit is contained in:
@@ -293,6 +293,11 @@ static inline bool is_realtime_session(struct msm_vidc_inst *inst)
|
||||
return inst->capabilities->cap[PRIORITY].value == 0 ? true : false;
|
||||
}
|
||||
|
||||
static inline bool is_critical_priority_session(struct msm_vidc_inst *inst)
|
||||
{
|
||||
return !!(inst->capabilities->cap[CRITICAL_PRIORITY].value);
|
||||
}
|
||||
|
||||
static inline bool is_lowlatency_session(struct msm_vidc_inst *inst)
|
||||
{
|
||||
return !!(inst->capabilities->cap[LOWLATENCY_MODE].value);
|
||||
|
Reference in New Issue
Block a user