pub struct H264 { /* private fields */ }
Expand description
H264 Encoder (Core)
Implementations§
Source§impl H264
impl H264
Sourcepub const PTR: *const RegisterBlock = {0x50084000 as *const h264::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x50084000 as *const h264::RegisterBlock}
Pointer to the register block
Sourcepub const fn ptr() -> *const RegisterBlock
pub const fn ptr() -> *const RegisterBlock
Return the pointer to the register block
Sourcepub unsafe fn steal() -> Self
pub unsafe fn steal() -> Self
Steal an instance of this peripheral
§Safety
Ensure that the new instance of the peripheral cannot be used in a way that may race with any existing instances, for example by only accessing read-only or write-only registers, or by consuming the original peripheral and using critical sections to coordinate access between multiple new instances.
Additionally, other software such as HALs may rely on only one peripheral instance existing to ensure memory safety; ensure no stolen instances are passed to such software.
Methods from Deref<Target = RegisterBlock>§
Sourcepub fn a_sys_mb_res(&self) -> &A_SYS_MB_RES
pub fn a_sys_mb_res(&self) -> &A_SYS_MB_RES
0x08 - Video A horizontal and vertical MB resolution register.
Sourcepub fn a_sys_conf(&self) -> &A_SYS_CONF
pub fn a_sys_conf(&self) -> &A_SYS_CONF
0x0c - Video A system level configuration register.
Sourcepub fn a_deci_score(&self) -> &A_DECI_SCORE
pub fn a_deci_score(&self) -> &A_DECI_SCORE
0x10 - Video A luma and chroma MB decimate score Register.
Sourcepub fn a_deci_score_offset(&self) -> &A_DECI_SCORE_OFFSET
pub fn a_deci_score_offset(&self) -> &A_DECI_SCORE_OFFSET
0x14 - Video A luma and chroma MB decimate score offset Register.
Sourcepub fn a_rc_conf0(&self) -> &A_RC_CONF0
pub fn a_rc_conf0(&self) -> &A_RC_CONF0
0x18 - Video A rate control configuration register0.
Sourcepub fn a_rc_conf1(&self) -> &A_RC_CONF1
pub fn a_rc_conf1(&self) -> &A_RC_CONF1
0x1c - Video A rate control configuration register1.
Sourcepub fn a_db_bypass(&self) -> &A_DB_BYPASS
pub fn a_db_bypass(&self) -> &A_DB_BYPASS
0x20 - Video A Deblocking bypass register
Sourcepub fn a_roi_region0(&self) -> &A_ROI_REGION0
pub fn a_roi_region0(&self) -> &A_ROI_REGION0
0x24 - Video A H264 ROI region0 range configure register.
Sourcepub fn a_roi_region1(&self) -> &A_ROI_REGION1
pub fn a_roi_region1(&self) -> &A_ROI_REGION1
0x28 - Video A H264 ROI region1 range configure register.
Sourcepub fn a_roi_region2(&self) -> &A_ROI_REGION2
pub fn a_roi_region2(&self) -> &A_ROI_REGION2
0x2c - Video A H264 ROI region2 range configure register.
Sourcepub fn a_roi_region3(&self) -> &A_ROI_REGION3
pub fn a_roi_region3(&self) -> &A_ROI_REGION3
0x30 - Video A H264 ROI region3 range configure register.
Sourcepub fn a_roi_region4(&self) -> &A_ROI_REGION4
pub fn a_roi_region4(&self) -> &A_ROI_REGION4
0x34 - Video A H264 ROI region4 range configure register.
Sourcepub fn a_roi_region5(&self) -> &A_ROI_REGION5
pub fn a_roi_region5(&self) -> &A_ROI_REGION5
0x38 - Video A H264 ROI region5 range configure register.
Sourcepub fn a_roi_region6(&self) -> &A_ROI_REGION6
pub fn a_roi_region6(&self) -> &A_ROI_REGION6
0x3c - Video A H264 ROI region6 range configure register.
Sourcepub fn a_roi_region7(&self) -> &A_ROI_REGION7
pub fn a_roi_region7(&self) -> &A_ROI_REGION7
0x40 - Video A H264 ROI region7 range configure register.
Sourcepub fn a_roi_region0_3_qp(&self) -> &A_ROI_REGION0_3_QP
pub fn a_roi_region0_3_qp(&self) -> &A_ROI_REGION0_3_QP
0x44 - Video A H264 ROI region0, region1,region2,region3 QP register.
Sourcepub fn a_roi_region4_7_qp(&self) -> &A_ROI_REGION4_7_QP
pub fn a_roi_region4_7_qp(&self) -> &A_ROI_REGION4_7_QP
0x48 - Video A H264 ROI region4, region5,region6,region7 QP register.
Sourcepub fn a_no_roi_region_qp_offset(&self) -> &A_NO_ROI_REGION_QP_OFFSET
pub fn a_no_roi_region_qp_offset(&self) -> &A_NO_ROI_REGION_QP_OFFSET
0x4c - Video A H264 no roi region QP register.
Sourcepub fn a_roi_config(&self) -> &A_ROI_CONFIG
pub fn a_roi_config(&self) -> &A_ROI_CONFIG
0x50 - Video A H264 ROI configure register.
Sourcepub fn b_sys_mb_res(&self) -> &B_SYS_MB_RES
pub fn b_sys_mb_res(&self) -> &B_SYS_MB_RES
0x54 - Video B horizontal and vertical MB resolution register.
Sourcepub fn b_sys_conf(&self) -> &B_SYS_CONF
pub fn b_sys_conf(&self) -> &B_SYS_CONF
0x58 - Video B system level configuration register.
Sourcepub fn b_deci_score(&self) -> &B_DECI_SCORE
pub fn b_deci_score(&self) -> &B_DECI_SCORE
0x5c - Video B luma and chroma MB decimate score Register.
Sourcepub fn b_deci_score_offset(&self) -> &B_DECI_SCORE_OFFSET
pub fn b_deci_score_offset(&self) -> &B_DECI_SCORE_OFFSET
0x60 - Video B luma and chroma MB decimate score offset Register.
Sourcepub fn b_rc_conf0(&self) -> &B_RC_CONF0
pub fn b_rc_conf0(&self) -> &B_RC_CONF0
0x64 - Video B rate control configuration register0.
Sourcepub fn b_rc_conf1(&self) -> &B_RC_CONF1
pub fn b_rc_conf1(&self) -> &B_RC_CONF1
0x68 - Video B rate control configuration register1.
Sourcepub fn b_db_bypass(&self) -> &B_DB_BYPASS
pub fn b_db_bypass(&self) -> &B_DB_BYPASS
0x6c - Video B Deblocking bypass register
Sourcepub fn b_roi_region0(&self) -> &B_ROI_REGION0
pub fn b_roi_region0(&self) -> &B_ROI_REGION0
0x70 - Video B H264 ROI region0 range configure register.
Sourcepub fn b_roi_region1(&self) -> &B_ROI_REGION1
pub fn b_roi_region1(&self) -> &B_ROI_REGION1
0x74 - Video B H264 ROI region1 range configure register.
Sourcepub fn b_roi_region2(&self) -> &B_ROI_REGION2
pub fn b_roi_region2(&self) -> &B_ROI_REGION2
0x78 - Video B H264 ROI region2 range configure register.
Sourcepub fn b_roi_region3(&self) -> &B_ROI_REGION3
pub fn b_roi_region3(&self) -> &B_ROI_REGION3
0x7c - Video B H264 ROI region3 range configure register.
Sourcepub fn b_roi_region4(&self) -> &B_ROI_REGION4
pub fn b_roi_region4(&self) -> &B_ROI_REGION4
0x80 - Video B H264 ROI region4 range configure register.
Sourcepub fn b_roi_region5(&self) -> &B_ROI_REGION5
pub fn b_roi_region5(&self) -> &B_ROI_REGION5
0x84 - Video B H264 ROI region5 range configure register.
Sourcepub fn b_roi_region6(&self) -> &B_ROI_REGION6
pub fn b_roi_region6(&self) -> &B_ROI_REGION6
0x88 - Video B H264 ROI region6 range configure register.
Sourcepub fn b_roi_region7(&self) -> &B_ROI_REGION7
pub fn b_roi_region7(&self) -> &B_ROI_REGION7
0x8c - Video B H264 ROI region7 range configure register.
Sourcepub fn b_roi_region0_3_qp(&self) -> &B_ROI_REGION0_3_QP
pub fn b_roi_region0_3_qp(&self) -> &B_ROI_REGION0_3_QP
0x90 - Video B H264 ROI region0, region1,region2,region3 QP register.
Sourcepub fn b_roi_region4_7_qp(&self) -> &B_ROI_REGION4_7_QP
pub fn b_roi_region4_7_qp(&self) -> &B_ROI_REGION4_7_QP
0x94 - Video B H264 ROI region4, region5,region6,region7 QP register.
Sourcepub fn b_no_roi_region_qp_offset(&self) -> &B_NO_ROI_REGION_QP_OFFSET
pub fn b_no_roi_region_qp_offset(&self) -> &B_NO_ROI_REGION_QP_OFFSET
0x98 - Video B H264 no roi region QP register.
Sourcepub fn b_roi_config(&self) -> &B_ROI_CONFIG
pub fn b_roi_config(&self) -> &B_ROI_CONFIG
0x9c - Video B H264 ROI configure register.
Sourcepub fn rc_status0(&self) -> &RC_STATUS0
pub fn rc_status0(&self) -> &RC_STATUS0
0xa0 - Rate control status register0.
Sourcepub fn rc_status1(&self) -> &RC_STATUS1
pub fn rc_status1(&self) -> &RC_STATUS1
0xa4 - Rate control status register1.
Sourcepub fn rc_status2(&self) -> &RC_STATUS2
pub fn rc_status2(&self) -> &RC_STATUS2
0xa8 - Rate control status register2.
Sourcepub fn slice_header_remain(&self) -> &SLICE_HEADER_REMAIN
pub fn slice_header_remain(&self) -> &SLICE_HEADER_REMAIN
0xac - Frame Slice Header remain bit register.
Sourcepub fn slice_header_byte_length(&self) -> &SLICE_HEADER_BYTE_LENGTH
pub fn slice_header_byte_length(&self) -> &SLICE_HEADER_BYTE_LENGTH
0xb0 - Frame Slice Header byte length register.
Sourcepub fn bs_threshold(&self) -> &BS_THRESHOLD
pub fn bs_threshold(&self) -> &BS_THRESHOLD
0xb4 - Bitstream buffer overflow threshold register
Sourcepub fn slice_header_byte0(&self) -> &SLICE_HEADER_BYTE0
pub fn slice_header_byte0(&self) -> &SLICE_HEADER_BYTE0
0xb8 - Frame Slice Header byte low 32 bit register.
Sourcepub fn slice_header_byte1(&self) -> &SLICE_HEADER_BYTE1
pub fn slice_header_byte1(&self) -> &SLICE_HEADER_BYTE1
0xbc - Frame Slice Header byte high 32 bit register.
Sourcepub fn mv_merge_config(&self) -> &MV_MERGE_CONFIG
pub fn mv_merge_config(&self) -> &MV_MERGE_CONFIG
0xd4 - Mv merge configuration register.
Sourcepub fn debug_dma_sel(&self) -> &DEBUG_DMA_SEL
pub fn debug_dma_sel(&self) -> &DEBUG_DMA_SEL
0xd8 - Debug H264 DMA select register
Sourcepub fn sys_status(&self) -> &SYS_STATUS
pub fn sys_status(&self) -> &SYS_STATUS
0xdc - System status register.
Sourcepub fn frame_code_length(&self) -> &FRAME_CODE_LENGTH
pub fn frame_code_length(&self) -> &FRAME_CODE_LENGTH
0xe0 - Frame code byte length register.
Sourcepub fn debug_info0(&self) -> &DEBUG_INFO0
pub fn debug_info0(&self) -> &DEBUG_INFO0
0xe4 - Debug information register0.
Sourcepub fn debug_info1(&self) -> &DEBUG_INFO1
pub fn debug_info1(&self) -> &DEBUG_INFO1
0xe8 - Debug information register1.
Sourcepub fn debug_info2(&self) -> &DEBUG_INFO2
pub fn debug_info2(&self) -> &DEBUG_INFO2
0xec - Debug information register2.