npv: backward discontinuity handling
[nyanmp.git] / npv / video / local / state.frag.c
blob89f57bec19dfd0a2657ae9d23dcdc0471558a43c
1 struct dec_fr_priv_t {
2 bool was_qed_to_pe;
3 };
4 /*===========================================================================*/
5 STATIC pthread_mutex_t dec_ctx_mutex_l;
6 STATIC avutil_video_fr_ref_t *receive_fr_l;
7 STATIC avcodec_codec_t *dec_l;
8 STATIC struct vk_mem_rqmts_t tmp_mem_rqmts_l;
9 STATIC struct {
10 struct blit_vp_t {
11 s32 width;
12 s32 height;
13 struct vk_offset_3d_t top_left;
14 struct vk_offset_3d_t bottom_right;
15 } vp;
16 bool update_requested;
17 } blit_l[npv_vk_swpchn_imgs_n_max];
18 STATIC avutil_video_fr_ref_t *last_fr_sent_to_pe_l;
19 STATIC bool is_swpchn_sem_fence_submitted_l;
20 STATIC struct {
21 s64 prev_now;
22 bool until_resync;
23 } drop_l;