This section provides you with instructions on how to use the VP performance data testing platform and shows you the performance data result statistics for reference.
Test conditions (hardware and software platform requirements):
The image size used for DSP GDC test is 1080P(1920x1080), Codec(3840x2160), Lkof(1080P), Stitch(Input 2 sheets 320x320, Output 640x640), Pyramid(Input 1080P, Output 960x540). The performance of pyramid core 2 is about 2/3 of core 0/1.
| Algorithm | Parameters | Vision processes(us) | OpenCV 3.4.5 A78(us) | Ratio(default DSP) |
|---|---|---|---|---|
| flip | 1920x1080 Y, y-axis | 1014 | 1137 | 1.1 |
| cvtColor | 1920x1080 Y, rgb dst: y | 1795 | 2069 | 1.2 |
| resize | 1920x1080 Y, xScale=1.5 yScale=1.5, interpolation=HB_VP_INTER_LINEAR | 1882 | 2713 | 1.4 |
| boxFilter | 1920x1080 Y, kernelHW=3x3 | 1158 | 1992 | 1.7 |
| canny | 1920x1080 Y, kernelSize=3, threshold1=100, threshold2=400 | 11298 | 21371 | 1.9 |
| remap | 1920x1080 nv12, interpolation=HB_VP_INTER_LINEAR | DSP: 10646 GDC: 3569 | 20287 | DSP: 1.9 GDC: 5.3 |
| transpose | 1920x1080 Y | 1129 | 2332 | 2.1 |
| medianBlur | 1920x1080 Y, maskWidth=7 | 32670 | 67681 | 2.1 |
| warpAffine | 1920x1080 nv12, scale=1.0, rotate=45, translate=0 | 2360 | 4918 | 2.1 |
| gaussianBlur | 1920x1080 Y, kernelSize=3, sigmaX=0, sigmaY=0 | 1149 | 2490 | 2.2 |
| equalizeHist | 1920x1080 Y | 1349 | 3507 | 2.6 |
| stitch | 640x480 nv12, stitch num=4 | 369 | 969 | Stitch:2.6 |
| pyrUp | 1920x1080 Y | 2551 | 6857 | 2.7 |
| rotate | 1920x1080 Y, rotateCode=HB_VP_ROTATE_90_CLOCKWISE | 1134 | 3609 | 3.2 |
| laplacianFilter | 1920x1080 Y, kernelSize=3, normalize=0 | 1501 | 5346 | 3.6 |
| pyrDown | 1920x1080 nv12, DSP:interpolation=gaussian PYM:interpolation=HB_VP_INTER_LINEAR | DSP: 1211 PYM(normal): 1996 PYM(low): 2905 | 5243 | DSP: 4.3 PYM(normal): 2.6 PYM(low): 1.8 |
| lkof | 1920x1080 nv12, pyrLevel=5, winSize=7, criteriaEpsilon=0, maxIteration=5, minEigThreshold=1e-4 | 1276 | 7701 | 6.0 |
| cornerHarris | 1920x1080 Y, blockSize=3, sensitivity=0.04, kernelSize=3 | 4616 | 29737 | 6.442 |
| warpPerspective | 1920x1080 Y, interpolation=HB_VP_INTER_LINEAR, transformMatrix=[0.9, 0.05, 15.0, 0.05, 0.9, 15.0, 0.0001, 0.0001, 1.1] | 2085 | 20457 | 9.8 |
| sepFilter2D | 1920x1080 Y, kernelHW=1x5 | 1181 | 12915 | 10.9 |
| bilateralFilter | 1920x1080 Y, kernelSize=5, sigmaColor=15, sigmaSpace=2 | 4574 | 55610 | 12.2 |
| filter2D | 1920x1080 Y, kernelHW=5x5 | 1452 | 22938 | 15.8 |
| jpegDecode | 3840x2160 src: jpg, dst: nv12 | 7398 | 127983 | Codec: 17.3 |
| jpegEncode | 3840x2160 src: nv12, dst: jpg | 9271 | 212206 | Codec: 22.9 |
| H265Decode | 3840x2160 src: h.265, dst: nv12 | 9390 | - | - |
| H265Encode | 3840x2160 src: nv12, dst: h.265 | 10800 | - | - |
| H264Decode | 3840x2160 src: h.264, dst: nv12 | 11104 | - | - |
| H264Encode | 3840x2160 src: nv12, dst: h.264 | 10251 | - | - |