Testparams.cfg配置文件中
# New Input File Format is as follows
# <ParameterName> = <ParameterValue> # Comment
#
##########################################################################################
# Parameters
##########################################################################################
ImageWidth = 40# Image width in Pels, must be multiple of 16
ImageHeight = 48 # Image height in Pels, must be multiple of 16
Scan = 15 # No. of ScanChromaFormat = 8 # 0 =>default 1 => XDM_YUV_420P, 2 => XDM_YUV_422P 3 => XDM_YUV_422IBE, # 4 => XDM_YUV_422ILE, 5 => XDM_YUV_444P ,6 => XDM_YUV_411P ,
# 7 =>XDM_GRAY , 8 => XDM_RGB
InputFormat = 0 # 1 : Progressive , 0 : SequentialResizeOption = 0 # 0 : No Resize , 1 : resize by 1/2 , 2 : resize by 1/4 , 3 : resize by 1/8displayWidth = 0 # displayWidth
RGB_Format = 0 # Select RGB Format => 0: BGR24 , 1 : BGR32 , 2:RGB16
outImgRes = 0 # Select Output Resolution, 0: Even Resolution , 1 : Actual Resolution
numAU = 0 # 0=>Default 1,2,3..N Where N is the maximum number of MCU's in a Frame
numMCU_row = 0 # 0=>Default 1,2,3..N Where N is the maximum number of rows in a Frame
x_org = 0 # 0=>Default start point of the X-axis in subregion
y_org = 0 # 0=>Default start point of the Y-axis in subregion
x_length = 0 # 0=>Default X-length of the subregiony_length = 0 # 0=>Default Y-length of the subregion
alpha_rgb = 0 # 0=>Default alpha value to fill rgb32
in Pels, must be multiple of 16的意思是说jpeg图片的长度和宽度必须是16的整数倍吗?我们在使用过程中发现长度和宽度为4的整数倍也可以正常解码,只是不知道长宽为4的整数倍的图片对jpeg解码库运行的稳定性有没有影响?
附件中为使用jpeg图片实例和其属性。
Marvin Liang:
1.只有在图片的长和宽都是16的整数倍的条件下,我们才保证data sheet中测试的性能数据,如果是4的整数倍,性能可能有所下降
2.如果是4的整数倍,而且同时做了Resize,比如1/8,可能会有问题