video: driver: Add support for enc auto framerate

1. Calculate framerate based on buffer timestamp
2. If framerate changed and stable for 2 frames,
   update it to firmware and in driver internally.

Change-Id: I7feda86dec8fcfc1dff6defac8c15a97c1b8393e
Signed-off-by: Priyanka Gujjula <pgujjula@codeaurora.org>
This commit is contained in:
Priyanka Gujjula
2021-06-17 22:53:27 +05:30
parent b113af07cb
commit e61b55879b
10 changed files with 87 additions and 12 deletions

View File

@@ -153,5 +153,6 @@ struct msm_vidc_inst {
u32 max_input_data_size;
u32 dpb_list_payload[MAX_DPB_LIST_ARRAY_SIZE];
u32 max_map_output_count;
u32 auto_framerate;
};
#endif // _MSM_VIDC_INST_H_