Xilinx系列FPGA实现4K视频缩放,基于Video Processing Subsystem实现,提供4套工程源码和技术支持
由于原始代码已经提供了一个基于Xilinx Video Processing Subsystem的4K视频缩放实现,以下是核心函数的简化版本:
// 在Vivado中创建一个新的Video Processing Subsystem
video_subsystem #(
.MAX_BITS_PER_COMPONENT(8),
.NUM_VIDEO_COMPONENTS(3), // Y, U, V
.USE_GT_WORD_DEPTH(16),
.HAS_ASYNC_CLK(1),
.NUM_CORES(1),
.CORE_ID(0)
) vp_ss (
.clk_i(clk_i),
.s_axis_video_tdata(s_axis_video_tdata),
.s_axis_video_tuser(s_axis_video_tuser),
.s_axis_video_tlast(s_axis_video_tlast),
.s_axis_video_tvalid(s_axis_video_tvalid),
.s_axis_video_tready(s_axis_video_tready),
.s_axis_video_tuser_end_of_frame(s_axis_video_tuser_end_of_frame),
.s_axis_video_tuser_zero_byte(s_axis_video_tuser_zero_byte),
.s_axis_video_tkeep(s_axis_video_tkeep),
.m_axis_video_tdata(m_axis_video_tdata),
.m_axis_video_tuser(m_axis_video_tuser),
.m_axis_video_tlast(m_axis_video_tlast),
.m_axis_video_tvalid(m_axis_video_tvalid),
.m_axis_video_tready(m_axis_video_tready),
.m_axis_video_tuser_end_of_frame(m_axis_video_tuser_end_of_frame),
.m_axis_video_tuser_zero_byte(m_axis_video_tuser_zero_byte),
.m_axis_video_tkeep(m_axis_video_tkeep),
.m_axis_video_tuser_arb_propagatable(m_axis_video_tuser_arb_propagatable),
.m_axis_video_tuser_has_become_arbiter(m_axis_video_tuser_has_become_arbiter),
.m_axis_video_tuser_is_arbiter(m_axis_video_tuser_is_arbiter),
.m_axis_video_tuser_ready_for_arbitration(m_axis_video_tuser_ready_for_arbitration),
.s_axis_video_scaler_tdata(s_axis_video_scaler_tdata),
.s_axis_video_scaler_tuser(s_axis_video_scaler_tuser),
.s_axis_video_scaler_tlast(s_axis_video_scaler_tlast),
.s_axis_video_scaler_tvalid(s_axis_video_scaler_tvalid),
.s_axis_video_scaler_tready(s_axis_video_scaler_tready),
.s_axis_video_scaler_tuser_end_of_frame(s_axis_video_scaler_tuser_end_of_frame),
.s_axis_video_scaler_tuser_zero_byte(s_axis_video_scaler_tuser_zero_byte),
.s_axis_video_scaler_tkeep(s_axis_video_scaler_tkeep),
.s_axis_video_scaler_tdata_wr_en(s_axis_video_scaler_tdata_wr_en),
.s_axis_video_scaler_tready_wr_en(s_axis_video_scaler_tready_wr_en),
.s_axis_video_scaler_t
评论已关闭