Use the sdk tool:
sample_vpp.exe -lib hw -sw 100 -sh 100 -scc rgb4 -dw 100 -dh 100 -dcc nv12 -d3d -i input.rgb32 -o output_hw.yuv
sample_vpp.exe -lib sw -sw 100 -sh 100 -scc rgb4 -dw 100 -dh 100 -dcc nv12 -d3d -i input.rgb32 -o output_sw.yuv
Compare hardware and software to use vpp to convert rgb to yuv420, the hw yuv420 quality is worse than sw.
The hw seem yuv420 sample the four pixel in the upper left corner, and SW sample the pixel average.
How to adjust the HW parameters to the same effect as SW?