This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DM365 JPGEncode yuv420无法得到彩色图片



各位,我用的是dm365的EVM,sdk为dvsdk_2_10_01_18。我在dvsdk_demo的encode的capture.c里,在capture_get()函数抓取一Yuv420sp图像后,将其保存为文件,然后用jpeenc-r程序进行压缩,得到的jpg图片类似于黑白的,但是h264录像颜色是正常的。我设置成yuv422格式,然后抓拍并进行压缩,得到的Jpg就是正常的。请给我一点建议。

  • 请问在输入数据为yuv420sp的时候,JPEG的参数inputChromaFormat是否配置为9?

    请阅读一下算法的user guide,有详细的介绍。

  • 非常感谢你的回复。这是我使用的参数

    # <ParameterName> = <ParameterValue> # Comment

    #

    ##########################################################################################

    # Parameters

    ##########################################################################################

    maxHeight = 720

    maxWidth  = 1280

    maxScans  = 25

    dataEndianness = 1

    forceChromaFormat = 2

    inputChromaFormat = 9  //#4:422ILE,9:420SEMI_PLANAR,

    inputWidth = 736

    inputHeight = 576

    captureWidth = 736

    numAU = 0

    genHeader = 0

    qValue = 97

    rstInterval = 84

    rotation = 0

    disableEOI = 0

    我把压缩好的图片也传了上来。请再给我些指导,谢谢!!