* 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 */
| 153 | * @param[in] ref_count The number of reference pictures in ref_list |
| 154 | */ |
| 155 | static 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. |
no test coverage detected