Struct rk3399_pac::Rkvdec

source ·
pub struct Rkvdec { /* private fields */ }
Expand description

Rockchip Video Decoder (RKVDEC) Registers

Implementations§

source§

impl Rkvdec

source

pub const PTR: *const RegisterBlock = {0xff660000 as *const rkvdec::RegisterBlock}

Pointer to the register block

source

pub const fn ptr() -> *const RegisterBlock

Return the pointer to the register block

source

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>§

source

pub fn swreg0_id(&self) -> &Swreg0Id

0x00 - ID register (read only)

source

pub fn swreg1_int(&self) -> &Swreg1Int

0x04 - interrupt and decoder enable register

source

pub fn swreg2_sysctrl(&self) -> &Swreg2Sysctrl

0x08 - Data input and output endian setting and sys ctrl

source

pub fn swreg3_picpar(&self) -> &Swreg3Picpar

0x0c - picture parameters

source

pub fn swreg4_strm_rlc_base(&self) -> &Swreg4StrmRlcBase

0x10 - the stream or rlc data base address

source

pub fn swreg5_stream_rlc_len(&self) -> &Swreg5StreamRlcLen

0x14 - amount of stream bytes or rlc data byte in the input buffer or the

source

pub fn swreg6_cabactbl_prob_base(&self) -> &Swreg6CabactblProbBase

0x18 - the base address of cabac table

source

pub fn swreg7_decout_base(&self) -> &Swreg7DecoutBase

0x1c - base address of decoder output picture base address

source

pub fn swreg8_y_virstride(&self) -> &Swreg8YVirstride

0x20 - the ouput picture y virtual stride

source

pub fn swreg9_yuv_virstride(&self) -> &Swreg9YuvVirstride

0x24 - the ouput picture yuv virtual stride

source

pub fn swreg10_vp9_cprheader_offset(&self) -> &Swreg10Vp9CprheaderOffset

0x28 - vp9 compressed header offset

source

pub fn swreg10_h264_refer0_base(&self) -> &Swreg10H264Refer0Base

0x28 - base address for reference picture index 0

source

pub fn swreg10_hevc_refer0_base(&self) -> &Swreg10HevcRefer0Base

0x28 - base address for reference picture index 0

source

pub fn swreg11_vp9_referlast_base(&self) -> &Swreg11Vp9ReferlastBase

0x2c - base address for last frame

source

pub fn swreg11_h264_refer1_base(&self) -> &Swreg11H264Refer1Base

0x2c - base address for reference picture index 1

source

pub fn swreg11_hevc_refer1_base(&self) -> &Swreg11HevcRefer1Base

0x2c - base address for reference picture index 1

source

pub fn swreg12_vp9_refergolden_base(&self) -> &Swreg12Vp9RefergoldenBase

0x30 - base address for golden frame

source

pub fn swreg12_h264_refer2_base(&self) -> &Swreg12H264Refer2Base

0x30 - base address for reference picture index 2

source

pub fn swreg12_hevc_refer2_base(&self) -> &Swreg12HevcRefer2Base

0x30 - base address for reference picture index 2

source

pub fn swreg13_vp9_referalfter_base(&self) -> &Swreg13Vp9ReferalfterBase

0x34 - base address for referalfter frame

source

pub fn swreg13_h264_refer3_base(&self) -> &Swreg13H264Refer3Base

0x34 - base address for reference picture index 3

source

pub fn swreg13_hevc_refer3_base(&self) -> &Swreg13HevcRefer3Base

0x34 - base address for reference picture index 3

source

pub fn swreg14_vp9count_base(&self) -> &Swreg14Vp9countBase

0x38 - vp9 count base addr

source

pub fn swreg14_h264_refer4_base(&self) -> &Swreg14H264Refer4Base

0x38 - base address for reference picture index 4

source

pub fn swreg14_hevc_refer4_base(&self) -> &Swreg14HevcRefer4Base

0x38 - base address for reference picture index 4

source

pub fn swreg15_hevc_refer5_base(&self) -> &Swreg15HevcRefer5Base

0x3c - base address for reference picture index 5

source

pub fn swreg15_vp9_segidlast_base(&self) -> &Swreg15Vp9SegidlastBase

0x3c - base address for last frame segment id

source

pub fn swreg15_h264_refer5_base(&self) -> &Swreg15H264Refer5Base

0x3c - base address for reference picture index 5

source

pub fn swreg16_hevc_refer6_base(&self) -> &Swreg16HevcRefer6Base

0x40 - base address for reference picture index 6

source

pub fn swreg16_vp9_segidcur_base(&self) -> &Swreg16Vp9SegidcurBase

0x40 - base address for cur frame segment id

source

pub fn swreg16_h264_refer6_base(&self) -> &Swreg16H264Refer6Base

