video: driver: add support for cyclic intra refresh

Currently driver supports only random intra refresh, extend
it to support cyclic intra refresh too.
Cyclic intra refresh is supported dynamically as well.
- If intra refresh type is set and num of LCU’s to be refreshed
  are non-zero before session start, intra refresh will be enabled
  throughout the session.
  Any further dynamic settings in the number of LCU’s including 0
  will be honored accordingly.
- If intra refresh type is set and num of LCU’s to be refreshed are zero
  before session start, intra refresh will be disabled.
  When client sets it to non-zero value dynamically, driver will set
  HFI_PROP_REQUEST_SYNC_FRAME with
  HFI_SYNC_FRAME_REQUEST_WITH_PREFIX_SEQ_HDR.
  Driver needs to send HFI_PROP_REQUEST_SYNC_FRAME only at time of
  CIR Enable, no need to send at time of disable/enable again.

Change-Id: I10a2fb22d131353721ee658213ed807ce0794009
Signed-off-by: Dikshita Agarwal <quic_dikshita@quicinc.com>
此提交包含在:
Dikshita Agarwal
2022-01-24 14:26:01 +05:30
父節點 0abd877e95
當前提交 8f0e12cc93
共有 11 個檔案被更改,包括 219 行新增34 行删除

查看文件

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