KhronosGroup / Vulkan-Docs

The Vulkan API Specification and related tools
Other
2.77k stars 465 forks source link

video: usage of `StdVideoEncodeH265ReferenceListsInfo->RefPicList0` #2362

Open colinmarc opened 5 months ago

colinmarc commented 5 months ago

Hi, I'm back with another question about video encode.

The spec says that RefPicList0 are defined in terms of the H.265 spec:

RefPicList0 and RefPicList1 as defined in section 8.3.4 of the ITU-T H.265 Specification where each element of these arrays either identifies an active reference picture using its DPB slot index or contains the value STD_VIDEO_H265_NO_REFERENCE_PICTURE to indicate “no reference picture”;

However, section 8.3.4 of the H.265 spec refers to the decoding process, which is a bit confusing.

  1. What exactly is this field used for? It's not included in the headers, so it must inform the implementation-side encoder state, right?
  2. Should it contain all active references, or just those active references used by the current picture?

The same goes for the H.264 equivalent, obviously.

Thanks in advance!