0x40 - base address for reference picture index 6

source

pub fn swreg17_hevc_refer7_base(&self) -> &Swreg17HevcRefer7Base

0x44 - base address for reference picture index 7

source

pub fn swreg17_vp9_frame_size_last(&self) -> &Swreg17Vp9FrameSizeLast

0x44 - vp9 last frame size

source

pub fn swreg17_h264_refer7_base(&self) -> &Swreg17H264Refer7Base

0x44 - base address for reference picture index 7

source

pub fn swreg18_hevc_refer8_base(&self) -> &Swreg18HevcRefer8Base

0x48 - base address for reference picture index 8

source

pub fn swreg18_vp9_frame_size_golden(&self) -> &Swreg18Vp9FrameSizeGolden

0x48 - vp9 golden frame size

source

pub fn swreg18_h264_refer8_base(&self) -> &Swreg18H264Refer8Base

0x48 - base address for reference picture index 8

source

pub fn swreg19_hevc_refer9_base(&self) -> &Swreg19HevcRefer9Base

0x4c - base address for reference picture index 9

source

pub fn swreg19_vp9_frame_size_altref(&self) -> &Swreg19Vp9FrameSizeAltref

0x4c - vp9 alfter frame size

source

pub fn swreg19_h264_refer9_base(&self) -> &Swreg19H264Refer9Base

0x4c - base address for reference picture index 9

source

pub fn swreg20_hevc_refer10_base(&self) -> &Swreg20HevcRefer10Base

0x50 - base address for reference picture index 10

source

pub fn swreg20_vp9_segid_grp0(&self) -> &Swreg20Vp9SegidGrp0

0x50 - vp9 segid syntax grp0

source

pub fn swreg20_h264_refer10_base(&self) -> &Swreg20H264Refer10Base

0x50 - base address for reference picture index 10

source

pub fn swreg21_hevc_refer11_base(&self) -> &Swreg21HevcRefer11Base

0x54 - base address for reference picture index 11

source

pub fn swreg21_vp9_segid_grp1(&self) -> &Swreg21Vp9SegidGrp1

0x54 - vp9 segid syntax grp1

source

pub fn swreg21_h264_refer11_base(&self) -> &Swreg21H264Refer11Base

0x54 - base address for reference picture index 11

source

pub fn swreg22_hevc_refer12_base(&self) -> &Swreg22HevcRefer12Base

0x58 - base address for reference picture index 12

source

pub fn swreg22_vp9_segid_grp2(&self) -> &Swreg22Vp9SegidGrp2

0x58 - vp9 segid syntax grp2

source

pub fn swreg22_h264_refer12_base(&self) -> &Swreg22H264Refer12Base

0x58 - base address for reference picture index 12

source

pub fn swreg23_hevc_refer13_base(&self) -> &Swreg23HevcRefer13Base

0x5c - base address for reference picture index 13

source

pub fn swreg23_vp9_segid_grp3(&self) -> &Swreg23Vp9SegidGrp3

0x5c - vp9 segid syntax grp3

source

pub fn swreg23_h264_refer13_base(&self) -> &Swreg23H264Refer13Base

0x5c - base address for reference picture index 13

source

pub fn swreg24_hevc_refer14_base(&self) -> &Swreg24HevcRefer14Base

0x60 - base address for reference picture index 14

source

pub fn swreg24_vp9_segid_grp4(&self) -> &Swreg24Vp9SegidGrp4

0x60 - vp9 segid syntax grp4

source

pub fn swreg24_h264_refer14_base(&self) -> &Swreg24H264Refer14Base

0x60 - base address for reference picture index 14

source

pub fn swreg25_refer0_poc(&self) -> &Swreg25Refer0Poc

0x64 - the poc of reference picture index 0

source

pub fn swreg25_vp9_segid_grp5(&self) -> &Swreg25Vp9SegidGrp5

0x64 - vp9 segid syntax grp5

source

pub fn swreg26_refer1_poc(&self) -> &Swreg26Refer1Poc

0x68 - the poc of reference picture index 1

source

pub fn swreg26_vp9_segid_grp6(&self) -> &Swreg26Vp9SegidGrp6

0x68 - vp9 segid syntax grp6

source

pub fn swreg27_refer2_poc(&self) -> &Swreg27Refer2Poc

0x6c - the poc of reference picture index 2

source

pub fn swreg27_vp9_segid_grp7(&self) -> &Swreg27Vp9SegidGrp7

0x6c - vp9 segid syntax grp7

source

pub fn swreg28_refer3_poc(&self) -> &Swreg28Refer3Poc

0x70 - the poc of reference picture index 3

source

pub fn swreg28_vp9_cprheader_config(&self) -> &Swreg28Vp9CprheaderConfig

0x70 - vp9 compressed header config info

