xref: /rockchip-linux_mpp/mpp/codec/dec/common/h2645d_sei.h (revision 437bfbeb9567cca9cd9080e3f6954aa9d6a94f18)
1 /* SPDX-License-Identifier: Apache-2.0 */
2 /*
3  * Copyright (c) 2023 Rockchip Electronics Co., Ltd.
4  */
5 
6 #ifndef _H2645D_SEI_H_
7 #define _H2645D_SEI_H_
8 
9 #include "rk_type.h"
10 #include "mpp_err.h"
11 #include "mpp_bitread.h"
12 
13 typedef struct SEI_Recovery_Point_t {
14     RK_U32 valid_flag;              // Whether this SEI is valid or not
15     RK_S32 recovery_frame_cnt;      // H.264: recovery_frame_cnt; H.265: recovery_poc_cnt
16     RK_S32 first_frm_id;            // The frame_num or poc of the frame associated with this SEI
17     RK_U32 first_frm_valid;         // The frame associated with this SEI is valid or not
18     RK_U32 first_frm_ref_missing;
19     RK_S32 recovery_pic_id;         // first_frm_id + recovery_frame_cnt;
20 } RecoveryPoint;
21 
22 #ifdef  __cplusplus
23 extern "C" {
24 #endif
25 
26 MPP_RET check_encoder_sei_info(BitReadCtx_t *gb, RK_S32 payload_size, RK_U32 *is_match);
27 
28 #ifdef  __cplusplus
29 }
30 #endif
31 
32 //========================================
33 #endif /* end of _H2645D_SEI_H_ */