Skip to content

radeonsi/vcn: Add ability to encode with ltr

Kuixi Ren requested to merge kg233/mesa-rkuixi-fork:radeonsi_ltr into main

Adds the ability to encode frames using ltr.

  • reads flags field from CurrPic struct in pps for VA_PICTURE_H264_LONG_TERM_REFERENCE. If found, Curr_pic.frame_idx wil be used for the long term reference index
  • In get_picture_storage, check if current frame is ltr, and whether its ref frame is ltr.
  • In radeon_enc_slice_header, adds the ref_pic_list_modification_flag_l0 and long_term_reference_flag for ltr

Merge request reports