source

pub fn swreg29_refer4_poc(&self) -> &Swreg29Refer4Poc

0x74 - the poc of reference picture index 4

source

pub fn swreg29_vp9_lref_scale(&self) -> &Swreg29Vp9LrefScale

0x74 - scaling factor for last reference picture

source

pub fn swreg30_refer5_poc(&self) -> &Swreg30Refer5Poc

0x78 - the poc of reference picture index 5

source

pub fn swreg30_vp9_gref_scale(&self) -> &Swreg30Vp9GrefScale

0x78 - scaling factor for golden reference picture

source

pub fn swreg31_refer6_poc(&self) -> &Swreg31Refer6Poc

0x7c - the poc of reference picture index 6

source

pub fn swreg31_vp9_aref_scale(&self) -> &Swreg31Vp9ArefScale

0x7c - scaling factor for alfter reference picture

source

pub fn swreg32_refer7_poc(&self) -> &Swreg32Refer7Poc

0x80 - the poc of reference picture index 7

source

pub fn swreg32_vp9_ref_deltas_lastframe(&self) -> &Swreg32Vp9RefDeltasLastframe

0x80 - vp9 ref deltas

source

pub fn swreg33_refer8_poc(&self) -> &Swreg33Refer8Poc

0x84 - the poc of reference picture index 8

source

pub fn swreg33_vp9_info_lastframe(&self) -> &Swreg33Vp9InfoLastframe

0x84 - vp9 info for lastframe

source

pub fn swreg34_refer9_poc(&self) -> &Swreg34Refer9Poc

0x88 - the poc of reference picture index 9

source

pub fn swreg34_vp9_intercmd_base(&self) -> &Swreg34Vp9IntercmdBase

0x88 - inter cmd base addr

source

pub fn swreg35_refer10_poc(&self) -> &Swreg35Refer10Poc

0x8c - the poc of reference picture index 10

source

pub fn swreg35_vp9_intercmd_num(&self) -> &Swreg35Vp9IntercmdNum

0x8c - vp9 intercmd num

source

pub fn swreg36_refer11_poc(&self) -> &Swreg36Refer11Poc

0x90 - the poc of reference picture index 11

source

pub fn swreg36_vp9_lasttile_size(&self) -> &Swreg36Vp9LasttileSize

0x90 - vp9 lasttile size

source

pub fn swreg37_refer12_poc(&self) -> &Swreg37Refer12Poc

0x94 - the poc of reference picture index 12

source

pub fn swreg37_vp9_lastf_hor_virstride(&self) -> &Swreg37Vp9LastfHorVirstride

0x94 - Register0000 Abstract

source

pub fn swreg38_refer13_poc(&self) -> &Swreg38Refer13Poc

0x98 - the poc of reference picture index 13

source

pub fn swreg38_vp9_goldenf_hor_virstride( &self ) -> &Swreg38Vp9GoldenfHorVirstride

0x98 - vp9 golden frame horizontal virstride

source

pub fn swreg39_refer14_poc(&self) -> &Swreg39Refer14Poc

0x9c - the poc of reference picture index 14

source

pub fn swreg39_vp9_altreff_hor_virstride( &self ) -> &Swreg39Vp9AltreffHorVirstride

0x9c - vp9 altref frame horizontal virstride

source

pub fn swreg40_cur_poc(&self) -> &Swreg40CurPoc

0xa0 - the poc of cur picture

source

pub fn swreg41_rlcwrite_base(&self) -> &Swreg41RlcwriteBase

0xa4 - the base address or rlcwrite base addr

source

pub fn swreg42_pps_base(&self) -> &Swreg42PpsBase

0xa8 - the base address of pps

source

pub fn swreg43_rps_base(&self) -> &Swreg43RpsBase

0xac - the base address of rps

source

pub fn swreg44_strmd_error_en(&self) -> &Swreg44StrmdErrorEn

0xb0 - cabac error enable config

source

pub fn swreg45_vp9_error_info0(&self) -> &Swreg45Vp9ErrorInfo0

0xb4 - vp9 error info

source

pub fn swreg45_strmd_error_status(&self) -> &Swreg45StrmdErrorStatus

0xb4 - cabac error status

source

pub fn swreg46_strmd_error_ctu(&self) -> &Swreg46StrmdErrorCtu

0xb8 - strmd error ctu

source

pub fn swreg47_sao_ctu_position(&self) -> &Swreg47SaoCtuPosition

0xbc - sao ctu position

source

pub fn swreg48_vp9_last_ystride(&self) -> &Swreg48Vp9LastYstride

0xc0 - last ref ystride

source

pub fn swreg48_h264_refer15_base(&self) -> &Swreg48H264Refer15Base

0xc0 - base address for reference picture index 15

source

