Rockchip Developer Guide RKIVE en
Rockchip Developer Guide RKIVE en
Reproduction is prohibited .)
瑞芯微电子股份有限公司
Disclaimer
This document is provided "as is." Rockchip Electronics Co., Ltd. ("Rockchip")
makes no representations or warranties, express or implied, as to the accuracy,
reliability, completeness, merchantability, fitness for a particular purpose, or non-
infringement of any statements, information, or content herein. This document is
for reference only.
Due to product upgrades or other reasons, this document may be updated or
revised from time to time without notice.
Trademark Notice
"Rockchip," "Rockchip Micro," and "Rockchip" are registered trademarks of
Rockchip and are owned by Rockchip. All other registered trademarks or
trademarks mentioned in this document are the property of their respective
owners.
Copyright © 2022 Rockchip Electronics Co., Ltd.
Exceeding the scope of fair use, any entity or individual may not excerpt or
reproduce the contents of this document, in whole or in part, or disseminate them
in any form without the written permission of Rockchip.
2
瑞芯微电子股份有限公司
Customer Service Fax: +86-591-83951833
3
瑞芯微电子股份有限公司
Preface
Target audience
Applicable platforms
RV1103
RV1106
Version History
4
瑞芯微电子股份有限公司
Table of contents
Preface ..........................................................................................................................................................3
5
瑞芯微电子股份有限公司
RK_MPI_IVE_CSC ....................................................................................................................................33
RK_MPI_IVE_Sobel ..................................................................................................................................35
RK_MPI_IVE_MagAndAng ......................................................................................................................37
RK_MPI_IVE_Dilate ..................................................................................................................................40
RK_MPI_IVE_Erode ..................................................................................................................................42
RK_MPI_IVE_Add .....................................................................................................................................43
RK_MPI_IVE_And .....................................................................................................................................45
RK_MPI_IVE_Sub .....................................................................................................................................46
RK_MPI_IVE_Or .......................................................................................................................................48
RK_MPI_IVE_Xor .....................................................................................................................................49
RK_MPI_IVE_Integ ...................................................................................................................................51
RK_MPI_IVE_Hist .....................................................................................................................................53
RK_MPI_IVE_Thresh ................................................................................................................................55
RK_MPI_IVE_Thresh_u16 ........................................................................................................................57
RK_MPI_IVE_Thresh_s16 .........................................................................................................................58
RK_MPI_IVE_16bitto8bit ..........................................................................................................................60
RK_MPI_IVE_8bitto8bit ............................................................................................................................61
RK_MPI_IVE_OrdStatFilter .......................................................................................................................63
RK_MPI_IVE_Map ....................................................................................................................................65
RK_MPI_IVE_EqualizeHist .......................................................................................................................67
RK_MPI_IVE_Ncc .....................................................................................................................................69
RK_MPI_IVE_CCL ....................................................................................................................................70
RK_MPI_IVE_Gmm ..................................................................................................................................72
RK_MPI_IVE_Gmm2 ................................................................................................................................74
RK_MPI_IVE_CannyEdge .........................................................................................................................78
RK_MPI_IVE_LBP ....................................................................................................................................80
RK_MPI_IVE_NormGrad ..........................................................................................................................82
RK_MPI_IVE_LKOpticalFlowPyr .............................................................................................................83
RK_MPI_IVE_LKOpticalFlow ..................................................................................................................85
RK_MPI_IVE_STCandiCorner ..................................................................................................................87
RK_MPI_IVE_STCorner ............................................................................................................................89
RK_MPI_IVE_MatchBgModel ..................................................................................................................91
RK_MPI_IVE_UpdateBgModel .................................................................................................................93
RK_MPI_IVE_SAD ...................................................................................................................................96
RK_MPI_IVE_Warp_Affine_Init ...............................................................................................................98
RK_MPI_IVE_Warp_Affine ......................................................................................................................99
RK_MPI_IVE_Pyramid_GetSize ..............................................................................................................100
RK_MPI_IVE_Pyramid_Create ................................................................................................................101
RK_MPI_IVE_Query ................................................................................................................................103
6. Data Types and Structures ...............................................................................................................105
IVE_IMAGE_S .........................................................................................................................................105
IVE_SRC_IMAGE_S ...............................................................................................................................105
6
瑞芯微电子股份有限公司
IVE_DST_IMAGE_S ...............................................................................................................................105
IVE_DATA_S ...........................................................................................................................................106
IVE_SRC_DATA_S .................................................................................................................................106
IVE_DST_DATA_S .................................................................................................................................106
IVE_MEM_INFO_S .................................................................................................................................107
IVE_SRC_MEM_INFO_S ........................................................................................................................107
IVE_DST_MEM_INFO_S ........................................................................................................................107
IVE_DMA_CTRL_S ................................................................................................................................108
IVE_FILTER_CTRL_S ............................................................................................................................109
IVE_CSC_CTRL_S ..................................................................................................................................110
IVE_SOBEL_CTRL_S .............................................................................................................................112
IVE_MAG_AND_ANG_CTRL_S ...........................................................................................................113
IVE_DILATE_CTRL_S ...........................................................................................................................113
IVE_ERODE_CTRL_S ............................................................................................................................114
IVE_ADD_CTRL_S .................................................................................................................................114
IVE_SUB_CTRL_S ..................................................................................................................................115
IVE_INTEG_CTRL_S ..............................................................................................................................115
IVE_THRESH_CTRL_S ..........................................................................................................................116
IVE_8BIT_TO_8BIT_CTRL_S ................................................................................................................118
IVE_16BIT_TO_8BIT_CTRL_S ..............................................................................................................118
IVE_ORD_STAT_FILTER_CTRL_S ......................................................................................................120
IVE_MAP_CTRL_S .................................................................................................................................121
IVE_EQHIST_CTRL_S ............................................................................................................................121
IVE_CCL_CTRL_S ..................................................................................................................................122
IVE_CANNY_EDGE_CTRL_S ...............................................................................................................123
IVE_LBP_CTRL_S ..................................................................................................................................124
IVE_GMM_CTRL_S ................................................................................................................................125
IVE_GMM2_CTRL_S ..............................................................................................................................127
IVE_LK_OPTICAL_FLOW_CTRL_S ....................................................................................................130
IVE_LK_OPTICAL_FLOW_PYR_CTRL_S ...........................................................................................131
IVE_ST_CANDI_CORNER_CTRL_S; ...................................................................................................132
IVE_ST_CORNER_CTRL_S; ..................................................................................................................133
IVE_MATCH_BG_MODEL_CTRL_S ....................................................................................................134
IVE_UPDATE_BG_MODEL_CTRL_S ..................................................................................................135
IVE_SAD_CTRL_S ..................................................................................................................................136
IVE_WARP_AFFINE_CTRL_S ..............................................................................................................137
IVE_PYRAMID_CTRL_S .......................................................................................................................138
7
1.概述 瑞芯微电子股份有限公司
1. Overview
accelerate video image analysis and reduce CPU The current hardware version
8
1.概述 瑞芯微电子股份有限公司
Or Xor CCL
bitwise or of two images bitwise xor of two images Connected-component labeling , identify blobs of
pixels in an image
9
1.概述 瑞芯微电子股份有限公司
10
2. 入门指南 瑞芯微电子股份有限公司
2. Getting Started
RKIVE The software includes the following parts, based on RV1103/RV1106 SDK
For example:
media/ive/ive/
├── [Link]
│ ├── rk_comm_ive.h
│ ├── rk_ive.h
│ └── rk_mpi_ive.h
│ ├── main.c
│ ├── sample_comm_mem.h
│ ├── sample_comm_rve.c
│ ├── sample_comm_rve.h
│ └── sample_rve_mem.c
└── simulator
The simulator The file contains RKIVE Reference examples for all interface
calls can be verified and developed based on the Windows Visual Studio
RKIVE The path of the device driver in the development board file system is
/oem/usr/ko/[Link] . Check before running
/dev/rve Check whether the node exists to confirm whether the device driver is
loaded. If automatic loading at startup is not configured, you can modify the
script /oem/usr/ko/insmod_ko.sh and add insmod [Link] at the end of the script .
12
2. 入门指南 瑞芯微电子股份有限公司
RKIVE The input and output buffer types required by the functional interface
platforms, memory is allocated based on the different buffer types and the
output buffers:
SAMPLE_COMM_IVE_CreateImage
SAMPLE_COMM_IVE_CreateMemInfo
SAMPLE_COMM_IVE_CreateData
After the operator is finished running, the MmzFree interface is called, the
to get the MB_BLK pointer by the cache virtual address and call
data. The row span is generally set to a value greater than or equal to the width
Address alignment
Some operators require the allocated input and output buffer first address to be
13
2. 入门指南 瑞芯微电子股份有限公司
1 byte or 16 bytes Alignment, see API for details illustrate.
CPU cache
When there is a CPU In the case of intervention, the cacheable When pre-
processing or post-processing the input and output cache contents, you need
cache . Prevent input and output data from being lost due to cache Error caused
by not refreshing.
One-dimensional data
14
2. 入门指南 瑞芯微电子股份有限公司
Two-dimensional data
IVE_DATA_S .
2D images
It can be used to represent image data with one or more channels. The width
and height of each channel are consistent, and the stride, starting virtual
Task ID ( handle )
The system assigns a task ID to each operator call . Is a constant greater than
zero. If the returned task
Each operator calls the API All with bInstant Parameters. When bInstant If set to
RK_TRUE , the current call will be blocked until the hardware completes the
execution and returns the result. If set to RK_FALSE , the current call returns
batch mode. This can reduce the number of interrupts, lower the CPU load ,
15
2. 入门指南 瑞芯微电子股份有限公司
Figure 2-1
initialization
Memory allocation
Call RK_MPI_MMZ_Alloc to allocate memory for the input image and output
RK_MMZ_ALLOC_CACHEABLE .
run
Query
Post-processing
The CPU prints the histogram statistics of the hardware output to ddr .
Finish
17
2. 入门指南 瑞芯微电子股份有限公司
Sample Code:
#include <rk_mpi_ive.h>
#include <rk_mpi_mmz.h>
RK_U32 u32Width = 16
; RK_U32 u32Height =
16 ; RK_U32 u32Size =
0;
IVE_HANDLE IveHandle = 0;
IVE_SRC_IMAGE_S stSrc = {0};
IVE_DST_MEM_INFO_S stHist = {0};
if (s32Ret == 0 ) {
stHist . u64PhyAddr = RK_MPI_MB_Handle2PhysAddr (stMB);
stHist .u64VirAddr = RK_MPI_MB_Handle2VirAddr (stMB) ;
stHist . u32Size = u32Size;
} else {
printf (stderr, "Create hist mem info failed \n
"); goto End;
}
// run histogram
18
2. 入门指南 瑞芯微电子股份有限公司
s32Ret = RK_MPI_IVE_Hist (&IveHandle, & stSrc, &stHist,
bInstant); if (s32Ret < 0 ) {
19
2. 入门指南 瑞芯微电子股份有限公司
printf (stderr, "RK_MPI_IVE_Hist failed \n
"); goto End;
}
if (s32Ret < 0 ) {
printf (stderr, "RK_MPI_IVE_Query failed \n
"); goto End;
}
RK_MMZ_ALLOC_TYPE_CMA); End:
// free memory
if ( stSrc . au64VirAddr [ 0 ] != 0 ) {
stMB = RK_MPI_MB_VirAddr2Handle (( void *) stSrc . au64VirAddr [ 0 ]);
RK_MPI_MMZ_Free (stMB);
stSrc . au64VirAddr [ 0 ] = 0 ;
stSrc . au64PhyAddr [ 0 ] = 0 ;
}
if ( stHist . u64VirAddr != 0 ) {
stMB = RK_MPI_MB_VirAddr2Handle (( void *) stHist . u64VirAddr );
RK_MPI_MMZ_Free (stMB);
stHist . u64VirAddr = 0 ;
stHist . u64PhyAddr = 0 ;
}
return 0 ;
}
20
3. Proc 调试信息 瑞芯微电子股份有限公司
3.1. Overview
Debug information is stored in Linux proc The file system records hardware
analysis.
File Node
/proc/rve
Instructions
monitor!
monitor!
Debug information:
scheduler : hardware processor entity
21
3. Proc 调试信息 瑞芯微电子股份有限公司
rd_bandwidth: Read DDR Data volume
22
3. Proc 调试信息 瑞芯微电子股份有限公司
# cat /proc/rve/scheduler_status
num of scheduler = 1
===================================
scheduler[0]: rve
---------------------------------- -
pd_ref = 17
total_int_cnt = 17
cycle_cnt/s: 685
# cat /proc/rve/load
num of scheduler = 1
================= load ==================
scheduler[0]: rve
load = 0
---------------- PID INFO -------------- -
last_job_cycle_cnt/s: 685
23
3. Proc 调试信息 瑞芯微电子股份有限公司
If the operation fails, please check the returned error code. The error code description is
shown in the following table:
24
4. 图像格式示意图 瑞芯微电子股份有限公司
Figure 4-1
YUV420SP format
Figure 4-2
25
4. 图像格式示意图 瑞芯微电子股份有限公司
YUV420P format
Figure 4-3
YUV422SP format
Figure 4- 4
26
4. 图像格式示意图 瑞芯微电子股份有限公司
YUV422P format
Figure 4-5
U8C1 format
Figure 4-6
27
4. 图像格式示意图 瑞芯微电子股份有限公司
Figure 4-7
Figure 4-8
28
5. API 参考 瑞芯微电子股份有限公司
5. API refer to
RK_MPI_IVE_DMA : Direct memory access, supporting fast copy, interval copy, and memory filling.
RK_MPI_IVE_Filter : 5X5 Template filtering tasks can achieve different filtering by configuring different
template coefficients.
RK_MPI_IVE_CSC : color space conversion, which can realize YUV , RGB , HSV Color space conversion.
RK_MPI_IVE_Thresh_S16 : 16 with sign bit bit data to 8 Threshold binarization operation for bit data.
RK_MPI_IVE_Map : Image pixel value mapping is performed according to the lookup table.
30
5. API 参考 瑞芯微电子股份有限公司
RK_MPI_IVE_STCandiCorner : The first step of image corner detection is to calculate the corresponding
intensity of the corner points and filter the corner points.
RK_MPI_IVE_STCorner : The second step of image corner detection is to sort the candidate corner
points according to the rules.
RK_MPI_IVE_SAD : Calculate the two images in 4X4\8X8\16X16 Blocked 16 Bit \8 SAD Image, and SAD
Threshold the output.
RK_MPI_IVE_Pyramid_GetSize : Gets the auxiliary memory size required to generate the image pyramid.
31
5. API 参考 瑞芯微电子股份有限公司
RK_MPI_IVE_Init
Return value :
0 成功。
非 失败,参见错误码。
0
Quote:
"Notice" :
External applications using IVE Before calling a series of operators, call this
interface in the program initialization part to complete the IVE
system resources.
After finishing using IVE related functions, you must call RK_MPI_IVE_Deinit to
32
5. API 参考 瑞芯微电子股份有限公司
RK_MPI_IVE_Deinit
33
5. API 参考 瑞芯微电子股份有限公司
Return value:
0 成功。
非 失败,参见错误码。
0
Quote:
"Notice" :
External applications no longer use IVE After that, when the program exits, call
this interface to destroy IVE Context.
Before using this interface, make sure RK_MPI_IVE_Init has been called. Complete
IVE Initialization work.
RK_MPI_IVE_CvtImageToData
IVE_DATA_S *data);
"parameter":
34
5. API 参考 瑞芯微电子股份有限公司
image Input image pointer. enter
Cannot be empty.
Cannot be empty.
35
5. API 参考 瑞芯微电子股份有限公司
Return value:
0 成功。
非 失败,参见错误码。
0
"Require":
Quote:
"Notice" :
In this mode, the structure type conversion only supports a single planar input
image type. image.
RK_MPI_IVE_CvtDataToImage
IVE_IMAGE_S *image);
"parameter":
Cannot be empty.
Cannot be empty.
37
5. API 参考 瑞芯微电子股份有限公司
Return value:
0 成功。
非 失败,参见错误码。
0
"Require":
Quote:
"Notice" :
RK_MPI_IVE_CvtImageToMemInfo
IVE_MEM_INFO_S *mem);
"parameter":
38
5. API 参考 瑞芯微电子股份有限公司
Cannot be empty.
Cannot be empty.
39
5. API 参考 瑞芯微电子股份有限公司
Return value:
0 成功。
非 失败,参见错误码。
0
"Require":
Quote:
"Notice" :
In this mode, the structure type conversion only supports a single planar input
image type. image.
RK_MPI_IVE_DMA
Direct memory access, supporting fast copy, interval copy, and memory filling
IVE_DATA_S *pstSrc,
IVE_DST_DATA_S *pstDst,
IVE_DMA_CTRL_S *pstDmaCtrl,
bool bInstant);
40
5. API 参考 瑞芯微电子股份有限公司
"parameter":
Cannot be empty.
Cannot be empty.
Cannot be empty in
copy mode
pstDmaCtrl DMA control enter
parameter pointer.
Cannot be empty.
bInstant Return the result flag enter
in time.
Return value:
0 成功。
非 失败,参见错误码。
0
"Require":
41
5. API 参考 瑞芯微电子股份有限公司
Quote:
"Notice" :
Interval copy method: Split the first row of data in each u8VerSegRows row
into segments of u8HorSegSize size , and copy the first u8ElemSize size bytes
in each segment .
Use only pstSrc and u64Val Low 3 Bytes are used to fill the source data; when
the end of a line is not enough for 3 Bytes , fill with the low byte of u64Val .
Use only pstSrc and u64Val Fill the source data; when the end of a line is less than
8 Bytes, use
RK_MPI_IVE_Filter
IVE_SRC_IMAGE_S *pstSrc,
IVE_DST_IMAGE_S *pstDst,
IVE_FILTER_CTRL_S *pstFltCtrl,
bool bInstant);
43
5. API 参考 瑞芯微电子股份有限公司
"parameter":
Cannot be empty.
Cannot be empty.
Cannot be empty.
pstFltCtrl Filter Control enter
parameter pointer.
Cannot be empty.
bInstant Return the result flag enter
in time.
Return value:
0 成功。
非 失败,参见错误码。
0
"Require":
YUV420SP , YUV422SP
YUV420SP , YUV422SP
44
5. API 参考 瑞芯微电子股份有限公司
Quote:
"Notice" :
RK_MPI_IVE_CSC
Color space conversion, can achieve YUV , RGB , HSV Color space conversion.
IVE_SRC_IMAGE_S *pstSrc,
IVE_DST_IMAGE_S *pstDst,
IVE_CSC_CTRL_S *pstCscCtrl,
bool bInstant);
45
5. API 参考 瑞芯微电子股份有限公司
Parameters :
Cannot be empty.
Cannot be empty.
Cannot be empty.
pstCscCtrl CSC Control enter
parameter pointer.
Cannot be empty.
bInstant Return the result flag enter
in time.
Return value :
0 成功。
非 失败,参见错误码。
0
"Require" :
U8C3_PACKAGE ,
U8C3_PLANAR 、
YUV420SP , YUV422SP
U8C3_PACKAGE ,
U8C3_PLANAR 、
YUV420SP , YUV422SP
46
5. API 参考 瑞芯微电子股份有限公司
Quote :
"Notice" :
When the output image is in multi-plane format, the output data span must be
consistent.
RK_MPI_IVE_Sobel
IVE_SRC_IMAGE_S *pstSrc,
IVE_DST_IMAGE_S * pstDstH,
IVE_SRC_IMAGE_S * pstDstV ,
IVE_SOBEL_CTRL_S *pstSobelCtrl,
bool bInstant);
47
5. API 参考 瑞芯微电子股份有限公司
Parameters :
Cannot be empty.
Cannot be empty.
image pointer
obtained after
filtering.
Cannot be empty.
pstDstV The vertical image Output
pointer obtained
after filtering.
Cannot be empty.
pstCscCtrl CSC Control enter
parameter pointer.
Cannot be empty.
bInstant Return the result flag enter
in time.
Return value :
0 成功。
非 失败,参见错误码。
0
"Require" :
48
5. API 参考 瑞芯微电子股份有限公司
pstDstV S16C1 1 byte 5x5~2047x2047
49
5. API 参考 瑞芯微电子股份有限公司
Quote :
"Notice" :
RK_MPI_IVE_MagAndAng
IVE_SRC_IMAGE_S *pstSrc,
IVE_DST_IMAGE_S *pstDstMag,
IVE_DST_IMAGE_S *pstDstAng,
IVE_MAG_AND_ANG_CTRL_S *pstMagAndAngCtrl,
bool bInstant);
50
5. API 参考 瑞芯微电子股份有限公司
Parameters :
Cannot be empty.
Cannot be empty.
Cannot be empty.
pstDstAng Output argument image Output
pointer.
Cannot be empty.
pstMagAndAngCtrl Control parameter enter
pointer.
Cannot be empty.
bInstant Return the result flag in enter
time.
Return value :
0 成功。
非 失败,参见错误码。
0
"Require" :
51
5. API 参考 瑞芯微电子股份有限公司
Quote :
"Notice" :
𝑉 𝑜𝑢𝑡 = ∑ ∑ 𝐼 ( 𝑥 + 𝑖, 𝑦 + 𝑗 ) ∗ 𝑐𝑜𝑒𝑓(𝑗, 𝑖)
−2≤𝑗≤2 −2≤𝑖≤2
coefficient for calculating the gradient , 𝐻 𝑜𝑢𝑡 is the horizontal image gradient,
and 𝑉 𝑜𝑢𝑡 is the vertical image gradient. 𝑀𝑎𝑔 ( 𝑥 , 𝑦 ) is the image gradient
amplitude.
The formula for calculating the argument is as follows :
𝐻 𝑜𝑢𝑡 = ∑ ∑ 𝐼 ( 𝑥 + 𝑖, 𝑦 + 𝑗 ) ∗ 𝑐𝑜𝑒𝑓(𝑖, 𝑗)
−2≤𝑗≤2 −2≤𝑖≤2
𝑉 𝑜𝑢𝑡 = ∑ ∑ 𝐼 ( 𝑥 + 𝑖, 𝑦 + 𝑗 ) ∗ 𝑐𝑜𝑒𝑓(𝑗, 𝑖)
−2≤𝑗≤2 −2≤𝑖≤2
𝑉 𝑜𝑢 𝑡
𝜃 ( 𝑥, 𝑦 ) = 𝑎𝑟𝑐𝑡𝑎𝑛 ( )
𝐻 𝑜𝑢𝑡
52
5. API 参考 瑞芯微电子股份有限公司
Figure 5-1
RK_MPI_IVE_Dilate
IVE_SRC_IMAGE_S *pstSrc,
IVE_DST_IMAGE_S *pstDst,
IVE_DILATE_CTRL_S *pstDilateCtrl,
bool bInstant);
53
5. API 参考 瑞芯微电子股份有限公司
Parameters :
Cannot be empty.
Cannot be empty.
Cannot be empty.
pstDilateCtrl Control parameter enter
pointer.
Cannot be empty.
bInstant Return the result flag enter
in time.
Return value :
0 成功。
非 失败,参见错误码。
0
"Require" :
Quote :
54
5. API 参考 瑞芯微电子股份有限公司
"Notice" :
RK_MPI_IVE_Erode
IVE_SRC_IMAGE_S *pstSrc,
IVE_DST_IMAGE_S *pstDst,
IVE_ERODE_CTRL_S *pstErodeCtrl,
bool bInstant);
Parameters :
Cannot be empty.
Cannot be empty.
Cannot be empty.
pstErodeCtrl Control parameter enter
pointer.
Cannot be empty.
bInstant Return the result flag enter
in time.
Return value :
0 成功。
非 失败,参见错误码。
0
55
5. API 参考 瑞芯微电子股份有限公司
"Require" :
Quote :
"Notice" :
RK_MPI_IVE_Add
IVE_SRC_IMAGE_S *pstSrc1,
IVE_SRC_IMAGE_S *pstSrc2,
IVE_DST_IMAGE_S *pstDst,
IVE_ADD_CTRL_S *pstAddCtrl,
bool bInstant);
56
5. API 参考 瑞芯微电子股份有限公司
Parameters :
Cannot be empty.
Cannot be empty.
pstSrc2 Source Image 2 enter
pointer.
Cannot be empty.
pstDst Output image Output
pointer.
Cannot be empty.
pstAddCtrl Control parameter enter
pointer.
Cannot be empty.
bInstant Return the result flag enter
in time.
Return value :
0 成功。
非 失败,参见错误码。
0
"Require" :
57
5. API 参考 瑞芯微电子股份有限公司
Quote :
"Notice" :
RK_MPI_IVE_And
IVE_SRC_IMAGE_S *pstSrc1,
IVE_SRC_IMAGE_S *pstSrc2,
IVE_DST_IMAGE_S *pstDst,
bool bInstant);
Parameters :
Cannot be empty.
Cannot be empty.
pstSrc2 Source Image 2 enter
pointer.
Cannot be empty.
pstDst Output image Output
pointer.
Cannot be empty.
58
5. API 参考 瑞芯微电子股份有限公司
bInstant Return the result flag enter
in time.
59
5. API 参考 瑞芯微电子股份有限公司
Return value :
0 成功。
非 失败,参见错误码。
0
"Require" :
Quote :
"Notice" :
RK_MPI_IVE_Sub
IVE_SRC_IMAGE_S *pstSrc1,
IVE_SRC_IMAGE_S *pstSrc2,
IVE_DST_IMAGE_S *pstDst,
60
5. API 参考 瑞芯微电子股份有限公司
IVE_SUB_CTRL_S *pstSubCtrl,
bool bInstant);
61
5. API 参考 瑞芯微电子股份有限公司
Parameters :
Cannot be empty.
Cannot be empty.
pstSrc2 Source Image 2 enter
pointer.
Cannot be empty.
pstDst Output image Output
pointer.
Cannot be empty.
bInstant Return the result flag enter
in time.
Return value :
0 成功。
非 失败,参见错误码。
0
"Require" :
Quote :
"Notice" :
RK_MPI_IVE_Or
IVE_SRC_IMAGE_S *pstSrc1,
IVE_SRC_IMAGE_S *pstSrc2,
IVE_DST_IMAGE_S *pstDst,
bool bInstant);
Parameters :
Cannot be empty.
Cannot be empty.
pstSrc2 Source Image 2 enter
pointer.
Cannot be empty.
pstDst Output image Output
pointer.
Cannot be empty.
bInstant Return the result flag enter
in time.
Return value :
0 成功。
非 失败,参见错误码。
0 63
5. API 参考 瑞芯微电子股份有限公司
"Require" :
Quote :
"Notice" :
RK_MPI_IVE_Xor
IVE_SRC_IMAGE_S *pstSrc1,
IVE_SRC_IMAGE_S *pstSrc2,
IVE_DST_IMAGE_S *pstDst,
bool bInstant);
64
5. API 参考 瑞芯微电子股份有限公司
Parameters :
Cannot be empty.
Cannot be empty.
pstSrc2 Source Image 2 enter
pointer.
Cannot be empty.
pstDst Output image Output
pointer.
Cannot be empty.
bInstant Return the result flag enter
in time.
Return value :
0 成功。
非 失败,参见错误码。
0
"Require" :
Quote :
65
5. API 参考 瑞芯微电子股份有限公司
Files
66
5. API 参考 瑞芯微电子股份有限公司
"Notice" :
RK_MPI_IVE_Integ
IVE_SRC_IMAGE_S *pstSrc,
IVE_DST_IMAGE_S *pstDst,
IVE_INTEG_CTRL_S *pstIntegCtrl,
bool bInstant);
Parameters :
Cannot be empty.
Cannot be empty.
Cannot be empty.
pstIntegCtrl Control parameter enter
pointer.
Cannot be empty.
bInstant Return the result flag enter
in time.
Return value :
0 成功。
非 失败,参见错误码。
0
67
5. API 参考 瑞芯微电子股份有限公司
"Require" :
Quote :
"Notice" :
i≤x j≤y
I sum (x, y) = ∑ ∑ I(i, j)
i≥0 j≥0
The integral value at I sum (x , y) is the sum of the grayscale values from (0,0) to (x,y) .
Figure 5-2
The integral value at I sq (x , y) is the sum of the squares of the grayscale values from
(0,0) to (x,y) .
69
5. API 参考 瑞芯微电子股份有限公司
Figure 5-3
The memory format of the sum integral graph and square sum integral graph is as
follows:
Figure 5- 4
70
5. API 参考 瑞芯微电子股份有限公司
RK_MPI_IVE_Hist
71
5. API 参考 瑞芯微电子股份有限公司
IVE_SRC_IMAGE_S *pstSrc,
IVE_DST_MEM_INFO_S *pstDst,
bool bInstant);
Parameters :
Cannot be empty.
Cannot be empty.
Cannot be empty.
bInstant Return the result flag enter
in time.
Return value :
0 成功。
非 失败,参见错误码。
0
"Require" :
Quote :
72
5. API 参考 瑞芯微电子股份有限公司
"Notice" :
RK_MPI_IVE_Thresh
IVE_SRC_IMAGE_S *pstSrc,
IVE_DST_IMAGE_S *pstDst,
IVE_THRESH_U8_CTRL_S *pstThrCtrl,
bool bInstant);
Parameters :
Cannot be empty.
Cannot be empty.
Cannot be empty.
pstThrCtrl Control parameter enter
pointer.
Cannot be empty.
bInstant Return the result flag enter
in time.
Return value :
0 成功。
非 失败,参见错误码。
73
0
5. API 参考 瑞芯微电子股份有限公司
"Require" :
Quote :
"Notice" :
TRUNC:
𝐼(𝑥, 𝑦) (𝐼(𝑥, 𝑦) ≤ 𝑙𝑜𝑤𝑇ℎ𝑟)
𝐼 𝑜𝑢𝑡 (𝑥, 𝑦) = { 𝑚𝑎igh𝑉𝑎𝑙 (𝐼(igh, 𝑦) > 𝑙𝑜𝑤𝑇ℎ𝑟)
MINVAL:
𝑚 𝑛𝑉𝑎𝑙 (𝐼(𝑥, 𝑦) ≤ 𝑙𝑜𝑤𝑇ℎ𝑟)
𝐼 (𝑥, 𝑦) = {
𝑜𝑢𝑡 𝐼(𝑥, 𝑦) (𝐼(𝑥, 𝑦) > 𝑙𝑜𝑤𝑇ℎ𝑟)
MIN_MID_MAX:
𝑚𝑖𝑛𝑉𝑎𝑙 (𝐼(𝑥, 𝑦) ≤ 𝑙𝑜𝑤𝑇ℎ𝑟)
𝐼 𝑜𝑢𝑡 ( 𝑥, 𝑦 ) = { 𝑚𝑖𝑑𝑉𝑎𝑙 (𝑙𝑜𝑤𝑇ℎ𝑟 < 𝐼(𝑥, 𝑦) ≤ ℎ𝑖𝑔ℎ𝑇ℎ𝑟)
𝑚𝑎𝑥𝑉𝑎𝑙 (𝐼(𝑥, 𝑦) > ℎ𝑖𝑔ℎ𝑇ℎ𝑟)
ORI_MID_MAX:
𝐼(𝑥, 𝑦) (𝐼(𝑥, 𝑦) ≤ 𝑙𝑜𝑤𝑇ℎ𝑟)
𝐼 𝑜𝑢𝑡 ( 𝑥, 𝑦 ) = { 𝑚𝑖𝑑𝑉𝑎𝑙 (𝑙𝑜𝑤𝑇ℎ𝑟 < 𝐼(𝑥, 𝑦) ≤ ℎ𝑖𝑔ℎ𝑇ℎ𝑟)
𝑚𝑎𝑥𝑉𝑎𝑙 (𝐼(𝑥, 𝑦) > ℎ𝑖𝑔ℎ𝑇ℎ𝑟)
74
5. API 参考 瑞芯微电子股份有限公司
75
5. API 参考 瑞芯微电子股份有限公司
MIN_MIN_ORI:
𝑚𝑖𝑛𝑉𝑎𝑙 (𝐼(𝑥, 𝑦) ≤ 𝑙𝑜𝑤𝑇ℎ𝑟)
𝐼 𝑜𝑢𝑡 ( 𝑥, 𝑦 ) = { 𝑚𝑖𝑑𝑉𝑎𝑙 (𝑙𝑜𝑤𝑇ℎ𝑟 < 𝐼(𝑥, 𝑦) ≤ ℎ𝑖𝑔ℎ𝑇ℎ𝑟)
𝐼(𝑥, 𝑦) (𝐼(𝑥, 𝑦) > ℎ𝑖𝑔ℎ𝑇ℎ𝑟)
MIN_ORI_MAX:
𝑚𝑖𝑛𝑉𝑎𝑙 (𝐼(𝑥, 𝑦) ≤ 𝑙𝑜𝑤𝑇ℎ𝑟)
𝐼 𝑜𝑢𝑡 ( igh, 𝑦 ) = { 𝐼(𝑥, 𝑦) (𝑙𝑜𝑤𝑇ℎ𝑟 < 𝐼(𝑥, 𝑦) ≤ ℎ𝑖𝑔ℎ𝑇ℎ𝑟)
𝑚𝑎𝑥𝑉𝑎𝑙 (𝐼(𝑥, 𝑦) > ℎ𝑖𝑔ℎ𝑇ℎ𝑟)
ORI_MID_ORI:
𝐼(𝑥, 𝑦) (𝐼(𝑥, 𝑦) ≤ 𝑙𝑜𝑤𝑇ℎ𝑟)
𝐼 𝑜𝑢𝑡 ( 𝑥, 𝑦 ) = { 𝑚𝑖𝑑𝑉𝑎𝑙 (𝑙𝑜𝑤𝑇ℎ𝑟 < 𝐼(𝑥, 𝑦) ≤ ℎ𝑖𝑔ℎ𝑇ℎ𝑟)
𝐼(𝑥, 𝑦) (𝐼(𝑥, 𝑦) > ℎ𝑖𝑔ℎ𝑇ℎ𝑟)
RK_MPI_IVE_Thresh_u16
IVE_SRC_IMAGE_S *pstSrc,
IVE_DST_IMAGE_S *pstDst,
IVE_THRESH_U16_CTRL_S *pstThrCtrl,
bool bInstant);
Parameters :
Cannot be empty.
Cannot be empty.
Cannot be empty.
pstThrCtrl Control parameter enter
pointer.
Cannot be empty.
bInstant Return the result flag enter
76
5. API 参考 瑞芯微电子股份有限公司
in time.
77
5. API 参考 瑞芯微电子股份有限公司
Return value :
0 成功。
非 失败,参见错误码。
0
"Require" :
Quote :
"Notice" :
IVE_THRESH_U16_MODE_U16_TO_U8_MIN_MID_MAX and
IVE_THRESH_U16_MODE_U16_TO_U8_MIN_ORI_MAX modes .
RK_MPI_IVE_Thresh_s16
16 with sign bit bit data to 8 Threshold binarization operation of bit data
IVE_SRC_IMAGE_S *pstSrc,
IVE_DST_IMAGE_S *pstDst,
IVE_THRESH_U16_CTRL_S *pstThrCtrl,
78
5. API 参考 瑞芯微电子股份有限公司
bool bInstant);
79
5. API 参考 瑞芯微电子股份有限公司
Parameters :
Cannot be empty.
Cannot be empty.
Cannot be empty.
pstThrCtrl Control parameter enter
pointer.
Cannot be empty.
bInstant Return the result flag enter
in time.
Return value :
0 成功。
非 失败,参见错误码。
0
"Require" :
Quote :
80
5. API 参考 瑞芯微电子股份有限公司
"Notice" :
IVE_THRESH_S16_MODE_S16_TO_S8_MIN_MID_MAX ,
IVE_THRESH_S16_MODE_S16_TO_S8_MIN_ORI_MAX ,
IVE_THRESH_S16_MODE_S16_TO_U8_MIN_MID_MAX ,
IVE_THRESH_S16_MODE_S16_TO_U8_MIN_ORI_MAX .
RK_MPI_IVE_16bitto8bit
IVE_SRC_IMAGE_S *pstSrc,
IVE_DST_IMAGE_S *pstDst,
IVE16BIT_TO_8BIT_CTRL_S *pst16BitTo8BitCtrl,
bool bInstant);
"parameter":
Cannot be empty.
Cannot be empty.
Cannot be empty.
pst16BitTo8BitCt CSC Control enter
rl parameter pointer.
Cannot be empty.
bInstant Return the result flag enter
in time.
81
5. API 参考 瑞芯微电子股份有限公司
Return value:
0 成功。
非 失败,参见错误码。
0
"Require" :
Quote :
"Notice" :
Supports 4 modes:
IVE_16BIT_TO_8BIT_MODE_S16_TO_S8
IVE_16BIT_TO_8BIT_MODE_S16_TO_U8_ABS
IVE_16BIT_TO_8BIT_MODE_S16_TO_U8_BIAS
IVE_16BIT_TO_8BIT_MODE_U16_TO_U8
RK_MPI_IVE_8bitto8bit
IVE_SRC_IMAGE_S *pstSrc,
IVE_DST_IMAGE_S *pstDst,
82
5. API 参考 瑞芯微电子股份有限公司
IVE_8BIT_TO_8BIT_CTRL_S *pst8BitTo8BitCtrl,
83
5. API 参考 瑞芯微电子股份有限公司
bool bInstant);
Parameters :
Cannot be empty.
Cannot be empty.
Cannot be empty.
pst8BitTo8BitCtr Control parameter enter
l pointer.
Cannot be empty.
bInstant Return the result flag enter
in time.
Return value :
0 成功。
非 失败,参见错误码。
0
"Require" :
Quote :
84
5. API 参考 瑞芯微电子股份有限公司
"Notice" :
Supports 4 modes:
IVE_8BIT_TO_8BIT_MODE_S16_TO_S8
IVE_8BIT_TO_8BIT_MODE_S16_TO_U8_ABS
IVE_8BIT_TO_8BIT_MODE_S16_TO_U8_BIAS
IVE_8BIT_TO_8BIT_MODE_U16_TO_U8
RK_MPI_IVE_OrdStatFilter
IVE_SRC_IMAGE_S *pstSrc,
IVE_DST_IMAGE_S *pstDst,
IVE_ORD_STAT_FILTER_CTRL_S *pstOrdStatFltCtrl,
bool bInstant);
85
5. API 参考 瑞芯微电子股份有限公司
Parameters :
Cannot be empty.
Cannot be empty.
pstDst Output image Output
pointer.
Cannot be empty.
pstOrdStatFilterCtrl CSC Control enter
parameter
pointer .
Cannot be empty.
bInstant Return the enter
result flag in
time .
Return value :
0 成功。
非 失败,参见错误码。
0
"Require" :
Quote :
87
5. API 参考 瑞芯微电子股份有限公司
"Notice" :
IVE_ORD_STAT_FILTER_MODE_MEDIAN :
𝐼 𝑜𝑢𝑡 (𝑥, 𝑦) = 𝑚𝑒𝑑ade𝑎𝑛−1≤𝑗≤1
−1≤ ≤1
{ 𝐼(𝑥 + 𝑖, 𝑦 + 𝑗) }
IVE_ORD_STAT_FILTER_MODE_MAX :
𝐼 𝑜𝑢𝑡 (𝑥, 𝑦) = 𝑚𝑎igh−1≤𝑗≤1
−1≤ ≤1
{ 𝐼(igh + 𝑖, 𝑦 + 𝑗) }
IVE_ORD_STAT_FILTER_MODE_MIN :
𝐼 𝑜𝑢𝑡 (𝑥, 𝑦) = 𝑚 𝑛−1≤𝑗≤1
−1≤ ≤1
{ 𝐼(𝑥 + 𝑖, 𝑦 + 𝑗) }
RK_MPI_IVE_Map
IVE_SRC_IMAGE_S *pstSrc,
IVE_SRC_MEM_INFO_S *pstMap
IVE_DST_IMAGE_S *pstDst,
IVE_MAP_CTRL_S *pstMapCtrl,
bool bInstant);
88
5. API 参考 瑞芯微电子股份有限公司
Parameters :
Cannot be empty.
Cannot be empty.
Cannot be empty.
pstDst Output image Output
pointer.
Cannot be empty.
pstMapCtrl Control parameter enter
pointer.
Cannot be empty.
bInstant Return the result flag enter
in time.
Return value :
0 成功。
非 失败,参见错误码。
0
"Require" :
89
5. API 参考 瑞芯微电子股份有限公司
Quote :
"Notice" :
RK_MPI_IVE_EqualizeHist
IVE_SRC_IMAGE_S *pstSrc,
IVE_DST_IMAGE_S *pstDst,
IVE_EQHIST_CTRL_S *pstEqualizeHistCtrl,
bool bInstant);
90
5. API 参考 瑞芯微电子股份有限公司
Parameters :
Cannot be empty.
Cannot be empty.
pstDst Output image Output
pointer.
Cannot be empty.
pstEqualizeHistCtrl Control enter
parameter
pointer.
Cannot be empty.
bInstant Return the enter
result flag in
time .
Return value:
0 成功。
非 失败,参见错误码。
0
"Require" :
Quote :
91
5. API 参考 瑞芯微电子股份有限公司
92
5. API 参考 瑞芯微电子股份有限公司
"Notice" :
RK_MPI_IVE_Ncc
IVE_SRC_IMAGE_S *pstSrc1,
IVE_SRC_IMAGE_S *pstSrc2,
IVE_DST_MEM_INFO_S *pstDst,
bool bInstant);
Parameters :
Cannot be empty.
Cannot be empty.
pstSrc2 Source Image 2 enter
pointer.
Cannot be empty.
pstDst Output data pointer. Output
Cannot be empty.
93
5. API 参考 瑞芯微电子股份有限公司
Return value :
0 成功。
非 失败,参见错误码。
0
"Require" :
Quote :
"Notice" :
The
calculation (I src1 (i, j) ∗ I src2 (i, j))
∑w ∑h
formula is as
follows:
NCC(Isrc1 , I src2 ) = i=1 j=1
√∑w ∑h (I2 (i, j)) √ ∑w (I 2 (i, j))
∑h
i=1 j=1 src1 i=1 j=1 src2
RK_MPI_IVE_CCL
94
5. API 参考 瑞芯微电子股份有限公司
IVE_SRC_IMAGE_S * pstSrcDst,
IVE_DST_MEM_INFO_S *pstBlob,
IVE_CCL_CTRL_S *pstCclCtrl,
bool bInstant);
95
5. API 参考 瑞芯微电子股份有限公司
Parameters :
Cannot be empty.
pointer, connected
marked on the
Cannot be empty.
pstBlob Connected area Output
information pointer.
Cannot be empty.
pstCclCtrl Control parameter enter
pointer.
Cannot be empty.
bInstant Return the result flag enter
in time.
Return value :
0 成功。
非 失败,参见错误码。
0
"Require" :
Quote :
96
5. API 参考 瑞芯微电子股份有限公司
97
5. API 参考 瑞芯微电子股份有限公司
"Notice" :
Figure 5- 5
RK_MPI_IVE_Gmm
IVE_SRC_IMAGE_S *pstSrc,
IVE_DST_IMAGE_S *pstFg,
IVE_DST_IMAGE_S *pstBg,
IVE_DST_IMAGE_S *pstMatchModelInfo,
IVE_MEM_INFO_S *pstModel,
IVE_GMM_CTRL_S *pstGmmCtrl,
bool bInstant);
98
5. API 参考 瑞芯微电子股份有限公司
"parameter":
Cannot be empty.
Cannot be empty.
pstFg Pointer to the Output
foreground image.
Cannot be empty.
pstBg Background image Output
pointer.
Cannot be empty.
pstMatchModelInfo Match information Input and Output
pointer.
Cannot be empty.
pstModel Pointer to Gaussian Input and Output
mixture model.
Cannot be empty.
pstGmmCtrl Control parameter enter
pointer.
Cannot be empty.
bInstant Return the result enter
flag in time.
Return value :
0 成功。
非 失败,参见错误码。
0
99
5. API 参考 瑞芯微电子股份有限公司
"Require" :
U8C3_PACKAGE
U8C3_PACKAGE
Quote :
"Notice" :
pstMatchModelInfo .
pstModel .
pstGmmCtrl .
RK_MPI_IVE_Gmm2
IVE_SRC_IMAGE_S *pstSrc,
100
5. API 参考 瑞芯微电子股份有限公司
IVE_SRC_IMAGE_S *pstFactor,
IVE_DST_IMAGE_S *pstFg,
101
5. API 参考 瑞芯微电子股份有限公司
IVE_DST_IMAGE_S *pstBg,
IVE_DST_IMAGE_S *pstMatchModelInfo,
IVE_MEM_INFO_S *pstModel,
IVE_GMM2_CTRL_S *pstGmm2Ctrl,
bool bInstant);
Parameters :
Cannot be empty.
Cannot be empty.
pstFactor Model update enter
parameter pointer
pstFg Pointer to the Output
foreground image.
Cannot be empty.
pstBg Background Output
image pointer.
Cannot be empty.
pstMatchModelInfo Match Input and Output
information
pointer.
Cannot be empty.
pstModel Pointer to Input and Output
Gaussian
mixture
model .
Cannot be empty.
pstGmm2Ctrl Control parameter enter
pointer.
Cannot be empty.
bInstant Return the enter
result flag in
102
5. API 参考 瑞芯微电子股份有限公司
time .
103
5. API 参考 瑞芯微电子股份有限公司
Return value :
0 成功。
非 失败,参见错误码。
0
"Require" :
U8C3_PACKAGE
U8C3_PACKAGE
Quote :
"Notice" :
pstFactor stores the weight increase ratio after model matching and the
104
5. API 参考 瑞芯微电子股份有限公司
Figure 5-6
Figure 5-7
105
5. API 参考 瑞芯微电子股份有限公司
pstModel Store Gaussian mixture model, when the input image type is
Figure 5-8
When the input image type is RGB888 When an image is created, its format in
memory is as follows:
106
5. API 参考 瑞芯微电子股份有限公司
Figure 5-9
107
5. API 参考 瑞芯微电子股份有限公司
RK_MPI_IVE_CannyEdge
IVE_SRC_IMAGE_S *pstSrc,
IVE_DST_IMAGE_S *pstEdge,
IVE_DST_MEM_INFO_S *pstStack,
IVE_CANNY_EDGE_CTRL_S *pstCannyEdgeCtrl,
bool bInstant);
Parameters :
Cannot be empty.
Cannot be empty.
pstEdge Edge information
image pointer
pstStack Edge information Output
pointer.
pstCannyEdgeCtr Control parameter enter
l pointer.
Cannot be empty.
bInstant Return the result flag enter
in time.
Return value :
0 成功。
非 失败,参见错误码。
0
108
5. API 参考 瑞芯微电子股份有限公司
"Require" :
Quote :
"Notice" :
RK_MPI_IVE_LBP
IVE_SRC_IMAGE_S *pstSrc,
IVE_DST_IMAGE_S *pstDst,
IVE_LBP_CTRL_S *pstLbpCtrl,
bool bInstant);
109
5. API 参考 瑞芯微电子股份有限公司
Parameters :
Cannot be empty.
Cannot be empty.
pstDst Output image Output
pointer.
Cannot be empty.
pstLbpCtrl Control parameter enter
pointer.
Cannot be empty.
bInstant Return the result flag enter
in time.
Return value :
0 成功。
非 失败,参见错误码。
0
"Require" :
Quote :
110
5. API 参考 瑞芯微电子股份有限公司
"Notice" :
RK_MPI_IVE_NormGrad
IVE_SRC_IMAGE_S *pstSrc,
IVE_DST_IMAGE_S *pstDstH,
IVE_DST_IMAGE_S *pstDstV,
IVE_DST_IMAGE_S *pstDstHV,
IVE_NORM_GRAD_CTRL_S *pstNormGradCtrl,
bool bInstant);
Parameters :
Cannot be empty.
Cannot be empty.
Cannot be empty.
111
5. API 参考 瑞芯微电子股份有限公司
bInstant Return the result flag in enter
time.
112
5. API 参考 瑞芯微电子股份有限公司
Return value :
0 成功。
非 失败,参见错误码。
0
"Require" :
Quote :
"Notice" :
RK_MPI_IVE_LKOpticalFlowPyr
IVE_SRC_IMAGE_S astSrcPrevPyr[],
113
5. API 参考 瑞芯微电子股份有限公司
IVE_SRC_IMAGE_S astSrcNextPyr[],
114
5. API 参考 瑞芯微电子股份有限公司
IVE_SRC_MEM_INFO_S *pstPrevPts,
IVE_MEM_INFO_S *pstNextPts,
IVE_DST_MEM_INFO_S *pstStatus,
IVE_DST_MEM_INFO_S *pstErr,
IVE_LK_OPTICAL_FLOW_PYR_CTRL_S *pstLkOptiFlowPyrCtrl,
bool bInstant);
Parameters :
Cannot be empty.
of the previous
frame image .
Cannot be empty.
astSrcNextPyr The current frame enter
image pyramid
array .
optical flow
tracking point in
the previous
frame .
tracking point
pointer of the
current frame .
information, 1
Indicates success, 0
Indicates failure.
115
5. API 参考 瑞芯微电子股份有限公司
similarity error
estimation .
Cannot be empty.
pstLkOptiFlowPyrCtrl Control parameter enter
pointer.
Cannot be empty.
bInstant Return the result flag enter
in time.
116
5. API 参考 瑞芯微电子股份有限公司
Return value :
0 成功。
非 失败,参见错误码。
0
"Require" :
astSrcNextPyr[0]
pstNextPts[0]
pstStatus - 16 bytes -
pstErr - 16 bytes -
Quote :
"Notice" :
A pyramid is built externally, requiring the height and width of each layer of
image to be half of the height and width of the previous layer of image.
RK_MPI_IVE_LKOpticalFlow
118
5. API 参考 瑞芯微电子股份有限公司
IVE_SRC_IMAGE_S *pstSrcPre,
IVE_SRC_IMAGE_S *pstSrcCur,
IVE_SRC_MEM_INFO_S *pstPoint,
IVE_SRC_MEM_INFO_S *pstMv,
IVE_LK_OPTICAL_FLOW_CTRL_S *pstLkOptiFlowCtrl,
bool bInstant);
Parameters :
Cannot be empty.
Cannot be empty.
pstSrcCur Current frame image enter
pointer.
Cannot be empty.
pstPoint The initial feature point coordinates of the current pyramid layer.
Cannot be empty.
Cannot be empty.
pstLkOptiFlowCtrl Control parameter pointer. enter
Cannot be empty.
Return value :
0 成功。
非 失败,参见错误码。
0
119
5. API 参考 瑞芯微电子股份有限公司
"Require" :
pstSrcCur
pstPoint - 16 bytes -
pstMv - 16 bytes -
Quote :
"Notice" :
Internal default build 4 Layer pyramid, the height and width of each layer of
image is half of the height and width of the previous layer of image.
Figure 5-10
RK_MPI_IVE_STCandiCorner
120
5. API 参考 瑞芯微电子股份有限公司
The first step of image corner detection is to calculate the corresponding intensity of the corner points
and filter the corner points.
IVE_SRC_IMAGE_S *pstSrc,
121
5. API 参考 瑞芯微电子股份有限公司
IVE_DST_MEM_INFO_S *pstCandiCorner,
IVE_ST_CANDI_CORNER_CTRL_S *pstStCandiCornerCtrl,
bool bInstant);
Parameters :
Cannot be
empty.
Cannot be
empty.
pstCandiCorner Candidate Output
corner point
pointer.
Cannot be
empty.
pstStCandiCornerCtrl Control enter
parameter
pointer.
Cannot be
empty.
bInstant Return the enter
result flag in
time .
Return value :
0 成功。
非 失败,参见错误码。
0
"Require" :
122
5. API 参考 瑞芯微电子股份有限公司
pstCandiCorner - 16 bytes -
123
5. API 参考 瑞芯微电子股份有限公司
Quote :
"Notice" :
sizeof(IVE_ST_CANDI_STACK_SIZE_S) .
Figure 5-11
RK_MPI_IVE_STCorner
The second step of image corner detection is to sort the candidate corner points
according to the rules.
IVE_SRC_IMAGE_S *pstSrc,
IVE_DST_MEM_INFO_S *pstCandiCorner,
IVE_DST_MEM_INFO_S *pstCorner,
124
5. API 参考 瑞芯微电子股份有限公司
IVE_ST_CORNER_CTRL_S *pstStCornerCtrl,
bool bInstant);
125
5. API 参考 瑞芯微电子股份有限公司
Parameters :
Cannot be empty.
Cannot be empty.
pstCandiCorner Candidate corner enter
pointer
pstCorner Output the filtered Output
corner point
pointers .
Cannot be empty.
pstStCornerCtrl Control parameter enter
pointer.
Cannot be empty.
bInstant Return the result flag enter
in time.
Return value :
0 成功。
非 失败,参见错误码。
0
"Require" :
pstCandiCorner - 16 bytes -
pstCorner - 16 bytes -
126
5. API 参考 瑞芯微电子股份有限公司
Quote :
"Notice" :
sizeof(IVE_ST_CORNER_MEM_S) * 2; .
The final output corner information is consistent with the format of the
follows:
Figure 5-12
RK_MPI_IVE_MatchBgModel
Based on CODEBOOK The first step of background subtraction is background model training.
IVE_SRC_IMAGE_S *pstCurImg,
127
5. API 参考 瑞芯微电子股份有限公司
IVE_DATA_S *pstBgModel,
IVE_MATCH_BG_MODEL_CTRL_S *pstMatchBgModelCtrl,
bool bInstant);
128
5. API 参考 瑞芯微电子股份有限公司
Parameters :
Cannot be
empty.
Cannot be
empty.
pstBgModel Background Output
model pointer.
Cannot be
empty.
pstMatchBgModelCtrl Control enter
parameter
pointer.
Cannot be
empty.
bInstant Return the enter
result flag in
time .
Return value :
0 成功。
非 失败,参见错误码。
0
"Require" :
pstBgModel - 1 byte -
Quote :
129
5. API 参考 瑞芯微电子股份有限公司
130
5. API 参考 瑞芯微电子股份有限公司
"Notice" :
Figure 5-13
RK_MPI_IVE_UpdateBgModel
Based on CODEBOOK In the second step of the background subtraction operation, the background model is
updated.
IVE_SRC_IMAGE_S * pstCurImg,
IVE_DATA_S *pstBgModel,
_IVE_IMAGE_S *pstFgFlag,
IVE_DST_IMAGE_S *pstBgImg,
IVE_UPDATE_BG_MODEL_CTRL_S *pstUpdateBgModelCtrl,
131
5. API 参考 瑞芯微电子股份有限公司
bool bInstant);
132
5. API 参考 瑞芯微电子股份有限公司
Parameters :
Cannot be empty.
Cannot be empty.
pstBgModel Background Input and Output
model pointer.
Cannot be empty.
pstFgFlag Output Output
foreground image
pointer
pstBgImg Output Output
background
image
pointer .
Cannot be empty.
pstUpdateBgModelCtrl Control enter
parameter
pointer.
Cannot be empty.
bInstant Return the enter
result flag in
time .
Return value :
0 成功。
非 失败,参见错误码。
0
133
5. API 参考 瑞芯微电子股份有限公司
"Require":
pstBgModel - 1 byte -
Quote :
"Notice" :
pstBgModel Storage book Model, each model memory size is 14 bytes, whose
134
5. API 参考 瑞芯微电子股份有限公司
Figure 5- 14
135
5. API 参考 瑞芯微电子股份有限公司
RK_MPI_IVE_SAD
IVE_SRC_IMAGE_S * pstSrc1,
IVE_SRC_IMAGE_S *pstSrc2,
IVE_DST_IMAGE_S *pstSad,
IVE_DST_IMAGE_S *pstThr,
IVE_SAD_CTRL_S *pstSadCtrl,
bool bInstant);
"parameter":
Cannot be empty.
Cannot be empty.
Cannot be empty.
Cannot be empty.
pstThr Output SAD Output
Thresholded image
pointer .
Cannot be empty.
pstSadCtrl Control parameter enter
pointer.
Cannot be empty.
bInstant Return the result flag in enter
136
5. API 参考 瑞芯微电子股份有限公司
time.
137
5. API 参考 瑞芯微电子股份有限公司
Return value :
0 成功。
非 失败,参见错误码。
0
"Require" :
Quote :
"Notice" :
THR
minVal (SAD out (x, y) ≤ Thr)
out (x, y) = { maxVal (SAD out (x, y) > Thr)
in,
n= 4 Corresponding to
RVE_SAD_MODE_MB_4X4 n= 8
138
5. API 参考 瑞芯微电子股份有限公司
C B_8X8
R
V
E
_
S
A
D
_
M
O
D
E
_
M
139
5. API 参考 瑞芯微电子股份有限公司
RK_MPI_IVE_Warp_Affine_Init
RK_U32 u32Width,
RK_U32 u32Height);
Parameters :
Cannot be empty.
Cannot be empty.
u32Height Enter the image Output
height.
Cannot be empty.
Return value :
0 成功。
非 失败,参见错误码。
0
Quote :
140
5. API 参考 瑞芯微电子股份有限公司
"Notice" :
5 times the size of the input image , call this interface to complete the
RK_MPI_IVE_Warp_Affine
IVE_SRC_IMAGE_S *pstSrc,
IVE_DST_IMAGE_S *pstDst,
IVE_WARP_AFFINE_CTRL_S *pstWarpAffineCtrl,
bool bInstant);
Parameters :
Cannot be empty.
Cannot be empty.
pstDst Output image Output
pointer.
Cannot be empty.
pstWarpAffineCtrl Control parameters enter
141
5. API 参考 瑞芯微电子股份有限公司
Return value :
0 成功。
非 失败,参见错误码。
0
"Require" :
Quote :
"Notice" :
in,
𝑎 00 𝑎 01] and 𝑏 00
is the linear
translation transformation
correlation correlation coefficient,
coefficient. ] is the
[𝑎 [
10 𝑎 𝑏 01
11
RK_MPI_IVE_Pyramid_GetSize
Gets the auxiliary memory size required to generate the image pyramid.
142
5. API 参考 瑞芯微电子股份有限公司
143
5. API 参考 瑞芯微电子股份有限公司
IVE_PYRAMID_CTRL_S *pstPyramidCtrl);
Parameters :
Cannot be empty.
Cannot be empty.
pstPyramidCtrl Control pointer. enter
Cannot be empty.
Return value :
0 成功。
非 失败,参见错误码。
0
Quote :
"Notice" :
Before applying for auxiliary memory for the image pyramid creation task,
RK_MPI_IVE_Pyramid_Create
144
5. API 参考 瑞芯微电子股份有限公司
RK_S32 RK_MPI_IVE_Pyramid_Create (IVE_HANDLE *pHandle,
IVE_SRC_IMAGE_S *pstSrc,
145
5. API 参考 瑞芯微电子股份有限公司
IVE_DST_IMAGE_S pstPyramid[],
IVE_PYRAMID_CTRL_S *pstPyramidCtrl,
bool bInstant);
Parameters :
Cannot be empty.
Cannot be empty.
pstPyramid[], Pyramid image enter
array.
Cannot be empty.
pstPyramidCtrl Control parameters enter
Return value :
0 成功。
非 失败,参见错误码。
0
"Require" :
Quote :
Files
147
5. API 参考 瑞芯微电子股份有限公司
"Notice" :
The default scaling factor of the generated pyramid image is 0.5 , and the
relationship between the width and height of the upper and lower pyramid
images is:
RK_MPI_IVE_Query
bool *pbFinish,
bool bBlock);
Parameters :
Cannot be empty.
Cannot be empty.
bBlock Whether to block the Output
query flag.
Cannot be empty.
Return value :
148
5. API 参考 瑞芯微电子股份有限公司
0 成功。
非 失败,参见错误码。
0
149
5. API 参考 瑞芯微电子股份有限公司
Quote :
"Notice" :
When users use IVE Before the mission is completed, to ensure RKIVE The
task has been completed. Users can call this interface to query in blocking
mode .
150
6. 数据类型及结构体 瑞芯微电子股份有限公司
IVE_IMAGE_S
IVE_SRC_IMAGE_S
IVE_DST_IMAGE_S
"definition"
151
6. 数据类型及结构体 瑞芯微电子股份有限公司
"illustrate"
au64PhyAddr Image cache physical address array, storing multiple planar Cache
first address
au64VirAddr Image cache virtual address array, storing multiple planar Cache first
address
au32Stride Image cache line span array, storing multiple planar Row Span
IVE_DATA_S
IVE_SRC_DATA_S
IVE_DST_DATA_S
"definition"
RK_U32 u32Stride;
RK_U32 u32Width;
RK_U32 u32Height;
RK_U32 u32Reserved;
} IVE_DATA_S;
152
6. 数据类型及结构体 瑞芯微电子股份有限公司
typedef IVE_DATA_S IVE_SRC_DATA_S;
typedef IVE_DATA_S IVE_DST_DATA_S;
"illustra
te"
IVE_MEM_INFO_S
IVE_SRC_MEM_INFO_S
IVE_DST_MEM_INFO_S
"definition"
153
6. 数据类型及结构体 瑞芯微电子股份有限公司
typedef IVE_MEM_INFO_S IVE_DST_MEM_INFO_S;
154
6. 数据类型及结构体 瑞芯微电子股份有限公司
「说明」
IVE_DMA_CTRL_S
"definition"
155
6. 数据类型及结构体 瑞芯微电子股份有限公司
「说明」
mode IVE_DMA_MODE_INTERVAL_COPY :
u64Val Only used in fill mode, 3 Byte filling mode uses the lower 3 bytes save.
u8HorSegSize Only used in interval copy mode, the size of the segment that divides
the source image into one row horizontally. Value range:
{2, 3, 4, 8, 16} .
u8ElemSize u8ElemSizebyte of each segment is split A valid copy field .
u8VerSegRows Only used in interval copy mode, split the first row of data in each
u8VerSegRows row into
u8HorSegSize size segment, copy the first u8ElemSize in each segment Size
in bytes
IVE_FILTER_CTRL_S
"definition"
156
6. 数据类型及结构体 瑞芯微电子股份有限公司
} IVE_FILTER_CTRL_S;
「说明」
157
6. 数据类型及结构体 瑞芯微电子股份有限公司
「说明」
0 : 3x3
1 : 5x5
0 : RK_U8
1 : RK_S8
2 : RK_U16
3 : RK_S16
IVE_CSC_CTRL_S
"definition"
158
6. 数据类型及结构体 瑞芯微电子股份有限公司
「说明」
enMode IVE_CSC_MODE_LIMIT_BT601_YUV2RGB
IVE_CSC_MODE_LIMIT_BT709_YUV2RGB
IVE_CSC_MODE_FULL_BT601_YUV2RGB
IVE_CSC_MODE_FULL_BT709_YUV2RGB
IVE_CSC_MODE_LIMIT_BT601_YUV2HSV
IVE_CSC_MODE_LIMIT_BT709_YUV2HSV
IVE_CSC_MODE_FULL_BT601_YUV2HSV
IVE_CSC_MODE_FULL_BT709_YUV2HSV
IVE_CSC_MODE_LIMIT_BT601_RGB2YUV
IVE_CSC_MODE_LIMIT_BT709_RGB2YUV
IVE_CSC_MODE_FULL_BT601_RGB2YUV
IVE_CSC_MODE_FULL_BT709_RGB2YUV
IVE_CSC_MODE_LIMIT_BT601_RGB2HSV
IVE_CSC_MODE_LIMIT_BT709_RGB2HSV
IVE_CSC_MODE_FULL_BT601_RGB2HSV
IVE_CSC_MODE_FULL_BT709_RGB2HSV
1: [0~255]
1: [0~255]
159
6. 数据类型及结构体 瑞芯微电子股份有限公司
IVE_SOBEL_CTRL_S
"definition"
"illustra
te"
0 : 3x3
1 : 5x5
0 : Horizontal, vertical
1 : Horizontal
2 : Vertical direction
0 : RK_U8
1 : RK_S8
2 : RK_U16
3 : RK_S16
160
6. 数据类型及结构体 瑞芯微电子股份有限公司
as8Mask 5x5 Template coefficient, peripheral coefficient is set to 0 3x3 can be
achieved Template filtering.
161
6. 数据类型及结构体 瑞芯微电子股份有限公司
IVE_MAG_AND_ANG_CTRL_S
"definition"
"illustra
te"
IVE_DILATE_CTRL_S
"definition"
"illustra
te"
au8Mask 5x5
Template
coefficient
162
6. 数据类型及结构体 瑞芯微电子股份有限公司
IVE_ERODE_CTRL_S
"definition"
"illustra
te"
au8Mask 5x5
Template
coefficient
IVE_ADD_CTRL_S
"definition"
"illustra
te"
164
6. 数据类型及结构体 瑞芯微电子股份有限公司
IVE_SUB_CTRL_S
"definition"
"illustra
te"
IVE_INTEG_CTRL_S
"definition"
165
6. 数据类型及结构体 瑞芯微电子股份有限公司
"illustrate"
IVE_THRESH_CTRL_S
"definition"
166
6. 数据类型及结构体 瑞芯微电子股份有限公司
RK_U16 u16LowThr;
RK_U16 u16HighThr;
RK_U8 u8MinVal;
167
6. 数据类型及结构体 瑞芯微电子股份有限公司
RK_U8 u8MidVal;
RK_U8 u8MaxVal;
} IVE_THRESH_U16_CTRL_S;
typedef struct rkIVE_THRESH_S16_CTRL_S
{ IVE_THRESH_S16_MODE_E enMode;
RK_S16 S16LowThr;
RK_S16 S16HighThr;
RK_S8 S8MinVal;
RK_S8 S8MidVal;
RK_S8 S8MaxVal;
} IVE_THRESH_S16_CTRL_S;
168
6. 数据类型及结构体 瑞芯微电子股份有限公司
"illustrate"
IVE_THRESH_MODE_BINARY
IVE_THRESH_MODE_TRUNC
IVE_THRESH_MODE_TO_MINVAL
IVE_THRESH_MODE_MIN_MID_MAX
IVE_THRESH_MODE_ORI_MID_MAX
IVE_THRESH_MODE_MIN_MID_ORI
IVE_THRESH_MODE_MIN_ORI_MAX
IVE_THRESH_MODE_ORI_MID_ORI
0≤u8LowThresh≤u8HighThresh≤255 .
IVE_8BIT_TO_8BIT_CTRL_S
IVE_16BIT_TO_8BIT_CTRL_S
Definition 8 bit, 16 bit data to 8 bit data linear conversion control information
169
6. 数据类型及结构体 瑞芯微电子股份有限公司
"definition"
170
6. 数据类型及结构体 瑞芯微电子股份有限公司
「说明」
U8->U8:
IVE_8BIT_TO_8BIT_MODE_S8_TO_S8
IVE_8BIT_TO_8BIT_MODE_S8_TO_U8_ABS
IVE_8BIT_TO_8BIT_MODE_S8_TO_U8_BIAS
IVE_8BIT_TO_8BIT_MODE_U8_TO_U8
U16->U8:
IVE_16BIT_TO_8BIT_MODE_S16_TO_S8
IVE_16BIT_TO_8BIT_MODE_S16_TO_U8_ABS
IVE_16BIT_TO_8BIT_MODE_S16_TO_U8_BIAS
IVE_16BIT_TO_8BIT_MODE_U16_TO_U8
u16Denominator
IVE_ORD_STAT_FILTER_CTRL_S
"definition"
171
6. 数据类型及结构体 瑞芯微电子股份有限公司
「说明」
IVE_ORD_STAT_FILTER_MODE_MAX: 最大值滤
波
IVE_ORD_STAT_FILTER_MODE_MIN: 最小值滤波
IVE_MAP_CTRL_S
"definition"
"illustra
te"
IVE_EQHIST_CTRL_S
"definition"
173
6. 数据类型及结构体 瑞芯微电子股份有限公司
「说明」
histogram statistics
IVE_CCL_CTRL_S
"definition"
174
6. 数据类型及结构体 瑞芯微电子股份有限公司
「说明」
65535] . Reference
value: 4 .
of the area
threshold. Value
range: [1,65535] .
Reference value: 2 .
stMem Auxiliary memory required for connected area calculations needs
size
IVE_CANNY_EDGE_CTRL_S
"definition"
175
6. 数据类型及结构体 瑞芯微电子股份有限公司
「说明」
IVE_LBP_CTRL_S
"definition"
"illustra
te"
176
6. 数据类型及结构体 瑞芯微电子股份有限公司
「说明」
un8BitThr LBP comparison threshold:
177
6. 数据类型及结构体 瑞芯微电子股份有限公司
IVE_GMM_CTRL_S
"definition"
ive_u8q2 u8q2WeightInitVal;
ive_u8q2 u8q2WeightAddFactor;
ive_u8q2 u8q2WeightReduFactor;
ive_u8q2 u8q2WeightThr;
RK_U8
u8VarThreshGen;ive_u8q
2 u8q2BgRatio;
ive_u10q0 u10q0InitVar;
ive_u10q0 u10q0MinVar;
ive_u10q0 u10q0MaxVar;
RK_U8 u8VarThr;
} IVE_GMM_CTRL_S;
178
6. 数据类型及结构体 瑞芯微电子股份有限公司
"illustrate"
u8FirstFrameFlag The first frame image is set to 1 , and subsequent calls are set to
0
format : 0:
U8C1
1: U8C3
u8EnBgOut Output
background
control : 0:
Do not
output
background
1 : Output background
u8MaxModelNum Number of models.
Value range:
{1,1023} . Reference
value: 16
u8q2WeightAddFactor Model weight increase coefficient
Value range:
{1,1023} . Reference
value: 4
u8q2WeightReduFactor Model weight reduction coefficient
Value range:
{1,1023} . Reference
value: 1016
179
6. 数据类型及结构体 瑞芯微电子股份有限公司
u8q2WeightThr Model destruction weight threshold
Value range:
{1,1023} . Reference
value: 4
u8VarThreshGen Foreground-background variance threshold
Reference value: 9
180
6. 数据类型及结构体 瑞芯微电子股份有限公司
u10q0InitVar 模型方差初始值
取值范围:
{1,1023} 。参考取
u10q0MinVar 值: 225
模型方差最小值
取值范围:
{1,1023} 。参考取
u10q0MaxVar 值: 200
模型方差最大值
取值范围:
{1,1023} 。参考取
u8VarThr 值: 512
模型方差阈值
IVE_GMM2_CTRL_S
"definition"
ive_u8q2 u8q2WeightInitVal;
181
6. 数据类型及结构体 瑞芯微电子股份有限公司
ive_u8q2 u8q2WeightAddFactor;
182
6. 数据类型及结构体 瑞芯微电子股份有限公司
ive_u8q2 u8q2WeightReduFactor;
ive_u8q2 u8q2WeightThr;
RK_U8
u8VarThreshGen;ive_u8q
2 u8q2BgRatio;
ive_u10q0 u10q0InitVar;
ive_u10q0 u10q0MinVar;
ive_u10q0 u10q0MaxVar;
RK_U8 u8VarThr;
} IVE_GMM2_CTRL_S;
183
6. 数据类型及结构体 瑞芯微电子股份有限公司
"illustrate"
u8FirstFrameFlag The first frame image is set to 1 , and subsequent calls are set to
0
format : 0:
U8C1
1: U8C3
u8EnBgOut Output
background
control : 0:
Do not
output
background
1 : Output background
u8MaxModelNum Number of models.
0 : Disable
1 : Enable
0 : Disable
1 : Enable
0 : Do not update
1 : Update
Value range:
184
6. 数据类型及结构体 瑞芯微电子股份有限公司
{1,1023} . Reference
value: 16
u8q2WeightAddFactor Model weight increase coefficient
Value range:
{1,1023} . Reference
value: 4
185
6. 数据类型及结构体 瑞芯微电子股份有限公司
u8q2WeightReduFactor 模型权重减小系数
取值范围:
{1,1023} 。参考取
u8q2WeightThr 值: 1016
模型销毁权重阈值
取值范围:
{1,1023} 。参考取
u8VarThreshGen 值: 4
前景背景方差阈值
参考取值: 9
u8q2BgRatio 背景计算比例设置
取值范围:
{1,1023} 。参考取
u10q0InitVar 值: 712
模型方差初始值
取值范围:
{1,1023} 。参考取
u10q0MinVar 值: 225
模型方差最小值
取值范围:
{1,1023} 。参考取
u10q0MaxVar 值: 200
模型方差最大值
取值范围:
{1,1023} 。参考取
u8VarThr 值: 512
模型方差阈值
IVE_LK_OPTICAL_FLOW_CTRL_S
187
6. 数据类型及结构体 瑞芯微电子股份有限公司
"definition"
"illustra
te"
Reference value: 32 .
IVE_LK_OPTICAL_FLOW_PYR_CTRL_S
the control parameters of the optical flow method (external pyramid building)
"definition"
189
6. 数据类型及结构体 瑞芯微电子股份有限公司
RK_U8 u8IterCnt;
IVE_U0Q11 u0q11Eps;
} IVE_LK_OPTICAL_FLOW_PYR_CTRL_S;
"illustra
te"
Reference value: 2 .
u0q8MinEigThr Minimum eigenvalue threshold.
Reference value: 32 .
IVE_ST_CANDI_CORNER_CTRL_S;
Define the first step control parameters for image corner detection
190
6. 数据类型及结构体 瑞芯微电子股份有限公司
"definition"
191
6. 数据类型及结构体 瑞芯微电子股份有限公司
RK_U8 u0q8QualityLevel;
} IVE_ST_CANDI_CORNER_CTRL_S;
"illustra
te"
Reference value: 25
IVE_ST_CORNER_CTRL_S;
"definition"
192
6. 数据类型及结构体 瑞芯微电子股份有限公司
「说明」
Reference value: 25
between adjacent
corner points.
Value range:
[1,65535] .
Reference value: 10 .
IVE_MATCH_BG_MODEL_CTRL_S
"definition"
193
6. 数据类型及结构体 瑞芯微电子股份有限公司
RK_U8 u8DiffMinThr;
「说明」
} IVE_MATCH_BG_MODEL_CTRL_S;
194
6. 数据类型及结构体 瑞芯微电子股份有限公司
「说明」
IVE_UPDATE_BG_MODEL_CTRL_S
"definition"
195
6. 数据类型及结构体 瑞芯微电子股份有限公司
「说明」
255] . Reference
value: 16 .
u8Alpha Codebook Update pixel value range ratio
IVE_SAD_CTRL_S
"definition"
196
6. 数据类型及结构体 瑞芯微电子股份有限公司
「说明」
bit number :
0: 8 bits
1: 16bit
u16Thr The calculated SAD The threshold value for thresholding
IVE_SAD_OUT_CTRL_8BIT_BOTH ,
2. IVE_SAD_OUT_CTRL_16BIT_BOTH and
IVE_SAD_OUT_CTRL_THRESH ,
IVE_WARP_AFFINE_CTRL_S
"definition"
197
6. 数据类型及结构体 瑞芯微电子股份有限公司
「说明」
IVE_PYRAMID_CTRL_S
"definition"
"illustra
te"
198