MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / fill_vaapi_RefPicList

Function fill_vaapi_RefPicList

libavcodec/vaapi_h264.c:155–166  ·  view source on GitHub ↗

* Fills in VA API reference picture lists from the FFmpeg reference * picture list. * * @param[out] RefPicList VA API internal reference picture list * @param[in] ref_list A pointer to the FFmpeg reference list * @param[in] ref_count The number of reference pictures in ref_list */

Source from the content-addressed store, hash-verified

153 * @param[in] ref_count The number of reference pictures in ref_list
154 */
155static void fill_vaapi_RefPicList(VAPictureH264 RefPicList[32],
156 Picture *ref_list,
157 unsigned int ref_count)
158{
159 unsigned int i, n = 0;
160 for (i = 0; i < ref_count; i++)
161 if (ref_list[i].reference)
162 fill_vaapi_pic(&RefPicList[n++], &ref_list[i], 0);
163
164 for (; n < 32; n++)
165 init_vaapi_pic(&RefPicList[n]);
166}
167
168/**
169 * Fills in prediction weight table.

Callers 1

decode_sliceFunction · 0.85

Calls 2

fill_vaapi_picFunction · 0.85
init_vaapi_picFunction · 0.85

Tested by

no test coverage detected