pub fn swreg49_vp9_golden_ystride(&self) -> &Swreg49Vp9GoldenYstride

0xc4 - golden ref ystride

source

pub fn swreg49_h264_refer15_poc(&self) -> &Swreg49H264Refer15Poc

0xc4 - the poc of reference picture index 15

source

pub fn swreg50_vp9_altrefy_ystride(&self) -> &Swreg50Vp9AltrefyYstride

0xc8 - altref ref ystride

source

pub fn swreg50_h264_refer16_poc(&self) -> &Swreg50H264Refer16Poc

0xc8 - the poc of reference picture index 16

source

pub fn swreg51_vp9_lastref_yuvstride(&self) -> &Swreg51Vp9LastrefYuvstride

0xcc - vp9 lastref yuv stride

source

pub fn swreg51_h264_refer17_poc(&self) -> &Swreg51H264Refer17Poc

0xcc - the poc of reference picture index 17

source

pub fn swreg52_h264_refer18_poc(&self) -> &Swreg52H264Refer18Poc

0xd0 - the poc of reference picture index 18

source

pub fn swreg52_vp9_refcolmv_base(&self) -> &Swreg52Vp9RefcolmvBase

0xd0 - vp9 colmv ref base

source

pub fn swreg53_h264_refer19_poc(&self) -> &Swreg53H264Refer19Poc

0xd4 - the poc of reference picture index 19

source

pub fn swreg54_h264_refer20_poc(&self) -> &Swreg54H264Refer20Poc

0xd8 - the poc of reference picture index 20

source

pub fn swreg55_h264_refer21_poc(&self) -> &Swreg55H264Refer21Poc

0xdc - the poc of reference picture index 21

source

pub fn swreg56_h264_refer22_poc(&self) -> &Swreg56H264Refer22Poc

0xe0 - the poc of reference picture index 22

source

pub fn swreg57_h264_refer23_poc(&self) -> &Swreg57H264Refer23Poc

0xe4 - the poc of reference picture index 23

source

pub fn swreg58_h264_refer24_poc(&self) -> &Swreg58H264Refer24Poc

0xe8 - the poc of reference picture index 24

source

pub fn swreg59_h264_refer25_poc(&self) -> &Swreg59H264Refer25Poc

0xec - the poc of reference picture index 25

source

pub fn swreg60_h264_refer26_poc(&self) -> &Swreg60H264Refer26Poc

0xf0 - the poc of reference picture index 26

source

pub fn swreg61_h264_refer27_poc(&self) -> &Swreg61H264Refer27Poc

0xf4 - the poc of reference picture index 27

source

pub fn swreg62_h264_refer28_poc(&self) -> &Swreg62H264Refer28Poc

0xf8 - the poc of reference picture index 28

source

pub fn swreg63_h264_refer29_poc(&self) -> &Swreg63H264Refer29Poc

0xfc - the poc of reference picture index 29

source

pub fn swreg64_performance_cycle(&self) -> &Swreg64PerformanceCycle

0x100 - hevc performance cycle

source

pub fn swreg65_axi_ddr_rdata(&self) -> &Swreg65AxiDdrRdata

0x104 - axi ddr read data num

source

pub fn swreg66_axi_ddr_wdata(&self) -> &Swreg66AxiDdrWdata

0x108 - axi ddr write data number

source

pub fn swreg68_performance_sel(&self) -> &Swreg68PerformanceSel

0x110 -

source

pub fn swreg69_performance_cnt0(&self) -> &Swreg69PerformanceCnt0

0x114 -

source

pub fn swreg70_performance_cnt1(&self) -> &Swreg70PerformanceCnt1

0x118 -

source

pub fn swreg71_performance_cnt2(&self) -> &Swreg71PerformanceCnt2

0x11c -

source

pub fn swreg72_h264_refer30_poc(&self) -> &Swreg72H264Refer30Poc

0x120 - the poc of reference picture index 30

source

pub fn swreg73_h264_refer31_poc(&self) -> &Swreg73H264Refer31Poc

0x124 - the poc of reference picture index 31

source

pub fn swreg74_h264_cur_poc1(&self) -> &Swreg74H264CurPoc1

0x128 - h264 cur poc for bottom filed

source

pub fn swreg75_h264_errorinfo_base(&self) -> &Swreg75H264ErrorinfoBase

0x12c - h264 error info base addr

source

pub fn swreg76_h264_errorinfo_num(&self) -> &Swreg76H264ErrorinfoNum

0x130 - h264 error info num

source

pub fn swreg77_h264_error_e(&self) -> &Swreg77H264ErrorE

0x134 - h264 error enable high bits

Trait Implementations§

source§

impl Debug for Rkvdec

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Deref for Rkvdec

§

type Target = RegisterBlock

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl Send for Rkvdec

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.