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_S32 recovery_pic_id; // first_frm_id + recovery_frame_cnt; 19 } RecoveryPoint; 20 21 #ifdef __cplusplus 22 extern "C" { 23 #endif 24 25 MPP_RET check_encoder_sei_info(BitReadCtx_t *gb, RK_S32 payload_size, RK_U32 *is_match); 26 27 #ifdef __cplusplus 28 } 29 #endif 30 31 //======================================== 32 #endif /* end of _H2645D_SEI_H_ */