Update IDR handler to explicitly handle dropped IDR frames and ignore dropped non-reference frames.
This commit is contained in:
@@ -55,6 +55,7 @@ class default_idr_handler : public idr_handler
|
||||
uint64_t first_p;
|
||||
};
|
||||
std::variant<need_idr, wait_idr_feedback, idr_received, running> state;
|
||||
std::vector<uint64_t> non_ref_frames{512, uint64_t(-1)};
|
||||
|
||||
public:
|
||||
enum class frame_type
|
||||
@@ -66,6 +67,8 @@ public:
|
||||
void on_feedback(const from_headset::feedback &) override;
|
||||
void reset() override;
|
||||
bool should_skip(uint64_t frame_id) override;
|
||||
void set_non_ref(uint64_t frame_index);
|
||||
bool is_non_ref_frame(uint64_t frame_index);
|
||||
frame_type get_type(uint64_t frame_index);
|
||||
};
|
||||
} // namespace wivrn
|
||||
|
||||
Reference in New Issue
Block a user