116 files changed, 25845 insertions, 36303 deletions
diff --git a/drivers/frame_provider/decoder/utils/vdec.h b/drivers/frame_provider/decoder/utils/vdec.h index 59ee2db..bc4ef21 100644 --- a/drivers/frame_provider/decoder/utils/vdec.h +++ b/drivers/frame_provider/decoder/utils/vdec.h @@ -121,7 +121,13 @@ extern void dma_contiguous_early_fixup(phys_addr_t base, unsigned long size); unsigned int get_vdec_clk_config_settings(void); void update_vdec_clk_config_settings(unsigned int config); //unsigned int get_mmu_mode(void);//DEBUG_TMP -extern void vdec_fill_frame_info(struct vframe_qos_s *vframe_qos, int debug); +//extern void vdec_fill_frame_info(struct vframe_qos_s *vframe_qos, int debug); +extern void vdec_fill_vdec_frame(struct vdec_s *vdec, + struct vframe_qos_s *vframe_qos, + struct vdec_info *vinfo, + struct vframe_s *vf, u32 hw_dec_time); +extern void vdec_set_vframe_comm(struct vdec_s *vdec, char *n); + struct vdec_s; enum vformat_t; @@ -261,9 +267,11 @@ struct vdec_s { #endif atomic_t inirq_thread_flag; atomic_t inirq_flag; + atomic_t inrelease; int parallel_dec; volatile u64 isr_ns; volatile u64 tfn_ns; + struct vdec_frames_s *mvfrm; }; /* common decoder vframe provider name to use default vfm path */ @@ -316,6 +324,9 @@ extern int vdec_set_receive_id(struct vdec_s *vdec, int receive_id); extern int vdec_write_vframe(struct vdec_s *vdec, const char *buf, size_t count); +extern int vdec_write_vframe_with_dma(struct vdec_s *vdec, + ulong addr, size_t count, u32 handle); + /* mark the vframe_chunk as consumed */ extern void vdec_vframe_dirty(struct vdec_s *vdec, struct vframe_chunk_s *chunk); @@ -438,13 +449,16 @@ extern void vdec_set_step_mode(void); #endif int vdec_get_debug_flags(void); +void VDEC_PRINT_FUN_LINENO(const char *fun, int line); + + unsigned char is_mult_inc(unsigned int); int vdec_get_status(struct vdec_s *vdec); void vdec_set_timestamp(struct vdec_s *vdec, u64 timestamp); -extern struct vframe_qos_s *vdec_get_qos_info(void); +extern u32 vdec_get_frame_vdec(struct vdec_s *vdec, struct vframe_counter_s *tmpbuf); int vdec_get_frame_num(struct vdec_s *vdec); |