Struct rk3399_pac::Vepu

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

Video Processor Unit (VPU) Encoder Registers

Implementations§

source§

impl Vepu

source

pub const PTR: *const RegisterBlock = {0xff650000 as *const vepu::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 swreg_0(&self) -> &Swreg0

0x00 - 1st quantization for jpeg lumin table

source

pub fn swreg_1(&self) -> &Swreg1

0x04 - 2st quantization for jpeg lumin table

source

pub fn swreg_2(&self) -> &Swreg2

0x08 - 3st quantization for jpeg lumin table

source

pub fn swreg_3(&self) -> &Swreg3

0x0c - 4st quantization for jpeg lumin table

source

pub fn swreg_4(&self) -> &Swreg4

0x10 - 5st quantization for jpeg lumin table

source

pub fn swreg_5(&self) -> &Swreg5

0x14 - 6st quantization for jpeg lumin table/part 1 for qp round

source

pub fn swreg_6(&self) -> &Swreg6

0x18 - 7st quantization for jpeg lumin table

source

pub fn swreg_7(&self) -> &Swreg7

0x1c - 8st quantization for jpeg lumin table

source

pub fn swreg_8(&self) -> &Swreg8

0x20 - 9st quantization for jpeg lumin table

source

pub fn swreg_9(&self) -> &Swreg9

0x24 - 10st quantization for jpeg lumin table

source

pub fn swreg_10(&self) -> &Swreg10

0x28 - 11st quantization for jpeg lumin table

source

pub fn swreg_11(&self) -> &Swreg11

0x2c - 12st quantization for jpeg lumin table

source

pub fn swreg_12(&self) -> &Swreg12

0x30 - 13st quantization for jpeg lumin table

source

pub fn swreg_13(&self) -> &Swreg13

0x34 - 14st quantization for jpeg lumin table

source

pub fn swreg_14(&self) -> &Swreg14

0x38 - 15st quantization for jpeg lumin table

source

pub fn swreg_15(&self) -> &Swreg15

0x3c - 16st quantization for jpeg lumin table

source

pub fn swreg_16(&self) -> &Swreg16

0x40 - 1st quantization for jpeg chroma table

source

pub fn swreg_17(&self) -> &Swreg17

0x44 - 2st quantization for jpeg chroma table

source

pub fn swreg_18(&self) -> &Swreg18

0x48 - 3st quantization for jpeg chroma table

source

pub fn swreg_19(&self) -> &Swreg19

0x4c - 4st quantization for jpeg chroma table

source

pub fn swreg_20(&self) -> &Swreg20

0x50 - 5st quantization for jpeg chroma table

source

pub fn swreg_21(&self) -> &Swreg21

0x54 - 6st quantization for jpeg chroma table

source

pub fn swreg_22(&self) -> &Swreg22

0x58 - 7st quantization for jpeg chroma table

source

pub fn swreg_23(&self) -> &Swreg23

0x5c - 8st quantization for jpeg chroma table/part 3 for qp round

source

pub fn swreg_24(&self) -> &Swreg24

0x60 - 9st quantization for jpeg chroma table

source

pub fn swreg_25(&self) -> &Swreg25

0x64 - 10st quantization for jpeg chroma table

source

pub fn swreg_26(&self) -> &Swreg26

0x68 - 11st quantization for jpeg chroma table

source

pub fn swreg_27(&self) -> &Swreg27

0x6c - 12st quantization for jpeg chroma

source

pub fn swreg_28(&self) -> &Swreg28

0x70 - 13st quantization for jpeg chroma

source

pub fn swreg_29(&self) -> &Swreg29

0x74 - 14st quantization for jpeg chroma

source

pub fn swreg_30(&self) -> &Swreg30

0x78 - 15st quantization for jpeg chroma

source

pub fn swreg_31(&self) -> &Swreg31

0x7c - 16st quantization for jpeg chroma

source

pub fn swreg_44(&self) -> &Swreg44

0xb0 - Intra slice bitmap

source

pub fn swreg_45(&self) -> &Swreg45

0xb4 - Intra slice bitmap

source

pub fn swreg_46(&self) -> &Swreg46

0xb8 - intra macro block sellect register

source

pub fn swreg_47(&self) -> &Swreg47

0xbc - CIR intra control register

source

pub fn swreg_48(&self) -> &Swreg48

0xc0 - input luma start address

source

pub fn swreg_49(&self) -> &Swreg49

0xc4 - input cb start address

source

pub fn swreg_50(&self) -> &Swreg50

0xc8 - input cr start address

source

pub fn swreg_51(&self) -> &Swreg51

0xcc - stream header bits left register

source

pub fn swreg_52(&self) -> &Swreg52

0xd0 - stream header bits left register

source

pub fn swreg_53(&self) -> &Swreg53

0xd4 - stream buffer register

source

pub fn swreg_54(&self) -> &Swreg54

0xd8 - axi control register

source

pub fn swreg_55(&self) -> &Swreg55

0xdc - qp related

source

pub fn swreg_56(&self) -> &Swreg56

0xe0 - the luma reference frame start address

source

pub fn swreg_57(&self) -> &Swreg57

0xe4 - the chroma reference frame start address

source

pub fn swreg_58(&self) -> &Swreg58

0xe8 - the result of qp sum div2

source

pub fn swreg_59(&self) -> &Swreg59

0xec - Register0000 Abstract

source

pub fn swreg_60(&self) -> &Swreg60

0xf0 - Register0001 Abstract

source

pub fn swreg_61(&self) -> &Swreg61

0xf4 - input luminance information

source

pub fn swreg_62(&self) -> &Swreg62

0xf8 - rlc_sum

source

pub fn swreg_63(&self) -> &Swreg63

0xfc - the reconstructed luma start address

source

pub fn swreg_64(&self) -> &Swreg64

0x100 - the reconstructed chroma start address

source

pub fn swreg_65_reuse(&self) -> &Swreg65Reuse

0x104 - checkpoint 1 and 2

source

pub fn swreg_66_reuse(&self) -> &Swreg66Reuse

0x108 - checkpoint 3 and 4

source

pub fn swreg_67_reuse(&self) -> &Swreg67Reuse

0x10c - checkpoint 5 and 6

source

pub fn swreg_68_reuse(&self) -> &Swreg68Reuse

0x110 - checkpoint 7 and 8

source

pub fn swreg_69_reuse(&self) -> &Swreg69Reuse

0x114 - checkpoint 9 and 10

source

pub fn swreg_70_reuse(&self) -> &Swreg70Reuse

0x118 - checkpoint word error 1 and 2

source

pub fn swreg_71_reuse(&self) -> &Swreg71Reuse

0x11c - checkpoint word error 1 and 2

source

pub fn swreg_72_reuse(&self) -> &Swreg72Reuse

0x120 - checkpoint word error 1 and 2

source

pub fn swreg_73_reuse(&self) -> &Swreg73Reuse

0x124 - checkpoint delta QP register

source

pub fn swreg_74(&self) -> &Swreg74

0x128 - input image format

source

pub fn swreg_75(&self) -> &Swreg75

0x12c - intra/inter mode

source

pub fn swreg_76_reuse(&self) -> &Swreg76Reuse

0x130 - encoder control regsiter 0

source

pub fn swreg_77(&self) -> &Swreg77

0x134 - output stream start address

source

pub fn swreg_78(&self) -> &Swreg78

0x138 - output control start address

source

pub fn swreg_79(&self) -> &Swreg79

0x13c - next picture luminance start address

source

pub fn swreg_80(&self) -> &Swreg80

0x140 - Base address for MV output

source

pub fn swreg_81(&self) -> &Swreg81

0x144 - the cabac table start address

source

pub fn swreg_82(&self) -> &Swreg82

0x148 - the first of ROI area register

source

pub fn swreg_83(&self) -> &Swreg83

0x14c - the second of ROI area register

source

pub fn swreg_84(&self) -> &Swreg84

0x150 - Stabilization matrix

source

pub fn swreg_85(&self) -> &Swreg85

0x154 - Stabilization matrix

source

pub fn swreg_86(&self) -> &Swreg86

0x158 - Stabilization matrix

source

pub fn swreg_87(&self) -> &Swreg87

0x15c - Stabilization matrix

source

pub fn swreg_88(&self) -> &Swreg88

0x160 - Stabilization matrix

source

pub fn swreg_89(&self) -> &Swreg89

0x164 - Stabilization matrix

source

pub fn swreg_90(&self) -> &Swreg90

0x168 - Stabilization matrix

source

pub fn swreg_91(&self) -> &Swreg91

0x16c - Stabilization matrix

source

pub fn swreg_92(&self) -> &Swreg92

0x170 - Stabilization matrix

source

pub fn swreg_93(&self) -> &Swreg93

0x174 - the output of Stabilization motion sum

source

pub fn swreg_94(&self) -> &Swreg94

0x178 - output of Stabilization

source

pub fn swreg_95(&self) -> &Swreg95

0x17c - RGB to YUV conversion coefficient register

source

pub fn swreg_96(&self) -> &Swreg96

0x180 - RGB to YUV conversion coefficient register

source

pub fn swreg_97(&self) -> &Swreg97

0x184 - RGB to YUV conversion coefficient register

source

pub fn swreg_98(&self) -> &Swreg98

0x188 - RGA MASK

source

pub fn swreg_99(&self) -> &Swreg99

0x18c - mv related

source

pub fn swreg_100_reuse(&self) -> &Swreg100Reuse

0x190 - QP register

source

pub fn swreg_101_read(&self) -> &Swreg101Read

0x194 - hw config reg

source

pub fn swreg_102(&self) -> &Swreg102

0x198 - mvc related

source

pub fn swreg_103(&self) -> &Swreg103

0x19c - encoder start

source

pub fn swreg_104(&self) -> &Swreg104

0x1a0 - mb control register

source

pub fn swreg_105(&self) -> &Swreg105

0x1a4 - SWAP

source

pub fn swreg_106_reuse(&self) -> &Swreg106Reuse

0x1a8 - encoder control register 1

source

pub fn swreg_107_reuse(&self) -> &Swreg107Reuse

0x1ac - JPEG control regsiter

source

pub fn swreg_108_reuse(&self) -> &Swreg108Reuse

0x1b0 - intra_slice_bmp2

source

pub fn swreg_109(&self) -> &Swreg109

0x1b4 - encoder status

source

pub fn swreg_110_read(&self) -> &Swreg110Read

0x1b8 - product ID

source

pub fn swreg_120_183(&self) -> &Swreg120_183

0x1e0 - DMV_4p_1p_penalty

Trait Implementations§

source§

impl Debug for Vepu

source§

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

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

impl Deref for Vepu

§

type Target = RegisterBlock

The resulting type after dereferencing.
source§

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

Dereferences the value.
source§

impl Send for Vepu

Auto Trait Implementations§

§

impl Freeze for Vepu

§

impl RefUnwindSafe for Vepu

§

impl !Sync for Vepu

§

impl Unpin for Vepu

§

impl UnwindSafe for Vepu

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.