Here it borrowed the term "long term reference" to represent the customized reference frame rather than the default ones used. To enable that, it needs application to leverage VAAPI existing interface to mark a frame as "long term reference", and then it will be preserved in the DPB for later usage. This preserved frame later could be refered to by having its signature used in the ref_frame_idx[] list, and the index can be indicated by RefFrameCtrl index2, which has not been used for other purpose. Reviewed-by: Leo Liu <leo.liu@amd.com> Signed-off-by: Ruijing Dong <ruijing.dong@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27771>